/* Keep cart actions aligned with the site's 44px touch-target system. */
.cart-drawer__item-heading button,
[data-cart-page] [data-cart-remove],
[data-cart-page] [data-clear-cart] {
    appearance: none !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    padding: 0.65rem 1rem !important;
    border: 1px solid rgb(14 52 89 / 0.2) !important;
    border-radius: 9999px !important;
    color: var(--color-primary, #0e3459) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--font-display, inherit) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s !important;
}

.cart-drawer__item-heading button:hover,
[data-cart-page] [data-cart-remove]:hover,
[data-cart-page] [data-clear-cart]:hover {
    color: #fff !important;
    background: var(--color-primary, #0e3459) !important;
    border-color: var(--color-primary, #0e3459) !important;
    transform: translateY(-1px) !important;
}

.cart-drawer__remove,
.cart-drawer__remove:hover,
.cart-drawer__remove:focus-visible {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: var(--color-primary, #0e3459) !important;
    border-color: var(--color-primary, #0e3459) !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
}

.cart-drawer__remove-label {
    display: inline-block !important;
    color: #0e3459 !important;
    -webkit-text-fill-color: #0e3459 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cart-drawer__remove:hover .cart-drawer__remove-label,
.cart-drawer__remove:focus-visible .cart-drawer__remove-label {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.cart-drawer__quantity button,
[data-cart-page] [data-cart-increase],
[data-cart-page] [data-cart-decrease] {
    appearance: none !important;
    box-sizing: border-box !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0.75rem !important;
    color: var(--color-primary, #0e3459) !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transition: color 0.2s, background-color 0.2s !important;
}

.cart-drawer__quantity button:hover,
[data-cart-page] [data-cart-increase]:hover,
[data-cart-page] [data-cart-decrease]:hover {
    color: #fff !important;
    background: var(--color-primary, #0e3459) !important;
}

.cart-drawer__quantity {
    min-height: 44px !important;
    overflow: hidden !important;
    border-radius: 0.9rem !important;
}

/* Keep the full-cart link usable as a real mobile touch target. */
.cart-drawer__view-cart {
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: 100% !important;
    min-width: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    line-height: 1.2 !important;
}

/* Product catalogue controls must keep their full tap area after the
   generated catalogue styles are loaded. */
@media (max-width: 600px) {
    [data-products-catalog] .products-search-input input,
    #products-search {
        box-sizing: border-box !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 10px 16px !important;
        line-height: 1.2 !important;
    }

    [data-products-catalog] .products-filter-field select,
    #products-category,
    #products-sort {
        box-sizing: border-box !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        height: 44px !important;
        padding-block: 10px !important;
        padding-inline: 16px !important;
        line-height: 1.2 !important;
    }

    main [data-products-catalog] .product-quantity-control button {
        box-sizing: border-box !important;
        display: inline-flex !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    /* Keep product-detail +/- buttons at the WCAG mobile touch-target size
       after the generated output stylesheet and utility classes are loaded. */
    main .product-detail-buybox [data-quantity-control] > button,
    main .product-detail-buybox .product-detail-quantity-button {
        box-sizing: border-box !important;
        display: inline-flex !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        line-height: 1 !important;
    }

    /* The quantity wrapper follows the buybox baseline: no extra inset or
       radius around the already-rounded 44px controls. */
    main .product-detail-buybox .product-detail-quantity-control,
    main .product-detail-buybox [data-quantity-control] {
        box-sizing: border-box !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* Related-product add buttons need real internal spacing as well as a
       44px touch height; this wins over the legacy compact-card rule. */
    main .product-related-card .featured-bite__add {
        box-sizing: border-box !important;
        display: inline-flex !important;
        width: 100% !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        line-height: 1 !important;
    }

    /* The review showcase has a compact <=760px height rule elsewhere;
       preserve a reliable mobile tap target after that rule is loaded. */
    main .review-showcase__cta,
    a.review-showcase__cta {
        box-sizing: border-box !important;
        display: inline-flex !important;
        min-width: 44px !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        line-height: 1 !important;
    }

    /* Compact story-video control: keep the icon visual size small while
       exposing a full 44px mobile tap target. */
    button.review-video-toggle.review-video-toggle--compact {
        box-sizing: border-box !important;
        display: inline-flex !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        line-height: 1 !important;
    }

    main [data-products-catalog] .product-add-button,
    main .product-add-button {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 16px !important;
        line-height: 1 !important;
    }
}

[data-cart-page] [data-cart-remove],
[data-cart-page] [data-clear-cart] {
    white-space: nowrap;
}

.cart-coupon-apply {
    appearance: none !important;
    min-height: 44px !important;
    padding: 0.65rem 0.9rem !important;
    border: 1px solid var(--color-primary, #0e3459) !important;
    border-radius: 0.75rem !important;
    color: #fff !important;
    background: var(--color-primary, #0e3459) !important;
    box-shadow: none !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s !important;
}

.cart-coupon-apply:hover {
    background: var(--color-primary-dark, #092542) !important;
    transform: translateY(-1px) !important;
}
