:root {
    --brand: #c9001f;
    --brand-dark: #9e0018;
    --brand-soft: #fff0f2;
    --ink: #221e20;
    --muted: #6d6568;
    --line: #ebe6e7;
    --surface: #ffffff;
    --canvas: #f7f5f5;
    --accent: #ffd43b;
    --success: #16834b;
    --shadow: 0 12px 34px rgba(53, 20, 26, .12);
    --radius: 18px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --app-safe-top: var(--safe-top);
    --nav-safe-bottom: 0px;
    --bottom-nav-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    line-height: 1.45;
    padding-bottom: calc(var(--bottom-nav-height) + 10px + var(--nav-safe-bottom));
}
body.is-standalone {
    --app-safe-top: max(var(--safe-top), 24px);
    --nav-safe-bottom: min(var(--safe-bottom), 34px);
}
body.is-standalone.is-ios-standalone {
    /* iOS Home Screen already reserves its gesture area in the standalone viewport. */
    --nav-safe-bottom: 0px;
}
/* Keep the root viewport scrollable in iOS standalone mode. WebKit can add an
   extra Home Indicator-sized strip when overflow is locked on the root while
   fixed app pages and a fixed tab bar are visible. Each app page owns its
   scrolling region, so the catalog shell can be hidden without locking body. */
body.has-app-page { background: #fff; overscroll-behavior: none; }
body.has-app-page > .site-header,
body.has-app-page > main,
body.has-app-page > .chat-launcher,
body.has-app-page > .install-banner { display: none !important; }
body.has-exclusive-app-page {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
    background: #fff;
}
body.has-exclusive-app-page > .bottom-nav { display: none !important; }
body.has-exclusive-app-page > .app-status-banner { display: none !important; }
.app-page {
    position: fixed;
    inset: 0 0 calc(var(--bottom-nav-height) + var(--nav-safe-bottom));
    z-index: 34;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    background: #fff;
    overscroll-behavior: contain;
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(201, 0, 31, .2);
    outline-offset: 2px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: min(100% - 28px, 1180px); margin-inline: auto; }
.skip-link {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 14px;
    color: #fff;
    background: #111;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.app-status-banner {
    position: fixed;
    top: calc(8px + var(--app-safe-top));
    left: 50%;
    z-index: 150;
    width: min(calc(100% - 24px), 620px);
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px 9px 14px;
    color: #fff;
    background: #2c2829;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(22, 8, 12, .28);
    font-size: .78rem;
    font-weight: 750;
    transform: translateX(-50%);
}
.app-status-banner.is-update { background: var(--brand-dark); }
.app-status-banner button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 12px;
    color: #211d1e;
    background: #fff;
    border: 0;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 850;
    touch-action: manipulation;
    cursor: pointer;
}
.app-status-banner button:disabled { opacity: .72; cursor: wait; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: var(--app-safe-top);
    color: #fff;
    background:
        radial-gradient(circle at 15% -30%, rgba(255,255,255,.22), transparent 44%),
        linear-gradient(115deg, var(--brand-dark), var(--brand));
    box-shadow: 0 4px 20px rgba(87, 0, 13, .2);
}
.site-header button { touch-action: manipulation; }

@media (display-mode: standalone), (display-mode: fullscreen) {
    body {
        --app-safe-top: max(var(--safe-top), 24px);
        --nav-safe-bottom: min(var(--safe-bottom), 34px);
    }
}
.topbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    color: inherit;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.brand__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: var(--brand);
    background: #fff;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 900;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand.is-member { gap: 0; }
.brand.is-member .brand__mark { display: none; }
.brand.is-member .brand__copy { line-height: 1.2; }
.brand.is-member .brand__copy strong { font-size: 1.1rem; }
.brand.is-member .brand__copy small { max-width: min(76vw, 300px); font-size: .9rem; font-weight: 800; }
.brand__copy { min-width: 0; display: grid; line-height: 1.15; }
.brand__copy strong {
    overflow: hidden;
    font-size: 1.02rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand__copy small {
    max-width: 250px;
    overflow: hidden;
    color: rgba(255,255,255,.82);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-cart {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #111;
    background: #fff;
    border: 0;
    border-radius: 15px;
    font-size: 1.25rem;
    cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-install {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 13px;
    cursor: pointer;
}
.header-install span { font-size: 1.1rem; font-weight: 900; line-height: 1; }
.header-install small { font-size: .7rem; font-weight: 800; }
.cart-count {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: var(--accent);
    border: 2px solid var(--brand);
    border-radius: 99px;
    font-size: .66rem;
    font-weight: 900;
}
.header-cart.is-cart-bump { animation: cartButtonShake .56s cubic-bezier(.36,.07,.19,.97) both; }
.header-cart.is-cart-bump .cart-count { animation: cartCountPop .56s ease-out both; }
@keyframes cartButtonShake {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    14% { transform: translate3d(-4px, 0, 0) rotate(-7deg) scale(1.03); }
    28% { transform: translate3d(4px, 0, 0) rotate(7deg) scale(1.06); }
    42% { transform: translate3d(-3px, 0, 0) rotate(-5deg) scale(1.08); }
    58% { transform: translate3d(3px, 0, 0) rotate(4deg) scale(1.06); }
    74% { transform: translate3d(-1px, 0, 0) rotate(-2deg) scale(1.03); }
}
@keyframes cartCountPop {
    0%, 100% { transform: scale(1); }
    34% { transform: scale(1.38); }
    68% { transform: scale(.94); }
}
.search-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
}
.header-cart--search { width: 44px; height: 44px; border-radius: 14px; }
.search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    overflow: hidden;
    color: var(--ink);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 7px 18px rgba(80, 0, 12, .16);
}
.search__icon { padding-left: 13px; color: var(--brand); font-size: 1.35rem; line-height: 1; }
.search input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    border: 0;
    outline: 0;
    background: transparent;
}
.search__clear {
    width: 34px;
    height: 34px;
    border: 0;
    color: var(--muted);
    background: #f2eff0;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
}
.search__scanner {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--brand);
    background: var(--brand-soft);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
}
.search__scanner svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search__submit {
    height: 44px;
    padding-inline: 14px;
    color: #fff;
    background: #262122;
    border: 0;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
}

main { overflow: hidden; }
.hero { padding-top: 16px; }
.hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--radius);
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide, .hero-fallback {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: clamp(176px, 45vw, 340px);
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: var(--radius);
    background: #e9e3e4;
}
.hero-slide img, .hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide__copy {
    position: absolute;
    inset: auto 0 0;
    padding: 38px 18px 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.hero-slide__copy b, .hero-slide__copy p { margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.hero-slide__copy b { display: block; font-size: 1rem; }
.hero-slide__copy p { margin-top: 2px; font-size: .8rem; }
.hero-badge {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 4px 8px;
    color: #111;
    background: var(--accent);
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 800;
}
.hero-fallback {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(255,212,59,.52), transparent 28%),
        linear-gradient(125deg, #7e0014, #d10023);
}
.hero-fallback span {
    display: inline-block;
    padding: 4px 9px;
    color: #241b00;
    background: var(--accent);
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 850;
}
.hero-fallback h1 { margin: 9px 0 4px; font-size: clamp(1.35rem, 5vw, 2.5rem); line-height: 1.1; }
.hero-fallback p { max-width: 450px; margin: 0; color: rgba(255,255,255,.82); font-size: .8rem; }
.hero-fallback__art { font-size: clamp(3rem, 15vw, 7rem); filter: drop-shadow(0 12px 14px rgba(60,0,8,.2)); }
.hero-dots { min-height: 18px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.hero-dots i { width: 6px; height: 6px; background: #d3cbcd; border-radius: 99px; transition: .2s; }
.hero-dots i.is-active { width: 18px; background: var(--brand); }

.section { padding-top: 22px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.eyebrow { margin: 0 0 2px; color: var(--brand); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.text-button { padding: 6px; color: var(--brand); background: transparent; border: 0; font-size: .78rem; font-weight: 800; cursor: pointer; }
.category-list, .featured-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 26%);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 1px 8px;
    scrollbar-width: none;
}
.category-list::-webkit-scrollbar, .featured-list::-webkit-scrollbar { display: none; }
.category-list.is-auto-scrolling { scroll-snap-type: none; }
.category-card {
    min-height: 112px;
    display: grid;
    grid-template-rows: 46px auto 1fr;
    place-items: center;
    padding: 12px 7px 9px;
    text-align: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(40, 20, 24, .06);
    scroll-snap-align: start;
    cursor: pointer;
}
.category-card.is-active { border-color: var(--brand); background: var(--brand-soft); }
.category-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 7px;
    background: linear-gradient(145deg, #fff4c6, #ffe36a);
    border-radius: 15px;
    font-size: 1.65rem;
}
.category-card b { font-size: .76rem; line-height: 1.18; }
.category-card small { color: var(--muted); font-size: .62rem; }
.category-skeleton, .product-skeleton {
    overflow: hidden;
    background: #eae5e6;
    border-radius: 16px;
    position: relative;
}
.category-skeleton { height: 112px; }
.category-skeleton::after, .product-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    animation: shimmer 1.15s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.featured-list { grid-auto-columns: minmax(158px, 42%); }
.featured-list .product-card { scroll-snap-align: start; }
.catalog-section { padding-bottom: 28px; }
.section-heading--catalog { align-items: center; margin-bottom: 14px; }
.result-count { color: var(--muted); font-size: .75rem; }
.active-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -4px 0 12px;
    padding: 9px 11px;
    color: #7c0013;
    background: #ffe5e9;
    border-radius: 11px;
    font-size: .76rem;
}
.active-filter button { color: var(--brand); background: transparent; border: 0; font-size: .72rem; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-category-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 0 2px;
    padding: 10px 12px;
    color: #7c0013;
    background: linear-gradient(135deg, #fff2f4 0%, #fff 100%);
    border: 1px solid #f1cbd2;
    border-left: 4px solid var(--brand);
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(124, 0, 19, .07);
}
.product-category-heading:first-child { margin-top: 0; }
.product-category-heading__title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.product-category-heading__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #ffeda6;
    border-radius: 10px;
    font-size: 1.05rem;
}
.product-category-heading__title small { display: block; margin-bottom: 1px; color: var(--muted); font-size: .6rem; }
.product-category-heading__title h3 { overflow: hidden; margin: 0; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.product-category-heading__count { flex: 0 0 auto; color: var(--muted); font-size: .68rem; }
.product-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(45, 24, 28, .05);
}
.product-card__open {
    min-width: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}
.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #faf8f8;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #c4babc; font-size: 2.2rem; }
.featured-tag {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 4px 7px;
    color: #3c2d00;
    background: var(--accent);
    border-radius: 99px;
    font-size: .58rem;
    font-weight: 900;
}
.product-card__body { padding: 10px 10px 5px; }
.product-card__name {
    min-height: 2.55em;
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-card__footer { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 10px 10px; }
.price { color: var(--brand); font-weight: 900; white-space: nowrap; }
.price small { color: var(--muted); font-size: .6rem; font-weight: 500; }
.add-button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #e31837);
    border: 0;
    border-radius: 99px;
    box-shadow: 0 5px 12px rgba(201, 0, 31, .18);
    font-family: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.add-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.add-button:hover { filter: brightness(1.04); box-shadow: 0 7px 15px rgba(201, 0, 31, .24); transform: translateY(-1px); }
.add-button:active { transform: scale(.98); }
.product-skeleton { aspect-ratio: .7; }
.empty-state { padding: 44px 20px; text-align: center; }
.empty-state > span { display: block; font-size: 2.6rem; }
.empty-state h3 { margin: 10px 0 3px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: .85rem; }
.load-more {
    min-width: 170px;
    display: block;
    margin: 18px auto 0;
    padding: 11px 18px;
    color: var(--brand);
    background: #fff;
    border: 1px solid #e7cbd0;
    border-radius: 99px;
    font-weight: 800;
    cursor: pointer;
}
.load-sentinel { height: 2px; }

.bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 35;
    height: calc(var(--bottom-nav-height) + var(--nav-safe-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 8px var(--nav-safe-bottom);
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(44, 21, 25, .08);
    backdrop-filter: blur(14px);
}
.bottom-nav__item {
    position: relative;
    display: grid;
    place-content: center;
    gap: 1px;
    color: #81777a;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.bottom-nav__icon { width: 24px; height: 24px; display: grid; place-items: center; margin: 0 auto; }
.bottom-nav__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav__item.has-unread .bottom-nav__icon {
    color: var(--brand);
    transform-origin: 50% 10%;
    animation: notificationBellShake 1.15s ease-in-out infinite;
}
.bottom-nav__item.has-unread .bottom-nav__badge { animation: notificationBadgePulse 1.15s ease-in-out infinite; }
.bottom-nav__item small { font-size: .65rem; font-weight: 800; }
.bottom-nav__item.is-active { color: var(--brand); font-weight: 900; }
.bottom-nav__badge {
    position: absolute;
    left: calc(50% + 7px);
    top: calc(50% - 25px);
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    background: var(--brand);
    border: 2px solid #fff;
    border-radius: 99px;
    font-size: .56rem;
    font-weight: 900;
    line-height: 1;
}
@keyframes notificationBellShake {
    0%, 44%, 100% { transform: rotate(0deg); }
    8% { transform: rotate(-15deg); }
    16% { transform: rotate(13deg); }
    24% { transform: rotate(-10deg); }
    32% { transform: rotate(7deg); }
    38% { transform: rotate(-4deg); }
}
@keyframes notificationBadgePulse {
    0%, 44%, 100% { transform: scale(1); }
    18% { transform: scale(1.16); }
}

/* Account and Notifications are separate full-page routes. In an installed
   iOS app, keeping both the route and its tab bar bottom-fixed can make WebKit
   paint the bar against a stale viewport after navigation. Put both pieces in
   one normal-flow grid so every app page gets an exact 76px navigation row. */
@media (max-width: 619px) {
    body.is-ios-standalone.has-app-page {
        width: 100%;
        height: 100vh;
        min-height: 0;
        max-height: 100vh;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) var(--bottom-nav-height);
        padding-bottom: 0;
    }
    body.is-ios-standalone.has-app-page > .app-page:not([hidden]) {
        position: relative;
        inset: auto;
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }
    body.is-ios-standalone.has-app-page > .bottom-nav {
        position: relative;
        inset: auto;
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: var(--bottom-nav-height);
        min-height: var(--bottom-nav-height);
        padding: 0 8px;
    }
    body.is-ios-standalone.has-exclusive-app-page {
        height: 100dvh;
        display: block;
        padding-bottom: 0;
    }
    body.is-ios-standalone.has-exclusive-app-page > .app-page:not([hidden]) {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        max-height: none;
    }
}

.chat-launcher {
    position: fixed;
    right: 12px;
    bottom: calc(var(--bottom-nav-height) + 10px + var(--safe-bottom));
    z-index: 34;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #202020;
    background: #fff;
    border: 1px solid #e5e2e3;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(35, 22, 25, .18);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}
@media (max-width: 619px) {
    body.is-ios-standalone .chat-launcher {
        bottom: calc(var(--bottom-nav-height) + 2px + var(--safe-bottom));
    }
}
.chat-launcher:active { transform: scale(.94); }
.chat-launcher:focus-visible { outline: 3px solid rgba(201, 0, 31, .24); outline-offset: 2px; }
.chat-launcher svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-launcher.has-unread { color:var(--brand); border-color:#ef9caa; box-shadow:0 5px 18px rgba(201,0,31,.25),0 0 0 4px rgba(201,0,31,.08); }
.chat-launcher.has-unread svg { transform-origin:50% 50%; animation:chatLauncherShake 1.05s ease-in-out infinite; }
.chat-launcher b {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    background: var(--brand);
    border: 2px solid #fff;
    border-radius: 99px;
    font-size: .6rem;
    line-height: 1;
}
@keyframes chatLauncherShake {
    0%, 46%, 100% { transform:translateX(0) rotate(0deg); }
    7% { transform:translateX(-3px) rotate(-9deg); }
    14% { transform:translateX(3px) rotate(8deg); }
    21% { transform:translateX(-3px) rotate(-7deg); }
    28% { transform:translateX(2px) rotate(5deg); }
    35% { transform:translateX(-1px) rotate(-3deg); }
}
.chat-launcher.has-unread b { animation:notificationBadgePulse 1.05s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .bottom-nav__item.has-unread .bottom-nav__icon,
    .bottom-nav__item.has-unread .bottom-nav__badge,
    .chat-launcher.has-unread svg,
    .chat-launcher.has-unread b { animation: none; }
}
.cart-page {
    inset: 0;
    z-index: 70;
    width: 100%;
    height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-bottom);
    background: #fff;
}
.drawer-header, .dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.drawer-header h2, .dialog-header h2 { margin: 0; font-size: 1.18rem; }
.icon-button, .dialog-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #f3eff0;
    border: 0;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
}
.cart-items { min-height: 0; overflow-y: auto; padding: 0 16px; }
.cart-line { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line__image { width: 70px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: #faf8f8; border-radius: 12px; }
.cart-line__image img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__copy { min-width: 0; }
.cart-line__copy b { display: -webkit-box; overflow: hidden; font-size: .82rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cart-line__copy > span { color: var(--brand); font-size: .8rem; font-weight: 850; }
.qty-stepper { display: grid; grid-template-columns: 30px 32px 30px; align-items: center; margin-top: 7px; }
.qty-stepper button { width: 30px; height: 30px; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 9px; font-weight: 900; cursor: pointer; }
.qty-stepper span { text-align: center; font-size: .8rem; font-weight: 800; }
.remove-item { align-self: start; padding: 5px; color: #9b8d90; background: transparent; border: 0; font-size: .72rem; cursor: pointer; }
.cart-empty { padding: 42px 24px; text-align: center; }
.cart-empty > span { display: block; font-size: 3rem; filter: grayscale(1); opacity: .5; }
.cart-empty h3 { margin: 10px 0 3px; }
.cart-empty p { max-width: 320px; margin: 0 auto 18px; color: var(--muted); font-size: .82rem; }
.cart-summary { margin-top: auto; padding: 14px 18px 18px; background: #fffafb; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; }
.cart-summary__total { align-items: center; margin-top: 7px; padding-top: 8px; border-top: 1px dashed #dccfd2; }
.cart-summary__total strong { color: var(--brand); font-size: 1.35rem; }
.cart-summary > p { margin: 8px 0 12px; color: var(--muted); font-size: .68rem; }

.button {
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 13px;
    font-weight: 850;
    cursor: pointer;
}
.button--primary { color: #fff; background: var(--brand); border: 1px solid var(--brand); }
.button--outline { color: var(--brand); background: #fff; border: 1px solid #e1b9c0; }
.button--block { width: 100%; }
.button:disabled { opacity: .6; cursor: wait; }

dialog {
    width: min(calc(100% - 24px), 540px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: #fff;
    border: 0;
    border-radius: 22px;
    box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(24, 14, 16, .55); backdrop-filter: blur(2px); }
.barcode-scanner-page {
    inset: 0;
    z-index: 70;
    width: 100%;
    height: 100dvh;
    max-height: none;
    background: #151113;
}
.barcode-scanner-panel { width: min(100%, 680px); height: 100%; display: flex; flex-direction: column; margin-inline: auto; background: #fff; }
.barcode-scanner-header {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 42px;
    justify-content: initial;
    padding-top: calc(12px + var(--safe-top));
}
.barcode-scanner-header > div { min-width: 0; }
.barcode-scanner-header h2 { font-size: 1.05rem; }
.barcode-scanner-body {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 18px 16px 24px;
    background: #151113;
}
.barcode-scanner-view {
    position: relative;
    width: min(100%, 520px);
    min-height: 180px;
    flex: 1;
    margin-inline: auto;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
.barcode-scanner-view video { width: 100%; height: 100%; object-fit: cover; }
.barcode-scanner-target {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 50%;
    height: 42%;
    max-height: 190px;
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 17px;
    box-shadow: 0 0 0 999px rgba(0,0,0,.32), 0 0 22px rgba(255,255,255,.16);
    transform: translateY(-50%);
}
.barcode-scanner-target::before,
.barcode-scanner-target::after { content: ''; position: absolute; width: 30px; height: 30px; border-color: #ef233c; }
.barcode-scanner-target::before { left: -4px; top: -4px; border-left: 4px solid #ef233c; border-top: 4px solid #ef233c; border-radius: 15px 0 0; }
.barcode-scanner-target::after { right: -4px; bottom: -4px; border-right: 4px solid #ef233c; border-bottom: 4px solid #ef233c; border-radius: 0 0 15px; }
.barcode-scanner-target i {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 12%;
    height: 2px;
    background: #ef233c;
    box-shadow: 0 0 10px #ef233c;
    animation: barcodeScanLine 1.8s ease-in-out infinite alternate;
}
.barcode-scanner-status { margin: 16px auto 0; color: #fff; font-size: .86rem; font-weight: 850; text-align: center; }
.barcode-scanner-status.is-error { color: #fecaca; }
.barcode-scanner-hint { margin: 5px auto 16px; color: rgba(255,255,255,.68); font-size: .7rem; text-align: center; }
.barcode-scanner-body .button { width: min(100%, 520px); margin: 9px auto 0; color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
@keyframes barcodeScanLine { from { top: 12%; } to { top: 88%; } }
.product-dialog { position: relative; }
.dialog-close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.product-detail { max-height: calc(100dvh - 24px); overflow-y: auto; }
.product-detail__media { aspect-ratio: 1.3; display: grid; place-items: center; overflow: hidden; background: #faf8f8; }
.product-detail__media img { width: 100%; height: 100%; object-fit: contain; }
.product-detail__copy { padding: 18px; }
.product-detail__category { color: var(--brand); font-size: .72rem; font-weight: 800; }
.product-detail h2 { margin: 5px 0 8px; font-size: 1.25rem; line-height: 1.25; }
.product-detail__price { display: flex; align-items: baseline; gap: 5px; color: var(--brand); font-size: 1.6rem; font-weight: 900; }
.product-detail__price small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.product-detail__description { margin: 12px 0 16px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: .84rem; white-space: pre-line; }
.product-detail__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.product-detail__actions .qty-stepper { margin: 0; grid-template-columns: 38px 42px 38px; }
.product-detail__actions .qty-stepper button { width: 38px; height: 42px; }

.checkout-page { inset: 0; height: 100dvh; }
.checkout-form { max-height: calc(100dvh - 20px); display: flex; flex-direction: column; }
.checkout-body { min-height: 0; overflow-y: auto; padding: 16px 18px; }
.checkout-member {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 11px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}
.checkout-member__icon { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-weight: 900; }
.checkout-member > span:nth-child(2) { min-width: 0; display: grid; }
.checkout-member strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.checkout-member small { color: #547061; font-size: .66rem; }
.checkout-member button { padding: 6px 8px; color: #166534; background: transparent; border: 0; font-size: .7rem; font-weight: 850; cursor: pointer; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label, .fulfillment legend { font-size: .78rem; font-weight: 800; }
.form-row label b { color: var(--brand); }
.form-row input, .form-row textarea {
    width: 100%;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #dcd4d6;
    border-radius: 11px;
    outline: 0;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(201,0,31,.08); }
.fulfillment { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.fulfillment legend { margin-bottom: 7px; }
.fulfillment label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 11px 12px; background: #faf8f8; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.fulfillment input { margin-top: 4px; accent-color: var(--brand); }
.fulfillment__copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; min-width: 0; }
.fulfillment__copy > b { grid-column: 1 / -1; }
.fulfillment__copy > small { grid-column: 1; grid-row: 2; align-self: center; }
.fulfillment b { font-size: .8rem; }
.fulfillment small { color: var(--muted); font-size: .68rem; }
.fulfillment__fee { display: inline-flex; grid-column: 2; grid-row: 2; align-items: center; align-self: center; justify-self: end; min-height: 22px; padding: 3px 8px; border: 1px solid #f2b6bf; border-radius: 999px; color: #a7152c; background: #fff1f3; font-size: .63rem; font-style: normal; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.fulfillment__fee.is-free { color: #167344; border-color: #b7e3ca; background: #effaf4; }
.fulfillment__fee.is-external { color: #655a20; border-color: #e8dda2; background: #fffbea; }
@media (max-width: 480px) {
    .fulfillment__copy > small { grid-column: 1 / -1; }
    .fulfillment__fee { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 2px; }
}
.honeypot { position: absolute !important; left: -9999px !important; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding: 13px; background: var(--brand-soft); border-radius: 12px; }
.checkout-total span { font-size: .78rem; }
.checkout-total strong { color: var(--brand); font-size: 1.3rem; }
.form-error { margin: 10px 0 0; padding: 9px 11px; color: #8d0016; background: #ffe3e8; border-radius: 9px; font-size: .76rem; }
.checkout-footer { padding: 12px 18px calc(14px + var(--safe-bottom)); border-top: 1px solid var(--line); }

.payment-choice-dialog { width: min(calc(100% - 20px), 520px); }
.payment-choice-panel { max-height: calc(100dvh - 20px); display: flex; flex-direction: column; }
.payment-choice-body { min-height: 0; overflow-y: auto; padding: 18px; }
.payment-choice-intro { margin: 0 0 14px; color: var(--muted); font-size: .8rem; text-align: center; }
.payment-choice-total { margin-bottom: 14px; }
.payment-options { display: grid; gap: 11px; }
.payment-option {
    width: 100%;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--ink);
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.payment-option:hover, .payment-option:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgba(201, 0, 31, .1);
    outline: 0;
    transform: translateY(-1px);
}
.payment-option:disabled { opacity: .6; cursor: wait; transform: none; }
.payment-option[hidden] { display: none; }
.payment-option__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #23804d;
    border-radius: 13px;
    font-size: 1.35rem;
    font-weight: 900;
}
.payment-option__icon--qr { color: #164f86; background: #e8f3fc; font-size: .85rem; }
.payment-option > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.payment-option b { font-size: .9rem; }
.payment-option small { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.payment-option__arrow { color: var(--brand); font-size: 1.7rem; line-height: 1; }

.payment-dialog { width: min(calc(100% - 20px), 520px); }
.payment-form { max-height: calc(100dvh - 20px); display: flex; flex-direction: column; }
.payment-body { min-height: 0; overflow-y: auto; padding: 16px 18px; }
.payment-intro { margin: 0 0 13px; color: var(--muted); font-size: .78rem; text-align: center; }
.promptpay-card {
    display: grid;
    justify-items: center;
    padding: 16px;
    background: linear-gradient(180deg, #f7fbff, #fff);
    border: 1px solid #cfe1f2;
    border-radius: 17px;
}
.promptpay-card__badge { margin-bottom: 9px; color: #164f86; font-size: .72rem; font-weight: 900; letter-spacing: .06em; }
.promptpay-card__badge b { color: #2f8bc7; }
.payment-qr { width: 220px; height: 220px; display: grid; place-items: center; padding: 7px; background: #fff; border-radius: 10px; }
.payment-qr img, .payment-qr canvas { width: 100% !important; height: 100% !important; }
.payment-amount { margin-top: 8px; color: var(--brand); font-size: 1.65rem; }
.promptpay-card > span { font-size: .82rem; font-weight: 800; }
.promptpay-card > small { color: var(--muted); font-size: .7rem; }
.payment-save-qr { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; }
.payment-save-qr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.payment-save-qr__hint { display: block; margin-top: 6px; color: var(--muted); font-size: .67rem; text-align: center; }
.slip-upload { display: grid; gap: 7px; margin-top: 14px; }
.slip-upload > label { font-size: .78rem; font-weight: 800; }
.slip-upload > label b { color: var(--brand); }
.slip-upload > input {
    width: 100%;
    padding: 10px;
    background: #faf8f8;
    border: 1px dashed #cfbfc2;
    border-radius: 11px;
    font-size: .75rem;
}
.slip-upload > small { color: var(--muted); font-size: .68rem; }
.slip-preview { overflow: hidden; margin-top: 3px; background: #f3eff0; border-radius: 12px; }
.slip-preview img { width: 100%; max-height: 260px; object-fit: contain; }

.success-dialog { max-width: 410px; }
.member-dialog { position: fixed; inset: 0 0 calc(var(--bottom-nav-height) + var(--nav-safe-bottom)); z-index: 34; width: 100%; max-width: none; height: auto; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
.member-dialog::backdrop { background: #fff; backdrop-filter: none; }
.member-panel { width: min(100%, 680px); height: 100%; max-height: none; display: flex; flex-direction: column; margin-inline: auto; background: #fff; }
.member-dialog .dialog-header { flex: 0 0 auto; padding-top: calc(14px + var(--app-safe-top)); background: #fff; }
.page-header-back,
.member-page-header.has-back { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; justify-content: initial; }
.account-page-back[hidden] { display: none; }
.member-guest { min-height: 0; overflow-y: auto; padding: 14px 18px 18px; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.member-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 16px; padding: 4px; background: #f3eff0; border-radius: 13px; }
.member-tabs button { min-height: 40px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; font-size: .78rem; font-weight: 850; cursor: pointer; }
.member-tabs button.is-active { color: var(--brand); background: #fff; box-shadow: 0 3px 10px rgba(53,20,26,.08); }
.member-form .form-row { margin-bottom: 12px; }
.member-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member-help { margin: -1px 0 13px; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.member-profile { min-height: 0; flex: 1; overflow-y: auto; padding: 12px 0 18px; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.member-profile__section-title { margin: 2px 18px 9px; color: var(--muted); font-size: .7rem; }
.member-menu-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.member-menu-item { width: 100%; min-height: 56px; display: grid; grid-template-columns: 28px minmax(0,1fr) 20px; align-items: center; gap: 10px; padding: 9px 17px; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .84rem; font-weight: 750; cursor: pointer; }
.member-menu-item:last-child { border-bottom: 0; }
.member-menu-item:active { background: #faf7f8; }
.member-menu-item:focus, .member-menu-item:focus-visible { outline: 0; }
.member-menu-item__icon { width: 23px; height: 23px; display: grid; place-items: center; color: #474044; }
.member-menu-item__icon svg, .member-menu-item__chevron { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.member-menu-item__chevron { width: 19px; height: 19px; color: #81777a; }
.member-menu-item__copy { min-width: 0; display: grid; gap: 2px; }
.member-menu-item__copy strong { font: inherit; }
.member-menu-item__copy small { color: var(--muted); font-size: .62rem; font-weight: 650; }
.native-app-update[hidden], .member-menu-item[hidden] { display: none; }
.native-app-update--guest { margin: 0 -18px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.member-menu-item--danger, .member-menu-item--danger .member-menu-item__icon { color: #b4233a; }
.member-menu-item:disabled { opacity: .5; cursor: wait; }
.member-profile__details { padding: 4px 22px 22px; }
.member-profile__identity { margin-bottom: 18px; text-align: center; }
.member-profile__avatar { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 12px; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); border-radius: 50%; font-size: 1.7rem; font-weight: 900; }
.member-profile__identity p { margin: 0; color: var(--muted); font-size: .7rem; }
.member-profile__identity h3 { margin: 3px 0 1px; font-size: 1.15rem; }
.member-profile__identity > small { color: var(--muted); }
.member-profile-form .form-row { margin-bottom: 12px; }
.member-contact { padding: 4px 18px 24px; }
.member-contact__hero { padding: 18px 16px; text-align: center; background: linear-gradient(145deg, #fff6f7, #fff); border: 1px solid #f3d8dd; border-radius: 18px; }
.member-contact__hero-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 10px; color: var(--brand); background: #fff; border: 1px solid #f3d8dd; border-radius: 17px; box-shadow: 0 7px 18px rgba(112,0,18,.08); }
.member-contact__hero-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.member-contact__hero p { margin: 0; color: var(--brand); font-size: .67rem; font-weight: 850; }
.member-contact__hero h3 { margin: 3px 0 5px; font-size: 1.05rem; }
.member-contact__hero small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.member-contact__hero-address { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 11px; padding-top: 10px; color: #6f565b; border-top: 1px solid #f2dfe3; font-size: .68rem; font-weight: 700; line-height: 1.45; }
.member-contact__hero-address svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.member-contact__list { display: grid; gap: 9px; margin-top: 13px; }
.member-contact__row { min-height: 56px; display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 10px 13px; color: var(--ink); background: #fff; border: 1px solid #b8b4b5; border-radius: 8px; box-shadow: 0 1px 2px rgba(34,30,32,.08); text-decoration: none; }
.member-contact__row:active { background: #faf7f8; }
.member-contact__row-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink); }
.member-contact__row-icon svg, .member-contact__chevron { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.member-contact__row--line .member-contact__row-icon { color: #06c755; }
.member-contact__row > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.member-contact__row small { color: var(--muted); font-size: .62rem; }
.member-contact__row-title { font-size: .78rem; overflow-wrap: anywhere; }
.member-contact__row .member-contact__hours { font-size: .72rem; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.member-contact__row strong { overflow-wrap: anywhere; font-size: .78rem; line-height: 1.4; }
.member-contact__chevron { width: 18px; height: 18px; color: #81777a; }
.member-contact__row[aria-disabled="true"] { opacity: .55; }
.member-contact__note { margin: 10px 4px 0; color: var(--muted); font-size: .65rem; text-align: center; }
.order-history-dialog { position: fixed; inset: 0 0 calc(var(--bottom-nav-height) + var(--nav-safe-bottom)); z-index: 34; width: 100%; max-width: none; height: auto; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
.order-history-dialog::backdrop { background: #fff; backdrop-filter: none; }
.order-history-panel { width: min(100%, 680px); height: 100%; min-height: 0; max-height: none; display: flex; flex-direction: column; margin-inline: auto; background: #fff; }
.order-history-header { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; min-height: calc(66px + var(--app-safe-top)); padding: calc(12px + var(--app-safe-top)) 16px 8px; }
.order-history-header h2 { margin: 0; font-size: 1.18125rem; text-align: left; }
.order-history-back { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.order-history-back svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.payment-page-header { justify-content: flex-start; }

.order-history-tabs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3px; margin: 0 12px 8px; padding: 4px; background: #f4f1f2; border-radius: 99px; }
.order-history-tabs button { min-width: 0; min-height: 36px; padding: 6px 5px; overflow: hidden; color: var(--muted); background: transparent; border: 0; border-radius: 99px; font-size: 0.7875rem; font-weight: 800; overflow-wrap: anywhere; white-space: normal; cursor: pointer; }
.order-history-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(53,20,26,.12); }
.order-history-body { min-height: 0; flex: 1; overflow-y: auto; padding: 12px 16px 18px; background: #fcfbfb; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.order-history-list { display: grid; gap: 9px; }
.order-history-loading { padding: 36px 12px; color: var(--muted); font-size: 0.84375rem; text-align: center; }
.order-history-entry { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; padding: 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; text-align: left; cursor: default; }
.order-history-entry:hover { border-color: var(--brand); box-shadow: 0 5px 16px rgba(112,0,18,.08); }
.order-history-entry__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.order-history-entry__head > small { color: #6f6568; font-size: 0.68625rem; font-weight: 750; }
.order-history-entry__head strong { color: var(--brand); font-size: 0.9675rem; }
.order-history-entry small { color: var(--muted); font-size: 0.73125rem; }
.order-history-entry--progress {
    display: block;
    padding: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fffcfc 100%);
    border-color: #e9e3e5;
    box-shadow:
        0 2px 0 rgba(53,20,26,.06),
        0 9px 22px rgba(72,18,29,.09),
        inset 0 1px 0 rgba(255,255,255,.95);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.order-history-entry--progress:hover {
    border-color: #ddd4d7;
    box-shadow:
        0 3px 0 rgba(53,20,26,.07),
        0 12px 28px rgba(72,18,29,.13),
        inset 0 1px 0 #fff;
}
.order-history-entry__summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-history-entry__summary > span:first-child { min-width: 0; flex: 1 1 auto; display: grid; gap: 5px; }
.order-cancellation-badge {
    width: fit-content;
    max-width: 58%;
    flex: 0 1 auto;
    display: grid;
    justify-items: start;
    gap: 1px;
    padding: 6px 8px;
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    text-align: left;
}
.order-cancellation-badge small { color: #be123c; font-size: 0.61875rem; font-weight: 850; }
.order-cancellation-badge strong { overflow-wrap: anywhere; font-size: 0.72rem; line-height: 1.3; }
.order-fulfillment-notice {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid;
    border-radius: 11px;
}
.order-fulfillment-notice.is-pickup { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.order-fulfillment-notice.is-grab { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.order-fulfillment-notice__icon { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.78); border-radius: 9px; }
.order-fulfillment-notice__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.order-fulfillment-notice__copy { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 1px 7px; }
.order-fulfillment-notice__copy small { color: inherit; font-size: 0.6525rem; font-weight: 750; opacity: .78; }
.order-fulfillment-notice__copy strong { font-size: 0.8775rem; line-height: 1.25; }
.order-fulfillment-notice__copy > span { grid-column: 1 / -1; overflow: hidden; font-size: 0.675rem; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; opacity: .82; }
.order-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    margin-top: 18px;
    padding-top: 2px;
}
.order-progress__track { position: absolute; left: 12.5%; right: 12.5%; top: 23px; height: 4px; overflow: hidden; background: #e5e7eb; border-radius: 99px; }
.order-progress__track i { display: block; height: 100%; background: var(--success); border-radius: inherit; transition: width .65s ease; }
.order-progress.is-cancelled .order-progress__track i { background: #ef4444; }
.order-progress__step { position: relative; z-index: 1; min-width: 0; display: grid; justify-items: center; align-content: start; color: #a8a1a3; }
.order-progress__node { --pulse: rgba(220,0,35,.18); position: relative; width: 46px; height: 46px; display: grid; place-items: center; color: #929093; background: #ecebed; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(40,30,32,.04); }
.order-progress__node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.order-progress__step.is-complete { color: #15803d; }
.order-progress__step.is-complete .order-progress__node { --pulse: rgba(22,163,74,.18); color: #fff; background: #159447; }
.order-progress__step.is-current:not(.is-complete) { color: var(--brand); }
.order-progress__step.is-current:not(.is-complete) .order-progress__node { color: #fff; background: var(--brand); }
.order-progress__step.is-cancelled .order-progress__node { --pulse: rgba(239,68,68,.18); background: #ef4444; }
.order-progress__step.is-current .order-progress__node::before,
.order-progress__step.is-current .order-progress__node::after { content: ''; position: absolute; inset: -8px; z-index: -1; border: 2px solid var(--pulse); border-radius: 50%; animation: orderProgressPulse 1.8s ease-out infinite; }
.order-progress__step.is-current .order-progress__node::after { animation-delay: .6s; }
.order-progress__motion { position: absolute; left: 50%; bottom: -10px; display: flex; gap: 3px; transform: translateX(-50%); }
.order-progress__motion i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; animation: orderProgressDots 1.1s ease-in-out infinite; }
.order-progress__motion i:nth-child(2) { animation-delay: .15s; }
.order-progress__motion i:nth-child(3) { animation-delay: .3s; }
.order-progress__label { max-width: 100%; margin-top: 13px; color: currentColor; font-size: 0.73125rem; font-weight: 850; line-height: 1.25; text-align: center; }
.order-progress-delivery { display: grid; gap: 24px; margin-top: 18px; }
.order-progress--delivery-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.order-progress--delivery-row .order-progress__track { left: 16.6667%; right: 16.6667%; }
.order-progress--delivery-row .order-progress__label { padding: 0 4px; line-height: 1.5; overflow-wrap: anywhere; }
.order-progress__items { display: block; margin-top: 19px; padding: 13px 11px; background: #fcfafa; border: 1px solid #f0eaeb; border-radius: 13px; }
.order-progress__items-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.order-progress__items-head > strong { font-size: 0.9rem; }
.order-progress__items-head > small { color: var(--muted); font-size: 0.6975rem; }
.order-progress__items-list { --item-columns: 42px minmax(0,1fr) 46px 68px; display: grid; }
.order-progress__item-columns, .order-progress__item { display: grid; grid-template-columns: var(--item-columns); align-items: center; gap: 6px; padding: 8px 2px; border-top: 1px solid #eee7e8; }
.order-progress__item-columns { color: var(--muted); font-size: 0.6975rem; font-weight: 800; }
.order-progress__item-columns > :first-child, .order-progress__item-columns > :nth-child(3) { text-align: center; }
.order-progress__item-columns > :last-child { text-align: right; }
.order-progress__item-media { position: relative; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid #eee7e8; border-radius: 9px; }
.order-progress__item-media > * { grid-area: 1 / 1; }
.order-progress__item-media img { z-index: 1; width: 100%; height: 100%; padding: 3px; object-fit: contain; background: #fff; }
.order-progress__item-placeholder { color: #c4babc; font-size: 1.29375rem; }
.order-progress__item-info { min-width: 0; display: grid; gap: 2px; }
.order-progress__item-info strong { overflow: hidden; font-size: 0.81rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.order-progress__item-quantity { min-width: 0; display: grid; gap: 2px; text-align: center; overflow-wrap: anywhere; }
.order-progress__item-quantity strong { font-size: 0.81rem; }
.order-progress__item-quantity small { color: var(--muted); font-size: 0.68625rem; }
.order-progress__item > b { color: #166534; font-size: 0.81rem; white-space: nowrap; text-align: right; }
.order-progress__item.is-unavailable { opacity: .55; }
.order-progress__item.is-unavailable .order-progress__item-info strong { text-decoration: line-through; }
.order-progress__items-empty { display: block; padding: 11px 2px 2px; color: var(--muted); font-size: 0.7425rem; text-align: center; }
.order-progress__grand-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; padding: 11px 2px 1px; border-top: 1px solid #e4dcde; }
.order-progress__grand-total > span { font-size: 0.8325rem; font-weight: 850; }
.order-progress__grand-total > strong { color: #166534; font-size: 1.035rem; white-space: nowrap; }
.history-payment { display: block; margin-top: 15px; padding: 15px 12px 12px; background: #f8fbff; border: 1px solid #cfe1f2; border-radius: 15px; }
.history-payment-attempt { display: grid; grid-template-columns: 13px minmax(0,1fr); gap: 9px; align-items: start; margin-top: 13px; padding: 11px 12px; color: #164e63; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 13px; }
.history-payment-attempt__icon { width: 11px; height: 11px; margin-top: 3px; background: #0891b2; border: 3px solid #cffafe; border-radius: 50%; box-shadow: 0 0 0 1px #0891b2; }
.history-payment-attempt > span:last-child { display: grid; gap: 3px; min-width: 0; }
.history-payment-attempt strong { font-size: 0.84375rem; }
.history-payment-attempt small { color: inherit; font-size: 0.72rem; line-height: 1.45; }
.history-payment-attempt.is-verifying { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.history-payment-attempt.is-verifying .history-payment-attempt__icon { background: #2563eb; border-color: #dbeafe; box-shadow: 0 0 0 1px #2563eb; }
.history-payment-attempt.is-retry,
.history-payment-attempt.is-manual { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.history-payment-attempt.is-retry .history-payment-attempt__icon,
.history-payment-attempt.is-manual .history-payment-attempt__icon { background: #ea580c; border-color: #ffedd5; box-shadow: 0 0 0 1px #ea580c; }
.history-payment-attempt.is-verified,
.history-payment-attempt.is-completed { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.history-payment-attempt.is-verified .history-payment-attempt__icon,
.history-payment-attempt.is-completed .history-payment-attempt__icon { background: #16a34a; border-color: #dcfce7; box-shadow: 0 0 0 1px #16a34a; }
.history-payment-attempt.is-rejected { color: #991b1b; background: #fff1f2; border-color: #fecdd3; }
.history-payment-attempt.is-rejected .history-payment-attempt__icon { background: #e11d48; border-color: #ffe4e6; box-shadow: 0 0 0 1px #e11d48; }
.history-payment__heading { margin-bottom: 12px; }
.history-payment__heading > span { display: grid; gap: 2px; }
.history-payment__heading small { color: #28648f; font-size: 0.72rem; font-weight: 800; }
.history-payment__heading strong { font-size: 0.9675rem; }
.history-payment__countdown {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
}
.history-payment__countdown > span { min-width: 0; display: grid; gap: 1px; }
.history-payment__countdown b { font-size: 0.81rem; }
.history-payment__countdown small { color: #9a6b4a; font-size: 0.66375rem; }
.history-payment__countdown > strong { min-width: 62px; color: #c2410c; font-size: 1.35rem; font-variant-numeric: tabular-nums; text-align: right; }
.history-payment__countdown.is-urgent { color: #991b1b; background: #fff1f2; border-color: #fecdd3; }
.history-payment__countdown.is-urgent small,
.history-payment__countdown.is-urgent > strong { color: #be123c; }
.history-payment__countdown.is-expired { color: #7f1d1d; background: #fef2f2; border-color: #fecaca; }
.history-payment__countdown.is-expired small,
.history-payment__countdown.is-expired > strong { color: #b91c1c; }
.history-payment__qr-card { display: grid; justify-items: center; width: min(100%, 280px); margin-inline: auto; padding: 13px; background: #fff; border: 1px solid #d9e7f3; border-radius: 14px; }
.history-payment__qr-card > span { margin-bottom: 7px; color: #164f86; font-size: 0.73125rem; font-weight: 900; letter-spacing: .05em; }
.history-payment__qr-card > span b { color: #2f8bc7; }
.history-payment__qr { width: 190px; height: 190px; display: grid; place-items: center; padding: 5px; background: #fff; border-radius: 8px; }
.history-payment__qr img, .history-payment__qr canvas { width: 100% !important; height: 100% !important; }
.history-payment__qr.is-error { height: auto; min-height: 80px; padding: 12px; color: #991b1b; background: #fff1f2; font-size: 0.7875rem; text-align: center; }
.history-payment__qr-card > small { color: var(--muted); font-size: 0.73125rem; }
.history-payment__qr-card > small:first-of-type { margin-top: 6px; }
.history-payment__save { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; background: #fff; }
.history-payment__save svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.history-payment__save-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 0.6975rem !important; text-align: center; }
.history-payment__upload { display: grid; gap: 7px; margin-top: 13px; }
.history-payment__upload label { font-size: 0.81rem; font-weight: 850; }
.history-payment__upload label b { color: var(--brand); }
.history-payment__upload input { width: 100%; padding: 9px; background: #fff; border: 1px dashed #c7b8bb; border-radius: 10px; font-size: 0.7875rem; }
.history-payment__upload > small { color: var(--muted); font-size: 0.6975rem; }
.history-payment__preview { overflow: hidden; background: #f3eff0; border-radius: 10px; }
.history-payment__preview img { display: block; width: 100%; max-height: 240px; object-fit: contain; }
.history-payment > .button--primary { margin-top: 11px; }
.history-payment--disabled { display: grid; gap: 4px; color: #991b1b; background: #fff7ed; border-color: #fed7aa; text-align: center; }
.history-payment--disabled small { color: #9a3412; }
@keyframes orderProgressPulse {
    0% { opacity: .9; transform: scale(.78); }
    75%, 100% { opacity: 0; transform: scale(1.42); }
}
@keyframes orderProgressDots {
    0%, 70%, 100% { opacity: .28; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}
.order-history-empty { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 14px; color: var(--muted); text-align: center; }
.order-history-empty[hidden] { display: none; }
.order-history-empty svg { width: 42px; height: 42px; margin-bottom: 12px; fill: none; stroke: #c3b9bc; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-history-empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.125rem; }
.order-history-empty p { max-width: 310px; margin: 0 0 15px; font-size: 0.81rem; line-height: 1.55; }
.order-history-empty .button { min-height: 40px; padding-inline: 18px; }
.order-history-note { margin: 13px 3px 0; color: var(--muted); font-size: 0.73125rem; line-height: 1.45; text-align: center; }

/* Shared controls inherit the notification page text scale. */
.order-history-dialog { font-size: 1.125rem; }
.order-history-dialog .form-error { font-size: 0.855rem; }
.order-history-entry__summary { flex-wrap: wrap; }
.order-progress__items-head { flex-wrap: wrap; }
.order-fulfillment-notice__copy { display: flex; flex-wrap: wrap; }
.order-fulfillment-notice__copy > span { flex-basis: 100%; }

/* Store delivery separates the person sending the order from its recipient. */
.order-fulfillment-notice.is-store-delivery {
    display: block;
    padding: 12px;
    color: #234f39;
}
.order-delivery-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 0 1px 11px;
    border-bottom: 1px solid #ccebd7;
}
.order-delivery-summary > span:first-child { min-width: 0; display: grid; gap: 2px; }
.order-delivery-summary small { color: #568069; font-size: .6875rem; font-weight: 800; line-height: 1.4; }
.order-delivery-summary > span:first-child strong { font-size: .875rem; line-height: 1.4; }
.order-delivery-status { flex: 0 1 auto; display: grid; justify-items: end; gap: 3px; text-align: right; }
.order-delivery-status strong {
    max-width: 100%;
    padding: 4px 9px;
    color: #166534;
    background: #dcfce7;
    border-radius: 7px;
    font-size: .75rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.order-delivery-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 11px; }
.order-delivery-party { min-width: 0; padding: 10px; background: rgba(255,255,255,.66); border: 1px solid #d8efe0; border-radius: 10px; }
.order-delivery-party > header { display: grid; gap: 2px; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid #e0f0e5; }
.order-delivery-party > header strong { color: #166534; font-size: .8125rem; line-height: 1.4; }
.order-delivery-party > header small { color: #668073; font-size: .625rem; font-weight: 650; line-height: 1.45; }
.order-delivery-party dl { display: grid; gap: 6px; margin: 0; }
.order-delivery-party dl > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 7px; }
.order-delivery-party dt { color: #668073; font-size: .6875rem; line-height: 1.5; }
.order-delivery-party dd { min-width: 0; margin: 0; color: #29483a; font-size: .75rem; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 520px) {
    .order-delivery-summary { display: grid; grid-template-columns: minmax(0, 1fr); }
    .order-delivery-status { justify-items: start; text-align: left; }
    .order-delivery-parties { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 340px) {
    .order-delivery-party dl > div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
}

@media (max-width: 430px) {
    .member-name-grid { grid-template-columns: 1fr; gap: 0; }
}
.success-card { padding: 28px 22px 22px; text-align: center; }
.success-card__icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 15px; color: #fff; background: var(--success); border-radius: 50%; font-size: 2rem; font-weight: 900; }
.success-card h2 { margin: 3px 0 12px; }
.success-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .78rem; }
.success-card > strong { display: block; margin: 4px 0 12px; color: var(--brand); font-size: 1.2rem; letter-spacing: .03em; }
.success-card > small { display: block; margin-bottom: 18px; color: var(--muted); }
.order-status-items { display: grid; gap: 7px; max-height: 220px; margin: 0 0 12px; overflow-y: auto; text-align: left; }
.order-status-line { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; padding: 8px 9px; background: #faf8f8; border: 1px solid var(--line); border-radius: 10px; font-size: .72rem; }
.order-status-line b, .order-status-line small { display: block; }
.order-status-line small { color: var(--muted); font-size: .63rem; }
.order-status-line.is-reduced { background: #fff7ed; border-color: #fed7aa; }
.order-status-line.is-unavailable { opacity: .58; text-decoration: line-through; }
.order-status-total { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; padding: 11px; color: #166534; background: #f0fdf4; border: 1px solid #86efac; border-radius: 11px; }
.order-status-total strong { font-size: 1.1rem; }
.success-card .button + .button { margin-top: 8px; }

.install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottom-nav-height) + 6px + var(--safe-bottom));
    z-index: 50;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(calc(100% - 24px), 690px);
    margin-inline: auto;
    padding: 12px 12px;
    color: var(--ink);
    background: rgba(255,255,255,.98);
    border: 1px solid #ead7da;
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(43, 15, 20, .22);
    backdrop-filter: blur(16px);
    animation: installRise .28s ease-out;
}
@keyframes installRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.install-banner > img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
}
.install-banner__copy { min-width: 0; display: grid; gap: 2px; }
.install-banner__copy strong { font-size: .79rem; line-height: 1.22; }
.install-banner__copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: .66rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.install-banner__close {
    position: absolute;
    right: -4px;
    top: -8px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #776d70;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(30,10,14,.12);
    cursor: pointer;
}
.button--install {
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 11px;
    font-size: .72rem;
    white-space: nowrap;
}
.install-offer-visible .toast { bottom: calc(var(--bottom-nav-height) + 98px + var(--safe-bottom)); }

.install-dialog { width: min(calc(100% - 22px), 480px); }
.install-guide { max-height: calc(100dvh - 22px); display: flex; flex-direction: column; }
.install-guide__body { min-height: 0; overflow-y: auto; padding: 18px; text-align: center; }
.install-guide__logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 21px;
    box-shadow: 0 8px 22px rgba(45,17,22,.1);
}
.install-guide__body > p { margin: 0 auto 16px; color: var(--muted); font-size: .8rem; }
.install-steps {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}
.install-steps li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    background: #faf8f8;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .78rem;
}
.install-steps li > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 900;
}
.install-steps li b { display: block; margin-bottom: 1px; }
.install-steps li small { color: var(--muted); font-size: .68rem; }
.install-guide__body .install-note {
    margin: 13px 0 0;
    padding: 9px 10px;
    color: #7c0013;
    background: #fff0f2;
    border-radius: 10px;
    font-size: .7rem;
}
.install-guide__footer { display: grid; gap: 8px; padding: 12px 18px calc(14px + var(--safe-bottom)); border-top: 1px solid var(--line); }

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--bottom-nav-height) + 16px + var(--safe-bottom));
    z-index: 120;
    max-width: calc(100% - 28px);
    padding: 10px 15px;
    color: #fff;
    background: #262122;
    border-radius: 99px;
    box-shadow: var(--shadow);
    font-size: .78rem;
    font-weight: 700;
    transform: translate(-50%, 30px);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.noscript { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 20px; background: #fff; text-align: center; }

@media (min-width: 620px) {
    body { padding-bottom: 0; }
    .bottom-nav { width: 430px; left: 50%; bottom: 12px; height: 62px; padding: 4px 8px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
    .app-page, .member-dialog, .order-history-dialog { bottom: 74px; height: auto; }
    .catalog-section { padding-bottom: 100px; }
    .category-list { grid-auto-columns: 132px; }
    .featured-list { grid-auto-columns: 205px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .install-banner { bottom: 86px; }
    .install-offer-visible .toast { bottom: 178px; }
    .chat-launcher { right: max(18px, calc(50% - 278px)); bottom: 22px; }
}

@media (min-width: 960px) {
    .site-header { position: relative; }
    .topbar { min-height: 74px; }
    .search-wrap { max-width: 760px; padding-bottom: 15px; }
    .hero { padding-top: 22px; }
    .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .section { padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .header-cart.is-cart-bump,
    .header-cart.is-cart-bump .cart-count { animation: none !important; }
}

/* Full-page customer flows: use the same page pattern as Account. */
dialog {
    position: fixed;
    inset: 0 0 auto;
    z-index: 34;
    width: 100%;
    max-width: none;
    height: calc(100dvh - var(--bottom-nav-height) - var(--safe-bottom));
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
dialog::backdrop { background: #fff; backdrop-filter: none; }

.product-dialog,
.checkout-page,
.payment-choice-dialog,
.payment-dialog,
.success-dialog,
.install-dialog { position: fixed; width: 100%; max-width: none; }

.product-detail,
.checkout-form,
.payment-choice-panel,
.payment-form,
.success-card,
.install-guide {
    width: min(100%, 680px);
    height: 100%;
    max-height: none;
    margin-inline: auto;
    background: #fff;
}
.product-detail { overflow-y: auto; padding-top: var(--safe-top); }
.product-panel { width: min(100%, 680px); height: 100%; min-height: 0; display: flex; flex-direction: column; margin-inline: auto; background: #fff; }
.product-panel .product-detail { flex: 1; min-height: 0; height: auto; padding-top: 0; }
.product-page-header { flex: 0 0 auto; padding-top: calc(14px + var(--app-safe-top)); }
.dialog-close { top: calc(12px + var(--safe-top)); }
.checkout-form,
.payment-choice-panel,
.payment-form,
.install-guide { display: flex; flex-direction: column; }
.checkout-page .dialog-header,
.payment-choice-dialog .dialog-header,
.payment-dialog .dialog-header,
.install-dialog .dialog-header { flex: 0 0 auto; padding-top: calc(14px + var(--safe-top)); background: #fff; }
.checkout-page .dialog-header { padding-top: calc(14px + var(--app-safe-top)); }
.checkout-page .checkout-form { min-height: 0; }
.checkout-page .checkout-body { overscroll-behavior: contain; }
.checkout-page .checkout-footer { background: #fff; }
.checkout-body,
.payment-choice-body,
.payment-body,
.install-guide__body { flex: 1; }
.checkout-footer,
.install-guide__footer { flex: 0 0 auto; }
.success-card {
    min-height: 100%;
    overflow-y: auto;
    padding-top: calc(28px + var(--safe-top));
}
.order-status-items { max-height: none; }

.cart-page .drawer-header { flex: 0 0 auto; padding-top: calc(14px + var(--app-safe-top)); }
.cart-items { flex: 1; }

@media (min-width: 620px) {
    dialog { height: calc(100dvh - 74px); }
    .cart-page,
    .checkout-page,
    .barcode-scanner-page { inset: 0; height: 100dvh; }
}
/* Store delivery checkout: map is loaded only after an explicit map action. */
#storeDeliveryFields{padding:0;border:0;background:transparent}
#storeDeliveryFields[hidden],#deliveryMap[hidden],#deliveryPriceSummary[hidden]{display:none!important}
#deliveryMap{height:300px;width:100%;margin-top:12px;border-radius:12px;background:#eaf0eb}
.delivery-map-actions{display:flex;gap:8px;flex-wrap:wrap}
.delivery-action-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border-radius:11px;font-size:.75rem;line-height:1.2;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
.delivery-action-button svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.delivery-action-button--locate{color:#a7152c;border:1px solid #efb7c0;background:#fff;box-shadow:0 3px 9px rgba(167,21,44,.08)}
.delivery-action-button--confirm{margin-top:3px;color:#fff;border:1px solid #c9001f;background:linear-gradient(145deg,#e41435,#c9001f);box-shadow:0 5px 12px rgba(201,0,31,.18)}
.delivery-action-button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(201,0,31,.16)}
.delivery-action-button:not(:disabled):active{transform:translateY(0)}
.delivery-action-button--confirm:disabled{color:#9d9497;border-color:#e5dee0;background:#f3eff0;box-shadow:none;opacity:1}
.delivery-service-card{padding:14px 15px;border:1px solid #d7e8dd;border-radius:16px;background:#f6faf7;box-shadow:0 7px 18px rgba(35,79,57,.08)}
.delivery-service-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;gap:12px;padding-bottom:10px;border-bottom:1px solid #dce9e1}
.delivery-service-head h3,.delivery-recipient-head h3{margin:0;color:#234f39;font-size:.9rem}
.delivery-service-head p,.delivery-recipient-head p{margin:2px 0 0;color:#6b7d73;font-size:.7rem;line-height:1.4}
.delivery-service-fee{display:inline-flex;align-items:center;flex:0 0 auto;min-height:27px;padding:4px 10px;border:1px solid #f2b6bf;border-radius:999px;color:#a7152c;background:#fff1f3;font-size:.7rem;line-height:1.2;white-space:nowrap}
.delivery-service-fee.is-free{color:#167344;border-color:#b7e3ca;background:#effaf4}
.delivery-terms{display:grid;margin:3px 0 0}
.delivery-term{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:9px 1px;border-bottom:1px solid #e3ece7}
.delivery-term:last-child{border-bottom:0}
.delivery-term small{color:#61796d;font-size:.7rem;line-height:1.35}
.delivery-term strong{color:#234f39;font-size:.88rem;line-height:1.35;text-align:right;overflow-wrap:anywhere}
.delivery-recipient-section{margin-top:18px}
.delivery-recipient-head{margin-bottom:13px;padding-bottom:10px;border-bottom:1px solid #ebe6e7}
.delivery-recipient-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:14px;padding:11px 12px;border:1px solid #eadfe1;border-radius:12px;background:#fff}
.delivery-recipient-summary__identity{display:flex;align-items:baseline;gap:6px;min-width:0;line-height:1.45;overflow-wrap:anywhere}
.delivery-recipient-summary__identity strong{color:#292326;font-size:.82rem}
.delivery-recipient-summary__identity small,.delivery-recipient-summary__identity>span{color:#756a6d;font-size:.7rem}
.delivery-recipient-summary button{min-height:32px;padding:6px 10px;border:1px solid #efb7c0;border-radius:9px;color:#a7152c;background:#fff7f8;font-size:.7rem;font-weight:800;white-space:nowrap;cursor:pointer}
.delivery-recipient-summary button:hover{border-color:#df8594;background:#fff0f2}
.delivery-recipient-summary button:focus-visible{outline:3px solid rgba(201,0,31,.12);outline-offset:2px}
.delivery-recipient-summary button:disabled{cursor:default;opacity:.55}
.delivery-recipient-override{padding:12px 12px 1px;margin:-6px 0 14px;border:1px solid #f0dadd;border-radius:12px;background:#fffafb}
.delivery-recipient-override[hidden]{display:none!important}
#deliveryPriceSummary,#deliveryMapMessage{font-size:.85rem;line-height:1.7;color:#345c47}
#deliveryMinimumHint{display:grid;gap:2px;margin:5px 0 0;padding:10px 12px;border:1px solid #f0c5b2;border-radius:11px;color:#9c3517;background:#fff7f2}
#deliveryMinimumHint[hidden]{display:none!important}
#deliveryMinimumHint span{font-size:.72rem;font-weight:650}
#deliveryMinimumHint strong{font-size:.95rem;line-height:1.35}
#storeDeliveryFields input,#storeDeliveryFields textarea{width:100%;box-sizing:border-box}
@media(max-width:350px){.delivery-service-head{grid-template-columns:minmax(0,1fr)}.delivery-service-fee{justify-self:start}.delivery-recipient-summary{grid-template-columns:minmax(0,1fr)}.delivery-recipient-summary button{justify-self:start}}

/* Checkout typography is intentionally larger for comfortable mobile reading. */
.checkout-page { font-size: 1.25rem; }
.checkout-page .dialog-header h2 { font-size: 1.18rem; }
.checkout-page .dialog-header .eyebrow { font-size: .68rem; }
.checkout-page .dialog-header .order-history-back { width: 42px; height: 42px; font-size: 1rem; }
.checkout-page .dialog-header .order-history-back svg { width: 21px; height: 21px; }
.checkout-page .checkout-member strong { font-size: 1.025rem; }
.checkout-page .checkout-member small { font-size: .825rem; }
.checkout-page .checkout-member button { font-size: .875rem; }
.checkout-page .form-row label,
.checkout-page .fulfillment legend { font-size: .975rem; }
.checkout-page .fulfillment b { font-size: 1rem; }
.checkout-page .fulfillment small { font-size: .85rem; line-height: 1.45; }
.checkout-page .fulfillment__fee { min-height: 27px; padding: 4px 10px; font-size: .7875rem; }
.checkout-page .checkout-total span { font-size: .975rem; }
.checkout-page .checkout-total strong { font-size: 1.625rem; }
.checkout-page .form-error { font-size: .95rem; }
.checkout-page .checkout-footer .button { font-size: 1rem; }
.checkout-page .delivery-action-button { font-size: .9375rem; }
.checkout-page #deliveryPriceSummary,
.checkout-page #deliveryMapMessage { font-size: 1.0625rem; }
.checkout-page .delivery-service-head h3,
.checkout-page .delivery-recipient-head h3 { font-size: 1.125rem; }
.checkout-page .delivery-service-head p,
.checkout-page .delivery-recipient-head p { font-size: .875rem; }
.checkout-page .delivery-recipient-summary__identity strong { font-size: 1.025rem; }
.checkout-page .delivery-recipient-summary__identity small,
.checkout-page .delivery-recipient-summary__identity > span,
.checkout-page .delivery-recipient-summary button { font-size: .875rem; }
.checkout-page .delivery-service-fee { font-size: .875rem; }
.checkout-page .delivery-term small { font-size: .875rem; }
.checkout-page .delivery-term strong { font-size: 1.1rem; }
.checkout-page #deliveryMinimumHint span { font-size: .9rem; }
.checkout-page #deliveryMinimumHint strong { font-size: 1.1875rem; }
