/* =====================================================================
   Zayyrah storefront — app layer (mp-app.css), loaded after mp.css.
   Mobile-first "app in the browser": compact sticky header with search,
   bottom tab bar, bottom sheets, voucher wallet, shopper auth, account
   hub and one-page cart checkout.
   ===================================================================== */

:root {
    --app-gutter: 16px;
    --app-card-radius: 16px;
    --app-tap: 48px;
    --app-safe-b: env(safe-area-inset-bottom, 0px);
}

html { -webkit-tap-highlight-color: transparent; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a, button { touch-action: manipulation; }
.mp-sheet-lock { overflow: hidden; }

/* ── Header ──────────────────────────────────────────────────────────── */
.mp-header { transition: box-shadow 160ms var(--mp-ease); }
.mp-header.scrolled { box-shadow: 0 6px 18px rgba(4, 26, 16, .28); }
.mp-menu-wallet b { color: var(--mp-green-700); margin-left: 4px; }

@media (max-width: 1023px) {
    .mp-mainbar .mp-container { height: 54px; padding: 0 var(--app-gutter); gap: 10px; }
    .mp-logo-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
    .mp-loc { background: transparent; border: 0; padding: 4px 2px; gap: 6px; }
    .mp-loc:hover { background: transparent; }
    .mp-loc-label { font-size: .6rem; letter-spacing: .07em; }
    .mp-loc-value { font-size: .92rem; }
    /* Account lives in the tab bar on phones. */
    .mp-btn-login, .mp-account { display: none; }
    .mp-mobile-search { padding: 0 var(--app-gutter) 10px; }
    .mp-mobile-search .mp-search-form { height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
    .mp-mobile-search .mp-search-input { font-size: 16px; } /* no iOS zoom */
    .mp-catnav .mp-container { height: 48px; padding: 0 12px; gap: 6px; }
    .mp-catnav a { height: 34px; padding: 0 12px; background: var(--mp-bg); border: 1px solid var(--mp-line-2); }
    .mp-catnav a.active { border-color: transparent; }
    .mp-catnav .sep { display: none; }
}

/* ── Promo strip ─────────────────────────────────────────────────────── */
.mp-promo-strip {
    display: flex; align-items: center; gap: 10px;
    padding: 9px var(--app-gutter);
    background: linear-gradient(90deg, #fff4cc 0%, #ffe9a3 55%, #ffd970 100%);
    color: var(--mp-green-950); font-size: .82rem; line-height: 1.3;
    border-bottom: 1px solid rgba(7, 43, 27, .08);
}
.mp-promo-strip .gift { width: 28px; height: 28px; border-radius: 9px; background: var(--mp-green-900); color: var(--mp-marigold); display: grid; place-items: center; flex-shrink: 0; }
.mp-promo-strip .txt { flex: 1; min-width: 0; }
.mp-promo-strip .cta { flex-shrink: 0; background: var(--mp-green-900); color: #fff; font-weight: 800; font-size: .74rem; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; }
.mp-promo-strip .cta.ghost { background: transparent; color: var(--mp-green-900); border: 1px solid rgba(7,43,27,.25); }
.mp-promo-strip.quiet { background: var(--mp-green-50); }
@media (min-width: 1024px) { .mp-promo-strip { justify-content: center; } .mp-promo-strip .txt { flex: 0 1 auto; } }

/* ── Bottom tab bar ──────────────────────────────────────────────────── */
.mp-bottomnav {
    height: calc(var(--mp-bottom-nav) + var(--app-safe-b));
    box-shadow: 0 -4px 18px rgba(16, 25, 21, .06);
    border-top-color: var(--mp-line-2);
    backdrop-filter: saturate(1.6) blur(10px);
    background: rgba(255, 255, 255, .96);
}
.mp-bottomnav a { font-size: .66rem; gap: 4px; }
.mp-bottomnav a.active { color: var(--mp-green-800); }
.mp-bottomnav a.active svg { stroke-width: 2.4; }
.mp-bottomnav .mp-nav-pill { position: absolute; top: 3px; left: calc(50% + 2px); background: var(--mp-chili); color: #fff; font-size: .56rem; font-weight: 800; padding: 2px 5px; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
.mp-bottomnav a.mp-nav-gift { color: var(--mp-green-800); }
.mp-badge.bump { animation: mp-bump 420ms var(--mp-ease); }
@keyframes mp-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.mp-btn-block { display: flex; width: 100%; height: 50px; border-radius: 12px; font-size: .95rem; }
.mp-btn-soft { background: var(--mp-bg); color: var(--mp-ink); border-color: var(--mp-line); }
.mp-btn-soft:hover { background: var(--mp-line-2); }
.mp-btn-dark { background: var(--mp-green-900); color: #fff; }
.mp-btn-dark:hover { background: var(--mp-green-800); }
.mp-btn.loading { pointer-events: none; opacity: .75; }
.mp-btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: mp-spin .7s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* ── Bottom sheets ───────────────────────────────────────────────────── */
.mp-sheet { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; justify-content: center; }
.mp-sheet[hidden] { display: none; }
.mp-sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 13, .5); opacity: 0; transition: opacity 200ms; }
.mp-sheet-panel {
    position: relative; width: 100%; max-width: 480px; background: #fff;
    border-radius: 22px 22px 0 0; padding: 14px 20px calc(20px + var(--app-safe-b));
    transform: translateY(100%); transition: transform 240ms var(--mp-ease);
    text-align: center; max-height: 92vh; overflow-y: auto;
}
.mp-sheet.open .mp-sheet-backdrop { opacity: 1; }
.mp-sheet.open .mp-sheet-panel { transform: none; }
@media (min-width: 640px) {
    .mp-sheet { align-items: center; }
    .mp-sheet-panel { border-radius: 22px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform 220ms var(--mp-ease), opacity 220ms; padding-bottom: 24px; }
    .mp-sheet.open .mp-sheet-panel { opacity: 1; transform: none; }
}
.mp-sheet-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--mp-line); margin: 0 auto 14px; }
.mp-sheet-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mp-bg); color: var(--mp-ink-2); display: grid; place-items: center; z-index: 2; }
.mp-sheet-icon { width: 56px; height: 56px; border-radius: 18px; margin: 4px auto 12px; display: grid; place-items: center; background: var(--mp-green-100); color: var(--mp-green-800); }
.mp-sheet h2 { font-family: var(--mp-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
.mp-sheet-sub { color: var(--mp-ink-2); font-size: .9rem; line-height: 1.5; margin: 0 auto 16px; max-width: 360px; }
.mp-sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mp-sheet-row .mp-btn { height: 46px; border-radius: 12px; }
.mp-sheet-status { display: none; font-size: .82rem; padding: 9px 12px; border-radius: 10px; margin-bottom: 12px; background: var(--mp-bg); color: var(--mp-ink-2); }
.mp-sheet-status.show { display: block; }
.mp-sheet-status.success { background: var(--mp-green-50); color: var(--mp-green-800); }
.mp-sheet-status.error { background: var(--mp-chili-100); color: #9b2615; }
.mp-sheet-points { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; display: grid; gap: 8px; font-size: .86rem; color: var(--mp-ink); }
.mp-sheet-points li { display: flex; gap: 10px; align-items: flex-start; }
.mp-sheet-points span { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--mp-green-100); color: var(--mp-green-800); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.mp-sheet-link { display: block; margin-top: 12px; font-size: .86rem; font-weight: 700; color: var(--mp-green-800); }

/* Voucher ticket */
.mp-voucher-card {
    position: relative; margin: 14px auto 16px; max-width: 300px; padding: 18px 20px 16px;
    border-radius: 16px; color: #fff; text-align: left;
    background: radial-gradient(120% 140% at 100% 0%, #1b8a55 0%, #0b3d27 55%, #072b1b 100%);
    box-shadow: 0 14px 30px rgba(7, 43, 27, .28); overflow: hidden;
    display: flex; flex-direction: column; gap: 2px;
}
.mp-voucher-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(244,180,0,.18); }
.mp-voucher-card .v-top { font-size: .66rem; letter-spacing: .16em; font-weight: 800; color: var(--mp-marigold); }
.mp-voucher-card .v-amt { font-family: var(--mp-display); font-size: 2.4rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.mp-voucher-card .v-sub { font-size: .8rem; color: rgba(255,255,255,.75); }
.mp-voucher-card .v-notch { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.mp-voucher-card .v-notch.l { left: -9px; } .mp-voucher-card .v-notch.r { right: -9px; }
.mp-voucher-card.compact { margin: 0; max-width: none; }

/* ── Shopper auth screens ────────────────────────────────────────────── */
body.mp-auth .mp-catnav, body.mp-auth .mp-mobile-search, body.mp-auth .mp-footer, body.mp-auth .mp-topbar { display: none; }
body.mp-auth .mp-main { background: #fff; min-height: calc(100vh - 54px); }
.au-wrap { max-width: 440px; margin: 0 auto; padding: 22px var(--app-gutter) 32px; }
.au-back { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--mp-ink-2); margin-bottom: 12px; }
.au-title { font-family: var(--mp-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.015em; margin: 0 0 6px; }
.au-sub { color: var(--mp-ink-2); font-size: .92rem; line-height: 1.5; margin: 0 0 20px; }
.au-promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(100deg, #fff4cc, #ffe39a); margin-bottom: 20px; }
.au-promo .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--mp-green-900); color: var(--mp-marigold); display: grid; place-items: center; flex-shrink: 0; font-family: var(--mp-display); font-weight: 800; font-size: .8rem; }
.au-promo b { display: block; font-size: .92rem; }
.au-promo span { font-size: .78rem; color: var(--mp-ink-2); }
.au-field { margin-bottom: 14px; }
.au-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--mp-ink); margin-bottom: 6px; }
.au-input { position: relative; display: flex; align-items: center; height: 52px; border: 1.5px solid var(--mp-line); border-radius: 12px; background: #fff; transition: border-color 140ms, box-shadow 140ms; }
.au-input:focus-within { border-color: var(--mp-green-700); box-shadow: 0 0 0 4px rgba(20,108,67,.12); }
.au-input.err { border-color: var(--mp-chili); }
.au-input input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 16px; color: var(--mp-ink); font-family: inherit; }
.au-input .pre { padding: 0 0 0 14px; font-weight: 700; color: var(--mp-ink-2); font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.au-input .pre::after { content: ""; width: 1px; height: 22px; background: var(--mp-line); margin-left: 6px; }
.au-input .eye { border: 0; background: none; padding: 0 14px; height: 100%; color: var(--mp-ink-3); display: grid; place-items: center; }
.au-err { color: #b42318; font-size: .78rem; margin-top: 6px; }
.au-hint { color: var(--mp-ink-3); font-size: .76rem; margin-top: 6px; }
.au-alert { padding: 11px 14px; border-radius: 12px; background: var(--mp-chili-100); color: #9b2615; font-size: .85rem; margin-bottom: 14px; line-height: 1.45; }
.au-alert.ok { background: var(--mp-green-50); color: var(--mp-green-800); }
.au-alert a { font-weight: 800; text-decoration: underline; }
.au-row { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 16px; font-size: .84rem; }
.au-row a { color: var(--mp-green-800); font-weight: 700; }
.au-foot { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--mp-ink-2); }
.au-foot a { color: var(--mp-green-800); font-weight: 800; }
.au-legal { text-align: center; margin-top: 16px; font-size: .72rem; color: var(--mp-ink-3); }
.au-wa { display: inline-flex; align-items: center; gap: 6px; color: #128c4b; font-weight: 700; }
.au-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 16px; }
.au-otp input { height: 56px; width: 100%; text-align: center; font-size: 1.4rem; font-weight: 800; border: 1.5px solid var(--mp-line); border-radius: 12px; outline: 0; font-family: var(--mp-display); color: var(--mp-ink); background: #fff; }
.au-otp input:focus { border-color: var(--mp-green-700); box-shadow: 0 0 0 4px rgba(20,108,67,.12); }
.au-resend { text-align: center; font-size: .86rem; color: var(--mp-ink-2); margin-top: 14px; }
.au-resend button { border: 0; background: none; color: var(--mp-green-800); font-weight: 800; font-size: .86rem; padding: 6px; }
.au-resend button:disabled { color: var(--mp-ink-3); }
.au-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.au-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--mp-line); }
.au-steps span.on { background: var(--mp-green-700); }
.au-celebrate { text-align: center; padding-top: 8px; }
.au-celebrate .burst { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }

/* ── Account hub ─────────────────────────────────────────────────────── */
.ac-wrap { max-width: 720px; margin: 0 auto; padding: 16px var(--app-gutter) 24px; }
.ac-hello { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ac-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--mp-green-900); color: var(--mp-marigold); display: grid; place-items: center; font-family: var(--mp-display); font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.ac-hello h1 { font-family: var(--mp-display); font-size: 1.3rem; font-weight: 800; margin: 0; }
.ac-hello p { margin: 2px 0 0; color: var(--mp-ink-2); font-size: .84rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--mp-green-100); color: var(--mp-green-800); }
.ac-badge.warn { background: var(--mp-marigold-100); color: #7a5600; }
.ac-card { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--app-card-radius); padding: 16px; margin-bottom: 12px; }
.ac-card h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-ink-3); font-family: var(--mp-font); font-weight: 800; margin: 0 0 10px; }
.ac-wallet { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ac-wallet-rules { font-size: .84rem; color: var(--mp-ink-2); line-height: 1.5; margin: 0; }
.ac-meter { height: 8px; border-radius: 8px; background: var(--mp-line-2); overflow: hidden; margin: 10px 0 6px; }
.ac-meter span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--mp-green-600), var(--mp-green-800)); }
.ac-meter-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--mp-ink-2); }
.ac-meter-row b { color: var(--mp-ink); }
.ac-list { display: flex; flex-direction: column; }
.ac-list a, .ac-list button { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border: 0; background: none; border-bottom: 1px solid var(--mp-line-2); font-size: .92rem; font-weight: 600; color: var(--mp-ink); text-align: left; width: 100%; }
.ac-list a:last-child { border-bottom: 0; }
.ac-list .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--mp-bg); color: var(--mp-green-800); display: grid; place-items: center; flex-shrink: 0; }
.ac-list .lbl { flex: 1; min-width: 0; }
.ac-list .lbl small { display: block; font-size: .76rem; color: var(--mp-ink-3); font-weight: 500; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-list .chev { color: var(--mp-ink-3); }
.ac-list .danger { color: #b42318; }
.ac-order { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mp-line-2); }
.ac-order:last-child { border-bottom: 0; }
.ac-order .meta { flex: 1; min-width: 0; font-size: .84rem; }
.ac-order .meta b { display: block; font-size: .9rem; }
.ac-order .meta span { color: var(--mp-ink-3); }
.ac-status { font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--mp-bg); color: var(--mp-ink-2); white-space: nowrap; }
.ac-status.s-DELIVERED { background: var(--mp-green-100); color: var(--mp-green-800); }
.ac-status.s-CANCELLED, .ac-status.s-FAILED { background: var(--mp-chili-100); color: #9b2615; }
.ac-status.s-PENDING { background: var(--mp-marigold-100); color: #7a5600; }
@media (min-width: 720px) { .ac-wallet { grid-template-columns: 300px 1fr; align-items: center; } }

/* ── One-page cart checkout ──────────────────────────────────────────── */
body.mp-checkout .mp-catnav, body.mp-checkout .mp-footer { display: none; }
.ck-wrap { max-width: 1080px; margin: 0 auto; padding: 14px var(--app-gutter) 24px; }
.ck-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ck-head h1 { font-family: var(--mp-display); font-size: 1.4rem; font-weight: 800; margin: 0; }
.ck-head span { font-size: .84rem; color: var(--mp-ink-2); }
.ck-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.ck-main, .ck-side { min-width: 0; }
@media (min-width: 960px) { .ck-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 20px; } .ck-side { position: sticky; top: 130px; } }
.ck-card { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--app-card-radius); padding: 14px; }
.ck-card + .ck-card { margin-top: 12px; }
.ck-card h2 { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 800; margin: 0 0 12px; font-family: var(--mp-font); }
.ck-card h2 .n { width: 22px; height: 22px; border-radius: 50%; background: var(--mp-green-900); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.ck-store { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--mp-ink-2); padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--mp-line-2); }
.ck-store b { color: var(--mp-ink); }
.ck-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mp-line-2); align-items: center; }
.ck-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.ck-thumb { width: 64px; height: 64px; border-radius: 12px; background: #fafbfa; border: 1px solid var(--mp-line-2); overflow: hidden; display: grid; place-items: center; color: #cfd6d1; }
.ck-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ck-name { font-size: .9rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--mp-ink); }
.ck-var { font-size: .74rem; color: var(--mp-ink-3); }
.ck-price { font-size: .8rem; color: var(--mp-ink-2); margin-top: 3px; }
.ck-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ck-line { font-weight: 800; font-size: .92rem; white-space: nowrap; }
.ck-qty { display: inline-flex; align-items: center; border: 1px solid var(--mp-line); border-radius: 10px; overflow: hidden; height: 34px; }
.ck-qty button { width: 34px; height: 34px; border: 0; background: #fff; font-size: 1.05rem; font-weight: 700; color: var(--mp-green-800); display: grid; place-items: center; }
.ck-qty button:disabled { color: var(--mp-ink-3); opacity: .5; }
.ck-qty span { min-width: 28px; text-align: center; font-weight: 800; font-size: .9rem; }
.ck-qty .trash { color: #b42318; }
.ck-cap { font-size: .72rem; color: var(--mp-ink-3); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.ck-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ck-seg label { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border: 1.5px solid var(--mp-line); border-radius: 12px; cursor: pointer; font-size: .86rem; font-weight: 700; }
.ck-seg label small { font-weight: 500; color: var(--mp-ink-3); font-size: .74rem; }
.ck-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ck-seg label:has(input:checked) { border-color: var(--mp-green-700); background: var(--mp-green-50); }
.ck-seg label.disabled { opacity: .5; cursor: not-allowed; }
.ck-loc { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--mp-bg); margin-bottom: 10px; }
.ck-loc .ic { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--mp-green-800); display: grid; place-items: center; flex-shrink: 0; }
.ck-loc .txt { flex: 1; min-width: 0; font-size: .84rem; line-height: 1.35; }
.ck-loc .txt b { display: block; font-size: .88rem; }
.ck-loc .txt span { color: var(--mp-ink-2); }
.ck-loc.ok .ic { background: var(--mp-green-700); color: #fff; }
.ck-fields { display: grid; gap: 10px; }
.ck-fields .au-field { margin: 0; }
.ck-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ck-pickup { font-size: .86rem; line-height: 1.45; padding: 12px; border-radius: 12px; background: var(--mp-bg); }
.ck-sum-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 6px 0; color: var(--mp-ink-2); }
.ck-sum-row b { color: var(--mp-ink); font-weight: 700; }
.ck-sum-row.save b, .ck-sum-row.save { color: var(--mp-green-700); }
.ck-sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--mp-line); margin-top: 6px; padding-top: 12px; font-weight: 800; }
.ck-sum-total b { font-family: var(--mp-display); font-size: 1.35rem; }
.ck-wallet { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1.5px dashed #e7c25a; background: #fffaeb; margin-bottom: 12px; }
.ck-wallet .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--mp-green-900); color: var(--mp-marigold); display: grid; place-items: center; flex-shrink: 0; }
.ck-wallet .txt { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.35; color: var(--mp-ink-2); }
.ck-wallet .txt b { display: block; color: var(--mp-ink); font-size: .9rem; }
.ck-switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--mp-line); transition: background 160ms; }
.ck-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 160ms var(--mp-ease); }
.ck-switch input:checked + span { background: var(--mp-green-700); }
.ck-switch input:checked + span::after { transform: translateX(18px); }
.ck-rule { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: var(--mp-chili-100); color: #8a2312; font-size: .84rem; line-height: 1.45; margin-bottom: 12px; }
.ck-info { display: flex; gap: 10px; align-items: flex-start; font-size: .76rem; color: var(--mp-ink-3); line-height: 1.45; margin-top: 10px; }
.ck-pay { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; padding: 12px; border-radius: 12px; border: 1.5px solid var(--mp-green-700); background: var(--mp-green-50); }
.ck-pay small { display: block; font-weight: 500; color: var(--mp-ink-2); font-size: .74rem; }
.ck-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--mp-bottom-nav) + var(--app-safe-b)); z-index: 108; background: #fff; border-top: 1px solid var(--mp-line); padding: 10px var(--app-gutter); display: flex; align-items: center; gap: 12px; box-shadow: 0 -6px 18px rgba(16,25,21,.06); }
.ck-bar .tot { display: flex; flex-direction: column; line-height: 1.15; }
.ck-bar .tot small { font-size: .7rem; color: var(--mp-ink-3); font-weight: 600; }
.ck-bar .tot b { font-family: var(--mp-display); font-size: 1.25rem; font-weight: 800; }
.ck-bar .mp-btn { flex: 1; height: 50px; border-radius: 12px; font-size: .95rem; }
.ck-side .ck-place { display: none; }
body.mp-checkout .mp-main { padding-bottom: calc(var(--mp-bottom-nav) + 96px); }
@media (min-width: 960px) {
    .ck-bar { display: none; }
    .ck-side .ck-place { display: flex; margin-top: 14px; }
    body.mp-checkout .mp-main { padding-bottom: 40px; }
}
.ck-empty { text-align: center; padding: 48px 20px; }
.ck-empty .ic { width: 84px; height: 84px; border-radius: 50%; background: var(--mp-green-50); color: var(--mp-green-700); display: grid; place-items: center; margin: 0 auto 16px; }
.ck-empty h1 { font-family: var(--mp-display); font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
.ck-empty p { color: var(--mp-ink-2); margin: 0 0 18px; }
.ck-done { text-align: center; padding: 8px 4px; }

/* ── Product cards: a little more app-like ───────────────────────────── */
.mp-pcard { border-radius: 14px; border-color: var(--mp-line-2); }
.mp-pcard-name { font-weight: 600; }
.mp-add { height: 36px; border-radius: 10px; }
@media (max-width: 639px) {
    .mp-pgrid { gap: 10px; }
    .mp-pcard-body { padding: 9px 10px 11px; }
}

/* Toasts sit above the tab bar */
@media (max-width: 1023px) { .mp-toasts { bottom: calc(var(--mp-bottom-nav) + var(--app-safe-b) + 14px) !important; } }
.ck-wrap.busy #ckItems, .ck-wrap.busy #ckSummary { opacity: .55; transition: opacity 120ms; pointer-events: none; }

/* Homepage signup voucher banner */
.mp-home-voucher { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(115deg, #fff7d6 0%, #ffe7a0 60%, #ffd56a 100%); color: var(--mp-green-950); position: relative; overflow: hidden; border: 1px solid rgba(7,43,27,.06); }
.mp-home-voucher .hv-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mp-home-voucher .hv-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.mp-home-voucher b { font-family: var(--mp-display); font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.mp-home-voucher .hv-sub { font-size: .8rem; color: #4b4220; }
.mp-home-voucher .hv-cta { margin-top: 8px; align-self: flex-start; background: var(--mp-green-900); color: #fff; font-weight: 800; font-size: .82rem; padding: 8px 14px; border-radius: 999px; }
.mp-home-voucher .hv-ticket { margin: 0; width: 132px; flex-shrink: 0; padding: 12px 12px 10px; transform: rotate(4deg); }
.mp-home-voucher .hv-ticket .v-amt { font-size: 1.6rem; }
.mp-home-voucher .hv-ticket .v-top { font-size: .52rem; letter-spacing: .12em; }
.mp-home-voucher .hv-ticket .v-sub { font-size: .66rem; }
@media (min-width: 900px) { .mp-home-voucher { padding: 22px 28px; } .mp-home-voucher b { font-size: 1.5rem; } .mp-home-voucher .hv-ticket { width: 200px; } .mp-home-voucher .hv-ticket .v-amt { font-size: 2.2rem; } }

/* Homepage hero: on phones get to the products fast */
@media (max-width: 639px) {
    .mp-hero { padding: 14px 0 16px; }
    .mp-hero .mp-container { gap: 12px; }
    .mp-hero-copy .mp-eyebrow, .mp-hero-copy p, .mp-hero-stats { display: none; }
    .mp-hero-copy h1 { font-size: 1.45rem; line-height: 1.15; }
    .mp-hero-copy h1 .ur { font-size: .62em; margin-top: 2px; line-height: 1.9; }
    .mp-hero-ctas { margin-top: 10px; flex-wrap: nowrap; }
    .mp-hero-ctas .mp-btn { flex: 1; min-width: 0; padding: 0 10px; height: 42px; font-size: .82rem; }
    .mp-hero-banner { min-height: 0; aspect-ratio: 3 / 1; }
}
.au-otp-label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.au-otp-one { width: 100%; height: 62px; border: 1.5px solid var(--mp-line); border-radius: 14px; outline: 0; text-align: center; font-family: var(--mp-display); font-size: 1.9rem; font-weight: 800; letter-spacing: .5em; padding-left: .5em; color: var(--mp-ink); background: #fff; margin-bottom: 16px; }
.au-otp-one::placeholder { color: #d4dbd6; letter-spacing: .5em; }
.au-otp-one:focus { border-color: var(--mp-green-700); box-shadow: 0 0 0 4px rgba(20,108,67,.12); }
.au-promo .ic { width: auto; min-width: 46px; padding: 0 8px; white-space: nowrap; }
.ck-maplink { font-size: .8rem; color: var(--mp-ink-3); margin: -2px 0 12px; } .ck-maplink a { color: var(--mp-green-800); font-weight: 700; }
.mp-qty-cap { font-size: .72rem; color: var(--mp-ink-3); align-self: center; white-space: nowrap; }

/* Phones: the homepage opens straight on offers and products. The header
   already carries search + city, so the hero, the store-type grid and the
   popular-stores rail are hidden below 768px (tablet/desktop unchanged). */
@media (max-width: 767px) {
    body.mp-home .mp-hero,
    body.mp-home .mp-home-categories,
    body.mp-home section[aria-labelledby="feat-title"] { display: none; }
    body.mp-home .mp-home-voucher { margin-top: 12px; }
}

/* ── City picker: keyboard-safe on phones ────────────────────────────────
   Full-height panel sized to the *visible* viewport (set from
   visualViewport by location_modal.html), so the on-screen keyboard never
   covers it and it no longer shrinks/drops while results filter. Search
   stays pinned at the top; 16px text stops iOS zooming the page. */
#locationModal .location-search-box { position: relative; }
#locationModal .location-search-box input { font-size: 16px; min-width: 0; }
#locationModal .location-search-box input::-webkit-search-cancel-button { display: none; }
#locationModal .location-search-clear { border: 0; background: var(--mp-line); color: var(--mp-ink-2); width: 24px; height: 24px; border-radius: 50%; font-size: 17px; line-height: 1; display: grid; place-items: center; flex-shrink: 0; padding: 0; }
#locationModal .location-search-clear[hidden] { display: none; }
#locationModal .city-list-empty { padding: 22px 8px; text-align: center; color: var(--mp-ink-2); font-size: .88rem; line-height: 1.5; }
#locationModal .city-list-empty[hidden] { display: none; }
#locationModal.location-modal-overlay.searching .use-location-btn,
#locationModal.location-modal-overlay.searching .browser-location-status,
#locationModal.location-modal-overlay.searching .country-anchor,
#locationModal.location-modal-overlay.searching .province-header { display: none; }
#locationModal .city-list-item { min-height: 48px; }

@media (max-width: 767px) {
    #locationModal.location-modal-overlay {
        top: var(--loc-top, 0px); bottom: auto;
        height: var(--loc-vh, 100dvh);
        align-items: stretch;
        overscroll-behavior: contain;
    }
    #locationModal .location-modal {
        max-width: none; max-height: none; height: 100%;
        border-radius: 0; animation: mp-loc-in .22s var(--mp-ease);
    }
    #locationModal .location-modal-header { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); flex-shrink: 0; }
    #locationModal .location-modal-close { width: 40px; height: 40px; background: var(--mp-bg); }
    #locationModal .location-modal-body {
        padding: 0 16px calc(16px + env(safe-area-inset-bottom));
        overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        min-height: 0;
    }
    #locationModal .location-search-box {
        position: sticky; top: 0; z-index: 2;
        margin: 0 -16px 12px; padding: 10px 16px; border-radius: 0;
        background: #fff; border-bottom: 1px solid var(--mp-line-2);
    }
    #locationModal .location-search-box input { height: 44px; padding: 0 12px; border-radius: 12px; background: var(--mp-bg); }
}
@keyframes mp-loc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
