/* Backorder status belongs in the card flow, below the product title. */
ul.products li.product .obs-special-badge {
    display: block !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 6px auto 9px !important;
    padding: 5px 9px;
    border: 1px solid #bd0717;
    border-radius: 5px;
    background: #32060b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    z-index: auto !important;
    transform: none !important;
}

body.obs-four-unit-backorder .obs-backorder-conflicting-promo {
    display: none !important;
}

body.obs-four-unit-backorder-cart .obs-backorder-false-savings {
    display: none !important;
}

/* Keep the primary action and WooCommerce's AJAX View cart link distinct. */
ul.products li.product.obs-backorder-card a.add_to_cart_button,
ul.products li.product.obs-backorder-card a.added_to_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    line-height: 1.25;
    text-align: center;
}

ul.products li.product.obs-backorder-card a.add_to_cart_button + a.added_to_cart,
ul.products li.product.obs-backorder-card a.added_to_cart {
    margin-top: 8px !important;
}

.obs-restock-alert {
    clear: both;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e6d9dc;
    border-radius: 12px;
    background: #fff8f9;
    color: #172033;
}
.obs-restock-alert .obs-restock-eyebrow {
    color: #b10a1c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.obs-restock-alert h3 { margin: 7px 0 8px; font-size: 20px; }
.obs-restock-alert p { margin: 0 0 14px; line-height: 1.5; }
.obs-restock-alert .obs-restock-controls { display: flex; gap: 9px; flex-wrap: wrap; }
.obs-restock-alert input[type=email] { flex: 1 1 200px; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #ccd0d6; border-radius: 6px; background: #fff; }
.obs-restock-alert button { min-height: 43px; padding: 10px 16px; border: 0; border-radius: 6px; background: #c2081e; color: #fff; font-weight: 700; cursor: pointer; }
.obs-restock-alert button:hover, .obs-restock-alert button:focus-visible { background: #990719; }
.obs-restock-alert small { display: block; margin-top: 10px; color: #586070; line-height: 1.4; }
.obs-restock-alert .obs-restock-feedback { font-weight: 700; color: #135c3c; }
.obs-restock-alert .obs-restock-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The two-column shop layout must size cards by their content on phones. */
@media (max-width: 767px) {
    body.woocommerce-shop ul.products.ore-native-product-loop,
    body.post-type-archive-product ul.products.ore-native-product-loop {
        grid-auto-rows: max-content !important;
        align-items: start !important;
        align-content: start !important;
    }
    body.woocommerce-shop ul.products li.product,
    body.post-type-archive-product ul.products li.product {
        height: auto !important;
        min-height: 0 !important;
        align-self: start !important;
    }
    body.woocommerce-shop ul.products li.product .obs-special-badge,
    body.post-type-archive-product ul.products li.product .obs-special-badge {
        clear: both;
        display: table !important;
        width: auto !important;
        max-width: calc(100% - 16px);
        margin: 7px auto 11px !important;
        font-size: 10px;
        text-wrap: balance;
    }
}
