.cqc-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #f0c2c2;
    border-radius: 8px;
    background: #fff6f6;
    color: #8a1f1f;
    font-size: 13px;
    line-height: 1.4;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table {
    table-layout: fixed;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table thead .product-name {
    text-align: left;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table thead .product-qty,
.woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-qty {
    width: 78px;
    min-width: 78px;
    text-align: center;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table thead .product-qty {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table thead .product-total,
.woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-total,
.woocommerce-checkout-review-order-table.cqc-review-order-table tfoot td {
    width: 92px;
    text-align: right;
    white-space: nowrap;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-name,
.woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-total {
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table tfoot th[colspan="2"] {
    text-align: left;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table tfoot .coupon-field td {
    width: auto;
    white-space: normal;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table tfoot .coupon-field .wcf-custom-coupon-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table tfoot .coupon-field .wcf-coupon-col-1,
.woocommerce-checkout-review-order-table.cqc-review-order-table tfoot .coupon-field .wcf-coupon-col-2 {
    flex: 1 1 auto;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-cell {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.22s ease;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-control {
    --cqc-ink: #132238;
    --cqc-accent: #1f7a52;
    --cqc-border: #d8dde5;
    --cqc-surface: #ffffff;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 auto;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-control::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid rgba(19, 34, 56, 0.14);
    border-top-color: var(--cqc-accent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-label {
    display: none;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-stepper {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    border: 1px solid var(--cqc-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--cqc-surface);
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table button.cqc-step-button.cqc-step-button--minus,
.woocommerce-checkout-review-order-table.cqc-review-order-table button.cqc-step-button.cqc-step-button--plus {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button {
    appearance: none;
    border: 0;
    background: var(--cqc-ink) !important;
    color: #ffffff !important;
    cursor: pointer;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1 !important;
    padding: 0 !important;
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button:hover {
    background: #0b1627 !important;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button:active {
    transform: scale(0.96);
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button:disabled {
    background: #b6c0cc !important;
    cursor: not-allowed;
    opacity: 0.78;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button span {
    transform: none;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-stepper.is-updating,
.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-control.is-updating .cqc-quantity-stepper {
    opacity: 0.58;
    transform: scale(0.98);
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-control.is-updating::after {
    opacity: 1;
    transform: scale(1);
    animation: cqc-spin 0.72s linear infinite;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-control.is-synced .cqc-quantity-stepper {
    border-color: rgba(31, 122, 82, 0.48);
    box-shadow: 0 0 0 3px rgba(31, 122, 82, 0.12);
    animation: cqc-pulse 0.7s ease;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-stepper .quantity {
    margin: 0;
    width: 36px;
    min-width: 36px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border-top: 1px solid var(--cqc-border);
    border-bottom: 1px solid var(--cqc-border);
    box-sizing: border-box;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    display: block;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    background: transparent !important;
    color: var(--cqc-ink);
    font-size: 14px !important;
    font-weight: 700;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 26px !important;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    text-indent: 0 !important;
    padding-inline: 0 !important;
    padding-block: 0 !important;
    appearance: textfield;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty:focus {
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(31, 122, 82, 0.22);
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty[readonly] {
    cursor: default;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(31, 122, 82, 0.28);
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty::-webkit-outer-spin-button,
.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 767px) {
    .woocommerce-checkout-review-order-table.cqc-review-order-table thead .product-qty,
    .woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-qty {
        width: 56px;
        min-width: 56px;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table thead .product-qty {
        font-size: 11px;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table thead .product-total,
    .woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-total {
        width: 60px;
        min-width: 60px;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-cell {
        padding: 8px 3px;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-stepper {
        width: 32px;
        min-width: 32px;
        max-width: 32px;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table button.cqc-step-button.cqc-step-button--minus,
    .woocommerce-checkout-review-order-table.cqc-review-order-table button.cqc-step-button.cqc-step-button--plus,
    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 14px !important;
        min-height: 14px !important;
        max-height: 14px !important;
        font-size: 10px !important;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-stepper .quantity,
    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-qty-input.qty {
        font-size: 12px !important;
        line-height: 24px !important;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-name {
        font-size: 14px;
        line-height: 1.45;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table tbody .product-total,
    .woocommerce-checkout-review-order-table.cqc-review-order-table tfoot td {
        font-size: 13px;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table tfoot td {
        width: auto;
        white-space: normal;
        line-height: 1.35;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table tfoot .cart-shipping td {
        font-size: 12px;
    }

    .woocommerce-checkout-review-order-table.cqc-review-order-table tfoot .coupon-field .wcf-custom-coupon-field {
        flex-direction: column;
        align-items: stretch;
    }
}

@keyframes cqc-spin {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes cqc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 122, 82, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(31, 122, 82, 0.16);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(31, 122, 82, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-stepper,
    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-step-button,
    .woocommerce-checkout-review-order-table.cqc-review-order-table .cqc-quantity-control::after {
        transition: none;
        animation: none !important;
    }
}
