﻿/* =========================================================
   mobile-checkout.css  |  Foodzippy Mobile View
   Swiggy-inspired design tokens & layout
   ========================================================= */

/* -- Brand Tokens -- */
:root {
    --fz-orange: #fc8019;
    --fz-orange-dark: #e67311;
    --fz-green: #60b246;
    --fz-green-dark: #3d7a2c;
    --fz-red: #e23744;
    --fz-text: #282c3f;
    --fz-text-light: #686b78;
    --fz-text-xlight: #93959f;
    --fz-bg: #f4f4f5;
    --fz-card: #ffffff;
    --fz-border: #e9e9eb;
    --fz-bolt: #f8c51b;
}

/* ===========================================================
   MOBILE CHECKOUT SHELL
   =========================================================== */
#mobile-checkout-shell { display: none; flex-direction: column; background: var(--fz-bg); min-height: 100vh; position: relative; }

/* -- Mobile Header -- */
.mob-header { background: linear-gradient(135deg,#1a1a2e 0%,#2d1b4e 50%,#1a1010 100%); padding: 12px 16px 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 100; }
.mob-header-left { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; }
.mob-back-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 2px 0; flex-shrink: 0; margin-top: 2px; }
.mob-back-btn svg { width: 22px; height: 22px; }
.mob-restaurant-info { flex: 1; min-width: 0; }
.mob-restaurant-name { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-address-bar { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.mob-address-text { color: rgba(255,255,255,0.75); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.mob-address-chevron { color: rgba(255,255,255,0.5); font-size: 10px; flex-shrink: 0; }
.mob-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mob-more-btn { background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; padding: 2px; }
.mob-more-btn svg { width: 20px; height: 20px; }

/* Bolt Badge */
.mob-bolt-badge { background: var(--fz-red); border-radius: 8px; padding: 5px 8px; text-align: center; line-height: 1; }
.mob-bolt-badge .bolt-top { color: #fff; font-size: 7.5px; font-weight: 800; letter-spacing: 0.5px; display: block; text-transform: uppercase; }
.mob-bolt-badge .bolt-brand { color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 1px; margin-top: 1px; }
.bolt-icon-txt { color: var(--fz-bolt); }

/* -- Savings Banner -- */
.mob-savings-banner { background: linear-gradient(90deg,#2d0a3e 0%,#1a0a2e 100%); padding: 9px 16px; display: flex; align-items: center; gap: 6px; }
.mob-savings-banner .savings-star { color: var(--fz-bolt); font-size: 13px; }
.mob-savings-banner .savings-text { color: rgba(255,255,255,0.9); font-size: 12.5px; font-weight: 500; flex: 1; }

/* -- Scrollable Content -- */
.mob-content { flex: 1; overflow-y: auto; padding-bottom: 90px; }

/* -- Section Cards -- */
.mob-card { background: var(--fz-card); margin: 8px 0 0 0; border-radius: 0; overflow: hidden; }

/* -- Promo Row -- */
.mob-promo-row { padding: 14px 16px; border-bottom: 1px solid var(--fz-border); display: flex; align-items: center; gap: 12px; }
.mob-promo-text { flex: 1; }
.mob-promo-title { font-size: 14px; font-weight: 700; color: var(--fz-orange); margin-bottom: 2px; }
.mob-promo-title .highlight { text-decoration: underline; font-style: italic; }
.mob-promo-sub { font-size: 11.5px; color: var(--fz-text-light); line-height: 1.4; }
.mob-promo-action { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.mob-promo-add-btn { border: 1.5px solid var(--fz-green); background: #fff; color: var(--fz-green); font-size: 13px; font-weight: 700; padding: 6px 18px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.mob-promo-add-btn:hover { background: var(--fz-green); color: #fff; }
.mob-promo-price { font-size: 11px; color: var(--fz-text-light); }

/* -- Cart Item Row -- */
.mob-cart-item { padding: 14px 16px; border-bottom: 1px solid var(--fz-border); }
.mob-cart-item:last-child { border-bottom: none; }
.mob-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mob-item-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mob-item-type-dot { width: 14px; height: 14px; border: 2px solid var(--fz-green); border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mob-item-type-dot::after { content: ''; width: 6px; height: 6px; background: var(--fz-green); border-radius: 50%; }
.mob-item-name { font-size: 14px; font-weight: 500; color: var(--fz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-item-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.mob-qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--fz-green); border-radius: 6px; overflow: hidden; }
.mob-qty-btn { background: none; border: none; color: var(--fz-green); font-size: 17px; font-weight: 700; padding: 4px 10px; cursor: pointer; line-height: 1; transition: background 0.15s; }
.mob-qty-btn:hover { background: rgba(96,178,70,0.1); }
.mob-qty-num { font-size: 14px; font-weight: 700; color: var(--fz-text); padding: 4px 6px; min-width: 24px; text-align: center; }
.mob-item-prices { text-align: right; }
.mob-price-original { font-size: 11px; color: var(--fz-text-xlight); text-decoration: line-through; display: block; }
.mob-price-final { font-size: 14px; font-weight: 600; color: var(--fz-text); }
.mob-item-options { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mob-item-opt-btn { display: flex; align-items: center; gap: 5px; border: 1px solid var(--fz-border); background: #fff; border-radius: 6px; padding: 6px 12px; font-size: 12px; color: var(--fz-text-light); cursor: pointer; transition: border-color 0.2s; }
.mob-item-opt-btn:hover { border-color: var(--fz-orange); }
.mob-item-opt-btn svg { width: 13px; height: 13px; }
.mob-cutlery-check { width: 14px; height: 14px; border: 1.5px solid var(--fz-text-xlight); border-radius: 3px; }

/* -- Savings Corner -- */
.mob-section-label { padding: 14px 16px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: var(--fz-text-xlight); text-transform: uppercase; }
.mob-savings-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--fz-border); }
.mob-savings-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--fz-orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.mob-savings-icon svg { width: 20px; height: 20px; color: #fff; }
.mob-savings-icon.one-icon { background: linear-gradient(135deg,#e23744,#fc8019); font-size: 11px; font-weight: 900; color: #fff; letter-spacing: -0.5px; display: flex; align-items: center; justify-content: center; }
.mob-savings-body { flex: 1; min-width: 0; }
.mob-savings-title { font-size: 14px; font-weight: 500; color: var(--fz-text); }
.mob-savings-sub { font-size: 11.5px; color: var(--fz-text-light); margin-top: 2px; }
.mob-savings-end { flex-shrink: 0; display: flex; align-items: center; }
.mob-chevron { color: var(--fz-text-xlight); font-size: 18px; font-weight: 300; }
.mob-applied-tag { color: var(--fz-green); font-size: 13px; font-weight: 600; }
.mob-outline-add-btn { border: 1.5px solid var(--fz-orange); background: #fff; color: var(--fz-orange); font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.mob-outline-add-btn:hover { background: var(--fz-orange); color: #fff; }

/* -- Delivery Type Tabs -- */
.mob-delivery-card { background: var(--fz-card); margin-top: 8px; }
.mob-tab-group { display: flex; align-items: center; padding: 6px 8px; gap: 2px; background: #f4f4f5; border-radius: 50px; margin: 12px 16px; }
.mob-tab-pill { flex: 1; text-align: center; padding: 9px 8px; font-size: 13px; font-weight: 600; color: var(--fz-text-light); cursor: pointer; border-radius: 40px; transition: all 0.2s; background: none; border: none; white-space: nowrap; font-family: inherit; }
.mob-tab-pill.active { background: var(--fz-text); color: #fff; }
.mob-delivery-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--fz-border); cursor: pointer; }
.mob-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fz-text-xlight); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
.mob-radio.selected { border-color: var(--fz-orange); }
.mob-radio.selected::after { content: ''; width: 10px; height: 10px; background: var(--fz-orange); border-radius: 50%; }
.mob-delivery-body { flex: 1; }
.mob-delivery-title { font-size: 14px; font-weight: 600; color: var(--fz-text); display: flex; align-items: center; gap: 4px; }
.mob-delivery-title.selected { text-decoration: underline; }
.mob-delivery-sub { font-size: 12px; color: var(--fz-text-light); margin-top: 2px; }
.mob-delivery-time { font-size: 13px; font-weight: 700; color: var(--fz-orange); flex-shrink: 0; }
.mob-delivery-time.gray { color: var(--fz-text-light); font-weight: 500; }

/* -- Bill Details -- */
.mob-bill-card { background: var(--fz-card); margin-top: 8px; }
.mob-bill-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; }
.mob-bill-title-wrap { display: flex; align-items: center; gap: 10px; }
.mob-bill-icon { width: 36px; height: 36px; background: var(--fz-green); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.mob-bill-icon svg { width: 20px; height: 20px; color: #fff; }
.mob-bill-main-text { font-size: 14px; font-weight: 600; color: var(--fz-text); }
.mob-bill-main-text .strike-price { text-decoration: line-through; color: var(--fz-text-xlight); font-size: 12px; margin-right: 4px; }
.mob-bill-saved { font-size: 12px; color: var(--fz-green); font-weight: 600; margin-top: 2px; }
.mob-bill-chevron { color: var(--fz-text-light); font-size: 22px; transition: transform 0.25s; }
.mob-bill-chevron.open { transform: rotate(180deg); }
.mob-bill-details { padding: 0 16px 14px; border-top: 1px solid var(--fz-border); }
.mob-bill-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; color: var(--fz-text-light); }
.mob-bill-row.total { font-size: 14px; font-weight: 700; color: var(--fz-text); border-top: 1px solid var(--fz-border); padding-top: 12px; margin-top: 4px; }
.mob-bill-savings-strip { background: #f4f4f5; border-radius: 8px; padding: 9px 12px; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.mob-bill-savings-strip .one-logo { font-size: 10px; font-weight: 900; color: #fff; background: linear-gradient(135deg,#e23744,#fc8019); border-radius: 4px; padding: 2px 5px; }
.mob-bill-savings-strip span { font-size: 12px; color: var(--fz-text-light); }
.mob-cancel-policy { padding: 10px 16px 14px; font-size: 11.5px; color: var(--fz-text-xlight); line-height: 1.5; }

/* -- Sticky Pay Bar -- */
.mob-pay-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--fz-card); border-top: 1px solid var(--fz-border); display: flex; align-items: center; gap: 12px; padding: 12px 16px; z-index: 200; box-shadow: 0 -4px 20px rgba(0,0,0,0.10); }
.mob-pay-method { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.mob-pay-method-icon { width: 28px; height: 28px; background: linear-gradient(135deg,#00b9f1,#007fc6); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mob-pay-method-icon svg { width: 16px; height: 16px; color: #fff; }
.mob-pay-method-label { font-size: 10px; color: var(--fz-text-xlight); display: flex; align-items: center; gap: 3px; }
.mob-pay-method-name { font-size: 12.5px; font-weight: 700; color: var(--fz-text); }
.mob-pay-btn { background: var(--fz-green); color: #fff; border: none; border-radius: 10px; padding: 14px 28px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s; white-space: nowrap; flex-shrink: 0; font-family: inherit; }
.mob-pay-btn:hover { background: var(--fz-green-dark); }
.mob-pay-btn:active { transform: scale(0.97); }

/* ===========================================================
   MOBILE AUTH PAGE
   =========================================================== */
.mob-auth-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--fz-orange); }
.mob-auth-hero { flex: 1; background: var(--fz-orange); padding: 20px 24px 0; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; min-height: 380px; }
.mob-auth-back { align-self: flex-start; background: none; border: none; color: #fff; cursor: pointer; padding: 4px 0; margin-bottom: 16px; }
.mob-auth-back svg { width: 24px; height: 24px; }
.mob-auth-logo-badge { width: 72px; height: 72px; background: rgba(255,255,255,0.95); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.mob-auth-logo-badge img { width: 50px; height: 50px; object-fit: contain; }
.mob-auth-headline { font-size: 26px; font-weight: 800; color: #fff; text-align: center; line-height: 1.25; margin-bottom: 20px; max-width: 300px; }
.mob-auth-food-img-wrap { width: 100%; display: flex; justify-content: center; margin-top: auto; }
.mob-auth-food-img { width: 100%; max-width: 340px; height: 180px; object-fit: cover; border-radius: 14px 14px 0 0; display: block; }
.mob-auth-sheet { background: #fff; border-radius: 20px 20px 0 0; padding: 28px 24px 40px; box-shadow: 0 -8px 32px rgba(0,0,0,0.12); }
.mob-auth-login-btn { width: 100%; background: var(--fz-orange); color: #fff; border: none; border-radius: 12px; padding: 17px; font-size: 17px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s; font-family: inherit; }
.mob-auth-login-btn:hover { background: var(--fz-orange-dark); }
.mob-auth-login-btn:active { transform: scale(0.98); }
.mob-auth-disclaimer { text-align: center; font-size: 11.5px; color: var(--fz-text-light); margin-top: 14px; line-height: 1.6; }
.mob-auth-disclaimer a { color: var(--fz-text); font-weight: 700; text-decoration: underline; }
.mob-auth-divider { border: none; border-top: 1px solid var(--fz-border); margin: 20px 0; }
.mob-auth-list-item { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--fz-border); cursor: pointer; text-decoration: none; }
.mob-auth-list-item:last-child { border-bottom: none; }
.mob-auth-list-icon { width: 38px; height: 38px; border-radius: 50%; background: #f4f4f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mob-auth-list-icon svg { width: 20px; height: 20px; color: var(--fz-text-light); }
.mob-auth-list-text { flex: 1; font-size: 14.5px; font-weight: 500; color: var(--fz-text); }
.mob-auth-list-chevron { color: var(--fz-text-xlight); font-size: 18px; }
.mob-auth-version { text-align: center; font-size: 11.5px; color: var(--fz-text-xlight); margin-top: 20px; }
