/* ==========================================================================
   TIER-1 MASTER CART PAGE STYLING (/cart/)
   Clean, borderless, luxury dark layout (#17141c) with floating labels.
   ========================================================================== */

.woocommerce-cart-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.woocommerce-cart-form table.shop_table,
.woocommerce table.shop_table.cart {
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border-collapse: collapse !important;
}

.woocommerce-cart-form table.shop_table th,
.woocommerce table.shop_table.cart th {
    background: transparent !important;
    color: #94a3b8 !important;
    padding: 16px 12px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-cart-form table.shop_table td,
.woocommerce table.shop_table.cart td {
    padding: 20px 12px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle !important;
    color: #f8fafc !important;
}

.woocommerce-cart-form table.shop_table tr:last-child td {
    border-bottom: none !important;
}

.woocommerce-cart-form table.shop_table td.product-thumbnail img {
    border-radius: 8px !important;
    width: 68px !important;
    height: 68px !important;
    object-fit: cover !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-cart-form table.shop_table td.product-name a {
    color: #ffffff !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.woocommerce-cart-form table.shop_table td.product-name a:hover {
    color: #7c3aed !important;
}

.woocommerce-cart-form table.shop_table td.product-price,
.woocommerce-cart-form table.shop_table td.product-subtotal {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.woocommerce-cart-form table.shop_table td.product-remove a.remove {
    color: #64748b !important;
    background: transparent !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce-cart-form table.shop_table td.product-remove a.remove:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* ==========================================================================
   1. COUPON BOX: VERTICALLY CENTERED FLOATING LABEL + CLEAR CROSS
   ========================================================================== */
.woocommerce-page .woocommerce-cart-form .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    float: left !important;
}

.mcb-coupon-floating-wrap {
    position: relative !important;
    width: 270px !important;
    height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.woocommerce-page .woocommerce-cart-form #coupon_code,
.woocommerce-cart-form #coupon_code,
input#coupon_code.input-text {
    width: 100% !important;
    height: 52px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    padding: 0 44px 0 20px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.woocommerce-page .woocommerce-cart-form #coupon_code:focus,
input#coupon_code.input-text:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25) !important;
    background: rgba(124, 58, 237, 0.04) !important;
}

.mcb-coupon-floating-label {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    pointer-events: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1 !important;
    margin: 0 !important;
    user-select: none !important;
}

.mcb-coupon-floating-wrap.has-value .mcb-coupon-floating-label,
.mcb-coupon-floating-wrap input:focus ~ .mcb-coupon-floating-label,
.mcb-coupon-floating-wrap input:not(:placeholder-shown) ~ .mcb-coupon-floating-label {
    top: 9px !important;
    transform: translateY(0) !important;
    font-size: 9.5px !important;
    color: #7c3aed !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.mcb-coupon-floating-wrap.has-value input#coupon_code,
.mcb-coupon-floating-wrap input#coupon_code:focus,
.mcb-coupon-floating-wrap input#coupon_code:not(:placeholder-shown) {
    padding-top: 14px !important;
    padding-bottom: 0 !important;
}

.mcb-coupon-clear-cross {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.mcb-coupon-clear-cross:hover {
    color: #ef4444 !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.woocommerce .coupon button[name="apply_coupon"],
.woocommerce-page .woocommerce-cart-form .coupon button.button {
    background: transparent !important;
    border: 1.5px solid #7c3aed !important;
    color: #7c3aed !important;
    border-radius: 50px !important;
    height: 52px !important;
    padding: 0 28px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce .coupon button[name="apply_coupon"]:hover:not(:disabled) {
    background: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35) !important;
}

.woocommerce .coupon button[name="apply_coupon"]:disabled,
.woocommerce .coupon button[name="apply_coupon"].is-disabled {
    opacity: 0.3 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   2. QUANTITY STEPPER (SINGLE COLUMN ARROWS + SQUARE BORDER)
   ========================================================================== */
.woocommerce .quantity,
.woocommerce-page .quantity,
.mcb-quantity-stepper {
    display: inline-flex !important;
    align-items: stretch !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 0px !important; /* STRICTLY NOT ROUNDED */
    height: 44px !important;
    width: 86px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: visible !important;
    vertical-align: middle !important;
}

.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty,
input.mcb-qty-val-input {
    width: 56px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0px !important;
    color: #ffffff !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    -moz-appearance: textfield !important;
}

.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.mcb-qty-arrows-col {
    display: flex !important;
    flex-direction: column !important;
    width: 30px !important;
    height: 100% !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.mcb-qty-arrow-btn {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-radius: 0px !important;
    color: #94a3b8 !important;
    width: 100% !important;
    height: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.mcb-qty-arrow-btn.up {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.mcb-qty-arrow-btn:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
}

.mcb-qty-arrow-btn svg {
    stroke: currentColor !important;
    pointer-events: none !important;
}

/* Pure Number Dropdown */
.mcb-qty-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: -1px !important;
    width: calc(100% + 2px) !important;
    background: #151119 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 0px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75) !important;
    z-index: 1000 !important;
    display: none;
    flex-direction: column !important;
    padding: 2px 0 !important;
    box-sizing: border-box !important;
    max-height: 180px !important;
    overflow-y: auto !important;
}

.mcb-qty-dropdown-menu.open {
    display: flex !important;
}

.mcb-qty-preset-item {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #cbd5e1 !important;
    padding: 6px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    width: 100% !important;
}

.mcb-qty-preset-item:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. CART TOTALS (ZERO BG, ZERO BORDER, ZERO SHADOW) & PROCEED BUTTON
   ========================================================================== */
.cart_totals {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    float: right !important;
    width: 100% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
}

.cart_totals h2 {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 14px !important;
    letter-spacing: -0.2px !important;
}

.cart_totals table.shop_table {
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.cart_totals table.shop_table th {
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 12px 0 !important;
    text-transform: none !important;
}

.cart_totals table.shop_table td {
    background: transparent !important;
    border: none !important;
    padding: 12px 0 !important;
    text-align: right !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.cart_totals table.shop_table tr.order-total th {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 16px !important;
}

.cart_totals table.shop_table tr.order-total td {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 16px !important;
}

.cart_totals table.shop_table tr.order-total strong .amount {
    color: #10b981 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.wc-proceed-to-checkout {
    padding: 24px 0 0 0 !important;
}

/* ZERO WHITE BORDER ON PROCEED TO CHECKOUT */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout a.checkout-button,
a.checkout-button.button.alt.wc-forward,
a.checkout-button.wp-element-button {
    background: #7c3aed !important;
    color: #ffffff !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    border-radius: 50px !important;
    padding: 16px 28px !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button:hover {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    background: #6d28d9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55) !important;
    color: #ffffff !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:focus,
.wc-proceed-to-checkout a.checkout-button:focus {
    border: none !important;
    outline: none !important;
}

.mcb-checkout-svg-arrow {
    stroke: #ffffff !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover .mcb-checkout-svg-arrow,
.wc-proceed-to-checkout a.checkout-button:hover .mcb-checkout-svg-arrow {
    transform: translateX(6px) !important;
}

@media screen and (max-width: 768px) {
    .woocommerce-page .woocommerce-cart-form .coupon {
        flex-direction: column !important;
        width: 100% !important;
    }
    .mcb-coupon-floating-wrap,
    .woocommerce .coupon button[name="apply_coupon"],
    .woocommerce table.cart td.actions button[name="update_cart"] {
        width: 100% !important;
    }
    .cart_totals {
        float: none !important;
        max-width: 100% !important;
        margin-top: 30px !important;
    }
}