/**
 * Light & Composition — Luxury 2-Column Responsive Cart & Checkout Experience
 *
 * Designed for high conversion, institutional prestige, and seamless cross-device reliability:
 * - Apple-grade design tokens (--lc-blue: #0071e3, --lc-amber: #e8820c)
 * - 2-Column Desktop Grid with Sticky Sidebars for Cart Totals and Checkout Order Review
 * - Clean multi-step checkout progress indicator with mobile responsive scaling
 * - Native iOS-style mobile card transformation for cart items
 * - 256-bit SSL trust architecture & institutional reassurances
 * - Touch-optimized target sizes (>= 48px) and 16px form inputs preventing iOS Safari auto-zoom
 *
 * @package LC_Theme
 * @since   1.0.7
 */

/* ── 0. Global E-Commerce Canvas & Scoping ────────────────────────────────── */
.woocommerce-cart,
.woocommerce-checkout {
    background-color: #fbfbfd !important;
}

.woocommerce-cart *,
.woocommerce-checkout * {
    box-sizing: border-box;
}

/* ── 1. Multi-Step Checkout Progress Indicator ────────────────────────────── */
.lc-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 36px;
    padding: 0 10px;
    flex: 0 0 100%;
}

.lc-step-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #86868b;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lc-step-item.is-active {
    color: #0071e3;
    font-weight: 700;
}

.lc-step-item.is-completed {
    color: #e8820c;
    font-weight: 600;
}

.lc-step-item:hover.is-completed {
    color: #c96e05;
}

.lc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e5ea;
    color: #86868b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lc-step-item.is-active .lc-step-num {
    background: #0071e3;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35);
}

.lc-step-item.is-completed .lc-step-num {
    background: #e8820c;
    color: #ffffff;
}

.lc-step-divider {
    flex: 1 1 30px;
    max-width: 44px;
    height: 2px;
    background: #e5e5ea;
    border-radius: 999px;
}

/* ── 2. Alerts, Notices & Coupon Banners ──────────────────────────────────── */
.woocommerce-notices-wrapper {
    margin-bottom: 24px;
    width: 100%;
    flex: 0 0 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #ffffff !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 12px !important;
    padding: 16px 20px 16px 48px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    position: relative !important;
    margin: 0 0 20px !important;
    color: #1d1d1f !important;
    width: 100% !important;
}

.woocommerce-message {
    border-left: 4px solid #34c759 !important;
}
.woocommerce-info {
    border-left: 4px solid #0071e3 !important;
}
.woocommerce-error {
    border-left: 4px solid #ff3b30 !important;
    list-style: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    top: 16px !important;
    left: 18px !important;
}

.woocommerce-message .button,
.woocommerce-info .button {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    float: right;
    margin-top: -3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background: #e5e5ea !important;
}

.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle {
    width: 100%;
    margin-bottom: 16px;
}

/* ── 3. Cart Page: 2-Column Desktop Architecture ─────────────────────────── */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column: Cart Form Table */
.woocommerce-cart form.woocommerce-cart-form {
    flex: 1 1 calc(100% - 412px);
    min-width: 0;
    width: auto;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

/* Right Column: Sticky Cart Totals */
.woocommerce-cart .cart-collaterals {
    flex: 0 0 380px;
    width: 380px;
    position: sticky;
    top: 90px;
}

/* Cart Items Table (Desktop) */
.woocommerce-cart table.shop_table {
    border-collapse: collapse;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce-cart table.shop_table thead th {
    border: none !important;
    border-bottom: 1px solid #f0f0f2 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #86868b !important;
    padding: 12px 14px !important;
    background: transparent !important;
}

.woocommerce-cart table.shop_table td {
    border: none !important;
    border-bottom: 1px solid #f2f2f7 !important;
    padding: 20px 14px !important;
    vertical-align: middle !important;
}

/* Product Remove Button */
.woocommerce-cart a.remove {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #f5f5f7 !important;
    color: #86868b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 1;
}

.woocommerce-cart a.remove:hover {
    background: #ffebe9 !important;
    color: #ff3b30 !important;
}

/* Product Thumbnail */
.woocommerce-cart .product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid #e5e5ea !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Product Name & Metadata */
.woocommerce-cart .product-name a {
    color: #111111 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease;
}

.woocommerce-cart .product-name a:hover {
    color: #0071e3 !important;
}

.woocommerce-cart .product-name dl.variation {
    margin: 6px 0 0 !important;
    font-size: 13px !important;
    color: #636366 !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce-cart .product-name dl.variation dt {
    font-weight: 600 !important;
    float: left;
    margin-right: 6px;
}

.woocommerce-cart .product-name dl.variation dd {
    margin-bottom: 2px;
}

/* Product Price & Subtotal */
.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111111 !important;
}

/* Quantity Pill Controls */
.woocommerce-cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: #f5f5f7;
    padding: 2px 8px;
}

.woocommerce-cart .quantity input.qty {
    width: 44px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #111111 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Actions Row (Update Cart Button) */
.woocommerce-cart table.shop_table td.actions {
    padding: 20px 0 0 !important;
    border-bottom: none !important;
}

.woocommerce-cart table.shop_table td.actions .button {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    float: right;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.woocommerce-cart table.shop_table td.actions .button:hover {
    background: #e5e5ea !important;
}

/* Cart Totals Card */
.woocommerce-cart .cart_totals {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    width: 100% !important;
    float: none !important;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    margin: 0 0 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f0f0f2 !important;
}

.woocommerce-cart .cart_totals table.shop_table {
    border: none !important;
    margin-bottom: 20px !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #636366 !important;
    padding: 10px 0 !important;
    border: none !important;
    width: 40%;
}

.woocommerce-cart .cart_totals table.shop_table td {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-align: right !important;
    padding: 10px 0 !important;
    border: none !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    border-top: 1px solid #f0f0f2 !important;
    padding-top: 16px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #111111 !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total td strong {
    font-size: 22px !important;
    color: #0071e3 !important;
}

/* Proceed to Checkout CTA Button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout .button {
    background: #0071e3 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    padding: 16px 24px !important;
    border-radius: 999px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout .button:hover {
    background: #0077ed !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4) !important;
}

/* ── 4. Checkout Page: 2-Column Luxury Grid ──────────────────────────────── */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* Left Column: Customer Billing & Details */
.woocommerce-checkout #customer_details {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Suppress standalone heading to preserve clean 2-column alignment */
.woocommerce-checkout #order_review_heading {
    display: none !important;
}

/* Right Column: Sticky Order Review Card */
.woocommerce-checkout #order_review {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 90px;
    width: 100% !important;
    float: none !important;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Checkout Field Cards */
.woocommerce-checkout .woocommerce-billing-fields {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

/* Suppress Empty Form Containers for Digital Products */
.woocommerce-checkout .woocommerce-shipping-fields:empty,
.woocommerce-checkout .woocommerce-additional-fields:empty,
.woocommerce-checkout .woocommerce-shipping-fields:not(:has(input:not([type="hidden"]))),
.woocommerce-checkout .woocommerce-additional-fields:not(:has(input:not([type="hidden"]), textarea, select)),
.woocommerce-checkout .woocommerce-account-fields:empty,
.woocommerce-checkout .woocommerce-account-fields:not(:has(input)) {
    display: none !important;
}

.woocommerce-checkout .woocommerce-billing-fields h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    margin: 0 0 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f0f0f2 !important;
}

/* Form Controls (Inputs, Selects, Labels) */
.woocommerce-checkout .form-row {
    margin-bottom: 18px !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce-checkout .form-row-first {
    width: 48% !important;
    float: left !important;
}

.woocommerce-checkout .form-row-last {
    width: 48% !important;
    float: right !important;
}

.woocommerce-checkout .form-row-wide {
    width: 100% !important;
    clear: both !important;
}

.woocommerce-checkout .form-row label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333336 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout .form-row .required {
    color: #e8820c !important;
    text-decoration: none !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    border: 1.5px solid #d2d2d7 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    background: #ffffff !important;
    color: #1d1d1f !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: #0071e3 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14) !important;
}

/* Order Review Table */
.woocommerce-checkout #order_review table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 0 20px !important;
    width: 100% !important;
}

.woocommerce-checkout #order_review table.shop_table thead th {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #86868b !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f2 !important;
    padding: 10px 0 !important;
    background: transparent !important;
}

.woocommerce-checkout #order_review table.shop_table td,
.woocommerce-checkout #order_review table.shop_table th {
    border: none !important;
    border-bottom: 1px solid #f2f2f7 !important;
    padding: 14px 0 !important;
    font-size: 14px !important;
}

.woocommerce-checkout #order_review table.shop_table .product-name {
    font-weight: 600 !important;
    color: #111111 !important;
}

.woocommerce-checkout #order_review table.shop_table .product-total {
    text-align: right !important;
    font-weight: 700 !important;
    color: #111111 !important;
}

.woocommerce-checkout #order_review table.shop_table tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tr.order-total td {
    border-top: 2px solid #111111 !important;
    border-bottom: none !important;
    padding-top: 18px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.woocommerce-checkout #order_review table.shop_table tr.order-total td strong {
    font-size: 24px !important;
    color: #0071e3 !important;
}

/* Payment Gateway Accordion */
.woocommerce-checkout #payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 20px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: 1px solid #e5e5ea !important;
    border-radius: 12px !important;
    background: #fbfbfd !important;
    padding: 0 !important;
    list-style: none !important;
    margin: 0 0 20px !important;
    overflow: hidden !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 16px 18px !important;
    border-bottom: 1px solid #f0f0f2 !important;
    margin: 0 !important;
    display: block;
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box {
    background: #ffffff !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    margin: 12px 0 4px !important;
    font-size: 13px !important;
    color: #636366 !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box::before {
    display: none !important;
}

/* Place Order CTA Button */
.woocommerce-checkout #payment #place_order,
.woocommerce-checkout #payment button.button {
    background: #0071e3 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    padding: 16px 24px !important;
    border-radius: 999px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin-top: 16px !important;
}

.woocommerce-checkout #payment #place_order:hover,
.woocommerce-checkout #payment button.button:hover {
    background: #0077ed !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4) !important;
}

/* ── 5. Trust Badges & Institutional Reassurances ─────────────────────────── */
.lc-checkout-trust-box {
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f2;
}

.lc-trust-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}

.lc-ssl-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1e8e3e !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.lc-trust-reassurance-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lc-trust-reassurance-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #636366;
    line-height: 1.45;
    margin-bottom: 10px;
}

.lc-trust-reassurance-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #34c759;
    margin-top: 1px;
}

/* ── 6. Empty Cart Experience ─────────────────────────────────────────────── */
.woocommerce-cart .cart-empty.woocommerce-info {
    background: #ffffff !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 16px !important;
    padding: 60px 24px !important;
    text-align: center !important;
    max-width: 600px !important;
    margin: 40px auto !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-cart .return-to-shop {
    text-align: center !important;
    margin-top: 24px !important;
}

.woocommerce-cart .return-to-shop .button {
    background: #0071e3 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 999px !important;
    border: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce-cart .return-to-shop .button:hover {
    background: #0077ed !important;
    transform: translateY(-1px) !important;
}

/* ── 7. Tablet & Intermediate Screen Responsiveness (<= 991px) ────────────── */
@media (max-width: 991px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column;
        gap: 24px;
    }

    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100%;
        width: 100%;
        position: static;
    }

    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .woocommerce-checkout #customer_details {
        grid-column: 1;
        grid-row: 1;
    }

    .woocommerce-checkout #order_review {
        grid-column: 1;
        grid-row: 2;
        position: static;
        width: 100% !important;
    }
}

/* ── 8. Mobile Screen Perfection (<= 767px) ───────────────────────────────── */
@media (max-width: 767px) {
    /* Step Indicator on Mobile */
    .lc-checkout-steps {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 24px !important;
        padding: 0 2px !important;
    }

    .lc-step-item {
        font-size: 12px !important;
        gap: 5px !important;
    }

    .lc-step-num {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
    }

    .lc-step-divider {
        flex: 1 1 10px !important;
        min-width: 6px !important;
        max-width: 24px !important;
        height: 2px !important;
    }

    /* Container & Card Padding on Mobile */
    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart_totals,
    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout #order_review {
        padding: 18px 14px !important;
        border-radius: 14px !important;
        border: 1px solid #e5e5ea !important;
    }

    /* Mobile Cart Table Transformation to Native Cards */
    .woocommerce-cart table.shop_table {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart table.shop_table thead {
        display: none !important;
    }

    .woocommerce-cart table.shop_table tbody {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart table.shop_table tr.cart_item {
        display: grid !important;
        grid-template-columns: 76px 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 4px 14px !important;
        position: relative !important;
        background: #ffffff !important;
        border: 1px solid #e5e5ea !important;
        border-radius: 14px !important;
        padding: 16px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    }

    /* Remove button in top right */
    .woocommerce-cart table.shop_table tr.cart_item td.product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        padding: 0 !important;
        border: none !important;
        z-index: 2 !important;
        display: block !important;
        width: auto !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-remove::before {
        display: none !important;
    }

    /* Thumbnail on Left spanning all rows */
    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail {
        grid-column: 1 !important;
        grid-row: 1 / span 3 !important;
        padding: 0 !important;
        border: none !important;
        display: block !important;
        width: 76px !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail::before {
        display: none !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail img {
        width: 76px !important;
        height: 76px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        border: 1px solid #e5e5ea !important;
        display: block !important;
    }

    /* Product Name on Right (Row 1) */
    .woocommerce-cart table.shop_table tr.cart_item td.product-name {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 28px 4px 0 !important;
        border: none !important;
        display: block !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-name::before {
        display: none !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-name a {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #111111 !important;
        line-height: 1.35 !important;
        display: block !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-name dl.variation {
        margin: 4px 0 0 !important;
        font-size: 12px !important;
        color: #636366 !important;
    }

    /* Price hidden on mobile since subtotal displays the cost cleanly */
    .woocommerce-cart table.shop_table tr.cart_item td.product-price {
        display: none !important;
    }

    /* Quantity Pill (Row 2) */
    .woocommerce-cart table.shop_table tr.cart_item td.product-quantity {
        grid-column: 2 !important;
        grid-row: 2 !important;
        padding: 6px 0 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-quantity::before {
        display: none !important;
    }

    /* Subtotal (Row 3) */
    .woocommerce-cart table.shop_table tr.cart_item td.product-subtotal {
        grid-column: 2 !important;
        grid-row: 3 !important;
        padding: 8px 0 0 !important;
        border: none !important;
        border-top: 1px dashed #f0f0f2 !important;
        margin-top: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #0071e3 !important;
    }
    .woocommerce-cart table.shop_table tr.cart_item td.product-subtotal::before {
        content: "Subtotal" !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        color: #86868b !important;
        letter-spacing: 0.04em !important;
    }

    /* Actions Row (Update Cart) */
    .woocommerce-cart table.shop_table tr:not(.cart_item) td.actions {
        display: block !important;
        width: 100% !important;
        padding: 4px 0 0 !important;
        border: none !important;
        text-align: center !important;
    }
    .woocommerce-cart table.shop_table tr:not(.cart_item) td.actions .button {
        width: 100% !important;
        float: none !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 999px !important;
    }

    /* Mobile Checkout Forms */
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row select,
    .woocommerce-checkout .form-row textarea {
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
        padding: 14px !important;
    }
}

/* ── 9. Ultra-Compact Phones (<= 420px) ───────────────────────────────────── */
@media (max-width: 420px) {
    .lc-step-item span:not(.lc-step-num) {
        font-size: 11px !important;
    }

    .woocommerce-cart table.shop_table tr.cart_item {
        grid-template-columns: 68px 1fr !important;
        padding: 14px !important;
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail,
    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail img {
        width: 68px !important;
        height: 68px !important;
    }
}
