:root {
            --hs-navy: #154880;
            --hs-navy-dark: #0d325a;
            --hs-border: #e2e8f0;
            --hs-bg: #f4f6fb;
            --hs-text-dark: #1e293b;
            --hs-text-muted: #64748b;
        }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--hs-bg);
            color: var(--hs-text-dark);
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        /* Top Blue Header Bar */
        .checkout-topbar {
            background-color: var(--hs-navy);
            color: #ffffff;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 4px 12px rgba(21, 72, 128, 0.25);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .checkout-topbar h1 {
            font-size: 1.75rem;
            font-weight: 800;
            margin: 0;
            letter-spacing: 0.5px;
            color: #ffffff;
            flex-grow: 1;
            text-align: center;
        }

        .checkout-topbar a.back-btn {
            color: #ffffff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.15);
            padding: 6px 14px;
            border-radius: 20px;
            transition: background 0.2s;
        }

        .checkout-topbar a.back-btn:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .checkout-container {
            max-width: 1200px;
            margin: 32px auto;
            padding: 0 20px;
        }

        /* Cards */
        .checkout-card {
            background: #ffffff;
            border-radius: 12px;
            border: 1px solid var(--hs-border);
            padding: 24px 28px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .checkout-card-title {
            font-size: 1.15rem;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Form Inputs matching screenshot */
        .form-control, .form-select {
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 0.92rem;
            color: #1e293b;
            background-color: #ffffff;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--hs-navy);
            box-shadow: 0 0 0 3px rgba(21, 72, 128, 0.12);
        }

        .form-control::placeholder {
            color: #94a3b8;
        }

        .city-notice {
            font-size: 0.8rem;
            color: var(--hs-navy);
            font-weight: 600;
            margin-top: 6px;
            margin-bottom: 16px;
        }

        /* Order Items in right column */
        .checkout-item-row {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 0;
            border-bottom: 1px solid #f1f5f9;
        }

        .checkout-item-row:last-child {
            border-bottom: none;
        }

        .checkout-item-img {
            width: 64px;
            height: 64px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid var(--hs-border);
            background: #ffffff;
            flex-shrink: 0;
        }

        .checkout-item-info {
            flex-grow: 1;
            min-width: 0;
        }

        .checkout-item-title {
            font-size: 0.88rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.35;
        }

        .checkout-item-price {
            font-size: 0.85rem;
            font-weight: 700;
            color: #64748b;
        }

        .checkout-qty-ctrl {
            display: inline-flex;
            align-items: center;
            background: #f8fafc;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            overflow: hidden;
        }

        .checkout-qty-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            border: none;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            color: #334155;
            transition: background 0.15s;
        }

        .checkout-qty-btn:hover {
            background: #e2e8f0;
        }

        .checkout-qty-val {
            min-width: 28px;
            text-align: center;
            font-size: 0.85rem;
            font-weight: 700;
            color: #0f172a;
        }

        .checkout-trash-btn {
            color: #ef4444;
            background: none;
            border: none;
            font-size: 1.15rem;
            cursor: pointer;
            padding: 4px;
            transition: color 0.15s;
        }

        .checkout-trash-btn:hover {
            color: #dc2626;
        }

        /* Order Summary Table */
        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            font-size: 0.92rem;
            color: #475569;
        }

        .summary-row.total-row {
            border-top: 1px solid var(--hs-border);
            padding-top: 14px;
            margin-top: 6px;
            font-size: 1.25rem;
            font-weight: 900;
            color: #0f172a;
        }

        /* Big Place Order Button */
        .btn-place-order {
            background-color: var(--hs-navy);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            padding: 16px;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            width: 100%;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(21, 72, 128, 0.3);
            transition: background 0.2s, transform 0.1s;
            text-transform: uppercase;
        }

        .btn-place-order:hover {
            background-color: var(--hs-navy-dark);
            transform: translateY(-1px);
        }

        .btn-place-order:active {
            transform: translateY(1px);
        }

        /* Empty Cart State */
        .empty-cart-card {
            text-align: center;
            padding: 60px 20px;
        }

        /* Payment Radio Card & Methods */
        .payment-box {
            border: 2px solid var(--hs-navy);
            background: #f8fafc;
            border-radius: 8px;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .payment-method-card {
            border: 2px solid #e2e8f0;
            background: #ffffff;
            border-radius: 10px;
            padding: 12px 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
            height: 100%;
        }
        .payment-method-card:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
            transform: translateY(-1px);
        }
        .payment-method-card.active {
            border-color: #0d6efd;
            background: #f0f7ff;
            box-shadow: 0 0 0 1px #0d6efd;
        }
        .payment-method-radio {
            accent-color: #0d6efd;
            width: 18px;
            height: 18px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .payment-logo-wrap {
            width: 48px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 2px 4px;
            flex-shrink: 0;
            overflow: hidden;
        }
        .payment-logo-img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .account-detail-box {
            background: #ffffff;
            border: 1px solid #bfdbfe;
            border-radius: 10px;
            padding: 16px;
            box-shadow: 0 2px 6px rgba(13, 110, 253, 0.05);
        }
        .copy-pill-btn {
            background: #f1f5f9;
            color: #1e293b;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 3px 8px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .copy-pill-btn:hover {
            background: #0d6efd;
            color: #ffffff;
            border-color: #0d6efd;
        }
        .copy-pill-btn.copied {
            background: #10b981;
            color: #ffffff;
            border-color: #10b981;
        }
        .screenshot-upload-zone {
            border: 2px dashed #94a3b8;
            border-radius: 10px;
            background: #f8fafc;
            padding: 20px 14px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .screenshot-upload-zone:hover {
            border-color: #0d6efd;
            background: #eff6ff;
        }
        .screenshot-preview-box {
            position: relative;
            display: inline-block;
            margin-top: 10px;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid #10b981;
            background: #fff;
        }
        .screenshot-preview-img {
            max-width: 180px;
            max-height: 140px;
            object-fit: cover;
            display: block;
        }
        .screenshot-remove-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            background: rgba(220, 38, 38, 0.9);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 12px;
        }

        /* Modal Overlays for Success & Invoice */
        html.modal-open,
        body.modal-open {
            overflow: hidden !important;
            height: 100% !important;
            max-height: 100vh !important;
            overscroll-behavior: none !important;
            touch-action: none !important;
        }

        body.modal-open .checkout-header,
        body.modal-open .checkout-container {
            pointer-events: none !important;
            user-select: none !important;
        }

        .hs-modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 999999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
            overflow-y: auto;
            overscroll-behavior: contain;
            pointer-events: auto !important;
        }
        .hs-modal-backdrop.show {
            display: flex;
        }
        .hs-modal-dialog {
            background: #ffffff;
            border-radius: 18px;
            width: 100%;
            max-width: 960px;
            max-height: 90vh;
            overflow-y: auto;
            overscroll-behavior: contain;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            position: relative;
            pointer-events: auto !important;
        }

        @media print {
            body > *:not(#hs-full-invoice-modal) {
                display: none !important;
            }
            #hs-full-invoice-modal {
                display: block !important;
                position: static !important;
                background: #ffffff !important;
                padding: 0 !important;
            }
            #hs-full-invoice-modal .no-print, #hs-full-invoice-modal .btn-close {
                display: none !important;
            }
            #hs-full-invoice-modal .hs-modal-dialog {
                max-width: 100% !important;
                box-shadow: none !important;
                border: none !important;
            }
            .inv-stamp {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
        }

        /* Authentic Slanted Rubber Stamps for Checkout Modal Invoice (In Payment Block, away from QR) */
        .inv-stamp {
            display: inline-block;
            transform: rotate(-5deg);
            border: 2.5px dashed;
            border-radius: 8px;
            padding: 5px 14px;
            text-align: center;
            text-transform: uppercase;
            font-family: 'Courier New', Courier, monospace, sans-serif;
            letter-spacing: 1px;
            pointer-events: none;
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            margin-top: 8px;
        }
        .inv-stamp .stamp-main {
            font-size: 15px;
            font-weight: 900;
            line-height: 1.15;
        }
        .inv-stamp .stamp-sub {
            font-size: 8px;
            font-weight: 800;
            letter-spacing: 1.5px;
            margin-top: 2px;
            border-top: 1px solid;
            padding-top: 2px;
        }
        .stamp-paid {
            color: #059669 !important;
            border-color: #059669 !important;
        }
        .stamp-paid .stamp-sub {
            border-color: #059669 !important;
        }
        .stamp-pending {
            color: #d97706 !important;
            border-color: #d97706 !important;
        }
        .stamp-pending .stamp-sub {
            border-color: #d97706 !important;
        }
        .stamp-cod {
            color: #1e40af !important;
            border-color: #1e40af !important;
        }
        .stamp-cod .stamp-sub {
            border-color: #1e40af !important;
        }

        /* Multi-Step Checkout Navigation & Sticky Order Column */
        .checkout-step-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            padding: 10px 18px;
            margin-bottom: 20px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
        }
        .checkout-step-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.88rem;
            font-weight: 700;
            color: #94a3b8;
            transition: all 0.2s ease;
            user-select: none;
        }
        .checkout-step-item.active {
            color: var(--hs-navy);
        }
        .checkout-step-item.completed {
            color: #059669;
            cursor: pointer;
        }
        .step-circle {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 800;
            background: #e2e8f0;
            color: #64748b;
            transition: all 0.2s ease;
        }
        .checkout-step-item.active .step-circle {
            background: var(--hs-navy);
            color: #ffffff;
            box-shadow: 0 0 0 3px rgba(21, 72, 128, 0.15);
        }
        .checkout-step-item.completed .step-circle {
            background: #059669;
            color: #ffffff;
        }
        .step-divider-line {
            flex-grow: 1;
            height: 2px;
            background: #e2e8f0;
            margin: 0 16px;
            position: relative;
        }
        .step-divider-line.completed {
            background: #059669;
        }
        .payable-amount-box {
            background: linear-gradient(135deg, #154880 0%, #0d325c 100%);
            border-radius: 12px;
            color: #ffffff;
            padding: 16px 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .btn-continue-step {
            background-color: var(--hs-navy);
            color: #ffffff;
            font-weight: 800;
            font-size: 1rem;
            border: none;
            border-radius: 8px;
            padding: 14px 20px;
            width: 100%;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .btn-continue-step:hover {
            background-color: #0d325c;
            color: #ffffff;
            transform: translateY(-1px);
        }
        @media (min-width: 992px) {
            .checkout-sticky-col {
                position: sticky;
                top: 80px;
            }
        }

        /* Custom Downwards-Anchored City Selector */
        .city-picker-wrap {
            position: relative;
            width: 100%;
        }

        .city-picker-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 12px 16px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
            font-size: 0.92rem;
            color: #1e293b;
            min-height: 48px;
        }

        .city-picker-trigger:hover {
            border-color: #94a3b8;
        }

        .city-picker-trigger.active {
            border-color: var(--hs-navy);
            box-shadow: 0 0 0 3px rgba(21, 72, 128, 0.12);
        }

        .city-picker-dropdown {
            position: absolute;
            top: 100% !important;
            bottom: auto !important;
            left: 0;
            right: 0;
            margin-top: 6px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
            z-index: 1050;
            display: none;
            overflow: hidden;
            animation: cityDropdownFadeIn 0.15s ease-out;
        }

        .city-picker-dropdown.show {
            display: block;
        }

        @keyframes cityDropdownFadeIn {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .city-search-box {
            padding: 10px 12px;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }

        .city-search-input {
            width: 100%;
            padding: 8px 12px 8px 34px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 0.88rem;
            background: #ffffff;
            color: #0f172a;
        }

        .city-search-input:focus {
            outline: none;
            border-color: var(--hs-navy);
            box-shadow: 0 0 0 2px rgba(21, 72, 128, 0.1);
        }

        .city-list-container {
            max-height: 260px;
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        .city-list-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            cursor: pointer;
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.12s;
            font-size: 0.88rem;
            color: #1e293b;
        }

        .city-list-item:hover, .city-list-item.selected {
            background-color: #f0fdf4;
        }

        .city-list-item:last-child {
            border-bottom: none;
        }

        .city-fee-badge {
            font-size: 0.76rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
            background: #e0f2fe;
            color: #0369a1;
            white-space: nowrap;
        }

        .city-days-badge {
            font-size: 0.72rem;
            color: #64748b;
            margin-left: 6px;
            white-space: nowrap;
        }

        /* Enhanced Mobile Responsiveness */
        @media (max-width: 768px) {
            .checkout-container {
                margin: 16px auto;
                padding: 0 12px;
            }
            .checkout-card {
                padding: 18px 16px;
                margin-bottom: 16px;
                border-radius: 12px;
            }
            .checkout-topbar {
                padding: 10px 14px;
            }
            .checkout-topbar h1 {
                font-size: 1.15rem;
            }
            .checkout-topbar .back-btn span {
                display: none;
            }
            .checkout-topbar .back-btn {
                padding: 6px 10px;
            }
            .btn-place-order {
                padding: 14px;
                font-size: 1rem;
            }
            .city-picker-dropdown {
                max-height: 240px;
            }
        }

        @media (max-width: 576px) {
            .checkout-item-img {
                width: 52px;
                height: 52px;
            }
            .checkout-item-title {
                font-size: 0.82rem;
            }
            .payment-method-card {
                padding: 10px 12px;
            }
            .account-detail-box {
                padding: 14px 12px;
            }
            .copy-pill-btn {
                padding: 4px 8px;
                font-size: 10px;
            }
            .city-fee-badge {
                font-size: 0.7rem;
                padding: 2px 6px;
            }
            .city-days-badge {
                display: none;
            }
        }
