/* Scoped to RestockNotifier storefront actions. Uses the shop's primary color. */
.restock-notifier-button,
.restock-notifier-button:hover,
.restock-notifier-button:focus,
.restock-notifier-button:active {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    padding: 0.875rem 1.75rem;
    border: 1px solid var(--bs-primary, #f0ed2b);
    border-radius: 999px;
    background-color: var(--bs-primary, #f0ed2b);
    background-image: none;
    color: #000;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 1;
    filter: none;
    box-shadow: none;
    cursor: pointer;
}

.restock-notifier-button:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

button.restock-notifier-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.restock-notifier-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.restock-notifier-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 44px;
    align-items: start;
    gap: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #161616;
}

.restock-notifier-item-image {
    width: 112px;
    height: 112px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.restock-notifier-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.restock-notifier-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #737b87;
}

.restock-notifier-image-placeholder svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.restock-notifier-item-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.restock-notifier-item-title {
    margin: 0 0 0.5rem;
    color: #161616;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.restock-notifier-item-status,
.restock-notifier-item-date,
.restock-notifier-item-notice {
    margin: 0 0 0.5rem;
}

.restock-notifier-item-date,
.restock-notifier-test-help {
    color: #555e6a;
    font-size: 0.875rem;
}

.restock-notifier-item-notice {
    margin-top: 0.75rem;
}

.restock-notifier-test-form {
    margin-top: 1rem;
}

.restock-notifier-test-help {
    margin: 0.5rem 0 0;
}

.restock-notifier-remove-form {
    margin: 0;
}

button.restock-notifier-remove,
button.restock-notifier-remove:hover,
button.restock-notifier-remove:focus,
button.restock-notifier-remove:active {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    opacity: 1;
    filter: none;
    box-shadow: none;
    cursor: pointer;
}

button.restock-notifier-remove:hover {
    background: #a51f1f;
}

button.restock-notifier-remove:active {
    background: #851919;
}

button.restock-notifier-remove:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.restock-notifier-remove svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

@media (max-width: 575px) {
    .restock-notifier-item {
        grid-template-columns: 72px minmax(0, 1fr) 44px;
        gap: 0.75rem;
        padding: 1rem;
    }

    .restock-notifier-item-image {
        width: 72px;
        height: 72px;
    }

    .restock-notifier-item-content {
        display: contents;
    }

    .restock-notifier-item-image {
        grid-column: 1;
        grid-row: 1;
    }

    .restock-notifier-item-title {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0;
    }

    .restock-notifier-remove-form {
        grid-column: 3;
        grid-row: 1;
    }

    .restock-notifier-item-status,
    .restock-notifier-item-date,
    .restock-notifier-item-notice,
    .restock-notifier-test-form {
        grid-column: 1 / -1;
        margin: 0;
    }

    .restock-notifier-test-form .restock-notifier-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}
