/* Cart Blocks controls and classic checkout links only. Native behavior is untouched. */
body.woocommerce-cart .wc-block-components-quantity-selector {
    width: max-content;
    min-height: 44px;
    border: 1px solid #36566e !important;
    border-radius: 12px !important;
    background: #0e2940 !important;
    overflow: visible;
}
body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: #183b54 !important;
    border-radius: 10px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 1;
}
body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
    width: 46px !important;
    min-width: 46px !important;
    height: 44px !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: #0e2940 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}
body.woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    border: 1px solid #36566e !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: #183b54 !important;
    line-height: 1.2;
}
body.woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link svg {
    width: 24px !important;
    height: 24px !important;
    color: #ffffff !important;
    fill: currentColor;
}
body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:not(:disabled):hover,
body.woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:not(:disabled):hover {
    background: #d91328 !important;
    color: #ffffff !important;
}
body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled,
body.woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:disabled {
    color: #a9bdcc !important;
    background: #122b3d !important;
    opacity: 0.5;
    cursor: not-allowed;
}
body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible,
body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input:focus-visible,
body.woocommerce-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:focus-visible {
    outline: 3px solid #ff334a !important;
    outline-offset: 3px;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
    color: #edf4fb !important;
    line-height: 1.55;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text .woocommerce-terms-and-conditions-link,
body.woocommerce-checkout .woocommerce-privacy-policy-text .woocommerce-privacy-policy-link {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text {
    color: #cdddea !important;
    line-height: 1.55;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text .woocommerce-terms-and-conditions-link:hover,
body.woocommerce-checkout .woocommerce-privacy-policy-text .woocommerce-privacy-policy-link:hover {
    color: #ffffff !important;
    text-decoration-thickness: 2px;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text .woocommerce-terms-and-conditions-link:focus-visible,
body.woocommerce-checkout .woocommerce-privacy-policy-text .woocommerce-privacy-policy-link:focus-visible {
    outline: 2px solid #ff334a !important;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Classic checkout totals only: wrap labels/tax, preserve whole money values. */
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table tfoot > tr > th,
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table tfoot > tr > td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table tfoot .woocommerce-Price-amount {
    display: inline-block;
    white-space: nowrap !important;
}
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .order-total td > strong {
    display: block;
    margin: 0;
    line-height: 1.2 !important;
}
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .order-total td > small.includes_tax {
    display: block;
    margin: 2px 0 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.3 !important;
}
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .cart-discount .woocommerce-remove-coupon {
    margin-right: 0 !important;
    margin-inline-end: 0 !important;
}

/* Native Cart Blocks coupon chips: display only, native removal stays intact. */
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 8px 0 0 !important;
    padding: 8px 10px !important;
    list-style: none;
    border: 1px solid #794053 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #142f48, #0e2940) !important;
    color: #edf4fb !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    overflow: visible;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background-color: #ff6878;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-rule='evenodd' d='M3 3h8l10 10-8 8L3 11V3zm4 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-rule='evenodd' d='M3 3h8l10 10-8 8L3 11V3zm4 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip__text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    color: #edf4fb !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4 !important;
    text-transform: none;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip__remove {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #55728b !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: #203c53 !important;
    line-height: 1;
    opacity: 1;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip__remove svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    color: inherit !important;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip__remove:not(:disabled):hover {
    color: #ffffff !important;
    border-color: #ff6878 !important;
    background: #d91328 !important;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip__remove:disabled {
    opacity: 0.55;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-chip__remove:focus-visible {
    outline: 2px solid #ff5368 !important;
    outline-offset: 3px;
}

/* Classic checkout native coupon removal: improve contrast/tap target only. */
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .cart-discount .woocommerce-remove-coupon {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #55728b !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: #203c53 !important;
    vertical-align: middle;
}
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .cart-discount .woocommerce-remove-coupon::before {
    font-size: 22px !important;
    line-height: 1;
    color: inherit !important;
}
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .cart-discount .woocommerce-remove-coupon:hover {
    color: #ffffff !important;
    border-color: #ff6878 !important;
    background: #d91328 !important;
}
body.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .cart-discount .woocommerce-remove-coupon:focus-visible {
    outline: 2px solid #ff5368 !important;
    outline-offset: 3px;
}
