/* Sprint 9C: classic basket empty state, WooCommerce notices and accessibility.
 * Scoped to the basket to preserve CheckoutWC, its payment buttons and other pages.
 */
body.woocommerce-cart .cmc-empty-basket {
    box-sizing: border-box;
    width: min(100% - 40px, 700px);
    margin: 28px auto 90px;
    padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 60px);
    border: 1px solid #dce8ed;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    box-shadow: none;
}
body.woocommerce-cart .cmc-empty-basket__eyebrow {
    margin: 0 0 15px;
    color: #0076a5;
    font-family: "greycliff-cf", Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.woocommerce-cart .cmc-empty-basket h2 {
    margin: 0 0 18px;
    color: #003b53;
    font-family: "larken", sans-serif;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 400;
    line-height: 1.16;
}
body.woocommerce-cart .cmc-empty-basket__description {
    max-width: 450px;
    margin: 0 auto 30px;
    color: #3b4e59;
    font-family: "bilo", sans-serif;
    font-size: 17px;
    line-height: 1.6;
}
body.woocommerce-cart .cmc-empty-basket__button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 190px;
    padding: 12px 22px;
    border: 1px solid #0076a5;
    border-radius: 7px;
    background: #0076a5;
    color: #fff;
    font-family: "europa", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
}
body.woocommerce-cart .cmc-empty-basket__button:hover { background: #005f84; color: #fff; }
body.woocommerce-cart .cmc-empty-basket__button:focus-visible,
body.woocommerce-cart .woocommerce-notices-wrapper a:focus-visible,
body.woocommerce-cart .cmc-cart-item input.qty:focus-visible,
body.woocommerce-cart .cmc-cart-item .qty-plus:focus-visible,
body.woocommerce-cart .cmc-cart-item .qty-minus:focus-visible {
    outline: 2px solid #319dcb;
    outline-offset: 3px;
}
/* Keep native WooCommerce notices and Undo links. No new toast overlays. */
body.woocommerce-cart .woocommerce-notices-wrapper { width: min(100% - 32px, 1280px); margin: 18px auto 0; }
body.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; }
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info {
    margin-bottom: 12px;
    padding: 15px 18px 15px 48px;
    border: 1px solid #dce8ed;
    border-left: 3px solid #0076a5;
    border-radius: 7px;
    background: #f5f9fb;
    color: #003b53;
    font-family: "bilo", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none;
}
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error {
    border-left-color: #b42318;
    background: #fff7f6;
    color: #74231d;
}
body.woocommerce-cart .woocommerce-notices-wrapper a,
body.woocommerce-cart .woocommerce-message a,
body.woocommerce-cart .woocommerce-error a,
body.woocommerce-cart .woocommerce-info a {
    color: #00678f;
    font-weight: 700;
    text-underline-offset: 3px;
}
/* The existing Sprint 9B status stays visible and uses normal document flow. */
body.woocommerce-cart .cmc-cart-actions .cmc-cart-auto-status:not([hidden]) {
    margin-top: 6px;
    padding: 9px 12px;
    border-left: 3px solid #0076a5;
    border-radius: 4px;
    background: #f0f7fa;
    color: #003b53;
    font-size: 14px;
}
body.woocommerce-cart .cmc-cart-item .cmc-cart-field-error {
    display: block;
    margin-top: 5px;
    color: #98291f;
    font-family: "bilo", sans-serif;
    font-size: 12px;
    line-height: 1.45;
}
body.woocommerce-cart .cmc-cart-item input.qty[aria-invalid="true"] {
    outline: 2px solid #b42318;
    outline-offset: 1px;
}
@media (max-width: 575.98px) {
    body.woocommerce-cart .cmc-empty-basket { width: calc(100% - 24px); margin: 18px auto 60px; }
    body.woocommerce-cart .cmc-empty-basket__button { width: 100%; }
    body.woocommerce-cart .woocommerce-notices-wrapper { width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
    body.woocommerce-cart .cmc-empty-basket__button { transition: none; }
}
