/**
 * Mark2 Availability – Frontend Inline Notices
 *
 * Styles the per-product unavailability notice that appears below the
 * product name in classic cart/checkout tables and WooCommerce Blocks.
 */

/* ── Inline notice ───────────────────────────────────────────────────────── */

.mark2-inline-notice {
    display: block;
    margin-top: 5px;
    padding: 5px 10px;
    border-left: 3px solid #cc1818;
    background: #fff5f5;
    color: #7d1212;
    font-size: .85em;
    font-weight: normal;
    line-height: 1.5;
    border-radius: 0 3px 3px 0;
}

/* ── Blocks: the item name wrapper becomes a flex column ─────────────────── */

.wc-block-cart-item__product-name .mark2-inline-notice,
.wc-block-components-product-name .mark2-inline-notice {
    margin-top: 4px;
}

/* ── Classic: WC table cells already stack content ──────────────────────── */

.woocommerce-cart-form .product-name .mark2-inline-notice,
.woocommerce-checkout #order_review .product-name .mark2-inline-notice {
    margin-top: 4px;
}

/* ── Dark-mode courtesy override ────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
    .mark2-inline-notice {
        background: rgba(204, 24, 24, .12);
        color: #f99;
        border-left-color: #f66;
    }
}
