/* ========================================
   CART & CHECKOUT STYLES
   Cart modal, cart items, checkout modal,
   checkout steps, forms, promo code,
   order summary, spend notifications
   ======================================== */

/* === CART MODAL === */
.cart-items { max-height: 400px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cart-item {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3); border-bottom: 1px solid var(--gray-100);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: var(--font-size-sm); color: var(--gray-900); }
.cart-item-spec { font-size: var(--font-size-xs); color: var(--gray-500); }
.cart-item-controls { display: flex; align-items: center; gap: 0; margin-top: var(--space-2); }
.cart-item-controls .qty-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--white, #fff); border: 1.5px solid var(--gray-200, #e2e8f0);
    cursor: pointer; font-size: 0.75rem; color: var(--gray-700, #374151);
    transition: all 0.15s ease; min-height: 44px; min-width: 44px;
    padding: 0;
}
.cart-item-controls .qty-btn:first-child {
    border-radius: 8px 0 0 8px; border-right: none;
}
.cart-item-controls .qty-btn:last-child {
    border-radius: 0 8px 8px 0; border-left: none;
}
.cart-item-controls .qty-btn:hover {
    background: var(--primary, #1e40af); color: #fff; border-color: var(--primary, #1e40af);
}
.cart-item-controls .qty-btn:active {
    transform: scale(0.92);
}
.cart-item-quantity {
    font-size: 0.875rem; color: var(--gray-900, #1a1a1a); font-weight: 700;
    min-width: 44px; text-align: center; line-height: 36px;
    border-top: 1.5px solid var(--gray-200, #e2e8f0);
    border-bottom: 1.5px solid var(--gray-200, #e2e8f0);
    background: var(--gray-50, #f9fafb); height: 36px;
}
.cart-item-price { font-weight: 600; color: var(--gray-900); font-size: var(--font-size-sm); white-space: nowrap; }
.remove-item-btn {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: var(--gray-400); cursor: pointer;
    border-radius: var(--radius-sm); transition: all var(--transition-fast);
    min-height: 44px; min-width: 44px;
}
.remove-item-btn:hover { color: var(--error-red); background: #fef2f2; }
.empty-cart { text-align: center; padding: var(--space-8); color: var(--gray-400); }
.empty-cart i { font-size: 3rem; margin-bottom: var(--space-4); }
.cart-summary { padding: var(--space-4) 0; border-top: 1px solid var(--gray-200); }
.cart-total { display: flex; justify-content: space-between; font-size: var(--font-size-lg); font-weight: 700; margin-bottom: var(--space-4); }
.checkout-btn {
    width: 100%; padding: var(--space-3); background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); border: none; border-radius: var(--radius-lg);
    font-size: var(--font-size-base); font-weight: 600; cursor: pointer;
    transition: all 0.25s ease; display: flex; align-items: center;
    justify-content: center; gap: var(--space-2);
    min-height: 48px; box-shadow: 0 2px 8px rgba(30,64,175,0.2);
    letter-spacing: 0.01em;
}
.checkout-btn:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark)); box-shadow: 0 4px 12px rgba(30,64,175,0.3); transform: translateY(-1px); }
.checkout-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(30,64,175,0.2); }

/* === CHECKOUT STEPS === */
.checkout-steps {
    display: flex; justify-content: center; align-items: center; margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-2); background: linear-gradient(135deg, #f0f5ff 0%, #eff6ff 100%);
    border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    gap: 0;
}
.step {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: var(--font-size-xs); color: var(--gray-400);
    position: relative; padding: var(--space-2) var(--space-3);
    transition: color 0.25s ease;
}
.step:not(:last-child)::after {
    content: ''; display: block; width: 32px; height: 2px;
    background: var(--gray-200); margin-left: var(--space-2);
    border-radius: 1px; transition: background 0.3s ease;
}
.step.completed:not(:last-child)::after { background: var(--success-green); }
.step.active { color: var(--primary); }
.step.completed { color: var(--success-green); }
.step-number {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid currentColor; font-weight: 700; font-size: 0.7rem;
    transition: all 0.25s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.step.active .step-number {
    background: var(--primary); color: white; border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(30,64,175,0.3);
}
.step.completed .step-number {
    background: var(--success-green); color: white; border-color: var(--success-green);
    box-shadow: 0 2px 8px rgba(34,197,94,0.25);
}
.step-text { display: none; font-weight: 500; letter-spacing: 0.01em; }
@media (min-width: 480px) { .step-text { display: inline; } }

/* === ORDER SUMMARY === */
.order-summary { margin-bottom: var(--space-4); overflow-x: hidden; }
.order-warehouse { margin-bottom: var(--space-4); }
.change-warehouse-btn {
    width: 100%; padding: var(--space-3) var(--space-4); background: linear-gradient(135deg, var(--primary-50), #eff6ff);
    border: 1px solid var(--primary-100); border-radius: var(--radius-lg);
    color: var(--primary-dark); font-size: var(--font-size-sm); font-weight: 500;
    cursor: pointer; text-align: left;
    min-height: 44px; display: block;
    box-shadow: 0 1px 3px rgba(30,64,175,0.06);
    line-height: 1.5;
}
.checkout-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: var(--space-3); margin-bottom: var(--space-2);
    border-radius: var(--radius-md); background: #fafbfc;
    border: 1px solid var(--gray-100);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.checkout-item:hover { background: #f3f4f6; border-color: var(--gray-200); }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-weight: 600; font-size: var(--font-size-sm); color: var(--gray-900); }
.checkout-item-spec { font-size: var(--font-size-xs); color: var(--gray-500); margin-top: 2px; }
.checkout-item-quantity { font-size: var(--font-size-xs); color: var(--gray-600); margin-top: 2px; font-weight: 500; }
.checkout-item-price { font-weight: 700; font-size: var(--font-size-sm); white-space: nowrap; color: var(--gray-900); }
.order-total {
    margin-top: var(--space-4); padding: var(--space-4);
    border-top: none; background: linear-gradient(135deg, #f0f5ff 0%, #eff6ff 100%);
    border-radius: var(--radius-lg); border: 1px solid var(--primary-100);
}
.total-row { display: flex; justify-content: space-between; padding: var(--space-2) 0; font-size: var(--font-size-sm); color: var(--gray-700); }
.total-row.final-total {
    font-size: var(--font-size-lg); font-weight: 700; color: var(--gray-900);
    border-top: 2px solid var(--primary); padding-top: var(--space-3); margin-top: var(--space-2);
}
.discount-amount { color: var(--success-green); font-weight: 600; }
.discount-row { color: var(--success-green); }

/* === CHECKOUT ACTIONS === */
.checkout-actions {
    display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-6);
    padding-top: var(--space-4); border-top: 1px solid var(--gray-100);
}

/* === SHIPPING FORM === */
.shipping-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: var(--font-size-sm); font-weight: 600; color: var(--gray-700);
    letter-spacing: 0.01em;
}
.form-group input, .form-group textarea, .form-group select {
    padding: var(--space-3); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md); font-size: var(--font-size-base); outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 48px; background: #fafbfc;
}
.form-group input:hover, .form-group textarea:hover, .form-group select:hover {
    border-color: var(--gray-300); background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--gray-400); font-weight: 400;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* === PROMO CODE === */
.promo-code-section {
    margin-bottom: var(--space-4);
    background: #f9fafb;
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}
.promo-code-section label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-3);
}
.promo-code-section label::before {
    content: "\f02b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--primary);
}
.promo-code-row {
    display: flex;
}
.promo-code-row input {
    flex: 1;
    min-width: 0;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: var(--font-size-sm);
    outline: none;
    min-height: 44px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.promo-code-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    z-index: 1;
    position: relative;
}
.promo-code-row input::placeholder {
    color: var(--gray-400);
}
.promo-code-row button {
    padding: var(--space-2) var(--space-4);
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}
.promo-code-row button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.promo-code-row button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Promo code feedback messages */
.promo-code-message {
    font-size: var(--font-size-xs);
    margin-top: var(--space-2);
    min-height: 1.2em;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: opacity 0.3s ease;
}
.promo-code-message:empty {
    margin-top: 0;
}
.promo-code-message.success {
    color: #15803d;
    font-weight: 500;
    animation: promoSuccess 0.4s ease;
}
.promo-code-message.success::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}
.promo-code-message.error {
    color: #dc2626;
    font-weight: 500;
}
.promo-code-message.error::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}
@keyframes promoSuccess {
    0% { transform: translateY(4px); opacity: 0; }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); opacity: 1; }
}

/* Legacy fallback for #promoStatus */
#promoStatus {
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
    min-height: 1.2em;
}

/* === PAYMENT METHODS === */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-method { cursor: pointer; }
.payment-method input { display: none; }
.payment-option {
    display: flex; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-4); border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg); transition: all var(--transition-fast);
    min-height: 48px;
}
.payment-method input:checked + .payment-option { border-color: var(--primary); background: var(--primary-50); }
.payment-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); }
.payment-info { flex: 1; }
.payment-info h4 { font-size: var(--font-size-sm); font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.payment-info p { font-size: var(--font-size-xs); color: var(--gray-500); }
.discount-badge { background: var(--primary); color: white; padding: 2px 8px; border-radius: 100px; font-size: 0.65rem; font-weight: 600; margin-left: 4px; }

/* === SPEND NOTIFICATION === */
.spend-notification {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius-md);
    padding: var(--space-3); margin-top: var(--space-3);
}
.notification-content { display: flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-sm); color: #92400e; }

/* === SHIPPING OPTIONS === */
.shipping-option { transition: all 0.15s ease; }
.shipping-option:hover { border-color: var(--primary-light) !important; }
.shipping-option.selected { border-color: var(--primary) !important; background: var(--primary-50); }

/* === CRYPTO WALLET GRID === */
.crypto-wallet-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.crypto-wallet-card {
    padding: 16px 8px; border: 2px solid var(--gray-200); border-radius: var(--radius-md);
    text-align: center; transition: all 0.15s ease;
    min-height: 100px;
}
.crypto-wallet-card:hover { border-color: var(--primary); background: var(--primary-50); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* === PAYMENT STEP === */
.payment-step { padding-bottom: var(--space-4); }

/* === ORDER CONFIRMATION === */
.order-confirmation-summary { margin-bottom: var(--space-4); }
.confirm-section {
    margin-bottom: var(--space-4); padding: var(--space-4);
    border-radius: var(--radius-lg); background: #fafbfc;
    border: 1px solid var(--gray-100);
}
.confirm-section:last-child { border-bottom: none; }
.confirm-section h4 {
    font-size: var(--font-size-sm); font-weight: 700; color: var(--primary-dark);
    margin-bottom: var(--space-3); letter-spacing: 0.01em;
    padding-bottom: var(--space-2); border-bottom: 1px solid var(--gray-100);
}
.confirm-section h4 i { margin-right: var(--space-2); }
.confirm-note {
    font-size: var(--font-size-sm); color: var(--gray-600); line-height: 1.7;
    padding: var(--space-3); background: #eff6ff; border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}
.confirm-note i { color: var(--primary); margin-right: var(--space-2); }

/* === PAYMENT GUIDE BANNER === */
.payment-guide {
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.payment-guide-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    cursor: pointer; user-select: none;
    transition: background 0.2s ease;
    gap: var(--space-2);
}
.payment-guide-header:hover { background: rgba(59,130,246,0.06); }
.payment-guide-header span {
    font-size: var(--font-size-sm); color: #1e40af;
    display: flex; align-items: center; gap: var(--space-2);
}
.payment-guide-header span i { color: #3b82f6; font-size: 1rem; }
.payment-chevron {
    color: #3b82f6; font-size: 0.75rem;
    transition: transform 0.3s ease; flex-shrink: 0;
}
.payment-chevron.open { transform: rotate(180deg); }
.payment-guide-content {
    padding: 0 var(--space-4) var(--space-4);
}
.payment-intro {
    font-size: var(--font-size-sm); color: #374151; line-height: 1.7;
    margin-bottom: var(--space-3);
}
.payment-tips {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: var(--space-2);
}
.payment-tips li {
    font-size: var(--font-size-sm); color: #374151; line-height: 1.6;
    padding: var(--space-2) var(--space-3);
    background: rgba(255,255,255,0.7); border-radius: var(--radius-md);
    display: flex; align-items: flex-start; gap: var(--space-2);
}
.payment-tips li i {
    color: #22c55e; margin-top: 3px; flex-shrink: 0;
    font-size: 0.8rem;
}

/* === CRYPTO WALLETS COLLAPSIBLE === */
.crypto-wallets-toggle {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    cursor: pointer; user-select: none;
    font-size: var(--font-size-sm); color: #92400e;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}
.crypto-wallets-toggle:hover { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.crypto-wallets-toggle i.fab { color: #f59e0b; font-size: 1rem; }
.crypto-chevron {
    margin-left: auto; color: #d97706; font-size: 0.75rem;
    transition: transform 0.3s ease; flex-shrink: 0;
}
.crypto-chevron.open { transform: rotate(180deg); }
.crypto-wallets-list {
    margin-top: var(--space-3);
    display: flex; flex-direction: column; gap: var(--space-2);
}
.crypto-wallet-item {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-3);
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.crypto-wallet-item:hover {
    border-color: var(--primary-100);
    box-shadow: 0 2px 6px rgba(30,64,175,0.08);
}
.crypto-label {
    font-size: var(--font-size-sm); font-weight: 600; color: var(--gray-700);
    white-space: nowrap; min-width: 110px;
    display: flex; align-items: center; gap: var(--space-2);
}
.crypto-label i { font-size: 1rem; color: var(--primary); }
.crypto-address {
    flex: 1; font-size: 0.7rem; color: var(--gray-600);
    background: #f3f4f6; padding: 6px 10px;
    border-radius: var(--radius-sm); cursor: pointer;
    word-break: break-all; font-family: 'Courier New', Courier, monospace;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.crypto-address:hover {
    background: #e5e7eb; border-color: var(--gray-300);
}
.crypto-copy-btn {
    background: none; border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); cursor: pointer;
    color: var(--gray-500); padding: 6px 8px;
    transition: all 0.15s ease; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.crypto-copy-btn:hover {
    color: var(--primary); border-color: var(--primary);
    background: var(--primary-50);
}
.crypto-note-small {
    font-size: var(--font-size-xs); color: var(--gray-500);
    line-height: 1.5; margin-top: var(--space-2);
    display: flex; align-items: flex-start; gap: var(--space-1);
}
.crypto-note-small i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* ==========================================
   CART & CHECKOUT — RESPONSIVE
   ========================================== */

/* --- 640px breakpoint --- */
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

/* --- 767px breakpoint --- */
@media (max-width: 767px) {
    /* Mobile typography */
    .step,
    .checkout-item-spec,
    .checkout-item-quantity,
    .cart-item-spec {
        font-size: 0.8125rem;
    }

    /* Touch targets */
    .checkout-btn {
        padding: 0.875rem;
        min-height: 52px;
        font-size: 1.0625rem;
        font-weight: 700;
    }
    .remove-item-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* Cart items */
    .cart-item {
        padding: var(--space-3) var(--space-2);
        gap: var(--space-3);
        flex-wrap: wrap;
    }
    .cart-item-name {
        font-size: 0.9375rem;
        font-weight: 700;
    }
    .cart-item-spec { font-size: 0.8125rem; }
    .cart-item-price {
        font-size: 0.9375rem;
        font-weight: 700;
    }
    .cart-item-quantity { font-size: 0.8125rem; width: 100%; }
    .cart-items { max-height: 55vh; -webkit-overflow-scrolling: touch; }

    /* Cart summary */
    .cart-summary { padding: var(--space-4) 0; }
    .cart-total { font-size: 1.125rem; }

    /* Checkout steps */
    .checkout-steps {
        gap: var(--space-1);
        padding: var(--space-3) 0;
        margin-bottom: var(--space-4);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .step { font-size: 0.8125rem; }
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* Form inputs */
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
        width: 100%;
    }
    .form-group label {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    .shipping-form { gap: 1rem; }
    .form-row { gap: 1rem; }

    /* Checkout items */
    .checkout-item { padding: var(--space-3) 0; }
    .checkout-item-name { font-size: 0.9375rem; }
    .checkout-item-price { font-size: 0.9375rem; }
    .order-total {
        margin-top: var(--space-3);
        padding-top: var(--space-3);
    }
    .total-row {
        font-size: 0.9375rem;
        padding: 0.375rem 0;
    }
    .total-row.final-total { font-size: 1.125rem; }

    /* Payment methods */
    .payment-option { padding: var(--space-3); min-height: 52px; }
    .payment-info h4 { font-size: 0.9375rem; }
    .payment-info p { font-size: 0.8125rem; }

    /* Crypto wallet grid */
    .crypto-wallet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .crypto-wallet-card { min-height: 90px; padding: 12px; }

    /* Checkout actions */
    .checkout-actions {
        flex-direction: column;
        gap: var(--space-3);
        margin-top: var(--space-4);
    }
    .checkout-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* Spend notification */
    .spend-notification { padding: var(--space-3); }
    .notification-content { font-size: 0.875rem; }

    /* Bolder key text */
    .cart-total { font-weight: 800; }
    .total-row.final-total { font-weight: 800; }

    /* Payment Guide mobile */
    .payment-guide-header { padding: var(--space-3); }
    .payment-guide-content { padding: 0 var(--space-3) var(--space-3); }
    .payment-tips li { font-size: 0.8125rem; padding: var(--space-2); }

    /* Crypto wallets mobile */
    .crypto-wallet-item { flex-wrap: wrap; }
    .crypto-label { min-width: auto; font-size: 0.8125rem; }
    .crypto-address { font-size: 0.65rem; }

    /* Step connector mobile */
    .step:not(:last-child)::after { width: 20px; }
    .checkout-steps { padding: var(--space-3); }
}

/* --- 479px breakpoint --- */
@media (max-width: 479px) {
    .promo-code-row {
        flex-direction: column;
    }
    .promo-code-row input {
        width: 100%;
        min-width: unset;
        border-right: 1px solid var(--gray-300);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .promo-code-row input:focus {
        border-color: var(--primary);
    }
    .promo-code-row button {
        width: 100%;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    /* Cart items compact layout */
    .cart-item { padding: var(--space-2); }
    .cart-item-name { font-size: 0.875rem; }
    .cart-item-price { font-size: 0.875rem; }
    .cart-total { font-size: 1rem; }
    .checkout-btn { font-size: 1rem; }

    /* Checkout steps single line scroll */
    .checkout-steps { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .checkout-steps::-webkit-scrollbar { display: none; }
    .step { flex-shrink: 0; }

    /* Confirm section mobile */
    .confirm-section { padding: var(--space-3); }
    .confirm-section h4 { font-size: 0.8125rem; }
    .confirm-note { font-size: 0.8125rem; padding: var(--space-2); }

    /* Payment guide compact */
    .payment-guide-header span { font-size: 0.8125rem; }

    /* Order summary overflow */
    .order-summary { overflow-x: hidden; }
}

/* --- 359px breakpoint --- */
@media (max-width: 359px) {
    .checkout-btn { font-size: 0.9375rem; min-height: 44px; }
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        min-height: 44px;
    }
    .payment-option { padding: var(--space-2); min-height: 48px; }
    .crypto-wallet-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* === CHECKOUT MODAL SIZING === */
.checkout-modal-content { max-width: 700px; }

@media (max-width: 767px) {
    .checkout-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100dvh;
    }
    .checkout-modal {
        padding: 0;
        align-items: stretch;
    }
    .checkout-modal .modal-header {
        position: sticky;
        top: 0;
        z-index: 5;
        background: var(--white, #fff);
    }
    .checkout-modal .modal-body {
        flex: 1;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
    .payment-step a,
    .payment-step button {
        min-height: 52px;
        font-size: 1rem;
    }
}
