@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --mobile-food-primary: #ff5a1f;
    --mobile-food-primary-soft: #fff2ec;
    --mobile-food-bg: #f5f5f7;
    --mobile-food-text: #171717;
    --color-primary: #ff5a1f;
    --color-primary-dark: #e94b11;
    --color-primary-soft: #fff2ec;
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-surface-alt: #f7f7f8;
    --color-border: #d4d4d8;
    --color-text: #171717;
    --color-text-secondary: #52525b;
    --color-text-muted: #71717a;
    --color-white: #ffffff;
    --color-success: #18a957;
    --color-danger: #ef4444;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, .08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .12);
    --radius-round: 999px;
    --font-family: Inter, "SF Pro Display", Arial, sans-serif;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-md: 14px;
    --fs-lg: 16px;
    --fs-xl: 18px;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --phone-width: 390px;
    --phone-min-height: 844px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --frame-bottom: 24px;
    --frame-width: min(var(--phone-width), calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.customer-v2-body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #e9e9ec;
    color: var(--color-text);
    font-family: var(--font-family);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

html[data-menu-language="vi"] .lang-ru,
html[data-menu-language="vi"] .lang-en,
html[data-menu-language="ru"] .lang-vi,
html[data-menu-language="ru"] .lang-en,
html[data-menu-language="en"] .lang-vi,
html[data-menu-language="en"] .lang-ru {
    display: none !important;
}

.app-preview-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
}

.phone-frame {
    width: 100%;
    max-width: var(--phone-width);
    height: calc(100vh - 48px);
    min-height: min(var(--phone-min-height), calc(100vh - 48px));
    background: var(--color-surface);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.app-screen {
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    background: var(--color-surface);
    padding-bottom: calc(178px + var(--safe-bottom));
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 90, 31, .48) transparent;
    -webkit-overflow-scrolling: touch;
}

.app-screen::-webkit-scrollbar {
    width: 4px;
}

.app-screen::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 90, 31, .48);
}

.screen-section,
.screen-content {
    padding: 0 16px;
}

.spacer-8 {
    height: 8px;
}

.spacer-16 {
    height: 16px;
}

.spacer-20 {
    height: 20px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 12px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.app-header-left,
.app-header-right {
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: var(--fs-xl);
    line-height: 1.2;
    font-weight: var(--fw-bold);
}

.icon-button {
    min-width: 48px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .09);
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.icon-button:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    box-shadow: 0 8px 20px rgba(255, 90, 31, .16);
}

.icon-button:focus-visible {
    outline: 3px solid rgba(255, 90, 31, .3);
    outline-offset: 3px;
    border-color: var(--color-primary);
}

.icon-button svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.icon-button-labeled {
    width: auto;
    gap: 8px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: var(--fw-bold);
}

.icon-button-labeled span {
    white-space: nowrap;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: var(--frame-bottom);
    z-index: 80;
    width: var(--frame-width);
    height: calc(76px + var(--safe-bottom));
    transform: translateX(-50%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px 8px calc(12px + var(--safe-bottom));
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .10);
}

.bottom-nav.table-order-nav {
    grid-template-columns: repeat(3, 1fr);
}

.bottom-nav.table-order-nav.has-order {
    grid-template-columns: repeat(4, 1fr);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 16px;
    color: var(--color-text-muted);
    border: 1px solid #e4e4e7;
    background: #fafafa;
    font-size: 11px;
    font-weight: var(--fw-bold);
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-item.active {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .16);
}

.nav-item:hover {
    border-color: rgba(255, 90, 31, .55);
    color: var(--color-primary-dark);
}

.nav-item:focus-visible {
    outline: 3px solid rgba(255, 90, 31, .28);
    outline-offset: 2px;
}

.nav-item.cart-has-items {
    color: #16a34a;
    background: #ecfdf3;
}

.nav-item.cart-has-items .cart-count-badge {
    background: #22c55e;
    color: var(--color-white);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.nav-item-scan {
    color: var(--color-primary);
}

.nav-item-scan > span {
    color: var(--color-primary-dark);
    font-weight: var(--fw-extrabold);
}

.nav-item-scan .nav-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 8px 18px rgba(255, 90, 31, .24);
}

.nav-item-scan.active .nav-icon {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: none;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-success-toast-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-success-toast-content.is-compact {
    gap: 8px;
    justify-content: flex-start;
    max-width: 100%;
}

.cart-success-toast-content.is-compact > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 52vw;
}

.cart-success-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cart-toastify.is-compact {
    min-width: 0 !important;
}

.cart-toastify.is-compact .toast-close {
    width: 18px;
    height: 18px;
    opacity: .75;
}

.btn {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
}

.btn-primary {
    background: linear-gradient(180deg, #ff6b2c 0%, #ff4d14 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary.is-disabled {
    opacity: .55;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
}

.rating-pill,
.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-round);
    padding: 6px 10px;
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    padding: 6px 10px;
    border-radius: var(--radius-round);
}

.restaurant-name {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
}

.restaurant-desc {
    margin: 0 0 12px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.hero-topbar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
}

.hero-image {
    height: 250px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)), url("/template-assets/herro-slide-2.jpg") center/cover no-repeat;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .22);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, .92);
    color: var(--color-text);
    padding: 8px 12px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

.hero-icon-badge {
    width: 44px;
    padding: 0;
}

.hero-icon-badge svg,
.hero-badge svg {
    width: 18px;
    height: 18px;
}

.home-hero {
    height: 232px;
}

.home-summary {
    margin-top: -36px;
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.home-eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-offer-card {
    min-height: 132px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 90, 31, .96), rgba(249, 115, 22, .88)), url("/template-assets/2.jpg") center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.home-offer-card h2 {
    margin: 10px 0 6px;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
}

.home-offer-card p {
    margin: 0;
    max-width: 230px;
    color: rgba(255, 255, 255, .84);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-section-heading h2 {
    margin: 0;
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.15;
    font-weight: 900;
}

.home-section-heading a {
    color: var(--color-primary);
    font-size: var(--fs-xs);
    font-weight: 900;
    white-space: nowrap;
}

.promo-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.promo-tile {
    min-height: 128px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(236, 236, 236, .9);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.promo-tile-primary {
    min-height: 148px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(25, 25, 25, .34), rgba(255, 90, 31, .88)),
        url("/template-assets/3.jpg") center/cover no-repeat;
    border: 0;
}

.promo-label {
    align-self: flex-start;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
}

.promo-tile-primary .promo-label {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.promo-tile h3 {
    margin: 12px 0 6px;
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.15;
    font-weight: 900;
}

.promo-tile-primary h3 {
    color: #fff;
}

.promo-tile p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.promo-tile-primary p {
    color: rgba(255, 255, 255, .86);
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.news-card {
    min-width: 0;
    border-radius: 20px;
    background: var(--color-surface);
    border: 1px solid rgba(236, 236, 236, .92);
    box-shadow: var(--shadow-sm);
    padding: 10px;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.news-thumb {
    width: 86px;
    height: 86px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}

.news-thumb-1 { background-image: url("/template-assets/1.jpg"); }
.news-thumb-2 { background-image: url("/template-assets/herro-slide-2.jpg"); }
.news-thumb-3 { background-image: url("/template-assets/4.jpg"); }

.news-card span {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 900;
}

.news-card h3 {
    margin: 0 0 5px;
    color: var(--color-text);
    font-size: var(--fs-md);
    line-height: 1.2;
    font-weight: 900;
}

.news-card p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 11px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-map-card {
    height: 240px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(236, 236, 236, .92);
}

.home-map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.offer-badge-small {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    padding: 6px 10px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.home-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-action-card {
    min-width: 0;
    min-height: 126px;
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px;
}

.home-action-card strong {
    color: var(--color-text);
    font-size: var(--fs-md);
    font-weight: 900;
}

.home-action-card small {
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
}

.restaurant-summary {
    padding: 16px;
}

.restaurant-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.call-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.info-box {
    background: var(--color-surface-alt);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
}

.info-box strong {
    display: block;
    font-size: var(--fs-md);
    margin-bottom: 4px;
}

.info-box span {
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
}

.restaurant-gallery {
    padding: 0 16px;
}

.section-title {
    margin: 0 0 12px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item {
    height: 72px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.g1 { background-image: url("/template-assets/1.jpg"); }
.g2 { background-image: url("/template-assets/2.jpg"); }
.g3 { background-image: url("/template-assets/3.jpg"); }
.g4 { background-image: url("/template-assets/4.jpg"); }

.pickup-card {
    margin: 0 16px;
    padding: 16px;
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pickup-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pickup-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickup-title {
    margin-bottom: 4px;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
}

.pickup-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
}

.link-button {
    color: var(--color-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
}

.menu-hero {
    height: 210px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)), url("/template-assets/herro-slide-2.jpg") center/cover no-repeat;
}

.menu-hero--compact {
    height: 96px;
}

.menu-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .22);
}

.menu-hero--compact .hero-topbar {
    top: 12px;
    left: 12px;
    right: 12px;
}

.menu-hero--has-order {
    overflow: visible;
    margin-bottom: 28px;
}

.menu-active-order-card {
    position: absolute;
    left: 10px;
    right: auto;
    bottom: -20px;
    z-index: 4;
    transform: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 20px);
    min-height: 0;
    padding: 6px 8px 6px 6px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 90, 31, .28);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.menu-active-order-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 90, 31, .45);
    box-shadow: 0 12px 24px rgba(255, 90, 31, .18);
}

.menu-active-order-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ff5a1f 0%, #ff7a45 100%);
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 6px 12px rgba(255, 90, 31, .24);
}

.menu-active-order-icon svg {
    width: 15px;
    height: 15px;
}

.menu-active-order-copy {
    display: grid;
    gap: 0;
    min-width: 0;
    flex: 0 1 auto;
}

.menu-active-order-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-primary);
    line-height: 1.1;
}

.menu-active-order-amount {
    font-size: 14px;
    line-height: 1.15;
    font-weight: 950;
    color: var(--color-text);
}

.menu-active-order-meta {
    display: none;
}

.menu-active-order-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    flex: 0 0 auto;
}

.menu-active-order-action svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 640px) {
    .menu-hero--has-order {
        margin-bottom: 30px;
    }

    .menu-active-order-card {
        left: 14px;
        right: auto;
        bottom: -20px;
        width: max-content;
        max-width: calc(100% - 28px);
        transform: none;
        gap: 8px;
        min-height: 0;
        padding: 7px 9px 7px 7px;
        border-radius: 14px;
        box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
    }

    .menu-active-order-card:hover {
        transform: translateY(-1px);
    }

    .menu-active-order-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .menu-active-order-icon svg {
        width: 16px;
        height: 16px;
    }

    .menu-active-order-copy {
        flex: 0 1 auto;
        gap: 0;
    }

    .menu-active-order-label {
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .menu-active-order-amount {
        font-size: 15px;
    }

    .menu-active-order-meta {
        display: none;
    }

    .menu-active-order-action {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .menu-active-order-action svg {
        width: 14px;
        height: 14px;
    }
}

.menu-restaurant-info {
    position: relative;
    z-index: 2;
    margin: -28px 16px 0;
    padding: 16px;
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.menu-search-section {
    padding: 0 24px;
}

.search-box {
    min-height: 44px;
    background: var(--color-surface-alt);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    outline: 0;
    color: var(--color-text);
    font-size: var(--fs-md);
}

.search-box button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-secondary);
}

.menu-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 24px 2px;
    touch-action: pan-x;
}

.menu-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.menu-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    /* padding: 2px 8px 4px; */
    scrollbar-width: none;
}

.menu-tabs--rows-3 {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    grid-auto-columns: max-content;
    gap: 6px 8px;
    width: max-content;
    max-width: none;
    overflow: visible;
    padding: 0;
}

.menu-tabs--rows-3.menu-tabs--dynamic {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(var(--menu-tab-columns), max-content);
    grid-auto-columns: unset;
}

.menu-tabs::-webkit-scrollbar {
    display: none;
}

.menu-tab {
    flex: 0 0 auto;
    min-height: 0;
    border-radius: var(--radius-round);
    border: 1.5px solid var(--color-border);
    padding: 5px 10px;
    background: var(--color-surface);
    color: #3f4653;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: var(--fw-bold);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.menu-tab span {
    white-space: nowrap;
}

.menu-tab svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.menu-tab.is-active,
.menu-tab.active {
    border-color: var(--color-primary-dark);
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(255, 90, 31, .2);
}

.menu-tab:not(.is-active):not(.active):hover {
    border-color: rgba(255, 90, 31, .65);
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.menu-tab:focus-visible {
    outline: 3px solid rgba(255, 90, 31, .3);
    outline-offset: 3px;
}

.screen-content--tight {
    padding: 0 24px;
}

.food-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 24px 14px;
}

.menu-category-heading {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 900;
}

.menu-item-wrapper[hidden],
.menu-category-heading[hidden] {
    display: none !important;
}

.menu-suggest-section[hidden] {
    display: none !important;
}

.menu-suggest-section {
    padding: 0 0 0 24px;
}

.menu-suggest-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding-right: 24px;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--color-text);
}

.menu-suggest-heading svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex: 0 0 auto;
}

.menu-suggest-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 24px 8px 2px;
    touch-action: pan-x;
}

.menu-suggest-scroll::-webkit-scrollbar {
    display: none;
}

.menu-suggest-card {
    flex: 0 0 auto;
    width: 132px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.menu-suggest-open {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.menu-suggest-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 90, 31, .35);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
}

.menu-suggest-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.menu-suggest-body {
    display: grid;
    gap: 2px;
    padding: 8px 10px 10px;
}

.menu-suggest-name {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.menu-suggest-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.menu-suggest-price s {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 700;
}

.menu-suggest-price strong {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 900;
}

.menu-suggest-footer {
    width: 100%;
    padding: 0 10px 10px;
}

.food-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.food-card:hover {
    border-color: rgba(255, 90, 31, .28);
    box-shadow: 0 8px 24px rgba(255, 90, 31, .12), 0 2px 6px rgba(15, 23, 42, .06);
    transform: translateY(-2px);
}

.food-card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.food-card:hover img {
    transform: scale(1.04);
}

.food-card img {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 220ms ease;
}

.food-card-body {
    min-width: 0;
    padding: 2px 0 0;
    display: flex;
    flex-direction: column;
}

.food-card h3 {
    margin: 0 0 4px;
    color: var(--color-text);
    font-size: var(--fs-sm);
    line-height: 1.25;
    font-weight: var(--fw-bold);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-card p {
    margin: 0 0 10px;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.food-card-footer strong,
.cart-price {
    color: var(--color-primary);
    font-weight: var(--fw-bold);
}

.add-button {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.add-button svg {
    width: 17px;
    height: 17px;
}

.menu-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.menu-card-old-price {
    display: block;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 800;
    text-decoration: line-through;
}

.menu-cart-bottom-bar {
    position: fixed;
    left: 50%;
    bottom: calc(var(--frame-bottom) + 86px + var(--safe-bottom));
    z-index: 70;
    width: calc(var(--frame-width) - 32px);
    transform: translateX(-50%);
    display: block;
    border: 1px solid rgba(255, 90, 31, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .08);
    padding: 12px 16px;
}

.menu-cart-bottom-summary p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.menu-cart-bottom-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--color-primary);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.menu-cart-bottom-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.menu-cart-bottom-summary strong {
    margin-top: 0;
    text-align: right;
    white-space: nowrap;
}

.menu-cart-bottom-link {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

.cart-list,
.order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px;
}

.cart-customer-greeting {
    margin-bottom: 14px;
}

.cart-context-section {
    margin-top: 0;
    margin-bottom: 18px;
}

.cart-context-section + .cart-list {
    margin-top: 0;
}

#cart-content-after-list {
    margin-top: 22px;
    padding-bottom: calc(174px + var(--safe-bottom));
}

#cart-content-after-list > .spacer-20:first-child {
    display: none;
}

#cart-content-after-list .screen-content + .spacer-20 {
    height: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.cart-item img {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
}

.cart-item-body {
    min-width: 0;
}

.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.cart-item h3 {
    margin: 0 0 4px;
    font-size: var(--fs-md);
    line-height: 1.25;
    font-weight: var(--fw-bold);
}

.cart-item p {
    margin: 0 0 8px;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-price {
    flex: 0 0 auto;
    max-width: 92px;
    text-align: right;
}

.cart-note-input {
    width: 100%;
    height: 42px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-button {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-weight: var(--fw-bold);
}

.qty-number {
    min-width: 20px;
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
}

.remove-button {
    background: transparent;
    color: var(--color-danger);
    font-size: 11px;
    font-weight: var(--fw-bold);
}

.promo-row {
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 12px;
}

.promo-status {
    margin: 10px 2px 0;
    color: var(--color-success);
    font-size: var(--fs-xs);
    font-weight: 900;
}

.promo-status.is-error {
    color: #dc2626;
}

.birthday-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.birthday-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background:
        linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%) right 20px center / 7px 7px no-repeat,
        linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%) right 14px center / 7px 7px no-repeat,
        var(--color-surface-alt);
    color: var(--color-text);
}

.birthday-select:has(option:checked[value=""]) {
    color: #a7adba;
}

.birthday-select option {
    color: var(--color-text);
}

.guest-intro {
    margin: 0 16px 18px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ff5a1f 0%, #ff7a45 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.guest-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    padding: 6px 10px;
    font-size: var(--fs-xs);
    font-weight: 900;
}

.guest-intro h1 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 950;
}

.guest-intro p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.guest-card {
    margin-bottom: calc(96px + var(--safe-bottom));
}

.guest-skip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    min-height: 48px;
    border-radius: 16px;
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: 800;
    text-decoration: none;
}

.membership-thankyou-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 90, 31, .18);
    background: linear-gradient(135deg, #fff7f2 0%, #ffffff 100%);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.membership-thankyou-notice:hover {
    border-color: rgba(255, 90, 31, .34);
    box-shadow: 0 10px 24px rgba(255, 90, 31, .12);
    transform: translateY(-1px);
}

.membership-thankyou-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    flex: 0 0 auto;
}

.membership-thankyou-icon svg,
.membership-thankyou-chevron {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.membership-thankyou-chevron {
    color: var(--color-text-muted);
}

.membership-thankyou-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.membership-thankyou-copy strong {
    font-size: var(--fs-sm);
    font-weight: 900;
    color: var(--color-text);
}

.membership-thankyou-copy > span {
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.promo-input,
.form-control {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface-alt);
    padding: 0 14px;
    outline: 0;
    color: var(--color-text);
    font-size: var(--fs-sm);
}

.promo-input:focus,
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, .16);
}

textarea.form-control {
    height: auto;
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

.promo-button {
    height: 46px;
    align-self: center;
    border-radius: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
}

.price-summary {
    display: block;
    width: 100%;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.price-summary--menu {
    padding: 24px 26px;
    border-radius: 16px;
}

.price-summary--menu div {
    margin-bottom: 10px;
    gap: 10px;
    font-size: var(--fs-sm);
}

.price-summary--menu .total {
    padding-top: 12px;
    margin-top: 2px;
    font-size: var(--fs-lg);
}

.price-summary--menu .total strong {
    font-size: var(--fs-xl);
}

.price-summary--menu .total strong svg,
.price-summary--menu .total strong i {
    width: 18px;
    height: 18px;
}

.price-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    margin-bottom: 12px;
}

.price-summary div:last-child {
    margin-bottom: 0;
}

.price-summary strong {
    color: var(--color-text);
}

.price-summary .discount strong {
    color: var(--color-success);
}

.price-summary .total {
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    margin-top: 4px;
    color: var(--color-text);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
}

.price-summary .total strong {
    color: var(--color-primary);
    font-size: var(--fs-xl);
}

.fixed-bottom-action {
    position: fixed;
    left: 50%;
    bottom: calc(var(--frame-bottom) + 92px + var(--safe-bottom));
    z-index: 75;
    width: calc(var(--frame-width) - 32px);
    transform: translateX(-50%);
}

.fixed-bottom-action .btn {
    min-height: 58px;
    border-radius: 18px;
}

.checkout-card,
.timeline-card,
.driver-card {
    margin: 0 16px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.checkout-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.checkout-card-header h2 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

.address-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.table-context-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
    border: 1px solid rgba(255, 90, 31, .16);
    box-shadow: var(--shadow-sm);
    padding: 14px;
}

.table-context-card > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

.table-context-rescan {
    min-height: 38px;
    border-radius: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: var(--fs-xs);
    font-weight: 900;
}

.table-context-rescan svg {
    width: 16px;
    height: 16px;
}

.customer-greeting {
    margin: 20px 16px 0;
    min-height: 48px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
    border: 1px solid rgba(255, 90, 31, .16);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    font-size: var(--fs-sm);
    font-weight: 800;
}

.customer-greeting svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.customer-greeting strong {
    color: var(--color-primary);
    margin-left: 4px;
}

.address-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.address-card h3 {
    margin: 0 0 4px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
}

.address-card p,
.table-context-card p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.table-context-card h3 {
    margin: 0 0 4px;
    font-size: var(--fs-sm);
    font-weight: 900;
}

.empty-state {
    min-height: calc(var(--phone-min-height) - 92px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 110px;
    text-align: center;
}

.empty-illustration {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: 46px;
    background: linear-gradient(180deg, #fff2ec 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
}

.empty-illustration svg {
    width: 82px;
    height: 82px;
}

.empty-state h1 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: var(--fw-bold);
}

.empty-state p {
    margin: 0 0 22px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.cart-empty-state {
    min-height: calc(var(--phone-min-height) - 168px);
    padding: 56px 24px calc(116px + var(--safe-bottom));
}

.cart-empty-cta {
    max-width: 100%;
    min-height: 58px;
    border-radius: 18px;
    white-space: nowrap;
}

.cart-empty-cta svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.qr-scan-card {
    border-radius: 24px;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 20px;
    text-align: center;
}

.qr-illustration {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
}

.qr-illustration svg {
    width: 64px;
    height: 64px;
}

.qr-scan-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.qr-scan-card p {
    margin: 0 0 18px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.qr-video {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: #111;
    object-fit: cover;
    margin-bottom: 14px;
}

.qr-manual {
    display: grid;
    grid-template-columns: 1fr 74px;
    gap: 10px;
    margin-top: 12px;
}

.qr-status {
    min-height: 20px;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    color: var(--color-primary) !important;
    font-weight: 800;
}

.menu-preview-notice {
    margin: 0 16px 18px;
    padding: 14px;
    border: 1px solid rgba(255, 90, 31, .18);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7f2 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    box-shadow: var(--shadow-sm);
}

.menu-preview-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-preview-notice-icon svg,
.menu-preview-scan-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.menu-preview-notice strong {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: 900;
}

.menu-preview-notice p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.menu-preview-scan-link {
    grid-column: 1 / -1;
    min-height: 48px;
    border-radius: 16px;
    background: var(--color-primary);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font-size: var(--fs-sm);
    font-weight: 900;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.menu-preview-scan-link:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 10px 22px rgba(255, 90, 31, .22);
}

/* Compact notice variant: single-button row */
.menu-preview-notice--compact {
    display: flex;
    align-items: center;
    padding: 4px 12px 0;
    grid-template-columns: unset;
    gap: 0;
}

.menu-preview-notice--compact .menu-preview-scan-link {
    width: 100%;
}

/* Pill variant: text left, orange icon right, white bg */
.menu-preview-scan-link--pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    /* background: var(--color-surface);
    border: 1.5px solid rgba(255, 90, 31, .22); */
    color: var(--color-text);
    padding: 0 14px;
    font-size: var(--fs-sm);
    font-weight: 900;
    gap: 10px;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.menu-preview-scan-link--pill svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--color-primary);
}

.menu-preview-scan-link--pill:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(255, 90, 31, .14);
}

/* On mobile hide text, show icon-only */
@media (max-width: 479px) {
    .menu-preview-scan-text {
        display: none;
    }

    .menu-preview-notice--compact .menu-preview-scan-link,
    .menu-preview-scan-link--pill {
        min-height: 44px;
        justify-content: center;
        padding: 0 14px;
    }
}

.menu-preview-scan-link:focus-visible {
    outline: 3px solid rgba(255, 90, 31, .28);
    outline-offset: 3px;
}

.track-summary-card {
    margin: 18px 16px 0;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: var(--color-white);
    box-shadow: 0 18px 42px rgba(22, 163, 74, .24);
}

.track-summary-card.is-cancelled {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 18px 42px rgba(220, 38, 38, .22);
}

.track-customer-greeting {
    margin-bottom: 18px;
}

.track-customer-greeting + .track-summary-card {
    margin-top: 0;
}

.track-summary-card + .timeline-card {
    margin-top: 24px;
}

.track-price-section {
    margin-top: 4px;
}

.track-note-card {
    margin-top: 4px;
}

.track-action-section {
    margin-top: 4px;
    padding-bottom: calc(112px + var(--safe-bottom));
}

.gps-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 23, 23, .55);
    padding: 24px;
}

.gps-card {
    width: min(340px, calc(100vw - 48px));
    text-align: center;
}

.gps-card .empty-illustration {
    width: 116px;
    height: 116px;
    margin-bottom: 18px;
}

.gps-card .empty-illustration svg {
    width: 54px;
    height: 54px;
}

.gps-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.gps-message {
    margin: 0 0 18px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.track-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.track-summary-price {
    font-size: 22px;
    font-weight: var(--fw-bold);
}

.track-summary-card h2,
.track-summary-card p {
    margin: 0;
}

.track-summary-card p {
    margin-top: 6px;
    color: rgba(255, 255, 255, .75);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.track-summary-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.track-meta-box {
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    padding: 12px;
}

.track-meta-box span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
}

.track-meta-box strong {
    color: #fff;
    font-size: var(--fs-xs);
}

.timeline-card {
    margin-top: 20px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--color-surface-alt);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-item.done .timeline-dot {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.timeline-item h3 {
    margin: 0 0 4px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
}

.timeline-item p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.spin-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 430px) {
    :root {
        --frame-bottom: 0px;
        --frame-width: 100vw;
    }

    body.customer-v2-body {
        background: var(--color-surface);
    }

    .app-preview-wrapper {
        padding: 0;
    }

    .phone-frame {
        max-width: none;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (min-width: 768px) {
    :root {
        --phone-width: 720px;
        --phone-min-height: 720px;
        --frame-width: min(var(--phone-width), calc(100vw - 48px));
    }

    body.customer-v2-body {
        overflow: auto;
    }

    .app-preview-wrapper {
        padding: 24px;
    }

    .phone-frame {
        max-width: var(--phone-width);
        height: calc(100vh - 48px);
        border-radius: 26px;
    }

    .screen-section,
    .screen-content,
    .food-grid,
    .menu-tabs {
        padding-left: 24px;
        padding-right: 24px;
    }

    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .food-card {
        grid-template-columns: 132px minmax(0, 1fr);
        min-height: 156px;
    }

    .food-card img {
        width: 132px;
        height: 132px;
    }
}

@media (min-width: 1180px) {
    :root {
        --phone-width: 100vw;
        --phone-min-height: 760px;
        --frame-width: 100vw;
        --frame-bottom: 24px;
    }

    body.customer-v2-body {
        overflow: hidden;
        background: #f8f8f9;
    }

    .app-preview-wrapper {
        align-items: stretch;
        padding: 0;
        background: #f8f8f9;
    }

    .phone-frame {
        width: 100vw;
        max-width: none;
        height: 100vh;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .app-screen {
        padding-bottom: calc(116px + var(--safe-bottom));
        background: #f8f8f9;
        scrollbar-width: none;
    }

    .app-screen::-webkit-scrollbar {
        display: none;
    }

    .app-header {
        padding: 22px max(48px, calc((100vw - 1440px) / 2 + 48px)) 18px;
        border-bottom: 1px solid var(--color-border);
    }

    .screen-section,
    .screen-content,
    .food-grid,
    .menu-tabs {
        /* max-width: 1440px; */
        margin-left: auto;
        margin-right: auto;
        /* padding-left: 48px; */
        /* padding-right: 48px; */
    }

    .screen-content.screen-content--tight {
        max-width: none;
        padding: 0 105px;
    }

    .menu-hero {
        height: 250px;
        max-width: 1440px;
        margin: 28px auto 0;
        border-radius: 0;
        overflow: hidden;
    }

    .menu-hero--compact {
        height: 120px;
        margin-top: 0;
    }

    .menu-hero--has-order {
        overflow: visible;
        margin-bottom: 36px;
    }

    .menu-active-order-card {
        left: 24px;
        right: auto;
        bottom: -20px;
        width: max-content;
        max-width: min(320px, calc(100% - 48px));
        min-height: 0;
        padding: 8px 10px 8px 8px;
        transform: none;
    }

    .menu-active-order-card:hover {
        transform: translateY(-1px);
    }

    .menu-active-order-amount {
        font-size: 16px;
    }

    .menu-active-order-meta {
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: var(--color-text-secondary);
    }

    .menu-search-section {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 48px;
        padding-right: 48px;
    }

    .menu-tabs-scroll {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 48px;
        padding-right: 48px;
    }

    .menu-tabs {
        /* padding-top: 6px;
        padding-bottom: 8px; */
    }

    .menu-tabs--rows-3 {
        gap: 8px 10px;
        padding: 0;
    }

    .menu-tab {
        padding: 6px 12px;
        font-size: 13px;
    }

    .food-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .food-card {
        grid-template-columns: 148px minmax(0, 1fr);
        min-height: 172px;
        padding: 12px;
    }

    .food-card img {
        width: 148px;
        height: 148px;
    }

    .food-card h3 {
        font-size: 15px;
    }

    .food-card p {
        font-size: 13px;
    }

    .qr-scan-card {
        max-width: 640px;
        margin: 28px auto 0;
        padding: 38px 44px;
        border: 1px solid var(--color-border);
        border-radius: 26px;
        box-shadow: 0 18px 46px rgba(15, 23, 42, .09);
    }

    .cart-empty-state {
        width: min(720px, calc(100vw - 96px));
        min-height: calc(100vh - 178px);
        margin-left: auto;
        margin-right: auto;
        padding: 80px 0 calc(150px + var(--safe-bottom));
    }

    .cart-empty-cta {
        width: min(520px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .qr-illustration {
        width: 118px;
        height: 118px;
        margin-bottom: 20px;
    }

    .qr-illustration svg {
        width: 58px;
        height: 58px;
    }

    .qr-scan-card h2 {
        font-size: 28px;
    }

    .qr-scan-card p {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
    }

    .qr-scan-card .btn {
        width: min(100%, 440px);
        margin-left: auto;
        margin-right: auto;
    }

    .qr-video {
        width: min(100%, 420px);
        margin-left: auto;
        margin-right: auto;
    }

    .qr-manual {
        width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }

    .bottom-nav {
        bottom: 28px;
        width: min(560px, calc(100vw - 64px));
        height: calc(78px + var(--safe-bottom));
        padding: 8px 10px calc(10px + var(--safe-bottom));
        border: 1px solid var(--color-border);
        border-radius: 24px;
        box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    }

    .bottom-nav.table-order-nav {
        width: min(620px, calc(100vw - 64px));
    }

    .bottom-nav.table-order-nav.has-order {
        width: min(760px, calc(100vw - 64px));
    }

    .nav-item {
        border-radius: 18px;
        font-size: 12px;
    }

    .menu-preview-notice {
        max-width: 940px;
        margin: 0 auto 22px;
        grid-template-columns: 46px minmax(0, 1fr) auto;
        padding: 16px 18px;
    }

    .menu-preview-scan-link {
        grid-column: auto;
        min-width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-preview-scan-link,
    .icon-button,
    .nav-item,
    .menu-tab {
        transition: none;
    }
}

@media (min-width: 1440px) {
    :root {
        --phone-width: 100vw;
        --frame-width: 100vw;
    }

    .food-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .food-card {
        grid-template-columns: 132px minmax(0, 1fr);
        min-height: 156px;
    }

    .food-card img {
        width: 132px;
        height: 132px;
    }
}

@media (min-width: 1180px) {
    .menu-hero {
        height: 300px;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    .menu-hero--compact {
        height: 140px;
    }

    .menu-hero--has-order {
        overflow: visible;
        margin-bottom: 36px;
    }

    .menu-active-order-card {
        left: max(24px, calc((100vw - min(1280px, calc(100vw - 96px))) / 2));
        right: auto;
        width: max-content;
        max-width: 340px;
    }

    /* Home hero: center content column */
    .hero-image .hero-topbar {
        left: 50%;
        right: auto;
        width: min(1280px, calc(100vw - 96px));
        transform: translateX(-50%);
    }

    /* Menu / Dine-in: keep Home + Cart/table on the sides (avoid mid-image drift) */
    .menu-hero .hero-topbar {
        left: max(24px, calc((100vw - min(1280px, calc(100vw - 96px))) / 2));
        right: max(24px, calc((100vw - min(1280px, calc(100vw - 96px))) / 2));
        width: auto;
        transform: none;
        top: 16px;
    }

    .menu-v2-browser {
        width: min(1280px, calc(100vw - 96px));
        margin: 0 auto;
    }

    .menu-v2-browser .menu-search-section,
    .menu-v2-browser .menu-tabs-scroll,
    .menu-v2-browser .menu-tabs,
    .menu-v2-browser .food-grid {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .menu-v2-browser .menu-suggest-section {
        padding-left: 0;
    }

    .menu-v2-browser .menu-suggest-heading {
        padding-right: 0;
    }

    .menu-v2-browser .menu-suggest-scroll {
        padding-right: 0;
    }

    .menu-v2-browser .menu-suggest-card {
        width: 160px;
    }

    .menu-v2-browser .menu-suggest-card img {
        height: 120px;
    }

    .menu-v2-browser .search-box {
        min-height: 48px;
        border: 1.5px solid var(--color-border);
        border-radius: 14px;
        background: var(--color-surface);
        box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    }

    .menu-v2-browser .search-box input {
        font-size: 15px;
    }

    .menu-v2-browser .menu-tabs-scroll {
        padding-top: 2px;
        padding-bottom: 4px;
    }

    .menu-v2-browser .menu-tabs--rows-3 {
        gap: 6px 8px;
    }

    .menu-v2-browser .menu-tab {
        min-height: 0;
        padding: 5px 10px;
        font-size: 13px;
        font-weight: 800;
        box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
    }

    .menu-v2-browser .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 10px;
        padding-top: 4px;
        padding-bottom: 150px;
    }

    .menu-v2-browser .menu-category-heading {
        margin: 10px 0 4px;
        font-size: 22px;
    }

    .menu-v2-browser .food-card {
        grid-template-columns: 152px minmax(0, 1fr);
        min-height: 180px;
        padding: 14px;
        border-radius: 24px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    }

    .menu-v2-browser .food-card img {
        width: 152px;
        height: 152px;
        border-radius: 18px;
    }

    .menu-v2-browser .food-card h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .menu-v2-browser .food-card p {
        font-size: 14px;
        line-height: 1.45;
    }

    .menu-v2-browser .food-card-footer strong {
        font-size: 18px;
    }

    .menu-v2-browser .add-button {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .menu-cart-bottom-bar {
        bottom: calc(28px + 88px + var(--safe-bottom));
        width: min(460px, calc(100vw - 96px));
        padding: 14px 18px;
        border: 0;
        border-radius: 24px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    }

    .menu-cart-bottom-summary {
        gap: 18px;
    }

    .menu-cart-bottom-summary p {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        background: var(--color-primary-soft);
        color: var(--color-primary);
        font-size: 13px;
        font-weight: 900;
    }

    .menu-cart-bottom-summary strong {
        font-size: 22px;
        line-height: 1;
    }
}

.text-nowrap {
    white-space: nowrap;
}

/* Kaiserin cart: reuse the menu hero and floating-surface visual language. */
.cart-page-header {
    position: relative;
    isolation: isolate;
}

.cart-page-header-image,
.cart-title-icon,
.cart-title-copy p {
    display: none;
}

.cart-title-panel {
    min-width: 0;
    flex: 1;
}

.cart-title-copy {
    min-width: 0;
}

.cart-status-badge {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-round);
    cursor: default;
    pointer-events: none;
}

.cart-status-badge > span,
.cart-hero-action > span {
    display: none;
}

.cart-hero-action {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-round);
}

.cart-page-body {
    position: relative;
}

@media (min-width: 1180px) {
    .cart-page-header {
        height: 300px;
        padding: 20px max(48px, calc((100vw - 1280px) / 2));
        align-items: flex-start;
        border: 0;
        background: #241b17;
        overflow: visible;
    }

    .cart-page-header::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(0, 0, 0, .34);
        pointer-events: none;
    }

    .cart-page-header-image {
        display: block;
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .cart-page-header .app-header-left,
    .cart-page-header .app-header-right {
        width: auto;
        min-width: 0;
        position: relative;
        z-index: 2;
    }

    .cart-page-header .icon-button {
        min-width: 44px;
        min-height: 44px;
        gap: 6px;
        border: 0;
        border-radius: var(--radius-round);
        background: rgba(255, 255, 255, .92);
        box-shadow: none;
        font-size: var(--fs-xs);
        font-weight: var(--fw-semibold);
    }

    .cart-page-header .icon-button:hover {
        border-color: var(--color-primary);
        background: var(--color-primary-soft);
    }

    .cart-page-header .cart-hero-action,
    .cart-page-header .cart-status-badge {
        width: auto;
        padding: 8px 12px;
        border-radius: var(--radius-round);
    }

    .cart-page-header .icon-button svg {
        width: 18px;
        height: 18px;
    }

    .cart-page-header .cart-hero-action > span,
    .cart-page-header .cart-status-badge > span {
        display: inline;
    }

    .cart-title-panel {
        position: absolute;
        left: 50%;
        bottom: -58px;
        z-index: 3;
        width: min(1280px, calc(100vw - 96px));
        min-height: 120px;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 26px 34px;
        border: 1px solid var(--color-border);
        border-radius: 28px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
    }

    .cart-title-icon {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        border-radius: 20px;
        background: var(--color-primary-soft);
        color: var(--color-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cart-title-icon svg {
        width: 30px;
        height: 30px;
    }

    .cart-title-panel .app-title {
        text-align: left;
        font-size: 34px;
        line-height: 1.1;
        font-weight: 900;
    }

    .cart-title-copy p {
        display: block;
        margin: 8px 0 0;
        color: var(--color-text-secondary);
        font-size: 15px;
        line-height: 1.5;
        font-weight: var(--fw-medium);
    }

    .cart-page-body {
        width: min(1280px, calc(100vw - 96px));
        margin: 94px auto 0;
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
        grid-template-areas:
            "greeting greeting"
            "context aside"
            "items aside";
        align-items: start;
        gap: 18px 26px;
    }

    .cart-page-body .cart-customer-greeting {
        grid-area: greeting;
        margin: 0;
    }

    .cart-page-body .cart-context-section {
        grid-area: context;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .cart-page-body .cart-list {
        grid-area: items;
        padding: 0;
    }

    .cart-page-body #cart-content-after-list {
        grid-area: aside;
        position: sticky;
        top: 24px;
        margin: 0;
        padding: 0 0 190px;
    }

    .cart-page-body #cart-content-after-list .screen-content {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .cart-page-body #cart-content-after-list .checkout-card {
        margin: 0;
    }

    .cart-page-body .cart-empty-state {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 430px;
        margin: 0;
        padding: 54px 32px 58px;
        border: 1px solid var(--color-border);
        border-radius: 32px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
    }

    .cart-page-body .empty-illustration {
        width: 150px;
        height: 150px;
        margin-bottom: 22px;
        border: 1px solid #fed7c7;
        box-shadow: 0 16px 36px rgba(255, 90, 31, .12);
    }

    .cart-page-body .empty-illustration svg {
        width: 68px;
        height: 68px;
    }

    .cart-page-body .empty-state h1 {
        font-size: 30px;
    }

    .cart-page-body .empty-state p {
        font-size: 15px;
    }

    .cart-page-body .cart-empty-cta {
        width: min(420px, 100%);
        margin: 0 auto;
    }

    .cart-page-body .cart-item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
        border-radius: 24px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    }

    .cart-page-body .cart-item img {
        width: 112px;
        height: 112px;
        border-radius: 18px;
    }

    .cart-page-body .cart-item h3 {
        font-size: 18px;
    }

    .cart-page-body .cart-item p {
        font-size: 14px;
    }

    .cart-page-body .price-summary,
    .cart-page-body .checkout-card {
        border-radius: 24px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    }

    #cart-fixed-bottom-action {
        bottom: calc(28px + 88px + var(--safe-bottom));
        width: min(460px, calc(100vw - 96px));
    }
}
