@keyframes sg-site-notify-date {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Use the desktop secondary-action palette across the catalog, including manufacturer pages. */
html body :is(*, #product-manufacturer #content .product-layout .us-module-preorder-btn,
    body:has(:is(#ocfilter, #product-search)):has(#content .product-layout) #content .us-module-cart-btn.us-module-preorder-btn)[data-sg-site-notify] {
    background: #341a1f !important;
    background: color-mix(in srgb, var(--sg-red, #ef171c) 14%, #151b20) !important;
    border-color: #c72025 !important;
    border-color: color-mix(in srgb, var(--sg-red, #ef171c) 78%, #394047) !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(239, 23, 28, .09) inset, 0 6px 15px rgba(0, 0, 0, .23) !important;
}

html body :is(*, #product-manufacturer #content .product-layout .us-module-preorder-btn,
    body:has(:is(#ocfilter, #product-search)):has(#content .product-layout) #content .us-module-cart-btn.us-module-preorder-btn)[data-sg-site-notify]:is(:hover, :focus-visible) {
    background: #501a1f !important;
    background: color-mix(in srgb, var(--sg-red, #ef171c) 27%, #151b20) !important;
    border-color: var(--sg-red, #ef171c) !important;
}

html body [data-sg-site-notify][data-sg-site-eta],
#product-manufacturer #content .product-layout .us-module-cart-btn[data-sg-site-notify][data-sg-site-eta],
#product-special #content .product-layout .us-module-cart-btn[data-sg-site-notify][data-sg-site-eta],
body:has(:is(#ocfilter, #product-search)):has(#content .product-layout) #content .us-module-cart-btn[data-sg-site-notify][data-sg-site-eta] {
    position: relative !important;
    inset: auto !important;
    isolation: isolate;
}

html body [data-sg-site-notify][data-sg-site-eta]::after {
    content: attr(data-sg-site-eta);
    content: attr(data-sg-site-eta) / "";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 0 4px;
    border-radius: inherit;
    background-color: inherit;
    background-image: inherit;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    font-family: inherit;
    font-size: var(--sg-site-eta-font, 12px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-indent: 0;
    text-transform: uppercase;
    white-space: normal;
    pointer-events: none;
    animation: sg-site-notify-date 5.8s steps(1, end) infinite;
}

html body [data-sg-site-notify][data-sg-site-eta][data-sg-site-eta-size="compact"]::after {
    content: attr(data-sg-site-eta-short);
    content: attr(data-sg-site-eta-short) / "";
    --sg-site-eta-font: 10px;
}

html body [data-sg-site-notify][data-sg-site-eta][data-sg-site-eta-size="icon"]::after {
    content: attr(data-sg-site-eta-day);
    content: attr(data-sg-site-eta-day) / "";
    --sg-site-eta-font: 9px;
}

html body [data-sg-site-notify][data-sg-site-eta]:not([data-sg-site-eta-size="icon"])::after {
    font-size: inherit;
    font-weight: inherit;
}

@media (max-width: 767px) {
    #product-product #product #button-preorder[data-sg-site-notify] {
        font-size: 14px;
    }
}

@media (max-width: 1199.98px) {
    #product-manufacturer #content .product-layout .us-product-category-quantity,
    #product-special #content .product-layout .us-product-category-quantity,
    body:has(:is(#ocfilter, #product-search)):has(#content .product-layout) #content .us-product-category-quantity {
        row-gap: 8px !important;
    }

    :is(#product-manufacturer, body.sg-page-specials #product-special, body:has(:is(#ocfilter, #product-search)):has(#content .product-layout)) #content .product-layout.product-grid .us-module-item {
        min-height: 522px !important;
    }

    :is(#product-manufacturer, body.sg-page-specials #product-special, body:has(:is(#ocfilter, #product-search)):has(#content .product-layout)) #content .product-layout.product-grid .us-module-caption {
        padding-bottom: 15px !important;
    }

    :is(#product-manufacturer, body.sg-page-specials #product-special, body:has(:is(#ocfilter, #product-search)):has(#content .product-layout)) #content .product-layout.product-grid .us-product-category-quantity {
        height: auto !important;
        min-height: 0 !important;
        margin-top: auto !important;
        padding-top: 7px !important;
    }

    #product-product #product #button-preorder[data-sg-site-notify].active:not([hidden], .d-none, [style*="display: none"], [style*="display:none"])
        + :is(#button-cart, #button-cart-replaced),
    #us-quickview-modal #button-preorder[data-sg-site-notify]:not([hidden], .d-none, [style*="display: none"], [style*="display:none"])
        + #oct-popup-button-cart {
        margin-top: 8px !important;
    }

    #product-compare .us-table-compare-btn td > .sg-compare-arrival-btn[data-sg-site-notify],
    #product-compare .us-table-compare-btn td:has(> [data-sg-site-notify]) .sg-compare-preorder-btn {
        width: min(100%, 45vw, 220px) !important;
        max-width: none !important;
    }

    #product-compare .us-table-compare-btn td > .sg-compare-arrival-btn[data-sg-site-notify] {
        margin: 0 auto 8px !important;
    }

    #account-wishlist #content .us-acc-info-block-right:has(> [data-sg-site-notify] + .us-acc-product-btn) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #account-wishlist #content .us-acc-info-block-right > [data-sg-site-notify],
    #account-wishlist #content .us-acc-info-block-right > [data-sg-site-notify] + .us-acc-product-btn {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    #common-home .sg-home-product-carousel .sg-product-grid:has(> .sg-product-card > [data-sg-site-notify]) > .sg-product-card {
        grid-auto-rows: 4px 40px;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 13px !important;
    }

    #common-home .sg-home-product-carousel .sg-product-grid:has(> .sg-product-card > [data-sg-site-notify]) > .sg-product-card > .button-cart {
        grid-row: 9 !important;
    }

    #common-home .sg-home-product-carousel .sg-product-grid > .sg-product-card > .us-module-preorder-btn[data-sg-site-notify] {
        grid-area: 7 / 1 / auto / 3 !important;
        display: flex !important;
        align-self: center;
        align-items: center;
        justify-content: center;
        height: 36px;
        width: 100%;
        margin: 0 !important;
        padding: 2px 5px;
        border: 1px solid var(--sg-red, #ef171c);
        border-radius: 7px;
        font-size: 10px;
        font-weight: 800;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }
}

html body [data-sg-site-notify][data-sg-site-eta]:is(:disabled, :focus-visible, [aria-disabled="true"], [aria-busy="true"])::after {
    content: none;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    html body [data-sg-site-notify][data-sg-site-eta]::after {
        content: none;
        animation: none;
    }
}
