/*
 * FoodBayana Customer Frontend UI 样式控制文件
 *
 * 排列方式：电脑版（默认）→ 平板版 → 手机版 → 打印。
 * 这里只控制 Customer Frontend，不用于 Kiosk 或 Admin 页面。
 * 视觉调整请修改本文件，不需要同步修改 custom.css。
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Playfair+Display:wght@700&family=Poppins:wght@400;600;700&display=swap');

/* ==================================================
   1. 电脑版样式（默认）
   ================================================== */

/* 控制顾客前台共用的颜色和主题变量的布局、尺寸和外观。 */

:root {
    --primary: #daf4c9;
    --primary-dark: #a7d08b;
    --accent: #8ec07c;
    --bg: #f7faf5;
    --surface: #ffffff;
    --muted: #6e7b63;
    --text: #083B25;
    --border: rgba(138, 188, 117, 0.25);
}

/* 为所有元素及其装饰层添加不占用内容空间的装饰图层。 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 控制顾客前台页面主体的布局、尺寸和外观。 */

body {
    font-family: "Poppins","Noto Sans SC","Maiandra GD", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}

body.layout-shell:not(.kiosk-shell),
body.layout-shell:not(.kiosk-shell) > main {
    background-color: var(--bg);
}

/* 统一控制网页根元素及相关元素的布局和外观。 */

html,
html body {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

/* 控制顾客前台页面的整体框架内直属项目的排列和尺寸。 */

.layout-shell > main {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
}

/* 控制内容容器的布局、尺寸和外观。 */

.layout-shell .container {
    max-width: 1220px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Give the customer Checkout page its own wider desktop canvas. */
.layout-shell .container.container--checkout {
    max-width: 1400px;
}

/* 控制首页显示档口资料的卡片的布局、尺寸和外观。 */

.store-card {
    max-width: 100%;
    overflow: hidden;
}

/* 控制页面中的所有链接的布局、尺寸和外观。 */

a {
    color: inherit;
}

/* 控制固定在页面顶部的导航区域的布局、尺寸和外观。 */

.sticky-header {
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
}

/* 控制顶部白色顾客导航栏的布局、尺寸和外观。 */

.customer-nav {
    border-radius: 29px 29px 46px 46px;
    padding: 0.9rem 1.3rem;
    background: #ffffff;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.25);
    border: 2.5px solid #FFC000;
    border-top-color: #f6e9c7;
    position: relative;
    gap: 1rem;
}

/* 控制顾客前台页面的整体框架的布局、尺寸和外观。 */

.layout-shell main {
    padding-top: 7.5rem;
}

/* 控制固定在页面底部的购物车栏外层的布局、尺寸和外观。 */

.floating-cart-bar-wrap {
    position: fixed;
    left: 5rem;
    right: 5rem;
    bottom: 0px;
    z-index: 1180;
    pointer-events: none;
}

/* 控制弹窗背景遮罩的布局、尺寸和外观。 */

.modal-backdrop {
    z-index: 1390;
    --bs-backdrop-opacity: 1;
    background: rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(2px);
}

/* 控制弹窗的布局、尺寸和外观。 */

.modal {
    z-index: 1400;
}

/* 弹窗打开时锁住页面滚动，并阻止弹窗滚动到边界后带动首页。 */

html:has(body.modal-open),
body.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.modal-open .modal,
#menuAddModal .menu-modal__body {
    overscroll-behavior: contain;
}

@media (min-width: 769px) {
    #menuAddModal {
        scrollbar-gutter: stable both-edges;
    }
}

/* 控制页面底部的购物车快捷栏的布局、尺寸和外观。 */

.floating-cart-bar {
    pointer-events: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    background: linear-gradient(to right,#c6ecad, #f6bb76, #ffb35b);
    color: #285f58;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
    min-height: 44px;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 控制浮动购物车文字的布局、尺寸和外观。 */

#floatingCartText{
    color:white;
}

/* 控制浮动购物车金额的布局、尺寸和外观。 */

#floatingCartAmount{
    color:white;
}

/* 鼠标悬停或键盘聚焦页面底部的购物车快捷栏时，提供可操作反馈。 */

.floating-cart-bar:hover,
.floating-cart-bar:focus-visible {
    color: #285f58;
    background: linear-gradient(to right,#c6ecad, #f6bb76, #ffb35b);
    transform: translateY(-1px) scale(1.012);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
    filter: none;
}

.floating-cart-bar:active {
    color: #285f58;
    background: linear-gradient(to right,#c6ecad, #f6bb76, #ffb35b);
    transform: translateY(-1px) scale(0.985);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
    filter: none;
    transition-duration: 0.1s;
}

/* 控制购物车栏左右两侧的内容组合区的布局、尺寸和外观。 */

.floating-cart-bar__side {
    display: contents;
}

.floating-cart-bar .floating-cart-bar__cart-icon {
    transform: translateY(0px);
    width: 25px;
    height: 25px;
}

/* 统一控制购物车栏中的主要提示文字及相关元素的布局和外观。 */

.floating-cart-bar__text,
.floating-cart-bar__amount {
    font-weight: 700;
    white-space: nowrap;
}

/* 控制购物车栏中的主要提示文字的布局、尺寸和外观。 */

.floating-cart-bar__text {
    grid-column: 2;
    justify-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 控制购物车栏右侧的订单金额的布局、尺寸和外观。 */

.floating-cart-bar__amount {
    grid-column: 3;
    justify-self: end;
    font-size: 0.98rem;
    flex: 0 0 auto;
    color: #e48a2a;
}

/* 控制导航栏左侧的品牌 Logo 区域的布局、尺寸和外观。 */

.brand-identity {
    padding: 0.35rem 0.5rem;
    gap: 0.6rem;
}

/* 控制导航栏左侧的文字 Logo的布局、尺寸和外观。 */

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: #1e6c65;
    letter-spacing: -0.015em;
    width: 180px;
    margin-left: 0.7rem;
}

/* 控制导航栏中央的蝴蝶的布局、尺寸和外观。
   蝴蝶占据 Logo 与右侧按钮之间剩下的空间，并只在其中飞行；
   不论访客有几个按钮，它都不会飞到按钮上，也不会挡住点击。
   所有元素默认都是可见的，动画只负责让它动起来——
   即使动画没有播放，看到的也是一幅完整的静止画面。 */

.brand-butterfly {
    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 46px;
    margin: 0 1rem;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(7px);
}

/* 飞行范围：在空隙中居中，最宽 190px，空隙变窄时跟着缩小。 */

.brand-butterfly__lane {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(100%, 190px);
    transform: translateX(-50%);
}

/* 水平移动：轨道比飞行范围窄一只蝴蝶的宽度，平移自身宽度的 0%–100%，
   蝴蝶就刚好从一端飞到另一端，范围怎么缩放都不会越界。 */

.brand-butterfly__track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(100% - 28px);
    animation: brand-butterfly-drift 22s ease-in-out var(--lag, 0s) infinite;
}

/* 上下起伏，节奏与水平移动不同，让路线显得自然。 */

.brand-butterfly__bob {
    position: absolute;
    top: 10px;
    left: 0;
    width: 28px;
    height: 25px;
    animation: brand-butterfly-bob 3.4s ease-in-out var(--lag, 0s) infinite alternate;
}

/* 飞到两端时转身，面向飞行的方向。 */

.brand-butterfly__orient {
    display: block; /* 这些是 <span>，默认为行内元素，不设为 block 就没有宽高。 */
    width: 100%;
    height: 100%;
    animation: brand-butterfly-orient 22s ease-in-out var(--lag, 0s) infinite;
}

/* 从带星星的原图中只裁出蝴蝶本身，并让翅膀拍动。 */

.brand-butterfly__wings {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 546.15% auto;
    background-position: 0% 89.25%;
    transform-origin: 48% 56%;
    animation: brand-butterfly-flap 1.8s linear infinite;
}

/* 跟在蝴蝶身后的金色光尘。 */

.brand-butterfly__dust {
    position: absolute;
    top: 58%;
    left: 45%;
    width: var(--dot);
    height: var(--dot);
    border-radius: 50%;
    background: radial-gradient(circle, #fffbe2 0%, #fcd75e 60%, rgba(252, 215, 94, 0) 100%);
    box-shadow: 0 0 5px 1px rgba(252, 215, 94, .5);
    opacity: var(--glow);
}

/* 各自闪烁的星星。 */

.brand-butterfly__spark {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--s);
    height: var(--s);
    filter: drop-shadow(0 0 2px rgba(252, 215, 94, .85));
    animation: brand-butterfly-twinkle 3.2s ease-in-out var(--d) infinite;
}

.brand-butterfly__spark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #fdf889 0 32%, #fcd75e 62%);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

@keyframes brand-butterfly-drift {
    0% { transform: translateX(0%); }
    18% { transform: translateX(46%); }
    24% { transform: translateX(40%); }
    40% { transform: translateX(100%); }
    50% { transform: translateX(100%); }
    68% { transform: translateX(52%); }
    74% { transform: translateX(58%); }
    90% { transform: translateX(0%); }
    100% { transform: translateX(0%); }
}

@keyframes brand-butterfly-orient {
    0%, 42% { transform: scaleX(1); }
    48%, 92% { transform: scaleX(-1); }
    98%, 100% { transform: scaleX(1); }
}

@keyframes brand-butterfly-bob {
    from { transform: translateY(-5px) rotate(-6deg); }
    to { transform: translateY(4px) rotate(4deg); }
}

/* 连拍三下，再滑翔一段。 */

@keyframes brand-butterfly-flap {
    0% { transform: scaleX(1); }
    7% { transform: scaleX(.36) scaleY(1.03); }
    14% { transform: scaleX(1); }
    21% { transform: scaleX(.36) scaleY(1.03); }
    28% { transform: scaleX(1); }
    35% { transform: scaleX(.42) scaleY(1.02); }
    42% { transform: scaleX(1); }
    70% { transform: scaleX(.86); }
    100% { transform: scaleX(1); }
}

@keyframes brand-butterfly-twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: .25; transform: scale(.5) rotate(45deg); }
}

/* 选择减少动态效果的访客：静止、完整的一幅画。 */

@media (prefers-reduced-motion: reduce) {
    .brand-butterfly__track,
    .brand-butterfly__bob,
    .brand-butterfly__orient,
    .brand-butterfly__wings,
    .brand-butterfly__spark {
        animation: none;
    }

    .brand-butterfly__track--dust {
        display: none;
    }
}

/* 控制导航栏右侧的操作按钮区域的布局、尺寸和外观。 */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 控制导航栏使用的圆角操作按钮的布局、尺寸和外观。 */

.nav-pill {
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border: none;
    background: linear-gradient(135deg, #ffb45c, #f08d2d);
    color: #fff;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    min-height: 44px;

}

/* 控制导航栏中的购物车按钮的布局、尺寸和外观。 */

.nav-pill--cart {
    background: linear-gradient(90deg, #FFB45B 0%,#FF8C3A 40%,  #FF8C3A 100%);
    box-shadow: 0px 3px 3px -1px rgba(0, 0, 0, 0.4);
    min-width: 180px;
    align-items: center;
}

/* 让购物车图标与 Cart 数量文字保持在同一条垂直中心线上。 */
.nav-pill--cart .nav-pill__icon--image {
    transform: translateY(-2px);
}
.nav-pill--cart [data-nav-cart-label] {
    align-self: center;
}

.nav-pill--cart [data-nav-cart-label] {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* 控制导航栏中的登录按钮的布局、尺寸和外观。 */

.nav-pill--login {
    background: linear-gradient(110deg, #c6ecad 0%,#FFB45B 30%,  #FFB45B 100%);
    box-shadow: 0px 3px 3px -1px rgba(0, 0, 0, 0.4);
    min-width: 110px;
    max-height: 10px;
}

/* 鼠标悬停或键盘聚焦导航栏使用的圆角操作按钮时，提供可操作反馈。 */

/* Keep the authenticated account trigger visually identical to Login on tablet and desktop. */
@media (min-width: 577px) {
    .sticky-header:not(.kiosk-header) .nav-account-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 110px;
        min-width: 110px;
        max-width: 110px;
        min-height: 44px;
        max-height: 44px;
        padding: 0.7rem 1.6rem !important;
        border: none !important;
        border-radius: 999px !important;
        background: linear-gradient(110deg, #c6ecad 0%, #FFB45B 30%, #FFB45B 100%) !important;
        color: #fff !important;
        box-shadow: 0px 3px 3px -1px rgba(0, 0, 0, 0.4);
        font-size: 1rem;
        font-weight: 700 !important;
        line-height: 1.5;
        white-space: nowrap;
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    }

    .sticky-header:not(.kiosk-header) .nav-account-trigger__label {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sticky-header:not(.kiosk-header) .nav-account-trigger:hover,
    .sticky-header:not(.kiosk-header) .nav-account-trigger:focus-visible,
    .sticky-header:not(.kiosk-header) .nav-account-trigger[aria-expanded="true"] {
        background: linear-gradient(110deg, #c6ecad 0%, #FFB45B 30%, #FFB45B 100%) !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        filter: brightness(1);
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .sticky-header:not(.kiosk-header) .nav-account-trigger {
        padding: 0.55rem 1.1rem !important;
        font-size: 0.95rem;
    }
}

.nav-pill:hover{
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    filter: brightness(1);
}
.nav-pill:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    filter: brightness(1);
}

/* 控制导航按钮内的图标的布局、尺寸和外观。 */

.nav-pill__icon {
    font-size: 1rem;
}

/* 控制购物车按钮中自定义 SVG 图标的显示尺寸，并保持原始比例。 */
.nav-pill__icon--image {
    display: block;
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    flex: 0 0 auto;
}

/* 导航栏使用的圆角操作按钮获得输入焦点时，显示清楚的焦点反馈。 */

.nav-pill:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 163, 72, 0.28);
}

/* 首页搜索区域 */

/* 控制首页搜索结果内容区的布局、尺寸和外观。 */

.home-search-content {
    transition: opacity 0.18s ease;
}

/* 首页搜索结果内容区正在载入或提交时，阻止重复操作并显示载入状态。 */

.home-search-content.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 控制首页的菜单和档口搜索卡片的布局、尺寸和外观。 */

.search-card {
    background: linear-gradient(120deg, #fcebd4 0% ,#F7FAF5 43%, #EFF9E2 90%);
    border-radius: 28px;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.25);
    border: none;
    overflow: hidden;
    overflow: clip;
}

/* 控制搜索卡片内的白色输入栏的布局、尺寸和外观。 */

.search-card__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 20px;
    max-height: 46px;
    width:auto;
    margin-top:0px;
    margin-left:0px;
    margin-right:0px;
}


/* 控制搜索输入栏左侧的放大镜图标的布局、尺寸和外观。 */

.search-card__icon {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: #3a4f4a;
    font-size: 1.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* 控制用于输入菜单或档口关键词的搜索框的布局、尺寸和外观。 */

.search-card__input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
    min-height: 44px;
}

/* 用于输入菜单或档口关键词的搜索框获得输入焦点时，显示清楚的焦点反馈。 */

.search-card__input:focus {
    outline: none;
}

/* 控制搜索条件标签的分组区域的布局、尺寸和外观。 */

.search-chip-group {
    margin-top: 1rem;
}

/* 控制搜索条件标签的分组区域的次要版本的布局、尺寸和外观。 */

.search-chip-group--secondary {
    padding-top: 0.8rem;
}

/* 电脑版首页筛选面板不显示 All Category / All Stall 上方分割线。 */
@media (min-width: 577px) {
    .chip-filter-stack > .search-chip-group--secondary {
        border-top: 0;
    }

}

.chip-filter-stack {
    position: relative;
    display: flow-root;
}

.chip-filter-stack::before {
    content: "";
    position: absolute;
    top: 3.5rem;
    bottom: 1.5rem;
    left: calc(8rem + 1.5rem);
    z-index: 2;
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* 将固定的 All 标签与右侧独立滚动视口分开。 */
.chip-filter-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    min-width: 0;
    padding-right: 2.6rem;
}


.chip-filter-row > .search-chip {
    flex: 0 0 auto;
    width: 8rem;
}

.stall-filter-controls {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding-right: 0.5rem;
}

.stall-filter-controls .stall-chip-nav {
    flex: 1 1 auto;
    width: 100%;
}

.stall-filter-expand {
    position: absolute;
    top: 14px;
    right: 0.5rem;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    max-width: 1.5rem;
    height: 2rem;
    padding: 0;
    border:none;
    border-radius: 50%;
    background: transparent;
    color: #083B25;
    box-shadow: none;
    /* flex: 0 0 2.5rem; Disabled because the button now floats above the track. */
    cursor: pointer;
}

.stall-filter-expand:hover,
.stall-filter-expand:focus-visible {
    transform: none;
}

.stall-filter-expand:focus-visible {
    outline: 2px solid #1f2725;
    outline-offset: 2px;
}

.stall-filter-expand i {
    transition: transform 180ms ease;
    font-size: 14px;
    -webkit-text-stroke: 0.6px currentColor;
}


.stall-filter-controls.is-expanded {
    align-items: start;
}

.stall-filter-controls.is-layout-animating {
    align-items: start;
}

.stall-filter-controls.is-expanded .chip-filter-row--stall {
    align-items: start;
}

.stall-filter-controls.is-expanded .chip-filter-row--stall > .search-chip {
    margin-top: 0.625rem;
}

.stall-filter-controls.is-layout-animating .chip-filter-row--stall > .search-chip {
    animation: none;
    transition: none;
    transform: none;
    rotate: 0deg;
}

.stall-filter-controls.is-layout-animating .chip-track--stall > a:first-child {
    animation: none;
    transition: none;
    transform: none;
    rotate: 0deg;
}

.stall-filter-controls.is-expanded .chip-track--stall {
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
    cursor: default;
    touch-action: auto;
}

.stall-filter-controls.is-expanded .chip-track--stall > a {
    flex: 0 0 auto;
}

.stall-filter-controls.is-expanded .stall-filter-expand i {
    transform: rotate(180deg);
}

.chip-filter-row > .search-chip,
.chip-track--category > a,
.chip-track--stall > a {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    box-sizing: border-box;
}

.chip-filter-row > .chip-track {
    width: 100%;
    min-width: 0;
    padding-left: 0.65rem;
    /* border-left: 1px solid rgba(0, 0, 0, 0.2); */
}

.chip-filter-row .chip-track__divider {
    display: none;
}

/* 控制可横向滚动的筛选标签列表的布局、尺寸和外观。 */

.chip-track {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    contain: paint;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 控制筛选标签分组之间的分隔线的布局、尺寸和外观。 */

.chip-track__divider {
       width: 0.2px;
    background: rgba(0, 0, 0, 0.3);
    align-self: stretch;
    flex-shrink: 0;
    opacity: .25;
}

/* 控制用于选择档口的横向标签列表的布局、尺寸和外观。 */

.chip-track--stall,
.chip-track--category {
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    margin-bottom: 0;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    align-items: center;
}

/* 控制搜索区域内可点击的筛选标签的布局、尺寸和外观。 */

/*
.chip-track--stall .search-chip {
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.25);
}
*/
.chip-track--category .search-chip {
    flex: 0 0 auto;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.2);
    min-width: 125px;
}

.chip-track--category .search-chip:not([data-pork-status]) {
    border: none;
}

/* 拖动用于选择档口的横向标签列表时，切换鼠标指针和交互状态。 */

.chip-track--stall.dragging,
.chip-track--category.dragging {
    cursor: grabbing;
}

/* 控制用于选择档口的横向标签列表内直属项目的排列和尺寸。 */

.chip-track--stall > a,
.chip-track--category > a {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-bottom: 0;
    box-sizing: border-box;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* 统一控制热门商品横向商品带的横向滚动版本及相关元素的布局和外观。 */

.popular-strip--scroll,
.menu-card-row--scroll {
    scroll-behavior: smooth;
}

/* Item rows update scrollLeft continuously while dragging; smooth causes each update to queue. */
.menu-card-row--scroll {
    scroll-behavior: auto;
}

/* Keep vertical page scrolling available while JavaScript handles intentional horizontal drags. */
[data-scroll-edge-feedback].popular-strip--scroll,
[data-scroll-edge-feedback].menu-card-row--scroll {
    scroll-behavior: auto;
    scroll-snap-type: none;
    touch-action: pan-y;
}

/* Move only the scroll content for edge resistance, keeping the viewport and page layout fixed. */
[data-scroll-edge-feedback] > * {
    translate: var(--scroll-edge-pull-x, 0px) 0;
}

[data-scroll-edge-feedback].is-edge-pulled > *,
[data-scroll-edge-feedback].is-edge-rebounding > * {
    will-change: translate;
}

@media (prefers-reduced-motion: reduce) {
    [data-scroll-edge-feedback] > * {
        translate: 0 0;
    }
}

/* 控制档口筛选标签的可滚动导航容器的布局、尺寸和外观。 */

.stall-chip-nav {
    display: block;
    overflow: hidden;
    min-width: 0;
}

/* 控制档口筛选标签的可滚动导航容器内直属项目的排列和尺寸。 */

.stall-chip-nav > [data-stall-chip-track] {
    min-width: 0;
    width: 100%;
}

/* Keep Popular/Best Seller cards aligned while reserving room for edge shadows. */
.list-scroll-nav--popular {
    margin-inline: -4px;
    padding-inline: 4px;
}

@media (min-width: 769px) {
    .store-card--item-scroll > .list-scroll-nav--menu {
        width: max-content;
        min-width: 100%;
        border-radius: 28px;
        overflow: hidden;
        padding: 0;
        /* Temporary movement diagnostic is disabled.
        background: repeating-linear-gradient(
            135deg,
            rgba(255, 214, 10, 0.55) 0,
            rgba(255, 214, 10, 0.55) 24px,
            rgba(255, 152, 0, 0.35) 24px,
            rgba(255, 152, 0, 0.35) 48px
        );
        box-shadow: inset 0 0 0 3px #ff7a00;
        */
    }

    .store-card--item-scroll > .list-scroll-nav--menu > .menu-card-row {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
        overflow: visible;
        padding: 0 4px 5px;
    }

    .store-card__title-row {
        min-height: 64px;
    }

    /* 控制首页的菜单和档口搜索卡片的布局、尺寸和外观。 */
    .search-card {
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .store-card--item-scroll > .list-scroll-nav--menu {
        width: max-content;
        min-width: 100%;
        overflow: hidden;
        padding: 0;
    }

    .store-card--item-scroll > .list-scroll-nav--menu > .menu-card-row {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
        overflow: visible;
        padding: 4px 4px 14px;
    }
}

.store-card-scroll-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    min-width: 0;
    box-sizing: content-box;
    margin: -4px;
    padding: 4px;
}

.store-card-scroll-viewport > .store-card.store-card--item-scroll {
    width: max-content;
    min-width: 100%;
    max-width: none;
    overflow: visible;
}

.store-card--item-scroll > .store-card__header {
    /* Fixed header mode is disabled so the complete green store card moves as one unit.
    position: sticky;
    left: 36px;
    z-index: 2;
    */
    position: static;
    left: auto;
    z-index: auto;
    width: 100%;
    flex-shrink: 0;
}

/* 隐藏可横向滚动的筛选标签列表的浏览器滚动条，同时保留滚动功能。 */

.chip-track::-webkit-scrollbar {
    display: none;
}

/* 控制搜索区域内可点击的筛选标签的布局、尺寸和外观。 */

.search-chip {
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    padding: 0.45rem 1.05rem;
    border: 1.6px solid #1f1f1f;
    background: #f7f7f5;
    color: #083B25;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

/* 鼠标悬停或键盘聚焦搜索区域内可点击的筛选标签时，提供可操作反馈。 */

.search-chip:hover,
.search-chip:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.3);
}

/* 搜索区域内可点击的筛选标签成为当前选项时，显示激活状态。 */

.search-chip.is-active {
    background: #FFEDAF;
}

/* 控制搜索区域内可点击的筛选标签的淡色版本的布局、尺寸和外观。 */

.search-chip--ghost {
    background: #fef2e3;
}

/* 控制搜索区域内可点击的筛选标签的弱化版本的布局、尺寸和外观。 */

.search-chip--muted {
    border: none;
    background: #FFFFFF;
}

.chip-track--category .search-chip[data-pork-status="1"],
.chip-track--stall .search-chip[data-pork-status="1"] {
    border-color: #A9D18E;
    border-width: 1px;
    background: #F1FAE6;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.25);
}

.chip-track--category .search-chip[data-pork-status="0"],
.chip-track--stall .search-chip[data-pork-status="0"] {
    border-color: #FFD49F;
    border-width: 1px;
    background: #FFF7EB;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.25);

}

.chip-filter-stack .search-chip.is-active {
    background: #fcf1ca;
    border: none;
}

/* 控制用于清除筛选条件的按钮的布局、尺寸和外观。 */

.search-chip--clear {
    background: #e3f2de;
    border-color: #1f1f1f;
    color: #083B25;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.35rem 0.75rem;
    min-width: 38px;
    min-height: 38px;
}

/* 鼠标悬停或键盘聚焦用于清除筛选条件的按钮时，提供可操作反馈。 */

.search-chip--clear:hover,
.search-chip--clear:focus-visible {
    background: #b5d7b3;
}

/*
@media (min-width: 992px) {
    .floating-cart-bar-wrap {
        display: none !important;
    }
}
*/

@media (min-width: 992px) {
    /* 电脑版购物车有商品时，覆盖旧样式中的强制隐藏规则。 */
    .floating-cart-bar-wrap {
        --floating-cart-left-gap: 5rem;
        --floating-cart-right-gap: 5rem;
        --floating-cart-max-width: 1220px;
        left: max(
            var(--floating-cart-left-gap),
            calc((100vw - var(--floating-cart-max-width)) / 2)
        );
        right: max(
            var(--floating-cart-right-gap),
            calc((100vw - var(--floating-cart-max-width)) / 2)
        );
        width: auto;
        max-width: none;
        box-sizing: border-box;
        transform: none;
        /* Centered max-width mode is disabled; uncomment to restore it.
        left: 50%;
        right: auto;
        width: calc(100% - 6rem);
        max-width: 1220px;
        box-sizing: border-box;
        transform: translateX(-50%);
        */
    }

    .floating-cart-bar-wrap:not(.d-none) {
        display: block !important;
    }
}

/* 控制首页顶部的宣传图片轮播区的布局、尺寸和外观。 */

/* Slide the homepage View your cart region below the viewport when it should stay out of the way. */
.floating-cart-bar-wrap--home {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    will-change: transform, opacity;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease,
        visibility 0s linear 0s;
}

.floating-cart-bar-wrap--home.is-slide-hidden,
.floating-cart-bar-wrap--home.is-cart-empty {
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 1.5rem));
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease,
        visibility 0s linear 0.38s;
}

@media (prefers-reduced-motion: reduce) {
    .floating-cart-bar-wrap--home,
    .floating-cart-bar-wrap--home.is-slide-hidden,
    .floating-cart-bar-wrap--home.is-cart-empty {
        transition: none;
    }
}

.home-slider {
    width: 100%;
    /* background: linear-gradient(135deg, #fff7e9, #e8f2e6); */
    border-radius: 30px;
    /* box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.05); */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1.5rem;
}

/* 沿着首页大图的透明轮廓显示影子，不给图片外框添加影子。 */

.home-slider__carousel .carousel-inner img,
.home-slider__placeholder img {
    box-shadow: none !important;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.4));
}


/* 统一控制轮播图内层内图片的尺寸和裁切方式及相关元素的布局和外观。 */

.home-slider__carousel .carousel-inner img,
.home-slider__placeholder img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
}

/* Keep the banner's rounded edge on its frame so wide artwork is not clipped by a percentage-based image radius. */
.home-slider__carousel .carousel-inner,
.home-slider__placeholder {
    border-radius: clamp(28px, 6vw, 72px) !important;
    overflow: hidden;
}

.home-slider__carousel .carousel-inner {
    cursor: grab;
    touch-action: pan-y;
}

.home-slider__carousel.is-mouse-dragging .carousel-inner {
    cursor: grabbing;
    user-select: none;
}

.home-slider__carousel .carousel-inner img {
    -webkit-user-drag: none;
    user-select: none;
}

@media (min-width: 769px) {
    .home-slider__carousel .carousel-inner,
    .home-slider__placeholder {
        width: 100%;
        height: min(50vw, 500px);
    }

    .home-slider__carousel .carousel-item,
    .home-slider__carousel .home-slider__link,
    .home-slider__carousel picture {
        display: block;
        height: 100%;
    }

    .home-slider__carousel .carousel-inner img,
    .home-slider__placeholder img {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
}

/* 控制轮播图没有内容时显示的占位区域的布局、尺寸和外观。 */

.home-slider__placeholder {
    /* background: linear-gradient(135deg, #fff1d6, #e2f0e4); */
    padding: 0;
    overflow: visible;
}

/* 控制轮播图轮播页码的布局、尺寸和外观。 */

.home-slider__carousel .carousel-indicators [data-bs-target] {
    background-color: rgba(15, 23, 42, 0.18);
    width: 12px;
    height: 6px;
    border-radius: 999px;
}

/* 轮播图轮播页码成为当前选项时，显示激活状态。 */

.home-slider__carousel .carousel-indicators .active {
    background-color: var(--accent);
}

/* 控制包住整张宣传图的跳转链接的布局、尺寸和外观。 */

.home-slider__link {
    display: block;
}

/* 菜单搜索与筛选区域 */

/* 控制顾客账户页面的内容外框的布局、尺寸和外观。 */

.account-shell {
    max-width: 1100px;
    margin: 0 auto;
}

/* 控制顾客账户页面的标题区域的布局、尺寸和外观。 */

.account-header {
    margin-bottom: 1.5rem;
}

/* 统一控制顾客账户页面的标题区域内标题文字的大小和间距及相关元素的布局和外观。 */

.account-header h4,
.account-header h5 {
    font-weight: 700;
    color: #052518;
}

/* 控制顾客账户页面的标题区域内说明文字的大小和颜色的布局、尺寸和外观。 */

.account-header p {
    color: var(--muted);
    margin-bottom: 0.35rem;
}

/* 控制顾客账户页面的白色内容卡片的布局、尺寸和外观。 */

.account-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(218, 244, 201, 0.45));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* 统一控制表单控制项及相关元素的布局和外观。 */

.account-card .form-control,
.account-card .pill-input,
.account-card select {
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

/* 表单控制项获得输入焦点时，显示清楚的焦点反馈。 */

.account-card .form-control:focus,
.account-card .pill-input:focus,
.account-card select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.08);
}

/* 控制账户页面的主要操作按钮的布局、尺寸和外观。 */

.account-primary-btn {
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f7c46a, #f29a30);
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

/* 控制账户页面的次要操作按钮的布局、尺寸和外观。 */

.account-secondary-btn {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.85);
    color: #052518;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* 控制账户页面的次要操作按钮的SM版本的布局、尺寸和外观。 */

.account-secondary-btn.account-secondary-btn--sm {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}

/* 控制账户钱包的余额卡片的布局、尺寸和外观。 */

.account-balance-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 控制钱包卡片显示的余额金额的布局、尺寸和外观。 */

.account-balance-value {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
}

/* 控制账户页面的数据表格的表格尺寸和排列的布局、尺寸和外观。 */

.account-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

/* 控制账户页面的数据表格的表头区域的布局、尺寸和外观。 */

.account-table thead {
    background: rgba(15, 23, 42, 0.05);
}

/* 控制账户页面的数据表格的表头单元格的布局、尺寸和外观。 */

.account-table th {
    font-weight: 600;
    color: var(--muted);
    border-bottom: none;
}

/* 控制账户页面的数据表格的资料单元格的布局、尺寸和外观。 */

.account-table td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

/* 控制账户页面的数据表格的资料单元格的布局、尺寸和外观。 */

.account-table tbody tr:last-child td {
    border-bottom: none;
}

/* 控制顾客订单记录页面的布局、尺寸和外观。 */

.account-orders-page {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.account-orders-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: 1.25rem;
    padding: 0.35rem 0 0.2rem;
}

.account-orders-intro__kicker {
    margin: 0 0 0.35rem;
    color: #f09b35;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.account-orders-intro__title {
    margin: 0;
    color: #083b25;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.account-orders-intro__description {
    margin: 0.45rem 0 0;
    color: #716f68;
    line-height: 1.6;
}

.account-order-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    align-self: flex-start;
    gap: 0.25rem;
    padding: 0.28rem;
    border: 1px solid rgba(213, 189, 143, 0.38);
    border-radius: 999px;
    background: rgba(247, 244, 236, 0.94);
}

.account-order-tabs__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: #52655a;
    font-size: 0.8rem;
    font-weight: 750;
    white-space: nowrap;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.account-order-tabs__item:hover,
.account-order-tabs__item:focus-visible {
    color: #174b38;
}

.account-order-tabs__item.active {
    background: #f4a13d;
    color: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

/* 账户页面的次要操作按钮成为当前选项时，显示激活状态。 */

.account-orders-page .account-secondary-btn.active {
    background: linear-gradient(135deg, #ffd079, #f4a13d);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(244, 161, 61, 0.2);
}

/* 控制订单记录页面顶部的摘要区域的布局、尺寸和外观。 */

.account-orders-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.4rem;
    align-items: start;
    padding: clamp(1.4rem, 3vw, 1.9rem);
    overflow: hidden;
}

/* 控制订单记录页面顶部的摘要区域中的强调色装饰的布局、尺寸和外观。 */

.account-orders-hero__accent {
    position: absolute;
    right: 1.25rem;
    bottom: -0.85rem;
    width: 72px;
    opacity: 0.18;
    pointer-events: none;
}

/* 控制订单记录页面顶部的摘要区域中的主要内容区的布局、尺寸和外观。 */

.account-orders-hero__content {
    position: relative;
    z-index: 1;
}

/* 控制订单记录页面顶部的摘要区域中的标题上方的小字的布局、尺寸和外观。 */

.account-orders-hero__kicker {
    margin: 0 0 0.4rem;
    color: #f09b35;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* 控制订单记录页面顶部的摘要区域中的标题文字的布局、尺寸和外观。 */

.account-orders-hero__title {
    margin: 0;
    color: #083B25;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

/* 控制订单记录页面顶部的摘要区域中的说明文字的布局、尺寸和外观。 */

.account-orders-hero__copy {
    max-width: 44rem;
    margin: 0.6rem 0 0;
    color: #79766d;
    line-height: 1.7;
}

/* 控制订单记录页面顶部的摘要区域中的统计区的布局、尺寸和外观。 */

.account-orders-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.1rem;
}

/* 控制账户订单列表统计资料的布局、尺寸和外观。 */

.account-orders-stat {
    min-width: 122px;
    padding: 0.8rem 0.95rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(213, 189, 143, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

/* 控制账户订单列表统计资料中的字段名称文字的布局、尺寸和外观。 */

.account-orders-stat__label {
    display: block;
    color: #8b846f;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 控制账户订单列表统计资料中的主要数值的布局、尺寸和外观。 */

.account-orders-stat__value {
    display: block;
    margin-top: 0.3rem;
    color: #052518;
    font-size: 1.5rem;
    font-weight: 700;
}

/* 控制订单记录页面顶部的摘要区域中的提示的布局、尺寸和外观。 */

.account-orders-hero__notice {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(213, 189, 143, 0.34);
    color: #5a5d56;
    line-height: 1.5;
}

/* 控制订单记录页面顶部的摘要区域中的提示内图标的位置和尺寸的布局、尺寸和外观。 */

.account-orders-hero__notice-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    object-fit: contain;
}

/* 控制订单记录页面顶部的摘要区域中的操作按钮区域的布局、尺寸和外观。 */

.account-orders-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
    align-content: flex-start;
}

/* 控制账户订单分组的布局、尺寸和外观。 */

.account-order-summary-card {
    --account-order-solid-divider: 1px solid rgba(213, 189, 143, 0.32);
    overflow: hidden;
    padding: clamp(1rem, 2.4vw, 1.35rem);
    border: 1px solid rgba(213, 189, 143, 0.38);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}

.account-order-summary-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.account-order-summary-card__receipt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.account-order-summary-card__receipt-copy {
    min-width: 0;
}

.account-order-summary-card__date {
    margin: 0.25rem 0 0;
    color: #858177;
    font-size: 0.78rem;
    line-height: 1.4;
}

.account-order-summary-card__title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #083b25;
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.account-order-summary-card__receipt-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 0.55rem;
    line-height: 1;
}

.account-order-summary-card__receipt-arrow i {
    -webkit-text-stroke: 1.7px currentColor;
}

.account-order-detail-link__arrow {
    font-size: 0.5rem;
}

.account-order-detail-link__arrow i {
    -webkit-text-stroke: 1px currentColor;
}

.account-order-summary-card__receipt:hover .account-order-summary-card__title,
.account-order-summary-card__receipt:focus-visible .account-order-summary-card__title {
    text-decoration: underline;
}

.account-order-summary-card__receipt-icon {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(17%) sepia(24%) saturate(1693%) hue-rotate(102deg) brightness(98%) contrast(98%);
}

.account-order-summary-card__receipt-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    border-radius: 8px;
    background: #f5faf0;
}

.account-order-summary-card__overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding-left: 0.6rem;
    margin-top: 0.55rem;
    color: #706d65;
    font-size: 0.9rem;
}

.account-order-summary-card__overview strong {
    color: #2d4f40;
    font-weight: 800;
}

.account-order-summary-card__stalls {
    display: grid;
    margin-top: 1rem;
}

.account-order-stall-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.account-order-stall-summary__main {
    min-width: 0;
}

.account-order-stall-summary__item-list {
    display: grid;
    gap: 0.55rem;
}

.account-order-stall-summary__item-section {
    min-width: 0;
}

.account-order-stall-summary__item-section-group {
    min-width: 0;
}

.account-order-stall-summary__item-section-group + .account-order-stall-summary__item-section-group {
    margin-top: 0.35rem;
    padding-top: 0.95rem;
    border-top: var(--account-order-solid-divider);
}

.account-order-stall-summary__item-section--ready {
    padding: 0.65rem;
    border: 1px solid #d6e3ca;
    border-radius: 14px;
    background: #f6f8f4;
}

.account-order-stall-summary__section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.6rem 0.1rem;
    color: #7b7468;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.account-order-stall-summary__item-section-group--ready .account-order-stall-summary__section-label {
    color: #44743f;
}

.account-order-stall-summary__item-section-group--progress,
.account-order-stall-summary__item-section-group--completed {
    --account-order-muted-status-color: #66736b;
}

.account-order-stall-summary__item-section-group--progress .account-order-stall-summary__item-section,
.account-order-stall-summary__item-section-group--completed .account-order-stall-summary__item-section {
    padding-left: 0.4rem;
}

.account-order-stall-summary__item-section-group--progress .account-order-stall-summary__section-label,
.account-order-stall-summary__item-section-group--completed .account-order-stall-summary__section-label {
    color: var(--account-order-muted-status-color);
}

.account-order-stall-summary__section-icon {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    object-fit: contain;
    opacity: 0.56;
}

.account-order-stall-summary__item-section-group--progress .account-order-stall-summary__status,
.account-order-stall-summary__item-section-group--completed .account-order-stall-summary__status {
    border: 0;
    padding-inline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--account-order-muted-status-color);
    line-height: 1.2;
    text-align: center;
    white-space: pre-line;
}

.account-order-stall-summary__item-section-group--progress .account-order-stall-summary__status--awaiting-driver {
    text-align: right;
}

.account-order-stall-summary__item-section-group--progress .account-order-stall-summary__section-icon {
    transform: translateY(-1px);
}

.account-order-stall-summary__item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.35rem 0;
}

.account-order-stall-summary__item-row + .account-order-stall-summary__item-row {
    margin-top: 0rem;
    padding-top: 0.40rem;
}

.account-order-stall-summary__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.65rem;
}

.account-order-stall-summary__item-image {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: #f3f1eb;
    object-fit: cover;
}

.account-order-stall-summary__copy {
    min-width: 0;
}

.account-order-stall-summary__item-row h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #1e3f31;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.account-order-stall-summary__item-section-group--progress .account-order-stall-summary__item-row h3,
.account-order-stall-summary__item-section-group--completed .account-order-stall-summary__item-row h3 {
    font-weight: 650;
}

.account-order-stall-summary__item-row p {
    margin: 0.25rem 0 0;
    color: #8a857a;
    font-size: 0.78rem;
}

.account-order-stall-summary__status {
    min-height: 30px;
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
}

.account-order-stall-summary__item-action {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
}

.account-order-item-qr-link {
    min-height: 32px;
    padding: 0.38rem 0.65rem;
    text-transform: uppercase;
}

.account-order-item-qr-icon {
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    object-fit: contain;
}

.account-order-stall-summary__qr {
    display: flex;
    justify-content: flex-end;
    min-width: 155px;
}

.account-order-qr-link,
.account-order-qr-waiting {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 750;
    white-space: nowrap;
}

.account-order-qr-link {
    border: 1px solid rgba(49, 122, 104, 0.32);
    background: rgba(237, 249, 241, 0.94);
    color: #27634f;
}

.account-order-qr-link.account-order-item-qr-link {
    min-height: 28px;
    height: 28px;
    box-sizing: border-box;
    padding: 0 calc(0.75rem - 6px);
    border: 1px solid #417429;
    border-radius: 8px;
    background: #f4f7f1;
    color: #083b25;
    font-size: 0.55rem;
    font-weight: 750;
}

.account-order-qr-link.account-order-item-qr-link:hover,
.account-order-qr-link.account-order-item-qr-link:focus-visible {
    border-color: #417429;
    color: #083b25;
}

.account-order-qr-link.account-order-item-qr-link .account-order-item-qr-icon {
    filter: brightness(0) saturate(100%) invert(17%) sepia(24%) saturate(1693%) hue-rotate(102deg) brightness(98%) contrast(98%);
}

.account-order-qr-link:hover,
.account-order-qr-link:focus-visible {
    border-color: rgba(49, 122, 104, 0.55);
    color: #174b38;
}

.account-order-qr-waiting {
    background: #f7f4ec;
    color: #7a7468;
}

.account-order-summary-card__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
}

.account-order-group {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* 控制账户订单分组中的标题和操作区域的布局、尺寸和外观。 */

.account-order-group__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

/* 控制账户订单分组中的标题上方的提示文字的布局、尺寸和外观。 */

.account-order-group__eyebrow {
    margin: 0 0 0.35rem;
    color: #8d856f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 控制账户订单分组中的标题文字的布局、尺寸和外观。 */

.account-order-group__title {
    margin: 0;
    color: #052518;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* 控制账户订单分组中的辅助资料文字的布局、尺寸和外观。 */

.account-order-group__meta {
    margin: 0.55rem 0 0;
    color: #7b786f;
    line-height: 1.6;
}

/* 控制账户订单分组中的取餐号码列表的布局、尺寸和外观。 */

.account-order-group__queue-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

/* 控制账户订单垂直列表的布局、尺寸和外观。 */

.account-order-stack {
    display: grid;
    gap: 1rem;
}

.account-order-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(213, 189, 143, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #315f4b;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.account-order-detail-link:hover,
.account-order-detail-link:focus-visible {
    border-color: rgba(49, 122, 104, 0.45);
    color: #174b38;
    transform: translateY(-1px);
    box-shadow: none;
}

/* 控制账户订单状态的布局、尺寸和外观。 */

.account-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* 控制账户订单状态的PENDING版本的布局、尺寸和外观。 */

.account-order-status--pending {
    background: rgba(255, 247, 226, 0.96);
    border-color: rgba(226, 189, 115, 0.35);
    color: #8f661c;
}

/* 控制账户订单状态的烹煮中版本的布局、尺寸和外观。 */

.account-order-status--cooking {
    background: rgba(255, 241, 232, 0.96);
    border-color: rgba(229, 154, 112, 0.35);
    color: #a35527;
}

/* 控制账户订单状态的配送版本的布局、尺寸和外观。 */

.account-order-status--delivery {
    background: rgba(234, 244, 255, 0.96);
    border-color: rgba(109, 164, 224, 0.35);
    color: #336ea7;
}

/* 控制账户订单状态的可取餐版本的布局、尺寸和外观。 */

.account-order-status--ready {
    background: rgba(236, 249, 223, 0.96);
    border-color: rgba(132, 177, 91, 0.35);
    color: #44743f;
}

/* 控制账户订单状态的已完成版本的布局、尺寸和外观。 */

.account-order-status--done {
    background: rgba(239, 247, 229, 0.96);
    border-color: rgba(123, 171, 94, 0.35);
    color: #3f6f3f;
}

/* 控制账户订单状态的危险状态版本的布局、尺寸和外观。 */

.account-order-status--danger {
    background: rgba(255, 239, 236, 0.96);
    border-color: rgba(197, 112, 94, 0.35);
    color: #9c3f31;
}

/* 控制账户订单二维码外层容器的布局、尺寸和外观。 */

.account-order-qr-wrap {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(213, 189, 143, 0.38);
}

/* 控制账户订单二维码标题区域的布局、尺寸和外观。 */

.account-order-qr-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

/* 控制账户订单二维码卡片的布局、尺寸和外观。 */

.account-order-qr-grid .account-order-qr-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* 控制账户订单二维码标题的布局、尺寸和外观。 */

.account-order-qr-title {
    color: #052518;
    font-size: 1rem;
    font-weight: 700;
}

/* 控制账户订单二维码说明文字的布局、尺寸和外观。 */

.account-order-qr-copy {
    margin-top: 0.25rem;
    color: #7a7569;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* 控制账户订单二维码网格布局的布局、尺寸和外观。 */

.account-order-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

/* 控制账户订单二维码卡片的布局、尺寸和外观。 */

.account-order-qr-card {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(213, 189, 143, 0.28);
    box-shadow: 0 12px 24px rgba(36, 48, 42, 0.06);
}

/* 控制账户订单二维码卡片中的标题和操作区域的布局、尺寸和外观。 */

.account-order-qr-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

/* 控制账户订单二维码卡片中的字段名称文字的布局、尺寸和外观。 */

.account-order-qr-card__label {
    color: #052518;
    font-weight: 700;
    line-height: 1.35;
}

/* 控制账户订单二维码卡片中的辅助资料文字的布局、尺寸和外观。 */

.account-order-qr-card__meta {
    margin-top: 0.25rem;
    color: #8a8374;
    font-size: 0.82rem;
}

/* 控制账户订单二维码卡片中的内容外框的布局、尺寸和外观。 */

.account-order-qr-card__frame {
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed rgba(208, 188, 153, 0.72);
    border-radius: 26px;
    background: linear-gradient(180deg, #fffdf9, #fff7ed);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

/* 鼠标悬停或键盘聚焦账户订单二维码卡片中的内容外框时，提供可操作反馈。 */

.account-order-qr-card__frame:hover,
.account-order-qr-card__frame:focus-visible {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(36, 48, 42, 0.1);
}

/* 控制账户订单二维码卡片中的内容外框内 SVG 图标的尺寸的布局、尺寸和外观。 */

.account-order-qr-card__frame svg {
    width: min(100%, 220px);
    height: auto;
}

/* 控制账户订单二维码卡片中的主要数值的布局、尺寸和外观。 */

.account-order-qr-card__value {
    margin-top: 0.75rem;
    color: #888275;
    font-size: 0.78rem;
    line-height: 1.45;
    word-break: break-all;
}

/* 控制账户订单二维码卡片中的取餐标签文字的布局、尺寸和外观。 */

.account-order-qr-card__collect-label {
    margin-top: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: #f0ece3;
    border-radius: 8px;
    color: #5a5346;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

/* 控制账户订单二维码占位内容的布局、尺寸和外观。 */

.account-order-qr-placeholder {
    padding: 1.15rem 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffefb, #f8f4eb);
    border: 1px dashed rgba(213, 189, 143, 0.42);
    text-align: center;
}

/* 控制账户订单二维码占位内容内标题文字的大小和间距的布局、尺寸和外观。 */

.account-order-qr-placeholder h3 {
    margin: 0;
    color: #343734;
    font-size: 1rem;
    font-weight: 700;
}

/* 控制账户订单二维码占位内容内说明文字的大小和颜色的布局、尺寸和外观。 */

.account-order-qr-placeholder p {
    margin: 0.45rem auto 0;
    max-width: 24rem;
    color: #7b776d;
    line-height: 1.55;
}

/* 控制账户订单空状态的布局、尺寸和外观。 */

.account-order-empty {
    padding: 1.8rem 1.5rem;
    text-align: center;
}

/* 控制账户订单空状态中的标题上方的小字的布局、尺寸和外观。 */

.account-order-empty__kicker {
    margin: 0 0 0.45rem;
    color: #f09b35;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 控制账户订单空状态内标题文字的大小和间距的布局、尺寸和外观。 */

.account-order-empty h2 {
    margin: 0;
    color: #052518;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
}

/* 控制账户订单空状态内说明文字的大小和颜色的布局、尺寸和外观。 */

.account-order-empty p {
    max-width: 32rem;
    margin: 0.7rem auto 0;
    color: #77756c;
    line-height: 1.7;
}

/* 控制账户页面的主要操作按钮的布局、尺寸和外观。 */

.account-order-empty .account-primary-btn {
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 控制账户订单列表分页的布局、尺寸和外观。 */

.account-orders-pagination {
    margin-top: 0.2rem;
}

/* 控制分页的布局、尺寸和外观。 */

.account-orders-pagination .pagination {
    justify-content: center;
}

/* 控制分页的布局、尺寸和外观。 */

.layout-shell .pagination {
    --bs-pagination-border-width: 0;
    gap: 0.55rem;
    flex-wrap: wrap;
}

/* 控制页面项目的布局、尺寸和外观。 */

.layout-shell .page-item {
    display: inline-flex;
}

/* 控制页面链接的布局、尺寸和外观。 */

.layout-shell .page-link {
    min-width: 2.85rem;
    min-height: 2.85rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px !important;
    border: 1px solid rgba(240, 216, 159, 0.92);
    background: linear-gradient(180deg, #fffdf8 0%, #fff4df 100%);
    color: #335e56;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(240, 141, 45, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

/* 鼠标悬停或键盘聚焦页面链接时，提供可操作反馈。 */

.layout-shell .page-link:hover,
.layout-shell .page-link:focus {
    color: #234b44;
    background: linear-gradient(180deg, #fff9ef 0%, #ffe7be 100%);
    box-shadow: 0 14px 28px rgba(240, 141, 45, 0.18);
    transform: translateY(-1px);
}

/* 鼠标悬停或键盘聚焦页面链接时，提供可操作反馈。 */

.layout-shell .page-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 179, 91, 0.28), 0 14px 28px rgba(240, 141, 45, 0.18);
}

/* 页面链接成为当前选项时，显示激活状态。 */

.layout-shell .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, #ffb45c 0%, #f08d2d 52%, #d7efad 100%);
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(240, 141, 45, 0.24);
}

/* 页面链接不可操作时，显示禁用状态。 */

.layout-shell .page-item.disabled .page-link,
.layout-shell .page-link.disabled {
    color: #b8a98b;
    background: linear-gradient(180deg, #fcf8ef 0%, #f4ead6 100%);
    border-color: rgba(233, 220, 187, 0.9);
    box-shadow: none;
    opacity: 0.75;
}

/* 控制页面链接的布局、尺寸和外观。 */

.layout-shell .pagination-sm .page-link {
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}

/* 控制账户订单列表二维码弹窗中的内容外框的布局、尺寸和外观。 */

.account-orders-qr-modal__frame {
    width: 320px;
    height: 320px;
    max-width: 100%;
}

/* 控制账户订单列表二维码弹窗中的内容外框内 SVG 图标的尺寸的布局、尺寸和外观。 */

.account-orders-qr-modal__frame svg {
    width: min(100%, 290px);
    height: auto;
}

/* 控制账户订单列表二维码弹窗中的主要数值的布局、尺寸和外观。 */

.account-orders-qr-modal__value {
    color: #7b776d;
    line-height: 1.6;
}

.account-item-qr-dialog {
    max-width: 440px;
}

.account-item-qr-modal {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: #123e2d;
}

.account-item-qr-modal__header {
    position: relative;
    align-items: flex-start;
    padding: 1.2rem 1.35rem 1.15rem;
    border-bottom: 0;
}

.account-item-qr-modal__header::after {
    position: absolute;
    right: 1.35rem;
    bottom: 0;
    left: 1.35rem;
    height: 1px;
    content: '';
    background: rgba(36, 69, 54, 0.1);
}

.account-item-qr-modal__title {
    margin: 0;
    color: #123e2d;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.account-item-qr-modal__queue {
    margin-top: 0.28rem;
    color: #868b87;
    font-size: 0.76rem;
}

.account-item-qr-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0.05rem 0 0 auto;
    padding: 5px;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.account-item-qr-modal__close img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-item-qr-modal__body {
    padding: 2rem 1.4rem 1.35rem;
}

.account-item-qr-locker__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #416b55;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.account-item-qr-locker__eyebrow::before,
.account-item-qr-locker__eyebrow::after {
    width: 28px;
    height: 1px;
    content: '';
    background: rgba(65, 107, 85, 0.18);
}

.account-item-qr-locker__code {
    margin-top: 0.65rem;
    color: #063c26;
    font-size: clamp(2.8rem, 12vw, 4rem);
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.account-item-qr-locker__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 1rem 0 0;
    color: #858b86;
    font-size: 0.75rem;
}

.account-item-qr-locker__hint i {
    color: #75a46e;
    font-size: 0.95rem;
}

.account-item-qr-modal__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 238px;
    height: 238px;
    max-width: 100%;
    margin: 1.35rem auto 0;
    padding: 1rem;
    border: 1px solid rgba(34, 73, 54, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 65, 48, 0.035);
}

.account-item-qr-modal__frame svg {
    width: 100%;
    height: auto;
}

.account-item-qr-modal__instruction {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.8rem;
    padding: 1.4rem 0.55rem 0.15rem;
    border-top: 1px solid rgba(36, 69, 54, 0.09);
    color: #747b76;
    text-align: left;
}

.account-item-qr-modal__instruction i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    color: #78a66f;
    font-size: 1.05rem;
    line-height: 1;
}

.account-item-qr-modal__instruction p {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
}

/* 控制账户操作区的布局、尺寸和外观。 */

.account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* 控制区块标题的布局、尺寸和外观。 */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* 控制区块标题内标题文字的大小和间距的布局、尺寸和外观。 */

.section-heading h5 {
    font-weight: 700;
    margin: 0;
}

/* 控制胶囊按钮链接的布局、尺寸和外观。 */

.pill-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

/* 控制热门商品横向商品带的布局、尺寸和外观。 */

.popular-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
    overflow: visible;
    overscroll-behavior-x: contain;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏热门商品横向商品带的浏览器滚动条，同时保留滚动功能。 */

.popular-strip::-webkit-scrollbar {
    display: none;
}

/* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

.popular-card {
    width: 100%;
    height: 100%;
}

/* 控制热门商品区域中的商品卡片中的说明文字的布局、尺寸和外观。 */

.popular-card__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* 统一控制热门商品区域中的商品卡片中的状态标签内容行及相关元素的布局和外观。 */

.popular-card__badge-row,
.menu-card__badge-row {
    transform: translateY(-0px);
}

/* 控制热门商品区域中的商品卡片的档口版本的布局、尺寸和外观。 */

.popular-card--store {
    cursor: pointer;
}

.popular-card__thumb {
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.12);
}



.popular-card--store .popular-card__title {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* 控制热门商品区域中的商品卡片中的缩略图占位内容的布局、尺寸和外观。 */

.popular-card__thumb-placeholder {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 14px;
    background: #e8e5df;
    color: #6b6a68;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 控制档口列表网格布局的布局、尺寸和外观。 */

.stores-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 控制档口分类分组的布局、尺寸和外观。 */

.store-category-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 控制档口分类分组中的标题和操作区域的布局、尺寸和外观。 */

.store-category-group__header {
    margin-bottom: 0;
}

/* 控制档口分类分组中的链接的布局、尺寸和外观。 */

.store-category-group__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
}

/* 鼠标悬停或键盘聚焦档口分类分组中的链接时，提供可操作反馈。 */

.store-category-group__link:hover {
    color: #4caf50;
}

/* 控制档口分类分组中的标题文字的布局、尺寸和外观。 */

.store-category-group__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* 控制档口分类分组中的展开或移动箭头的布局、尺寸和外观。 */

.store-category-group__arrow {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    color: #999;
    transition: color 0.2s;
}

/* 鼠标悬停或键盘聚焦档口分类分组中的展开或移动箭头时，提供可操作反馈。 */

.store-category-group__link:hover .store-category-group__arrow {
    color: #4caf50;
}

/* 按档口分类显示的菜单区域 */

/* 控制档口分类区块的布局、尺寸和外观。 */

.store-category-section {
    display: block;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 3rem;
    padding-right: 3rem;
    margin-bottom: 1rem;
    transition: background 0.2s;
    color: inherit;
    padding-left: 30px;
    padding-right: 30px;
}

/* 鼠标悬停或键盘聚焦档口分类区块时，提供可操作反馈。 */

.store-category-section:hover {
    background: rgba(255, 255, 255, 0.85);
    color: inherit;
}

.store-category-section--expanded,
.store-category-section--expanded:hover {
    background: #F9FBF6;
    cursor: default;
}

/* 控制档口分类区块中的标题和操作区域的布局、尺寸和外观。 */

.store-card--focused.pork-surface--non-pork-free .store-category-section--expanded,
.store-card--focused.pork-surface--non-pork-free .store-category-section--expanded:hover {
    background: #ffffff;
}

.store-category-section--expanded .store-category-section__header {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.store-category-section--expanded .store-category-section__header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: #E0EAD9;
    /* Fade and taper effects are disabled; uncomment to restore them.
    background: linear-gradient(#E0EAD9);
    -webkit-clip-path: polygon(0 50%, 3% 0, 97% 0, 100% 50%, 97% 100%, 3% 100%);
    clip-path: polygon(0 50%, 3% 0, 97% 0, 100% 50%, 97% 100%, 3% 100%);
    */
}

.store-category-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

/* 控制档口分类区块中的标题文字的布局、尺寸和外观。 */

.store-category-section__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* 控制档口分类区块中的展开或移动箭头的布局、尺寸和外观。 */

.store-category-section__arrow {
    font-size: 1.2rem;
    font-weight: 700;
    color: #999;
    transition: color 0.2s;
}

/* 鼠标悬停或键盘聚焦档口分类区块中的展开或移动箭头时，提供可操作反馈。 */

.store-category-section:hover .store-category-section__arrow {
    color: #4caf50;
}

/* 控制菜单卡片网格布局的预览版本的布局、尺寸和外观。 */

.menu-card-grid--preview {
    pointer-events: none;
}

/* 控制档口分类聚焦操作栏的布局、尺寸和外观。 */

.store-category-focus-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* 控制档口分类聚焦操作栏中的返回按钮的布局、尺寸和外观。 */

.store-category-focus-bar__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

/* 鼠标悬停或键盘聚焦档口分类聚焦操作栏中的返回按钮时，提供可操作反馈。 */

.store-category-focus-bar__back:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #111;
}

/* 控制档口分类聚焦操作栏中的标题文字的布局、尺寸和外观。 */

.store-category-focus-bar__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* 控制首页显示档口资料的卡片的布局、尺寸和外观。 */

.store-card {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    background: #F2F8EB;
    border-radius: 38px;
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* 控制首页显示档口资料的卡片的布局、尺寸和外观。 */

.store-card:nth-of-type(even) {
    background: #fff7ec;
}

/* 控制首页显示档口资料的卡片中的标题和操作区域的布局、尺寸和外观。 */

.store-card__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 10px;
}

/* 鼠标悬停或键盘聚焦首页显示档口资料的卡片中的标题文字时，提供可操作反馈。 */

.store-card__header:hover .store-card__title-text,
.store-card__header:focus-visible .store-card__title-text {
    text-decoration: underline;
}

/* 控制首页显示档口资料的卡片中的Logo的布局、尺寸和外观。 */

.store-card__logo {

    box-shadow:0px 3px 4px 0px rgba(0, 0, 0, 0.20);
}

/* 统一控制首页显示档口资料的卡片中的Logo及相关元素的布局和外观。 */

.store-card__logo,
.store-card__logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff5fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* 控制首页显示档口资料的卡片中的标题内容行的布局、尺寸和外观。 */

.store-card__title-row {
    font-size: 1rem;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.store-card__title-main {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
    transform: translateY(4px);
}

.store-card__title-main .store-card__title-text {
    flex: 0 1 auto;
}

/* 控制首页显示档口资料的卡片中的标题文字的布局、尺寸和外观。 */

.store-card__title-text {
    font-weight: 600;
    color: #052518;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.3rem;
    /* Individual title offset is disabled; the title-main wrapper now moves the name and arrow together.
    transform: translateY(4px);
    */
    transform: none;
}

/* 控制首页显示档口资料的卡片中的已关闭状态标签的布局、尺寸和外观。 */

.store-card__closed-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45140;
    background: #fde8e5;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* 控制首页显示档口资料的卡片中的等待中状态标签的布局、尺寸和外观。 */

.store-card__waiting-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #b37a00;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #ffe69c;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 控制首页显示档口资料的卡片中的展开或移动箭头的布局、尺寸和外观。 */

.store-card__arrow {
    margin-left: 0;
    flex-shrink: 0;
    /* Original CSS-drawn chevron is disabled; remove this comment to restore it.
    width: 12px;
    height: 12px;
    border-top: 3px solid #1f1f2b;
    border-right: 3px solid #1f1f2b;
    transform: rotate(45deg);
    */
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f1f2b;
    font-size: 1.05rem;
    line-height: 1;
    margin-right: 0;
}

.store-card__arrow i {
    -webkit-text-stroke: 2px currentColor;
}

/* 控制菜单卡片内容行的布局、尺寸和外观。 */

.menu-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    overscroll-behavior-x: contain;
    padding: 4px 4px 14px;
}

/* 控制菜单卡片网格布局的竖版版本的布局、尺寸和外观。 */

.menu-card-grid--portrait {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    row-gap: 1.5rem;
}

/* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

.menu-card-grid--portrait .menu-card {
    width: 100%;
    min-width: 0;
}

/* 隐藏菜单卡片内容行的浏览器滚动条，同时保留滚动功能。 */

.menu-card-row::-webkit-scrollbar {
    display: none;
}

/* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

.popular-card {
    background: linear-gradient(135deg, #ffe7d0, #e2f2d9);
    border-radius: 28px;
    padding: 1rem 1.15rem;
    border: 1px solid #dfe7d3;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 260px;
    flex: 0 0 auto;
}

/* 控制热门商品区域中的商品卡片中的主要内容区的布局、尺寸和外观。 */

.popular-card__body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    flex: 1 1 auto;
}

/* 控制热门商品区域中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

.popular-card__thumb {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* 控制热门商品区域中的商品卡片中的标题文字的布局、尺寸和外观。 */

.popular-card__title {
    font-weight: 600;
    font-size: 1rem;
    color: #052518;
}

/* 控制热门商品区域中的商品卡片中的辅助资料文字的布局、尺寸和外观。 */

.popular-card__meta {
    font-size: 0.9rem;
    color: #5f6b61;
    margin: 0;
    line-height: 1.35;
}

/* 控制热门商品区域中的商品卡片中的底部操作区的布局、尺寸和外观。 */

.popular-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.3rem;
    margin-top: auto;
}

/* 控制热门商品区域中的商品卡片中的价格文字的布局、尺寸和外观。 */

.popular-card__price {
    font-weight: 700;
    font-size: 1.05rem;
    color: #052518;
    margin: 0;
}

/* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

.menu-card {
    --menu-card-thumb-size: 130px;
    background: white;
    border-radius: 28px;
    border: 1px solid rgba(204, 211, 209, 0.5);
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 1000px;
    max-width: 2000px;
    flex: 1 1 calc(50% - 0.5rem);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left:1rem;
    padding-right: 1rem;
}

/* 控制菜单列表中的商品卡片中的主要内容区的布局、尺寸和外观。 */

.menu-card__body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

/* 控制菜单列表中的商品卡片中的主要内容区的布局、尺寸和外观。 */

.menu-card__content {
    min-width: 0;
    overflow: visible;
}

/* 控制猪肉标识状态状态标签的布局、尺寸和外观。 */

.pork-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 21px;
    width: auto;
    box-sizing: border-box;

    padding-left: calc(0.75rem - 6px);
    padding-right: calc(0.75rem - 6px);
    margin-left: calc(5px - 0.6rem);

    border: 1px solid transparent;
    border-radius: 6px;
    color: #083B25;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.pork-status-badge.pork_free {
    background: #eefdda;
}

.pork-status-badge.non_pork_free {
    background: #ffe8c7;
}

/* 控制猪肉标识状态状态标签中的图片尺寸和裁切方式的布局、尺寸和外观。 */

.pork-status-badge__image {
    display: block;
    width: auto;
    height: 28px;
    max-width: 120px;
    object-fit: contain;
}

/* 控制搜索区域内可点击的筛选标签的猪肉标识IMG版本内图片的尺寸和裁切方式的布局、尺寸和外观。 */

.search-chip--pork-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(21, 38, 31, 0.08);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.22rem 0.34rem;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(27, 62, 73, 0.08);
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

/* 鼠标悬停或键盘聚焦搜索区域内可点击的筛选标签的猪肉标识IMG版本内图片的尺寸和裁切方式时，提供可操作反馈。 */

.search-chip--pork-img:hover,
.search-chip--pork-img:focus-visible {
    transform: translateY(-1px);
    opacity: 0.96;
    box-shadow: 0 12px 22px rgba(27, 62, 73, 0.14);
}

/* 搜索区域内可点击的筛选标签的猪肉标识IMG版本内图片的尺寸和裁切方式成为当前选项时，显示激活状态。 */

.search-chip--pork-img.is-active {
    background: linear-gradient(135deg, rgba(255, 242, 214, 0.96), rgba(225, 245, 214, 0.96));
    border-color: rgba(240, 143, 61, 0.38);
    box-shadow: inset 0 0 0 1px rgba(240, 143, 61, 0.12), 0 12px 22px rgba(240, 143, 61, 0.18);
    transform: translateY(-1px) scale(0.98);
}

/* 控制搜索区域内可点击的筛选标签的猪肉标识IMG版本内图片的尺寸和裁切方式的布局、尺寸和外观。 */

.search-chip--pork-img:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 6px 14px rgba(27, 62, 73, 0.12);
}

/* 控制猪肉标识状态状态标签中的图片尺寸和裁切方式内图片的尺寸和裁切方式的布局、尺寸和外观。 */

.search-chip--pork-img .pork-status-badge__image {
    height: 36px;
    max-width: none;
    display: block;
}

/* 控制菜单列表中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

.menu-card__thumb {
    width: var(--menu-card-thumb-size);
    height: var(--menu-card-thumb-size);
    border-radius: 24px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* 控制菜单列表中的商品卡片中的标题文字的布局、尺寸和外观。 */

.menu-card__title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #052518;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 控制菜单列表中的商品卡片中的描述文字的布局、尺寸和外观。 */

.menu-card__desc {
    font-size: 0.8rem;
    font-weight: 500;
    color: #5f6b61;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 控制菜单列表中的商品卡片中的底部操作区的布局、尺寸和外观。 */

/* Hide item descriptions on listing cards; item detail modals use a separate description element. */
.menu-card__desc,
.popular-card:not(.popular-card--store) .popular-card__meta {
    display: none;
}

.menu-card__price--content,
.popular-card__price--content {
    display: none;
}

.menu-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-left: 9%;
    margin-top: -0.8rem;
    padding-right: 2%;
}

@media (min-width: 769px) {
    .menu-card__body {
        align-items: center;
    }

    .menu-card-row--scroll .menu-card__body,
    .menu-card-grid--portrait .menu-card__body {
        grid-template-columns: var(--menu-card-thumb-size) 1fr;
    }

    .menu-card-row--scroll .menu-card__thumb,
    .menu-card-grid--portrait .menu-card__thumb {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 1rem;
        margin-block: auto;
    }

    .menu-card-row--scroll .menu-card__content,
    .menu-card-grid--portrait .menu-card__content {
        position: absolute;
        top: calc(50% - 50px);
        right: 1rem;
        left: calc(1rem + var(--menu-card-thumb-size) + 1.2rem);
        height: calc(var(--menu-card-thumb-size) - 10px);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        transform: none;
    }

    .menu-card-row--scroll .menu-card__title,
    .menu-card-grid--portrait .menu-card__title {
        grid-row: 1;
        line-height: 1.2;
        min-height: 0;
    }

    .menu-card-row--scroll .menu-card__badge-row,
    .menu-card-grid--portrait .menu-card__badge-row {
        grid-row: 2;
        align-self: center;
        margin: 0;
    }

    .menu-card-row--scroll .menu-card__price--content,
    .menu-card-grid--portrait .menu-card__price--content {
        display: block;
        grid-row: 3;
        align-self: end;
        transform: none;
    }

    .menu-card-row--scroll .menu-card__price--footer,
    .menu-card-grid--portrait .menu-card__price--footer {
        display: none;
    }

    .menu-card__content {
        transform: translateY(0px);
    }

    .menu-card__footer {
        padding-left: calc(var(--menu-card-thumb-size) + 1.5rem);
        margin-top: -1.5rem;
        align-items: flex-end;
    }

    .menu-card__price {
        width: auto;
        text-align: left;
        transform: translateY(-10px);
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) {
        position: relative;
        flex: 0 0 400px;
        width: 400px;
        min-width: 400px;
        max-width: 400px;
        min-height: 160px;
        max-height: 160px;
        padding: 0.5rem 1rem;
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) .popular-card__thumb {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 1.3rem;
        width: 120px;
        height: 120px;
        margin-block: auto;
        border-radius: 24px;
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) .popular-card__copy {
        position: absolute;
        top: calc(50% - 50px);
        right: 1rem;
        left: calc(1rem + 120px + 1.5rem);
        height: 110px;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 0;
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) .popular-card__title {
        grid-row: 1;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-height: 1.2;
        font-size: 1.05rem;
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) .popular-card__badge-row {
        grid-row: 2;
        align-self: center;
        margin: 0;
        transform: none;
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) .popular-card__price--content {
        display: block;
        grid-row: 3;
        align-self: end;
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) .popular-card__price--footer {
        display: none;
    }

    .popular-strip--scroll .popular-card:not(.popular-card--store) .menu-card__cart {
        position: absolute;
        right: 1rem;
        bottom: 0.6rem;
        transform: none;
    }
}

/* 控制菜单列表中的商品卡片中的价格文字的布局、尺寸和外观。 */

.menu-card__price {
    font-weight: 700;
    font-size: 1.05rem;
    color: #052518;
    margin: 0;
}

/* 统一控制猪肉标识卡片底色的猪肉标识无猪肉版本及相关元素的布局和外观。 */

.store-card.pork-surface--pork-free,
.menu-card.pork-surface--pork-free,
.popular-card.pork-surface--pork-free {
    border: 2.5px solid #A9D18E;
    background: #f5faf0;
}

/* 统一控制猪肉标识卡片底色的非猪肉标识无猪肉版本及相关元素的布局和外观。 */

.store-card.pork-surface--non-pork-free,
.menu-card.pork-surface--non-pork-free,
.popular-card.pork-surface--non-pork-free {
    border: 2.5px solid #ffd49f;
    background: #fff7ec;
}

/* 统一控制猪肉标识卡片底色的PENDING版本及相关元素的布局和外观。 */

.store-card.pork-surface--pending,
.menu-card.pork-surface--pending,
.popular-card.pork-surface--pending {
    background: #f6fceb;
}

.store-card--focused.pork-surface--pork-free
.menu-card-grid--portrait
.menu-card {
    background: #F9FBF6;
}

.store-card--focused.pork-surface--non-pork-free
.menu-card-grid--portrait
.menu-card {
    background: #FFFFFF;
}

.store-card--focused.pork-surface--pending
.menu-card-grid--portrait
.menu-card {
    background: #F6FCEB;
}

/* Dedicated outer Stall backgrounds for Stall and Category focused pages. */
.store-card.store-card--focused.pork-surface--pork-free {
    background: #F2F8EB;
}

.store-card.store-card--focused.pork-surface--non-pork-free {
    background: #FFF7EC;
}

.store-card.store-card--focused.pork-surface--pending {
    background: #F6FCEB;
}


@media (min-width: 768px) {
    /* 控制热门商品横向商品带的布局、尺寸和外观。 */
    .popular-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    /* 控制热门商品横向商品带的横向滚动版本的布局、尺寸和外观。 */
    .popular-strip--scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.85rem;
        padding-bottom: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        min-height: 0;
        box-sizing: border-box;
        align-items: stretch;
    }

    /* 隐藏热门商品横向商品带的横向滚动版本的浏览器滚动条，同时保留滚动功能。 */

    .popular-strip--scroll::-webkit-scrollbar {
        display: none;
    }

/* 拖动热门商品横向商品带的横向滚动版本时，切换鼠标指针和交互状态。 */

.popular-strip--scroll.dragging {
    cursor: grabbing;
}

/* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

.popular-strip--scroll .popular-card {
    flex: 0 0 400px;
    width: 400px;
    min-width: 350px;
    max-width: 350px;
    align-self: stretch;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow:0px 3px 3px 0px rgba(0, 0, 0, 0.25);
}

    /* 控制菜单卡片内容行的横向滚动版本的布局、尺寸和外观。 */

    .menu-card-row--scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.7rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    /* 隐藏菜单卡片内容行的横向滚动版本的浏览器滚动条，同时保留滚动功能。 */

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

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card-row--scroll .menu-card {
        flex: 0 0 400px;
        min-width: 400px;
        max-width: 400px;
        max-height: 160px;
        min-height: 160px;
    }

    .menu-card-grid--portrait .menu-card {
        min-height: 160px;
        max-height: 160px;
    }
}

/* 控制商品卡片上的加入购物车按钮的布局、尺寸和外观。 */

.add-to-cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 0;
    border: none;
    padding: 0;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.18s ease, filter 0.18s ease;
    position: relative;
    overflow: hidden;
}

/* 控制商品卡片上的加入购物车按钮中的图标位置和尺寸的布局、尺寸和外观。 */

.add-to-cart-btn__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* 控制菜单列表中的商品卡片中的购物车的布局、尺寸和外观。 */

.menu-card__cart {
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

/* 鼠标悬停或键盘聚焦菜单列表中的商品卡片中的购物车时，提供可操作反馈。 */

.menu-card__cart:hover,
.menu-card__cart:focus-visible {
    transform: translateY(-1px) scale(1.012);
    filter: none;
}

/* 控制商品卡片上的加入购物车按钮内图标的位置和尺寸的布局、尺寸和外观。 */

.add-to-cart-btn i {
    display: none;
    font-size: 1.25rem;
    pointer-events: none;
}

/* 鼠标悬停或键盘聚焦商品卡片上的加入购物车按钮时，提供可操作反馈。 */

.add-to-cart-btn:hover,
.add-to-cart-btn:focus-visible {
    transform: translateY(-1px) scale(1.012);
    filter: none;
}

.add-to-cart-btn:active {
    transform: translateY(-1px) scale(0.985);
    filter: none;
    transition-duration: 0.1s;
}

/* 统一控制菜单列表中的商品卡片中的购物车及相关元素的布局和外观。 */

.add-to-cart-btn.menu-card__cart {
    width: 42px;
    height: 42px;
    border-radius: 0;
    box-shadow: none;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-card__cart .add-to-cart-btn__icon {
    width: 28px;
    height: 28px;
}

/* 鼠标悬停或键盘聚焦菜单列表中的商品卡片中的购物车时，提供可操作反馈。 */

.add-to-cart-btn.menu-card__cart:hover,
.add-to-cart-btn.menu-card__cart:focus-visible {
    transform: translateY(-1px) scale(1.012);
    filter: none;
}

.add-to-cart-btn.menu-card__cart:active {
    transform: translateY(-1px) scale(0.985);
    filter: none;
    transition-duration: 0.1s;
}

@media (min-width: 769px) {
    .menu-card-row--scroll .menu-card,
    .menu-card-grid--portrait .menu-card {
        position: relative;
    }

    .menu-card-row--scroll .add-to-cart-btn.menu-card__cart,
    .menu-card-grid--portrait .add-to-cart-btn.menu-card__cart {
        position: absolute;
        right: 1rem;
        bottom: 0.6rem;
        transform: none;
    }

    /* Enlarge only the homepage Item/Best Seller cart hit area without enlarging the icon. */
    .menu-card-row--scroll .add-to-cart-btn.menu-card__cart,
    .popular-strip--scroll .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart {
        width: 50px;
        height: 50px;
        right: calc(1rem - 4px);
        bottom: calc(0.6rem - 4px);
    }

    .menu-card-row--scroll .add-to-cart-btn.menu-card__cart:hover,
    .menu-card-row--scroll .add-to-cart-btn.menu-card__cart:focus-visible,
    .menu-card-grid--portrait .add-to-cart-btn.menu-card__cart:hover,
    .menu-card-grid--portrait .add-to-cart-btn.menu-card__cart:focus-visible {
        transform: translateY(-1px) scale(1.012);
    }

    .menu-card-row--scroll .add-to-cart-btn.menu-card__cart:active,
    .menu-card-grid--portrait .add-to-cart-btn.menu-card__cart:active {
        transform: translateY(-1px) scale(0.985);
    }
}

.popular-strip--scroll .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart:hover,
.popular-strip--scroll .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart:focus-visible {
    transform: translateY(-1px) scale(1.012);
}

.popular-strip--scroll .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart:active {
    transform: translateY(-1px) scale(0.985);
}

/* 统一控制热门商品区域中的商品卡片中的购物车内图标的位置和尺寸及相关元素的布局和外观。 */


.menu-card__cart i {
    display: none;
    font-size: 1.05rem;
}

/* 控制状态标签柔和色的布局、尺寸和外观。 */

.badge-soft {
    background: rgba(138, 188, 117, 0.18);
    color: var(--text);
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 控制订单卡片的布局、尺寸和外观。 */

.order-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

/* 控制结账页面左右内容栏的网格布局的布局、尺寸和外观。 */

.checkout-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 992px) {
    /* 控制结账页面左右内容栏的网格布局的布局、尺寸和外观。 */
    .checkout-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    /* Show checkout details on the left and cart items on the right on two-column screens. */
    .checkout-grid__col--details {
        order: 1;
    }

    .checkout-grid__col--items {
        order: 2;
    }
}

/* 控制结账页面左右内容栏的网格布局中的内容栏的布局、尺寸和外观。 */

.checkout-grid__col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 控制胶囊按钮输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

#checkoutForm .pill-input {
    border-radius: 14px;
    border: 1px solid #E1DEC3;
    padding: 0rem 2rem;
    background: #FFFFFF;
}

/* Keep the contact-field SVGs inside their respective Name and Email inputs. */
#checkoutForm .checkout-input-wrap {
    position: relative;
}

#checkoutForm {
    --checkout-icon-size: 1rem;
    --checkout-input-icon-left: 1.4rem;
    --checkout-input-icon-text-gap: 1rem;
    --checkout-label-indent: 0.5rem;
}

#checkoutForm .checkout-input-wrap .pill-input {
    padding-left: calc(
        var(--checkout-input-icon-left)
        + var(--checkout-icon-size)
        + var(--checkout-input-icon-text-gap)
    );
}

#checkoutForm .checkout-input-icon {
    position: absolute;
    top: calc(50% - 1px);
    left: var(--checkout-input-icon-left);
    z-index: 1;
    width: var(--checkout-icon-size);
    height: var(--checkout-icon-size);
    transform: translateY(-50%) scale(var(--checkout-icon-scale, 1));
    transform-origin: center;
    object-fit: contain;
    pointer-events: none;
}

/* Render supplied SVG artwork as masks so icon states can use exact theme colors. */
#checkoutForm .checkout-svg-icon {
    display: inline-block;
    background-color: #666B72;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.18s ease;
}

#checkoutForm .checkout-svg-icon--user-name {
    -webkit-mask-image: url('/user_name.svg');
    mask-image: url('/user_name.svg');
}

#checkoutForm .checkout-svg-icon--email {
    -webkit-mask-image: url('/emial.svg');
    mask-image: url('/emial.svg');
}

#checkoutForm .checkout-svg-icon--cutlery {
    -webkit-mask-image: url('/cutlery.svg');
    mask-image: url('/cutlery.svg');
}

#checkoutForm .checkout-svg-icon--no-cutlery {
    -webkit-mask-image: url('/no_cutlery.svg');
    mask-image: url('/no_cutlery.svg');
}

#checkoutForm .checkout-svg-icon--take-away {
    -webkit-mask-image: url('/take_away.svg');
    mask-image: url('/take_away.svg');
}

#checkoutForm .checkout-svg-icon--delivery {
    -webkit-mask-image: url('/delivery.svg');
    mask-image: url('/delivery.svg');
}

#checkoutForm .checkout-svg-icon--address {
    -webkit-mask-image: url('/address.svg');
    mask-image: url('/address.svg');
}

#checkoutForm .checkout-svg-icon--collect {
    -webkit-mask-image: url('/collect.svg');
    mask-image: url('/collect.svg');
}

#checkoutForm .checkout-input-wrap:has(.pill-input:not(:placeholder-shown)) .checkout-input-icon {
    background-color: #FFAD55;
}

/* 控制订单数量的布局、尺寸和外观。 */

.order-quantity {
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    min-width: 80px;
}

/* 控制提交订单的结账按钮的布局、尺寸和外观。 */

.checkout-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1rem;
    background:linear-gradient(135deg, #ffba73, #ff8f3d);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 18px 36px rgba(123, 44, 191, 0.25);
}

/* 控制胶囊按钮输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

.pill-input {
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
}

/* 控制底部区域的布局、尺寸和外观。 */

.footer {
    background: linear-gradient(135deg, #ffba73, #ff8f3d);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* 控制底部区域的布局、尺寸和外观。 */

.footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.35rem 0.2rem;
}

.footer__copyright {
    margin-bottom: 0.5rem;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* 控制按钮关闭按钮的布局、尺寸和外观。 */

.btn-close {
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
    background-position: center;
}

/* 控制弹窗弹窗窗口的布局、尺寸和外观。 */

.login-modal .modal-dialog {
    max-width: 360px;
}

/* 控制弹窗内容区的布局、尺寸和外观。 */

.frontend-access-modal .modal-content {
    border-radius: 28px;
    border: none;
    padding: 1.5rem 1.5rem 2rem;
    background: #fbf6ef;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18);
}

/* 控制浮动提示的布局、尺寸和外观。 */

#toastContainer {
    z-index: 2000 !important;
}

#toastContainer .toast {
    width: max-content;
    max-width: min(32rem, calc(100vw - 2.5rem));
    height: auto;
    margin-top: 2.5rem;
    background-color: #F7FAF5 !important;
    background-image: linear-gradient(120deg, #FCEBD4 0%, #F7FAF5 43%, #EFF9E2 90%) !important;
    color: #3B3838 !important;
    border-radius: 18px;
    border: none;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.35);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: frontend-toast-slide-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#toastContainer .toast .toast-body {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

#toastContainer .toast__item-name {
    text-decoration-line: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.18em;
}

@keyframes frontend-toast-slide-in {
    from {
        opacity: 0.65;
        transform: translateX(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 控制按钮关闭按钮的布局、尺寸和外观。 */

#toastContainer .toast .btn-close {
    filter: none;
    opacity: 0.7;
}

/* 按钮关闭按钮获得输入焦点时，显示清楚的焦点反馈。 */

#toastContainer .toast .btn-close:focus {
    outline: none;
    box-shadow: none;
}

/* 控制选择商品规格和数量的弹窗的布局、尺寸和外观。 */

.menu-modal {
    border-radius: 58px;
    border: none;
    background: #FFFDF8;
    color: #3B3838;
    padding: 2rem 3rem 2rem;
}

/* 控制商品选择弹窗中可滚动的主要内容区的布局、尺寸和外观。 */

.menu-modal__body {
    padding-top: 0;
}

@media (min-width: 577px) {
    #menuAddModal .menu-modal__body > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
        row-gap: 0;
        margin: 0;
        align-items: start;
    }

    #menuAddModal .menu-modal__body > .row > [class*="col-"] {
        width: auto;
        max-width: none;
        padding: 0;
        margin-top: 0;
    }

    #menuAddModal .menu-modal__body > .row > [class*="col-"]:nth-child(2) {
        display: contents;
    }

    #menuAddModal .menu-modal__body > .row > [class*="col-"]:nth-child(2) > * {
        grid-column: 1 / -1;
    }

    #menuAddModal #menuAddModalImageWrapper {
        grid-column: 1;
        grid-row: 1;
    }

    #menuAddModal .menu-modal__body > .row > [class*="col-"]:nth-child(2) > .menu-modal__description-wrap {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    #menuAddModal .menu-modal__image {
        width: 100%;
        max-width: none;
    }
}

/* 控制商品选择弹窗的标题区域的布局、尺寸和外观。 */

.menu-modal__header {
    padding: 0rem 0rem 1rem 1rem;
    align-items: flex-start;
}

/* 控制弹窗标题的布局、尺寸和外观。 */

.menu-modal__header .modal-title {
    font-size: 1.2rem;
    font-weight: 650;
}

/* 控制选择商品规格和数量的弹窗中的关闭按钮的布局、尺寸和外观。 */

.menu-modal__close {
    --menu-modal-close-offset-x: 5px;
    --menu-modal-close-offset-y: 0px;
    border: none;
    font-size: 2rem;
    color: #f4a440;
    margin-left: auto;
    transform: translate(var(--menu-modal-close-offset-x), var(--menu-modal-close-offset-y));
}

/* 控制菜单添加弹窗图片外层容器的布局、尺寸和外观。 */

#menuAddModalImageWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 控制选择商品规格和数量的弹窗中的图片尺寸和裁切方式的布局、尺寸和外观。 */

.menu-modal__image {
    border-radius: 38px !important;
    object-fit: cover;
    width: min(100%, 320px);
    aspect-ratio: 4 / 3;
}

/* 控制选择商品规格和数量的弹窗中的描述文字的布局、尺寸和外观。 */

.menu-modal__description {
    color: #4a554d;
    line-height: 1.5;
    min-height: 48px;
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-modal__description-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin-top: 1.5rem;
}

.menu-modal__pork-badge {
    margin-left: 0;
    height: 26px;
    width: fit-content;
    max-width: 100%;
    padding: 0 0.5rem;
    font-size: 1rem;
    font-weight: 550;
    border-radius: 8px;
    white-space: nowrap;
}

.menu-modal__pork-badge + .menu-modal__description {
    margin-top: 0.75rem;
}

.menu-modal__options {
    margin-top: 1.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

#menuAddModal .menu-modal__options hr {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
}

#menuAddModal .menu-modal__section-divider {
    opacity: 0.1;
}

#menuAddModal .menu-modal__remark-divider {
    display: none;
}

/* 控制商品规格分组的布局、尺寸和外观。 */

#menuAddVariationContainer .variation-group {
    border: none;
    border-radius: 14px;
    padding: 0.85rem;
    /* background: #f9faf8; Disabled so option groups use the modal background. */
    background: transparent;
}

#menuAddVariationContainer {
    gap: 0.5rem !important;
}

#menuAddVariationContainer .variation-group > div:first-child > .fw-semibold {
    font-size: 1.1rem;
    font-weight: 650 !important;
    color: #083b25;
}

#menuAddVariationContainer .variation-group--required > .variation-group__header > .fw-semibold::after {
    content: "*";
    margin-left: 0.2rem;
    color: #FF8C3A;
}

.variation-group__meta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: 1rem;
}

/* Align the exact-selection counter with the right edge of the option content. */
#menuAddVariationContainer .variation-group[data-must-match-max-selection="1"] .variation-group__meta {
    margin-right: 1rem;
}

#menuAddVariationContainer .variation-group__selection-count {
    display: inline-block;
}

#menuAddVariationContainer .variation-group[data-must-match-max-selection="1"][data-max-selection="1"] .variation-group__selection-count {
    display: none;
}

#menuAddVariationContainer .variation-group.has-selection-validation-warning[data-must-match-max-selection="1"][data-max-selection="1"] .variation-group__selection-count {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: max-content;
    translate: 0 -50%;
}

#menuAddVariationContainer .variation-group__validation-message {
    position: absolute;
    top: 50%;
    right: calc(var(--variation-validation-counter-width, 0px) + 0.65rem);
    z-index: 20;
    width: max-content;
    max-width: min(18rem, 70vw);
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 10px;
    background: #fff5f5;
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 18px rgba(91, 31, 36, 0.14);
    pointer-events: none;
    transform: translateY(-50%);
}

#menuAddVariationContainer .variation-group__selection-count.is-limit-warning {
    color: #dc3545 !important;
    animation: menu-variation-limit-shake 0.8s ease-in-out 1;
}

@keyframes menu-variation-limit-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Hide the "Select up to X item(s)" hint while keeping the collapse chevron visible. */
#menuAddVariationContainer .variation-group--collapsible[data-max-selection]:not([data-max-selection=""]) .variation-group__meta > span {
    display: none;
}

#menuAddVariationContainer .variation-group--collapsible[data-max-selection]:not([data-max-selection=""]) .variation-group__meta::before {
    content: "Optional";
}

.variation-group__header--toggle {
    cursor: pointer;
    user-select: none;
    transition: margin-bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.variation-group__options-shell {
    width: 100%;
    min-width: 0;
}

#menuAddVariationContainer .variation-group__options {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    font-weight:500;
    font-size: 0.9rem;
}

/* Hide zero-price "Included" labels without hiding non-zero price adjustments. */
#menuAddVariationContainer .variation-group-included .variation-group__meta > span,
#menuAddVariationContainer .form-check:has(input[data-price-adjustment="0"]) .form-check-label > small,
#menuAddVariationContainer .variation-group__options > .d-flex:has(> input[data-price-adjustment="0"]) > small {
    display: none;
}

/* Keep the price table cell so zero-price option steppers stay aligned with paid options. */
#menuAddVariationContainer .variation-qty-row[data-price-adjustment="0"] .variation-qty-price {
    visibility: hidden;
}

#menuAddVariationContainer .variation-group__options .variation-qty-name,
#menuAddVariationContainer .variation-group__options .form-check-label > span:first-child,
#menuAddVariationContainer .variation-group__options > .d-flex > span.small {
    font-size: inherit;
    font-weight: inherit;
}

#menuAddVariationContainer .variation-group__options:not(.variation-table) {
    gap: 1rem !important;
}

#menuAddVariationContainer .variation-table {
    border-spacing: 0 1rem;
}

/* Consecutive optional groups belong to one visual section and need no divider. */
#menuAddVariationContainer .variation-group--collapsible + hr:has(+ .variation-group--collapsible),
#menuAddVariationContainer .variation-group--collapsible + hr:has(+ .variation-group--optional-static) {
    display: none;
}

.variation-group--collapsible:not(.is-expanded) .variation-group__header--toggle {
    margin-bottom: 0 !important;
}

.variation-group__chevron {
    display: block;
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    transition: transform 0.18s ease;
}

.variation-group--collapsible.is-expanded .variation-group__chevron {
    transform: rotate(180deg);
}

/* 控制选择商品规格和数量的弹窗中的数量的布局、尺寸和外观。 */

.menu-modal__quantity {
    position: relative;
    border-top: none;
    margin-top: 1rem !important;
    padding:1.5rem 0.25rem 1rem;;
}

.menu-modal__quantity::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1rem;
    right: -1rem;
    border-top: 1px solid rgba(59, 56, 56, 0.12);
}

.menu-modal__quantity + hr {
    margin-top: 0;
}

.menu-modal__remark-label {
    padding-top: 0;
    color: #083b25;
    font-size: 1.2rem;
    font-weight: 900 !important;
}

.menu-modal__remark-field {
    position: relative;
    width: 100%;
    max-width: 300px;
    min-width: 0;
    margin-right: 1rem;
    flex: 1 1 270px;
}

#menuAddModal #menuAddNote {
    height: 30px;
    min-height: 30px;
    max-height: none;
    padding: 1px 0.85rem;
    resize: vertical;
    scrollbar-width: none;
    border: 2px solid #D0CECE;
    border-radius: 15px;
    background: #FFFFFF;
    color: #3B3838;
    line-height: 24px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
}

#menuAddModal #menuAddNote::placeholder {
    color: rgba(59, 56, 56, 0.55);
}

#menuAddModal #menuAddNote::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#menuAddModal #menuAddNote::-webkit-resizer {
    background: transparent;
}

#menuAddModal .menu-modal__remark-field::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 1;
    width: 12px;
    height: 12px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10L10 2M6 10L10 6' fill='none' stroke='%23FF8C3A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

#menuAddModal .menu-modal__remark-resize-handle {
    display: none;
}

#menuAddModal #menuAddNote:focus {
    border-color: #FF8C3A;
    background: #FFFFFF;
    color: #3B3838;
    box-shadow: 0 0 0 0.25rem #FFDDAB;
}

#menuAddModal .menu-modal__remark-field .form-text {
    display: none;
}

/* 控制选择商品规格和数量的弹窗中的数量分组的布局、尺寸和外观。 */

.menu-modal__qty-group {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    max-width: 300px;
    margin-right: 1rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #D0CECE;
    background: #FFFFFF;
}

/* 控制选择商品规格和数量的弹窗中的数量按钮的布局、尺寸和外观。 */

.menu-modal__qty-btn {
    background: transparent;
    border: none;
    color: #FF8C3A;
    font-weight: 800;
    width: 30px;
    min-height: 0;
    height: 100%;
    flex: 0 0 30px;
    padding: 0;
}

#menuAddModal .variation-qty-group .btn {
    color: #FF8C3A;
}

#menuAddModal .variation-qty-control {
    --variation-pill-height: 30px;
    display: inline-flex;
    align-items: center;
    height: var(--variation-pill-height);
    max-height: var(--variation-pill-height);
    min-height: var(--variation-pill-height);
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    border: 2px solid #D0CECE;
    border-radius: 999px;
    background: #fFFFFF;
}

#menuAddModal .variation-qty-control .btn {
    width: var(--variation-pill-height);
    height: 100%;
    min-height: 0;
    flex: 0 0 var(--variation-pill-height);
    border: none;
    border-radius: 0;
    background: transparent;
    color: #FF8C3A;
    font-weight: 800;
}

#menuAddModal .variation-qty-control .btn:hover,
#menuAddModal .variation-qty-control .btn:focus {
    border: none;
    background: transparent;
    color: #FF8C3A;
    box-shadow: none;
}

#menuAddModal .variation-group--required.is-selection-limit-reached .variation-qty-row.is-unselected-at-limit .variation-qty-control {
    background: #D0CECE;
}

#menuAddModal .variation-qty-control .variation-qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 40px;
    min-width: 40px;
    line-height: 1;
}

/* 控制选择商品规格和数量的弹窗中的数量输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

.menu-modal__qty-input {
    border: none;
    font-weight: 700;
    background: transparent;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
    min-height: 0;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.menu-modal__qty-input::-webkit-inner-spin-button,
.menu-modal__qty-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* 选择商品规格和数量的弹窗中的数量输入框内输入框的尺寸和文字获得输入焦点时，显示清楚的焦点反馈。 */

.menu-modal__qty-input:focus {
    outline: none;
    box-shadow: none;
}

/* 控制选择商品规格和数量的弹窗中的金额汇总的布局、尺寸和外观。 */

.menu-modal__totals {
    border-top: none;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    color: #3B3838;
    font-size: 0.85rem;
}

.menu-modal__price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
}

.menu-modal__addon-breakdown {
    display: contents;
}

.menu-modal__price-row--addon,
.menu-modal__price-row--quantity {
    margin-top: 0.65rem;
}

.menu-modal__price-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.menu-modal__price-amount {
    white-space: nowrap;
    text-align: right;
}

#menuAddModal .menu-modal__price-divider {
    display: none;
}

.menu-modal__price-row--total {
    font-size: 1.1rem;
    font-weight: 800;
}

@media (min-width: 577px) {
    .home-search-content .menu-card__thumb {
        box-shadow: none;
    }

    #menuAddModal .menu-modal__quantity {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #menuAddModal .menu-modal__price-row--total {
        margin-top: 1rem;
        font-size: 1.3rem;
    }
}

/* 控制选择商品规格和数量的弹窗中的提交的布局、尺寸和外观。 */

.menu-modal__submit {
    border-radius: 999px;
    padding: 0.5rem 1.8rem;
    border: none;
    background: linear-gradient(to right,#d1f2bb, #f6bb76, #ffb35b);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    font-size: 1.05rem;
}

/* 控制选择商品规格和数量的弹窗中的关闭按钮的布局、尺寸和外观。 */

.menu-modal__close {
    background: transparent;
    border-radius: 999px;
    padding: 0.35rem;
}

.menu-modal__close-icon {
    display: block;
    width: 16px;
    height: 16px;
}

/* 控制选择商品规格和数量的弹窗中的数量标签文字的布局、尺寸和外观。 */

.menu-modal__qty-label {
    color: #083b25;
    font-size: 1.2rem;
    font-weight: 900 !important;
}

/* 控制选择商品规格和数量的弹窗中的提交文字的布局、尺寸和外观。 */

.menu-modal__submit-text {
    font-weight: 800;
}

/* 控制选择商品规格和数量的弹窗中的提交图标的布局、尺寸和外观。 */

.menu-modal__submit-icon {
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
    vertical-align: middle;
}

.home-menu-modal__submit-icon {
    transform: translateY(-2px);
}

/* 控制表单勾选标记输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

#menuAddModal .form-check-input {
    accent-color: var(--primary);
}

#menuAddVariationContainer .form-check:has(> input[type="radio"]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0;
    cursor: pointer;
}

#menuAddVariationContainer .form-check:has(> input[type="radio"]) > .form-check-label {
    order: 1;
    width: auto !important;
    min-width: 0;
    flex: 1 1 auto;
}

#menuAddVariationContainer .form-check > input[type="radio"] {
    order: 2;
    flex: 0 0 auto;
    float: none;
    width: 1.15em;
    height: 1.15em;
    margin: 0;
    border-color: #9B9690;
    border-radius: 0.25em;
    background-image: none;
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.15s ease,
                background-color 0.15s ease,
                box-shadow 0.15s ease;
}

#menuAddVariationContainer .form-check > input[type="radio"]:checked {
    border-color: #FF8C3A;
    background-color: #FF8C3A;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m4 8 2.5 2.5L12 5'/%3e%3c/svg%3e");
}

#menuAddVariationContainer .form-check > input[type="radio"]:focus {
    box-shadow: 0 0 0 0.25rem #FFDDAB;
}

#menuAddVariationContainer .form-check > input[type="radio"]:active,
#menuAddVariationContainer .form-check:active > input[type="radio"] {
    filter: none;
    transform: scale(0.78);
    transition-duration: 0.08s;
}

/* 商品卡片上的加入购物车按钮正在载入或提交时，阻止重复操作并显示载入状态。 */

.add-to-cart-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* 为商品卡片上的加入购物车按钮添加不占用内容空间的装饰图层。 */

.add-to-cart-btn.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
    opacity: 0.8;
    transform: skewX(-15deg);
    animation: shimmer 1s infinite;
}

@keyframes shimmer {
    /* 控制动画开始画面的布局、尺寸和外观。 */
    0% { left: -120%; }
    /* 控制动画开始画面的布局、尺寸和外观。 */
    100% { left: 120%; }
}

/* 控制延迟加载区块的布局、尺寸和外观。 */

.lazy-section {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* 延迟加载区块完成载入并显示时使用的状态样式。 */

.lazy-section.is-visible {
    opacity: 1;
    transform: none;
}

/* 控制延迟加载图片的布局、尺寸和外观。 */

.lazy-image {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 延迟加载图片完成载入并显示时使用的状态样式。 */

.lazy-image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

/* 控制品牌Logo的布局、尺寸和外观。 */

.brand-logo {
    height: 72px;
    width: auto;
    display: block;
}

/* 控制弹窗内容区的布局、尺寸和外观。 */

.modal-content {
    border: 3px solid #FFB45B;
    box-shadow: none;
}

/* 控制按钮DARK的布局、尺寸和外观。 */

.btn-dark {
    background-color: #000;
    border: none;
}

/* 鼠标悬停或键盘聚焦按钮DARK时，提供可操作反馈。 */

.btn-dark:hover {
    background-color: #222;
}

/* 控制登录弹窗卡片的布局、尺寸和外观。 */

.login-modal-card {
    position: relative;
    background: #fbf6ef;
    border-radius: 24px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* 控制登录弹窗关闭按钮图标的布局、尺寸和外观。 */

.login-modal-close-icon,
.login-modal-back-icon {
    position: absolute;
    top: 14px;
    border: none;
    background: transparent;
    color: #f4a440;
    font-size: 1.1rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-modal-close-icon {
    right: 18px;
}

.login-modal-close-icon__image {
    display: block;
    width: 16px;
    height: 16px;
}

.login-modal-back-icon {
    left: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
}

.login-modal-back-icon svg {
    width: 18px;
    height: 18px;
}

.login-modal-back-icon:hover,
.login-modal-back-icon:focus-visible,
.login-modal-back-icon:active {
    color: #E97828;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.login-modal-pentamaster-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.login-modal-actions,
.login-modal-login-row,
.login-modal-register-row {
    width: 100%;
}

.login-modal-register-options[hidden] {
    display: none !important;
}

.login-modal-register-row.is-expanded {
    border: 2px solid #FF8C3A;
    border-radius: 24px;
}

.login-modal-register-row .login-modal-btn-secondary[data-auth-register-options-toggle],
.login-modal-register-row .login-modal-btn-secondary[data-auth-register-options-toggle]:hover,
.login-modal-register-row .login-modal-btn-secondary[data-auth-register-options-toggle]:focus,
.login-modal-register-row .login-modal-btn-secondary[data-auth-register-options-toggle]:focus-visible,
.login-modal-register-row .login-modal-btn-secondary[data-auth-register-options-toggle]:active {
    color: #FF8C3A !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: #FF8C3A !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.login-modal-register-row.is-expanded .login-modal-btn-secondary[data-auth-register-options-toggle] {
    border: 0;
    border-radius: 0;
    padding: 1rem 1rem 0.5rem;
}

.login-modal-register-options {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 0;
    padding: 0 0.75rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 260ms ease, padding 260ms ease, opacity 180ms ease, visibility 0s linear 260ms;
}

.login-modal-register-row.is-expanded .login-modal-register-options {
    max-height: 5rem;
    padding: 0 0 0.5rem;
    opacity: 1;
    visibility: visible;
    transition: max-height 260ms ease, padding 260ms ease, opacity 180ms ease;
}

.login-modal-register-option {
    display: inline-flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0.25rem 0.85rem;
    color: #FF8C3A;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.94rem;
    text-align: center;
    text-decoration: none;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 180ms ease, transform 180ms ease;
}

.login-modal-register-option:hover,
.login-modal-register-option:focus-visible {
    color: #E97828;
    background-color: transparent;
    transform: translateY(-1px);
}

.login-modal-register-option:active {
    color: #C9621F;
    background-color: transparent;
    transform: none;
}

.login-modal-register-option + .login-modal-register-option {
    border-left: 1px solid rgba(65, 65, 65, 0.45);
}

.login-modal-register-option:first-child {
    flex: 0 0 40%;
}

.login-modal-register-option:last-child {
    flex: 1 1 60%;
    white-space: nowrap;
}

.login-modal-register-toggle-label {
    display: inline;
}

.login-modal-register-summary {
    display: none;
}

.login-modal-register-row.is-expanded .login-modal-register-toggle-label {
    display: none;
}

.login-modal-register-row.is-expanded .login-modal-register-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.login-modal-register-summary-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    color: #FF7F24;
    background: rgba(255, 140, 58, 0.11);
    border-radius: 50%;
}

.login-modal-register-summary-icon svg {
    width: 2.15rem;
    height: 2.15rem;
}

.login-modal-register-summary-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.login-modal-register-summary-title {
    color: #FF7F24;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.login-modal-register-summary-text {
    color: #787878;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 380px) {
    .login-modal-register-row.is-expanded .login-modal-btn-secondary[data-auth-register-options-toggle] {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .login-modal-register-row.is-expanded .login-modal-register-options {
        padding-right: 0;
        padding-left: 0;
    }

    .login-modal-register-summary {
        gap: 0.7rem;
    }

    .login-modal-register-summary-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .login-modal-register-summary-title {
        font-size: 1.25rem;
    }

    .login-modal-register-option {
        padding-right: 0.35rem;
        padding-left: 0.35rem;
        font-size: 0.85rem;
    }
}

#loginModal [data-auth-pane] {
    will-change: transform, opacity;
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 520ms ease;
}

#loginModal [data-auth-pane].is-auth-pane-entering {
    opacity: 0;
    transform: translateX(110%);
}

#loginModal [data-auth-pane].is-auth-pane-exiting {
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-110%);
}

#loginModalMemberCodePane {
    position: relative;
}

.login-modal-search-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    color: #FF8C3A;
    background: rgba(251, 246, 239, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

#loginModalMemberCodePane.is-auth-searching .login-modal-search-loading {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-search-loading__icon {
    width: 3.25rem;
    height: 3.25rem;
    animation: login-modal-search-sway 900ms ease-in-out infinite;
}

@keyframes login-modal-search-sway {
    0%, 100% {
        transform: translateX(-0.22rem) rotate(-10deg);
    }

    50% {
        transform: translateX(0.22rem) rotate(10deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #loginModal [data-auth-pane],
    .login-modal-register-options,
    .login-modal-search-loading {
        transition: none !important;
    }

    .login-modal-search-loading__icon {
        animation: none;
    }
}

.login-modal-login-row,
.login-modal-register-row {
    position: relative;
}

.login-modal-register-row .login-modal-btn-secondary {
    padding-right: 2.75rem;
    padding-left: 2.75rem;
}

.login-modal-login-leaf {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    width: 24px;
    height: auto;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-modal-login-leaf--copy {
    display: none;
}

/* 控制登录弹窗输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

.login-modal-input {
    border-radius: 999px;
    border: 1px solid rgba(110, 131, 103, 0.35);
    background: #fff;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    min-height: 48px;
}

/* 登录弹窗输入框内输入框的尺寸和文字获得输入焦点时，显示清楚的焦点反馈。 */

.login-modal-input:focus {
    border-color: rgba(244, 164, 64, 0.7);
    box-shadow: 0 0 0 3px rgba(244, 164, 64, 0.15);
}

/* 控制登录弹窗链接的布局、尺寸和外观。 */

.login-modal-link {
    color: #FF8C3A;
    text-decoration: underline;
    font-weight: 600;
}

/* 鼠标悬停或键盘聚焦登录弹窗链接时，提供可操作反馈。 */

.login-modal-link:hover {
    text-decoration: underline;
}

.login-modal-subtitle {
    color: rgba(33, 37, 41, 0.75);
}

/* 控制登录弹窗按钮主要的布局、尺寸和外观。 */

.login-modal-btn-primary {
    border-radius: 999px;
    border: none;
    background: linear-gradient(  to right,  #b3c879 0%,  #b2c77a 50%,  #ffb35b 100%);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: none;
}

/* 控制登录弹窗按钮次要的布局、尺寸和外观。 */

.login-modal-btn-secondary {
    border-radius: 999px;
    border: 2px solid #FF8C3A;
    color: #FF8C3A;
    font-size: 1.05rem;
    background: transparent;
    box-shadow: none;
}

/* 控制登录弹窗标签文字的布局、尺寸和外观。 */

#loginModalLabel,
#profileModalLabel,
#loginModalCustomerRegisterLabel {
    font-size: 54px;
}

/* 控制登录弹窗标签文字的布局、尺寸和外观。 */

.login-modal-label {
    color: #052518;
    margin-left: 12px;
}

/* 控制表单勾选标记输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

.login-modal-remember .form-check-input {
    border-radius: 6px;
    border: 1px solid rgba(111, 135, 100, 0.6);
    width: 1.1rem;
    height: 1.1rem;
    float: none;
    margin: 0;
    flex: 0 0 auto;
}

/* 控制表单勾选标记的布局、尺寸和外观。 */

.login-modal-remember .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding-left: 0;
}

/* 表单勾选标记输入框内输入框的尺寸和文字被选中时，显示选中状态。 */

.login-modal-remember .form-check-input:checked {
    background-color: #8bb26d;
    border-color: #8bb26d;
}

.login-modal-remember .form-check-input:focus {
    border-color: #c8e7b1;
    box-shadow: 0 0 0 3px rgb(213, 243, 189);
}

/* 控制顾客结账页面的布局、尺寸和外观。 */

.checkout-page {
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 20px;
}

/* 控制结账标题的布局、尺寸和外观。 */

.checkout-heading {
    margin-bottom: 1.25rem;
}

/* 控制结账标题的布局、尺寸和外观。 */

.checkout-title {
    font-weight: 800;
    color: #3d4a3f;
}

/* 控制结账副标题的布局、尺寸和外观。 */

.checkout-subtitle {
    color: #7e8a7a;
    font-weight: 600;
}

/* 控制结账数量的布局、尺寸和外观。 */

.checkout-count {
    color: #6d7568;
    font-weight: 700;
    margin: 0;
}

/* 控制结账页面左右内容栏的网格布局的布局、尺寸和外观。 */

.checkout-grid {
    align-items: start;
}

/* 控制结账订单页面外框的布局、尺寸和外观。 */

.checkout-order-shell {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* 控制档口卡片的布局、尺寸和外观。 */

.stall-card {
    background: linear-gradient(180deg, #eaf7db 0%, #dff1cf 100%);
    border-radius: 26px;
    padding: 1rem;
    box-shadow: 0 18px 34px rgba(63, 102, 42, 0.15);
    border: 1px solid #cde4b5;
}

/* 控制档口卡片中的标题和操作区域的布局、尺寸和外观。 */

.stall-card__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

/* 控制猪肉标识卡片底色的猪肉标识无猪肉版本的布局、尺寸和外观。 */

.stall-card.pork-surface--pork-free {
    background: linear-gradient(180deg, #eaf7db 0%, #dff1cf 100%);
    border-color: #cde4b5;
    box-shadow: 0 18px 34px rgba(63, 102, 42, 0.15);
}

/* 控制猪肉标识卡片底色的非猪肉标识无猪肉版本的布局、尺寸和外观。 */

.stall-card.pork-surface--non-pork-free {
    background: linear-gradient(180deg, #fff4e4 0%, #ffe7c8 100%);
    border-color: #f4d8ad;
    box-shadow: 0 18px 34px rgba(138, 86, 26, 0.14);
}

/* 控制猪肉标识卡片底色的PENDING版本的布局、尺寸和外观。 */

.stall-card.pork-surface--pending {
    background: linear-gradient(180deg, #f3f7ec 0%, #e9f1de 100%);
    border-color: #d7e3c6;
    box-shadow: 0 18px 34px rgba(76, 92, 57, 0.12);
}

/* 控制档口卡片中的AVATAR的布局、尺寸和外观。 */

.stall-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8b763, #f4a23a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* 控制档口卡片中的标题文字的布局、尺寸和外观。 */

.stall-card__title {
    font-weight: 800;
    color: #3d4a3f;
    margin: 0;
}

/* 控制档口卡片中的标题外层容器的布局、尺寸和外观。 */

.stall-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

/* 控制档口卡片中的主要内容区的布局、尺寸和外观。 */

.stall-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 控制项目卡片的布局、尺寸和外观。 */

.item-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
    padding: 0.85rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
}

/* 控制项目卡片中的商品缩略图的布局、尺寸和外观。 */

.item-card__thumb {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* 控制项目卡片中的主要内容区的布局、尺寸和外观。 */

.item-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* 控制项目卡片中的顶部内容行的布局、尺寸和外观。 */

.item-card__top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

/* 控制项目卡片中的标题文字的布局、尺寸和外观。 */

.item-card__title {
    font-weight: 800;
    color: #052518;
    line-height: 1.15;
}

/* 控制项目卡片中的删除按钮的布局、尺寸和外观。 */

.item-card__remove {
    border: none;
    background: #ffe5e5;
    color: #d94a4a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(217, 74, 74, 0.18);
}

/* 控制项目卡片中的标签列表的布局、尺寸和外观。 */

.item-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* 控制项目标签的布局、尺寸和外观。 */

.item-tag {
    background: #f3f7ef;
    color: #3f5a3a;
    border-radius: 10px;
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
    border: 1px solid #d5e3c6;
    font-weight: 700;
}

/* 控制项目卡片中的底部的布局、尺寸和外观。 */

.item-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 控制项目卡片中的数量的布局、尺寸和外观。 */

.item-card__quantity {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 控制项目卡片中的字段名称文字的布局、尺寸和外观。 */

.item-card__label {
    font-weight: 700;
    color: #586454;
}

/* 控制数量控制项的布局、尺寸和外观。 */

.qty-control {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e4e6e1;
    background: #fbfbfb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    min-height: 44px;
}

/* 控制数量按钮的布局、尺寸和外观。 */

.qty-btn {
    border: none;
    background: transparent;
    color: #f4a23a;
    font-weight: 800;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

/* 控制订单数量的布局、尺寸和外观。 */

.order-quantity {
    border: none;
    width: 76px;
    text-align: center;
    font-weight: 700;
    background: transparent;
    min-height: 44px;
}

/* 订单数量获得输入焦点时，显示清楚的焦点反馈。 */

.order-quantity:focus {
    outline: none;
}

/* 控制项目卡片中的价格文字的布局、尺寸和外观。 */

.item-card__price {
    text-align: right;
}

/* 控制项目卡片中的价格数值的布局、尺寸和外观。 */

.item-card__price-value {
    font-weight: 800;
    color: #052518;
    font-size: 1.05rem;
}

/* 控制结账详情区卡片的布局、尺寸和外观。 */

.checkout-details-card {
    background: linear-gradient(180deg, #fffef9 0%, #fffaf0 100%);
    border: 1px solid #f2d9b2;
    border-radius: 34px;
    box-shadow: 0 20px 36px rgba(83, 71, 45, 0.12);
    padding: 1.3rem 1.45rem 1.6rem;
    position: relative;
    overflow: hidden;
}

/* 控制结账详情区卡片中的强调色装饰的布局、尺寸和外观。 */

.checkout-details-card__accent {
    position: absolute;
    width: 50px;
    right: 1rem;
    top: 0.9rem;
    pointer-events: none;
    opacity: 0.9;
}

/* 控制结账详情区标题区域的布局、尺寸和外观。 */

.checkout-details-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

/* 控制结账详情区标题区域内标题文字的大小和间距的布局、尺寸和外观。 */

.checkout-details-header h5 {
    font-weight: 800;
    color: #052518;
    font-size: clamp(1.7rem, 2.8vw, 2.15rem);
}

/* 控制结账详情区标题区域中的备注内容的布局、尺寸和外观。 */

.checkout-details-header__note {
    color: #7d8574;
    font-size: 0.92rem;
}

/* 控制结账详情区面板的布局、尺寸和外观。 */

.checkout-details-panel {
    --checkout-details-field-gap: 2.5rem;
    border-radius: 38px;
    border: 0px solid #FFB45B;
    background: #FFFDF8;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: var(--checkout-details-field-gap);
}

/* 控制结账详情区标签文字的布局、尺寸和外观。 */

.checkout-details-label {
    color: #083b25;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 1000 !important;
    margin-left: var(--checkout-label-indent);
}

.checkout-required-marker {
    color: #FF8C3A;
}

/* The Optional text beside Note to Driver can be sized independently here. */
.checkout-driver-note-optional {
    font-size: 0.8rem;
    font-weight: 650;
}

/* 控制结账行内备注的布局、尺寸和外观。 */

.checkout-inline-note {
    font-size: 0.88rem;
    color: #7b7f70;
    line-height: 1.45;
}

/* 控制结账页面的资料输入栏的布局、尺寸和外观。 */

.checkout-field {
    margin-bottom: 0;
}

/* Reveal Delivery fields without the flash caused by toggling display:none/block. */
.checkout-delivery-fields {
    display: grid;
    grid-template-rows: 0fr;
    margin-bottom: calc(-1 * var(--checkout-details-field-gap));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
        grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        margin-bottom 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease,
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.36s;
}

.checkout-delivery-fields.is-visible {
    grid-template-rows: 1fr;
    margin-bottom: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.checkout-delivery-fields__inner {
    min-height: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .checkout-delivery-fields {
        transition: none;
    }
}

.checkout-page .checkout-field.has-checkout-validation-warning .checkout-input-wrap .pill-input,
.checkout-page .checkout-field.has-checkout-validation-warning .checkout-order-type-group,
.checkout-page .checkout-field.has-checkout-validation-warning .checkout-payment-selector__trigger {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important;
}

.checkout-page .checkout-validation-shake {
    animation: menu-variation-limit-shake 0.8s ease-in-out 2;
}

.checkout-page .checkout-validation-message {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: min(18rem, 70vw);
    margin: 0 0 0.5rem 0.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 10px;
    background: #fff5f5;
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 18px rgba(91, 31, 36, 0.14);
    pointer-events: none;
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
    .checkout-page .checkout-validation-shake {
        animation: none;
    }
}

.checkout-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

/* 统一控制胶囊按钮输入框内输入框的尺寸和文字及相关元素的布局和外观。 */

.checkout-page .pill-input,
.checkout-page .form-control.pill-input {
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ecd7b0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    min-height: 38px;
    max-height: 38px;
    padding: 0.78rem 1rem;
}

/* Match the normal checkout inputs initially, while allowing the driver note to grow vertically. */
#checkoutForm .checkout-driver-note-wrap {
    position: relative;
}

#checkoutForm .checkout-driver-note-wrap::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 1;
    width: 12px;
    height: 12px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10L10 2M6 10L10 6' fill='none' stroke='%23FF8C3A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

#checkoutForm #checkoutOrderRemark {
    height: 38px;
    min-height: 38px;
    max-height: none;
    padding: 0.375rem 2.5rem 0.375rem 1rem;
    line-height: 1.5;
    resize: none;
    overflow: auto;
}

#checkoutForm .checkout-driver-note-resize {
    position: absolute;
    right: -8px;
    bottom: -8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: ns-resize;
    touch-action: none;
}

#checkoutForm .checkout-driver-note-resize:focus-visible {
    outline: 3px solid rgba(255, 140, 58, 0.24);
    outline-offset: -10px;
}

#checkoutForm .checkout-input-wrap .pill-input:focus,
#checkoutForm #checkoutOrderRemark:focus,
#checkoutForm #checkoutOrderRemark.is-resizing {
    border-color: #E1DEC3;
    box-shadow: 0 0 0 3px rgba(244, 164, 64, 0.15);
}

@media (max-width: 576px) {
    #checkoutForm .checkout-details-label {
        font-weight: 650 !important;
    }

    #checkoutForm #checkoutOrderRemark {
        height: 42px;
        min-height: 42px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* 控制胶囊按钮单选按钮分组的布局、尺寸和外观。 */

.pill-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* 控制胶囊按钮单选按钮的布局、尺寸和外观。 */

.pill-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 18px;
    border: 1px solid #e8dcc3;
    background: #fff;
    font-weight: 700;
    color: #3d4a3f;
    min-height: 44px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(115, 98, 65, 0.06);
}

/* 控制表单勾选标记输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

.pill-radio .form-check-input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    cursor: pointer;
}

/* 控制胶囊按钮单选按钮的布局、尺寸和外观。 */

.pill-radio span {
    position: relative;
    padding-left: 2rem;
}

/* 为胶囊按钮单选按钮添加不占用内容空间的装饰图层。 */

.pill-radio span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 2px solid #d9c8a1;
    background: #fff;
    transform: translateY(-50%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* 为表单勾选标记输入框内输入框的尺寸和文字添加不占用内容空间的装饰图层。 */

.pill-radio .form-check-input:checked + span::before {
    border-color: #f29a30;
    box-shadow: inset 0 0 0 0.32rem #f29a30;
}

/* 为表单勾选标记输入框内输入框的尺寸和文字添加不占用内容空间的装饰图层。 */

.pill-radio .form-check-input:focus-visible + span::before {
    outline: 3px solid rgba(242, 154, 48, 0.2);
    outline-offset: 2px;
}

/* Present Order type and cutlery choices as connected segmented controls. */
.checkout-order-type-group,
.checkout-cutlery-group {
    display: grid;
    max-width: 100%;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border:1px solid #E1DEC3;
    border-radius: 999px;
    background: #ffffff;
}

.checkout-segmented-group--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 66.6667%;
}

.checkout-segmented-group--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.checkout-order-type-option,
.checkout-cutlery-option {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid #E1DEC3;
    border-radius: 0;
    background: transparent;
    color: #666B72;
    box-shadow: none;
}

#checkoutForm .checkout-order-type-option,
#checkoutForm .checkout-cutlery-option {
    box-shadow: none !important;
}

.checkout-order-type-option:last-child,
.checkout-cutlery-option:last-child {
    border-right: 0;
}

.checkout-order-type-option > span,
.checkout-cutlery-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 38px;
    max-height: 38px;
    padding: 0.45rem 0.75rem;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.checkout-order-type-option > span::before,
.checkout-cutlery-option span::before {
    display: none;
}

.checkout-order-type-option:hover > span,
.checkout-cutlery-option:hover span {
    background: #fff;
}

.checkout-order-type-option:has(.form-check-input:disabled) {
    cursor: not-allowed;
}

.checkout-order-type-option .form-check-input:disabled + span {
    background: #eef0ed;
    color: #939991;
    cursor: not-allowed;
    opacity: 1;
}

.checkout-order-type-option:has(.form-check-input:disabled):hover span {
    background: #eef0ed;
}

#checkoutForm .checkout-order-type-option[data-delivery-closed-trigger],
#checkoutForm .checkout-order-type-option[data-delivery-closed-trigger] > span {
    cursor: pointer;
}

#checkoutForm .checkout-order-type-option[data-delivery-closed-trigger] .form-check-input:disabled {
    pointer-events: none;
}

#checkoutForm .checkout-order-type-option[data-delivery-closed-trigger]:focus-visible {
    outline: 3px solid rgba(242, 154, 48, 0.2);
    outline-offset: -3px;
}

#checkoutForm .checkout-order-type-option[data-delivery-closed-trigger].is-closed-feedback > span {
    background: #fff0f0 !important;
    color: #b42318 !important;
    animation: menu-variation-limit-shake 0.55s ease-in-out 1;
}

#checkoutForm .checkout-order-type-option[data-delivery-closed-trigger].is-closed-feedback
    :is(.checkout-order-type-option__label, .checkout-order-type-option__default, .checkout-order-type-option__expanded) {
    color: #b42318 !important;
}

#checkoutForm .checkout-order-type-option[data-delivery-closed-trigger].is-closed-feedback .checkout-choice-icon {
    background-color: #b42318 !important;
}

@media (prefers-reduced-motion: reduce) {
    #checkoutForm .checkout-order-type-option[data-delivery-closed-trigger].is-closed-feedback > span {
        animation: none;
    }
}

.checkout-order-type-option .form-check-input:checked + span,
.checkout-cutlery-option .form-check-input:checked + span {
    background: #ffad55;
    color: #fff;
}

#checkoutForm .checkout-order-type-option .form-check-input:checked + span .checkout-choice-icon,
#checkoutForm .checkout-cutlery-option .form-check-input:checked + span .checkout-choice-icon {
    background-color: #fff;
}

.checkout-order-type-option .form-check-input:focus-visible + span,
.checkout-cutlery-option .form-check-input:focus-visible + span {
    outline: 3px solid rgba(242, 154, 48, 0.28);
    outline-offset: -3px;
}

/* Expand the selected Order type while keeping the other choices as icon buttons. */
#checkoutForm .checkout-order-type-group {
    display: flex;
}

#checkoutForm .checkout-order-type-control {
    position: relative;
}

#checkoutForm .checkout-delivery-expected-label {
    position: absolute;
    z-index: 2;
    top: 0;
    right: calc((100% - 96px) / 2);
    padding: 0;
    border: 0;
    background: transparent;
    color: #7b7f70;
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(50%, calc(-100% - 0.3rem)) scale(0.96);
    transition: opacity 0.18s ease, transform 0.24s ease, visibility 0s linear 0.24s;
}

#checkoutForm .checkout-order-type-group:has(#orderTypeDelivery:checked)
    + .checkout-delivery-expected-label {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, calc(-100% - 0.3rem)) scale(1);
    transition-delay: 0.3s, 0.3s, 0s;
}

#checkoutForm .checkout-delivery-expected-label strong {
    font-weight: 700;
}

#checkoutForm .checkout-order-type-option {
    flex: 1 1 0;
    transition: flex-basis 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        flex-grow 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

#checkoutForm .checkout-order-type-option > span {
    transition: background-color 0.18s ease, color 0.18s ease,
        gap 0.3s ease, padding 0.3s ease;
}

#checkoutForm .checkout-order-type-option__label,
#checkoutForm .checkout-order-type-option__default,
#checkoutForm .checkout-order-type-option__expanded {
    position: static;
    min-height: 0;
    max-height: none;
    padding: 0;
}

#checkoutForm .checkout-order-type-option__label::before,
#checkoutForm .checkout-order-type-option__default::before,
#checkoutForm .checkout-order-type-option__expanded::before {
    display: none;
}

#checkoutForm .checkout-order-type-option__label {
    display: grid;
    align-items: center;
    justify-items: center;
    width: auto;
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    font: inherit;
    line-height: inherit;
    white-space: nowrap;
    opacity: 1;
    transition: max-width 0.3s ease, opacity 0.18s ease;
}

#checkoutForm .checkout-order-type-option__default,
#checkoutForm .checkout-order-type-option__expanded {
    display: block;
    grid-area: 1 / 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
}

#checkoutForm .checkout-order-type-option__default {
    max-width: 8rem;
    opacity: 1;
    transform: translateY(0);
}

#checkoutForm .checkout-order-type-option__default--take-away {
    width: min-content;
    max-width: 3rem;
    line-height: 1.05;
    white-space: normal;
}

#checkoutForm .checkout-order-type-option__expanded {
    max-width: 0;
    opacity: 0;
    transform: translateY(4px);
}

#checkoutForm .checkout-order-type-group:has(input[name="order_type"]:checked) .checkout-order-type-option {
    flex: 0 0 48px;
}

#checkoutForm .checkout-order-type-group:has(input[name="order_type"]:checked)
    .checkout-order-type-option:has(input[name="order_type"]:checked) {
    flex: 1 1 0;
}

#checkoutForm .checkout-order-type-group:has(input[name="order_type"]:checked)
    .checkout-order-type-option:not(:has(input[name="order_type"]:checked)) > span {
    gap: 0;
    padding-right: 0;
    padding-left: 0;
}

#checkoutForm .checkout-order-type-group:has(input[name="order_type"]:checked)
    .checkout-order-type-option:not(:has(input[name="order_type"]:checked)) .checkout-order-type-option__label {
    max-width: 0;
    opacity: 0;
}

#checkoutForm .checkout-order-type-option:has(input[name="order_type"]:checked)
    .checkout-order-type-option__default {
    max-width: 0;
    opacity: 0;
    transform: translateY(-4px);
}

#checkoutForm .checkout-order-type-option:has(input[name="order_type"]:checked)
    .checkout-order-type-option__expanded {
    max-width: 16rem;
    opacity: 1;
    transform: translateY(0);
}

/* Match supplied order and cutlery SVGs to the checkout selection controls. */
#checkoutForm .checkout-choice-icon {
    width: var(--checkout-icon-size);
    height: var(--checkout-icon-size);
    flex: 0 0 auto;
    object-fit: contain;
    transform: scale(var(--checkout-icon-scale, 1));
    transform-origin: center;
}

#checkoutForm .checkout-order-type-option .checkout-choice-icon,
#checkoutForm .checkout-cutlery-option .checkout-choice-icon {
    position: relative;
    top: -2px;
}

#checkoutForm .checkout-cutlery-option span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#checkoutForm .checkout-payment-mode__icon .checkout-selector-icon {
    width: var(--checkout-icon-size);
    height: var(--checkout-icon-size);
    object-fit: contain;
    transform: scale(var(--checkout-icon-scale, 1));
    transform-origin: center;
}

#checkoutForm .checkout-svg-icon--address {
    --checkout-icon-scale: 1.5;
}

#checkoutForm .checkout-svg-icon--collect {
    --checkout-icon-scale: 1.6;
}

/* Optical compensation for the different aspect ratios in the supplied SVG artwork. */

#checkoutForm .checkout-svg-icon--user-name {
    --checkout-icon-scale: 1.2;
}

#checkoutForm .checkout-svg-icon--email {
    --checkout-icon-scale: 1.4;
}

#checkoutForm .checkout-svg-icon--cutlery {
    --checkout-icon-scale: 0.9;
}

#checkoutForm .checkout-svg-icon--no-cutlery {
    --checkout-icon-scale: 1;
}

#checkoutForm .checkout-svg-icon--take-away {
    --checkout-icon-scale: 0.88;
}

#checkoutForm .checkout-svg-icon--delivery {
    --checkout-icon-scale: 1.3;
}

/* 控制结账付款页面外框的布局、尺寸和外观。 */

.checkout-payment-shell {
    border: 1px solid #ecd8b3;
    border-radius: 34px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding: 1rem;
}

/* 控制结账付款页面外框中的标题文字的布局、尺寸和外观。 */

.checkout-payment-shell__title {
    font-weight: 800;
    color: #052518;
    margin-bottom: 0.9rem;
}

/* 控制结账页面的付款方式选项的布局、尺寸和外观。 */

.checkout-payment-mode {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.checkout-payment-mode__buttons {
    --checkout-payment-button-inline-inset: 1.5rem;
    --checkout-payment-row-inline-padding: 1.8rem;
    --checkout-payment-icon-size: 1.5rem;
    --checkout-payment-icon-divider-gap: 0.75rem;
    --checkout-payment-divider-text-gap: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.checkout-payment-mode__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

#checkoutForm .checkout-points__control {
    display: flex;
    align-items: center;
    width: calc(100% - (var(--checkout-payment-button-inline-inset) * 2));
    min-height: 42px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d9cf93;
    border-radius: 999px;
    background: #fff;
    color: #9b9b9b;
    font-size: 0.78rem;
    font-weight: 600;
}

#checkoutForm .checkout-points__control:focus-within {
    box-shadow: 0 0 0 3px rgba(244, 164, 64, 0.15);
}

#checkoutForm .checkout-points__icon {
    box-sizing: border-box;
    display: flex;
    width: calc(var(--checkout-payment-row-inline-padding) + var(--checkout-payment-icon-size) + var(--checkout-payment-icon-divider-gap) + 1px);
    height: 1.5rem;
    flex: 0 0 calc(var(--checkout-payment-row-inline-padding) + var(--checkout-payment-icon-size) + var(--checkout-payment-icon-divider-gap) + 1px);
    align-items: center;
    justify-content: flex-start;
    padding-right: var(--checkout-payment-icon-divider-gap);
    padding-left: var(--checkout-payment-row-inline-padding);
    border-right: 1px solid #d9cf93;
}

#checkoutForm .checkout-points__icon img {
    display: block;
    width: var(--checkout-payment-icon-size);
    height: var(--checkout-payment-icon-size);
    object-fit: contain;
}

#checkoutForm .checkout-points__balance-label {
    width: max-content;
    min-width: max-content;
    flex: 0 0 auto;
    align-self: center;
    height: 1.5rem;
    padding: 0 0.55rem;
    border-left: 1px solid #d9cf93;
    color: #9b9b9b;
    font-weight: 700;
    line-height: 1.5rem;
    text-align: right;
    white-space: nowrap;
}

#checkoutForm .checkout-points__input-wrap {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-self: stretch;
    align-items: center;
    color: #9b9b9b;
}

#checkoutForm .checkout-points__input-wrap input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    align-self: stretch;
    padding: 0 var(--checkout-payment-divider-text-gap);
    border: 0;
    outline: 0;
    background: transparent;
    color: #888;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-align: left;
}

#checkoutForm .checkout-points__input-wrap input::placeholder {
    color: #b9b9b9;
}

#checkoutForm .checkout-points__input-wrap input:disabled {
    color: #b9b9b9;
}

#checkoutForm .checkout-points__error {
    width: calc(100% - (var(--checkout-payment-button-inline-inset) * 2));
    margin: 0.35rem auto 0;
    color: #b42318;
    font-size: 0.72rem;
}

.checkout-payment-option__label {
    display: block;
}

.checkout-payment-mode__button {
    width: calc(100% - (var(--checkout-payment-button-inline-inset) * 2));
    align-self: center;
    min-width: 0;
    min-height: 42px;
    max-height: 42px;
    padding: 0 var(--checkout-payment-row-inline-padding);
    border: 1px solid #ecd7b0;
    border-radius: 999px;
    background: #fff;
    color: #666b72;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--checkout-payment-divider-text-gap);
    text-align: left;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.checkout-payment-mode__button .checkout-payment-mode__icon {
    box-sizing: border-box;
    width: calc(var(--checkout-payment-icon-size) + var(--checkout-payment-icon-divider-gap) + 1px);
    height: 1.5rem;
    padding-right: var(--checkout-payment-icon-divider-gap);
    border-right: 1px solid #ecd7b0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    font-size: 0.85rem;
    justify-content: flex-start;
}

.checkout-payment-mode__button .checkout-payment-mode__icon img {
    display: block;
    width: var(--checkout-payment-icon-size);
    height: var(--checkout-payment-icon-size);
    object-fit: contain;
}

#checkoutForm .checkout-payment-channel-option:is(
    [data-payment-channel="tng"],
    [data-payment-channel="shopeepay"],
    [data-payment-channel="grabpay"]
) .checkout-payment-mode__icon img,
#checkoutForm .checkout-payment-channel-option .checkout-payment-mode__icon img.is-payment-placeholder {
    border-radius: 5px;
    clip-path: inset(0 round 5px);
    transform: scale(1);
}

.checkout-payment-mode__button .checkout-payment-mode__copy {
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.checkout-payment-mode__button .checkout-payment-mode__copy strong,
.checkout-payment-mode__button .checkout-payment-mode__meta {
    color: currentColor;
}

.checkout-payment-mode__button .checkout-payment-mode__meta {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.checkout-payment-mode__button.is-selected {
    border-color: #ffad55;
    background: #ffad55;
    color: #fff;
}

.checkout-payment-mode__button:not(:disabled):hover,
.checkout-payment-mode__button:not(:disabled):focus-visible {
    border-color: #ffad55;
}

.checkout-payment-mode__button.is-locked,
.checkout-payment-mode__button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

#checkoutForm .checkout-payment-mode__group {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

#checkoutForm .checkout-payment-channel-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 44px;
    align-content: start;
    box-sizing: border-box;
    height: 46px;
    margin: 0 var(--checkout-payment-button-inline-inset);
    overflow: hidden;
    border: 1px solid #d9cf93;
    border-radius: 24px;
    background: #fff;
    gap: 0;
    transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

#checkoutForm .checkout-payment-channel-options :is(.checkout-payment-channel-option, .checkout-payment-channel-more) {
    width: 100%;
    min-height: 44px;
    max-height: 44px;
    margin: 0;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #666b72;
    box-shadow: none;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.32s ease, visibility 0.32s;
}

#checkoutForm .checkout-payment-channel-options:not(.is-open) :is(.checkout-payment-channel-option:not(.is-current-online), .checkout-payment-channel-more),
#checkoutForm .checkout-payment-channel-options.is-open:not(.is-more-open) .checkout-payment-channel-option--more:not(.is-current-online) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
}

#checkoutForm .checkout-payment-channel-more {
    cursor: pointer;
    justify-content: center;
    gap: 0;
    text-align: center;
}

#checkoutForm .checkout-payment-channel-option.is-current-online {
    order: -1;
    cursor: pointer;
}

#checkoutForm .checkout-payment-channel-options .checkout-payment-channel-option.is-selected {
    border-color: transparent;
    background: transparent;
    color: #052518;
}

#checkoutForm .checkout-payment-channel-options .checkout-payment-channel-option:hover,
#checkoutForm .checkout-payment-channel-options .checkout-payment-channel-option:focus-visible {
    border-color: transparent;
    background: transparent;
}

#checkoutForm .checkout-payment-channel-option__chevron {
    display: none;
    margin-left: auto;
}

#checkoutForm .checkout-payment-channel-option.is-current-online .checkout-payment-channel-option__chevron {
    display: inline-flex;
}

#checkoutForm .checkout-payment-channel-option.is-selected .checkout-payment-selector__chevron-icon {
    background-color: #FFAD55;
}

#checkoutForm .checkout-payment-channel-option[aria-expanded="true"] .checkout-payment-channel-option__chevron {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    #checkoutForm .checkout-payment-channel-options,
    #checkoutForm .checkout-payment-channel-options :is(.checkout-payment-channel-option, .checkout-payment-channel-more) {
        transition: none;
    }
}

/* 控制结账页面的付款方式选项中的字段名称文字的布局、尺寸和外观。 */

.checkout-payment-mode__label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9b8761;
}

/* 控制结账页面的付款方式选项中的图标位置和尺寸的布局、尺寸和外观。 */

.checkout-payment-mode__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff2dc, #ffe2b4);
    color: #e6942f;
    font-size: 1rem;
    flex: 0 0 auto;
}

[data-delivery-selector] .checkout-payment-mode__icon,
[data-collect-suboption] .checkout-payment-mode__icon {
    width: 2.35rem;
    height: 2.35rem;
    background:transparent;
}

/* 控制结账页面的付款方式选项中的单项选择框的布局、尺寸和外观。 */

.checkout-payment-mode__singlebox {
    min-height: 38px;
    border: 1px solid #ecd7b0;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: border-color 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease;
}

/* 结账页面的付款方式选项中的单项选择框展开时，显示已打开的内容和箭头状态。 */

.checkout-payment-mode__singlebox.is-open {
    border-color: #e4b463;
    border-radius: 18px;
    box-shadow: 0 0 0 3px rgba(228, 180, 99, 0.14);
}

/* 统一控制结账页面的付款方式选项中的单行内容的排列及相关元素的布局和外观。 */

.checkout-payment-mode__row,
.checkout-payment-mode__option {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    color: inherit;
}

/* 控制结账页面的付款方式选项中的单行内容的排列的布局、尺寸和外观。 */

.checkout-payment-mode__row {
    min-height: 36px;
    max-height: 36px;
    padding: 0 1rem;
    cursor: pointer;
}

.checkout-payment-mode__row .checkout-payment-mode__icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.85rem;
}

.checkout-payment-mode__row .checkout-payment-mode__copy {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
}

.checkout-payment-mode__row .checkout-payment-mode__meta {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 结账页面的付款方式选项中的单行内容的排列不可操作时，显示禁用状态。 */

.checkout-payment-mode__row:disabled {
    cursor: default;
}

/* 控制结账页面的付款方式选项中的左侧图标区的布局、尺寸和外观。 */

.checkout-payment-mode__leading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* 控制结账页面的付款方式选项中的说明文字的布局、尺寸和外观。 */

.checkout-payment-mode__copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* 控制结账页面的付款方式选项中的说明文字的布局、尺寸和外观。 */

.checkout-payment-mode__copy strong {
    color: #052518;
    font-size: 0.98rem;
}

/* 控制结账页面的付款方式选项中的辅助资料文字的布局、尺寸和外观。 */

.checkout-payment-mode__meta {
    display: block;
    color: #7b7f70;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
}

/* 控制结账页面的付款方式选项中的展开或移动箭头的布局、尺寸和外观。 */

.checkout-payment-mode__arrow {
    color: #b38b4c;
    font-size: 0.92rem;
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.checkout-payment-mode__arrow-icon {
    display: block;
    width: 0.8rem;
    height: 0.5rem;
    object-fit: contain;
}

/* 结账页面的付款方式选项中的展开或移动箭头展开时，显示已打开的内容和箭头状态。 */

.checkout-payment-mode__singlebox.is-open .checkout-payment-mode__arrow {
    transform: rotate(180deg);
}

/* 控制结账页面的付款方式选项中的面板的布局、尺寸和外观。 */

.checkout-payment-mode__panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: #fffdfa;
    transition: max-height 0.28s ease, opacity 0.22s ease;
}

/* 控制结账页面的付款方式选项中的选项的布局、尺寸和外观。 */

.checkout-payment-mode__option {
    min-height: 56px;
    background: #fffdfa;
    border-top: 1px solid rgba(239, 194, 122, 0.32);
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}

/* 鼠标悬停或键盘聚焦结账页面的付款方式选项中的选项时，提供可操作反馈。 */

.checkout-payment-mode__option:hover,
.checkout-payment-mode__option:focus-visible {
    background: #fff4df;
}

/* 结账页面的付款方式选项中的选项被选中时，显示选中状态。 */

.checkout-payment-mode__option[hidden],
.checkout-payment-mode__option.is-selected {
    display: none;
}

/* 结账页面的付款方式选项中的选项被锁定时，显示不可更改状态。 */

.checkout-payment-mode__option.is-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 鼠标悬停或键盘聚焦结账页面的付款方式选项中的选项时，提供可操作反馈。 */

.checkout-payment-mode__option:disabled:hover,
.checkout-payment-mode__option:disabled:focus-visible {
    background: #fffdfa;
}

/* 控制结账付款选择器的布局、尺寸和外观。 */

.checkout-payment-selector {
    position: relative;
}

/* 控制结账付款选择器中的展开按钮的布局、尺寸和外观。 */

.checkout-payment-selector__trigger {
    width: 100%;
    border: 1px solid #ecd6af;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 18px rgba(106, 88, 51, 0.06);
    min-height: 56px;
    padding: 0.8rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    text-align: left;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

[data-delivery-selector] {
    --checkout-address-edge-icon-gap: 2rem;
    --checkout-address-icon-divider-gap: 1rem;
    --checkout-address-divider-text-gap: 1.5rem;
    --checkout-collect-overlap: 1rem;
    --checkout-collect-side-inset: 4rem;
    --checkout-collect-heading-icon-width: 1.28rem;
    --checkout-collect-heading-gap: 0.6rem;
    --checkout-collect-heading-left: calc(
        var(--checkout-address-edge-icon-gap)
        + 1.5rem
        + var(--checkout-address-icon-divider-gap)
        + var(--checkout-address-divider-text-gap)
        - var(--checkout-collect-side-inset)
    );
}

[data-delivery-selector] .checkout-delivery-selectbox {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid #E1DEC3;
    border-radius: 24px;
    background: #fff;
    transition: border-color 0.18s ease;
}

[data-delivery-selector].is-open .checkout-delivery-selectbox {
    border-color: #e9bf73;
    border-radius: 24px;
}

[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger {
    position: relative;
    z-index: 1;
    min-height: 44px;
    max-height: 44px;
    padding: 0 var(--checkout-address-edge-icon-gap);
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger .checkout-payment-selector__leading {
    gap: var(--checkout-address-divider-text-gap);
}

[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger .checkout-payment-mode__icon {
    box-sizing: border-box;
    width: calc(1.5rem + var(--checkout-address-icon-divider-gap));
    height: 1.5rem;
    padding-right: var(--checkout-address-icon-divider-gap);
    border-right: 1px solid #ecd7b0;
    border-radius: 0;
    background: transparent;
    justify-content: flex-start;
}

#checkoutForm [data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger:has([data-delivery-current-label]:not(.is-placeholder))
    .checkout-svg-icon--address {
    background-color: #FFAD55;
}

[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger .checkout-payment-selector__copy strong {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__menu {
    gap: 0;
    margin-top: 0;
    transform: none;
}

[data-delivery-selector].is-open .checkout-delivery-selectbox > .checkout-payment-selector__menu {
    padding-bottom: 0.35rem;
}

/* 鼠标悬停或键盘聚焦结账付款选择器中的展开按钮时，提供可操作反馈。 */

.checkout-payment-selector__trigger:hover,
.checkout-payment-selector__trigger:focus-visible,
.checkout-payment-selector__trigger.is-open {
    border-color: #e9bf73;
    box-shadow: 0 14px 24px rgba(106, 88, 51, 0.1);
}

[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger,
[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger:hover,
[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger:focus-visible,
[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger:active,
[data-delivery-selector] .checkout-delivery-selectbox > .checkout-payment-selector__trigger.is-open {
    box-shadow: none !important;
    filter: none;
    transform: none !important;
}

/* 结账付款选择器中的展开按钮作为固定内容而非可选按钮时使用的样式。 */

.checkout-payment-selector__trigger.is-static {
    cursor: default;
}

/* 结账付款选择器中的展开按钮不可操作时，显示禁用状态。 */

.checkout-payment-selector__trigger:disabled {
    opacity: 1;
}

.checkout-collect-suboption {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.45rem);
    transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease,
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.checkout-collect-suboption.is-visible {
    grid-template-rows: 1fr;
    margin-top: calc(-1 * var(--checkout-collect-overlap));
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.checkout-collect-suboption__inner {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding: 0 var(--checkout-collect-side-inset) 0.1rem;
}

.checkout-collect-suboption__choices {
    display: grid;
    gap: 0;
    overflow: hidden;
    padding-top: var(--checkout-collect-overlap);
    border: 1px solid #ecd6af;
    border-radius: 0 0 24px 24px;
    background: #fff;
}

.checkout-collect-suboption__heading {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    gap: var(--checkout-collect-heading-gap);
    padding: 0.35rem 0.65rem 0.35rem var(--checkout-collect-heading-left);
    border: 0;
    background: transparent;
    color: #052518;
    text-align: left;
    cursor: pointer;
}

.checkout-collect-suboption__selected {
    display: none;
}

#checkoutForm .checkout-collect-suboption__heading .checkout-svg-icon--collect {
    transition: background-color 0.2s ease;
}

#checkoutForm .checkout-collect-suboption.has-selection .checkout-collect-suboption__heading .checkout-svg-icon--collect {
    background-color: #FFAD55;
}

#checkoutForm .checkout-collect-suboption__fold {
    display: inline-flex;
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 0.75rem;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

#checkoutForm .checkout-collect-suboption__fold .checkout-payment-selector__chevron-icon {
    width: 0.75rem;
    height: 0.75rem;
    background-color: #FFAD55;
}

#checkoutForm .checkout-collect-suboption.has-selection.is-collapsed .checkout-collect-suboption__heading > [data-collect-heading-label] {
    display: none;
}

#checkoutForm .checkout-collect-suboption.has-selection.is-collapsed .checkout-collect-suboption__selected {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#checkoutForm .checkout-collect-suboption.is-collapsed .checkout-collect-suboption__fold {
    transform: rotate(0deg);
}

.checkout-collect-suboption__heading .checkout-payment-mode__icon {
    width: var(--checkout-collect-heading-icon-width);
    height: var(--checkout-collect-heading-icon-width);
    justify-content: flex-start;
}

#checkoutForm .checkout-collect-suboption__heading .checkout-selector-icon {
    width: 0.8rem;
    height: 0.8rem;
    transform-origin: left center;
}

.checkout-collect-suboption__heading strong {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.checkout-collect-choice {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 38px;
    max-height: 48px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 2rem 0.35rem
        calc(
            var(--checkout-collect-heading-left)
            + var(--checkout-collect-heading-icon-width)
            + var(--checkout-collect-heading-gap)
        );
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #666B72;
    cursor: pointer;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.2s ease, min-height 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
}

#checkoutForm .checkout-collect-suboption.is-collapsed .checkout-collect-choice {
    min-height: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.checkout-collect-choice > .checkout-collect-choice__input {
    position: static;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    float: none;
    margin: 0;
    border-color: #9B9690;
    border-radius: 0.25em;
    background-image: none;
    box-shadow: none;
}

.checkout-collect-choice > .checkout-collect-choice__input:checked {
    border-color: #FF8C3A;
    background-color: #FF8C3A;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m4 8 2.5 2.5L12 5'/%3e%3c/svg%3e");
}

.checkout-collect-choice:hover > .checkout-collect-choice__input,
.checkout-collect-choice > .checkout-collect-choice__input:focus {
    border-color: #9B9690;
    box-shadow: 0 0 0 0.25rem #FFDDAB;
}

.checkout-collect-choice:hover > .checkout-collect-choice__input:checked,
.checkout-collect-choice > .checkout-collect-choice__input:checked:focus {
    border-color: #FF8C3A;
}

.checkout-collect-choice .checkout-payment-mode__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.checkout-collect-choice__copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    line-height: 1.25;
}

.checkout-collect-choice__copy strong {
    overflow: hidden;
    color: #052518;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 769px) {
    #checkoutForm .checkout-collect-suboption__fold {
        margin-right: 1rem;
    }
}

.checkout-collect-choice__copy span {
    overflow: hidden;
    color: #7b7f70;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-collect-choice[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .checkout-collect-suboption {
        transition: none;
    }
}

/* 控制结账付款选择器中的左侧图标区的布局、尺寸和外观。 */

.checkout-payment-selector__leading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* 统一控制结账付款选择器中的说明文字及相关元素的布局和外观。 */

.checkout-payment-selector__copy,
.checkout-payment-selector__option-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

/* 统一控制结账付款选择器中的说明文字及相关元素的布局和外观。 */

.checkout-payment-selector__copy strong,
.checkout-payment-selector__option-copy strong {
    color: #052518;
    font-size: 0.98rem;
}

.checkout-payment-selector__copy strong.is-placeholder {
    color: #a3a3a3;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

/* 统一控制结账付款选择器中的说明文字及相关元素的布局和外观。 */

.checkout-payment-selector__copy span,
.checkout-payment-selector__option-copy span {
    color: #7b7f70;
    font-size: 0.82rem;
    line-height: 1.35;
}

.checkout-payment-selector__price {
    margin-left: auto;
    color: #052518;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.checkout-payment-selector__price + .checkout-payment-selector__chevron {
    margin-left: 0.65rem;
}

/* 控制结账付款选择器中的下拉箭头的布局、尺寸和外观。 */

.checkout-payment-selector__chevron {
    color: #b38b4c;
    font-size: 0.9rem;
    flex: 0 0 auto;
    transition: transform 0.18s ease;
}

.checkout-payment-selector__chevron-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    background-color: #666B72;
    -webkit-mask-image: url('/arrow.svg');
    mask-image: url('/arrow.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.18s ease;
}

#checkoutForm [data-delivery-selector] .checkout-payment-selector__trigger:has([data-delivery-current-label]:not(.is-placeholder))
    .checkout-payment-selector__chevron-icon {
    background-color: #FFAD55;
}

/* 控制结账付款选择器中的下拉箭头的布局、尺寸和外观。 */

.checkout-payment-selector__trigger[aria-expanded="true"] .checkout-payment-selector__chevron {
    transform: rotate(180deg);
}

/* 控制结账付款选择器中的菜单的布局、尺寸和外观。 */

.checkout-payment-selector__menu {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.26s ease, opacity 0.2s ease, transform 0.2s ease;
}

/* 结账付款选择器中的菜单展开时，显示已打开的内容和箭头状态。 */

.checkout-payment-selector.is-open .checkout-payment-selector__menu {
    opacity: 1;
    max-height: 320px;
    overflow-y: auto;
    transform: translateY(0);
    pointer-events: auto;
}

/* 控制结账付款选择器中的选项的布局、尺寸和外观。 */

.checkout-payment-selector__option {
    width: 100%;
    border: 1px solid #ebd7b4;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 18px rgba(95, 78, 44, 0.05);
    min-height: 56px;
    padding: 0.8rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

/* 鼠标悬停或键盘聚焦结账付款选择器中的选项时，提供可操作反馈。 */

.checkout-payment-selector__option:hover,
.checkout-payment-selector__option:focus-visible {
    border-color: #e9bf73;
    box-shadow: 0 14px 24px rgba(106, 88, 51, 0.1);
    transform: translateY(-1px);
}

/* 结账付款选择器中的选项被选中时，显示选中状态。 */

.checkout-payment-selector__option.is-selected,
.checkout-payment-selector__option[hidden] {
    display: none;
}

/* 结账付款选择器中的选项被锁定时，显示不可更改状态。 */

.checkout-payment-selector__option.is-locked {
    border-style: dashed;
    background: #fcfaf5;
    opacity: 0.75;
    cursor: not-allowed;
}

/* 鼠标悬停或键盘聚焦结账付款选择器中的选项时，提供可操作反馈。 */

.checkout-payment-selector__option:disabled:hover,
.checkout-payment-selector__option:disabled:focus-visible {
    transform: none;
    box-shadow: 0 10px 18px rgba(95, 78, 44, 0.05);
}

/* Keep every delivery address inside one expanding capsule instead of separate cards. */
[data-delivery-selector] .checkout-delivery-selectbox .checkout-payment-selector__option {
    min-height: 42px;
    padding: 0.55rem var(--checkout-address-edge-icon-gap) 0.55rem
        calc(
            var(--checkout-address-edge-icon-gap)
            + 1.5rem
            + var(--checkout-address-icon-divider-gap)
            + var(--checkout-address-divider-text-gap)
        );
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    gap: 0;
    justify-content: space-between;
    transform: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

[data-delivery-selector] .checkout-delivery-selectbox .checkout-payment-selector__option > .checkout-payment-mode__icon {
    display: none;
}

[data-delivery-selector] .checkout-delivery-selectbox .checkout-payment-selector__option-copy strong {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

[data-delivery-selector] .checkout-delivery-selectbox .checkout-payment-selector__option:hover,
[data-delivery-selector] .checkout-delivery-selectbox .checkout-payment-selector__option:focus-visible {
    border: 0;
    background: #fff1df;
    box-shadow: none;
}

[data-delivery-selector] .checkout-delivery-selectbox .checkout-payment-selector__option:active {
    border: 0;
    background: #fff1df;
    box-shadow: none;
}

.checkout-page .checkout-field.has-checkout-validation-warning
    [data-delivery-selector] .checkout-delivery-selectbox {
    border-color: #dc3545 !important;
}

/* 控制结账摘要的布局、尺寸和外观。 */

.checkout-summary {
    border-top: none;
    padding-top: 0rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* 控制摘要内容行的布局、尺寸和外观。 */

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666B72;
    font-size: 0.82rem;
    font-weight: 400;
}

#checkoutForm .checkout-summary > .summary-row > span:first-child,
#checkoutForm .checkout-summary__total > span:first-child {
    margin-left: var(--checkout-label-indent);
}

#checkoutForm .checkout-summary > .summary-row > span:last-child,
#checkoutForm .checkout-summary__total > strong:last-child {
    margin-right: var(--checkout-label-indent);
}

#checkoutForm .summary-row--subtotal {
    color: #052518;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 控制结账摘要中的总金额文字的布局、尺寸和外观。 */

.checkout-summary__total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: none;
    color: #052518;
    font-weight: 800;
}

/* 控制结账摘要中的总金额文字的布局、尺寸和外观。 */

.checkout-summary__total > span,
.checkout-summary__total strong {
    font-size: 1.75rem;
    line-height: 1;
}

/* 控制提交订单的结账按钮的布局、尺寸和外观。 */

.checkout-page .checkout-btn {
    padding: 0.35rem 1.8rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(to right, #d1f2bb, #f6bb76, #ffb35b);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
    min-height: 48px;
    max-height: 48px;
    margin-top: 1rem;
}

/* 鼠标悬停或键盘聚焦提交订单的结账按钮时，提供可操作反馈。 */

.checkout-page .checkout-btn:hover {
    filter: brightness(0.98);
}

/* 控制提示信息的布局、尺寸和外观。 */

.alert {
    border-radius: 1rem;
}

/* 控制提示信息资料的布局、尺寸和外观。 */

.alert-info {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 25px 45px rgba(138, 188, 117, 0.25);
    padding: 1rem 1.25rem;
}

/* 控制按钮关闭按钮的布局、尺寸和外观。 */

.alert-info .btn-close {
    filter: invert(1);
}

/* 控制按钮关闭按钮的布局、尺寸和外观。 */

.login-modal .btn-close {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.35rem;
}

/* 按钮关闭按钮获得输入焦点时，显示清楚的焦点反馈。 */

.login-modal .btn-close:focus {
    box-shadow: none;
}

/* 鼠标悬停或键盘聚焦按钮关闭按钮时，提供可操作反馈。 */

.login-modal .btn-close:hover {
    background: rgba(15, 23, 42, 0.15);
}

/* 控制按钮主题的布局、尺寸和外观。 */

.btn-theme {
    background: linear-gradient(135deg, #f7c46a, #f29a30);
    color: #fff;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

/* 鼠标悬停或键盘聚焦按钮主题轮廓时，提供可操作反馈。 */


.btn-theme:hover {
    color: #fff;
    filter: brightness(0.95);
}

/* 控制登录认证页面页面外框的布局、尺寸和外观。 */

.auth-page-shell {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.92), #f6f1e9);
}

/* 控制登录认证页面卡片的布局、尺寸和外观。 */

.auth-page-card {
    max-width: 520px;
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.16);
    padding: 1.5rem 1.75rem 2rem;
}

/* 控制登录认证页面表单的布局、尺寸和外观。 */

.auth-page-form {
    margin-top: 0.5rem;
}

/* 控制登录弹窗输入框内输入框的尺寸和文字的布局、尺寸和外观。 */

.auth-page-form .login-modal-input {
    border-radius: 14px;
}

/* 控制登录弹窗标签文字的布局、尺寸和外观。 */

.auth-page-form .login-modal-label {
    font-weight: 700;
}

/* 订单成功页面 */

/* 控制订单提交成功页面的布局、尺寸和外观。 */

.success-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

/* 控制订单提交成功页面中的提示消息的布局、尺寸和外观。 */

.success-page__flash {
    border-radius: 22px;
    padding: 0.95rem 1.15rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(30, 52, 45, 0.08);
}

/* 控制订单提交成功页面中的提示消息订单成功的布局、尺寸和外观。 */

.success-page__flash--success {
    background: #eef9df;
    color: #2f6d42;
    border: 1px solid rgba(80, 146, 81, 0.18);
}

/* 控制订单提交成功页面中的提示消息危险状态的布局、尺寸和外观。 */

.success-page__flash--danger {
    background: #fff0ec;
    color: #9c3f31;
    border: 1px solid rgba(184, 91, 72, 0.18);
}

/* 统一控制订单成功页面顶部的订单摘要区及相关元素的布局和外观。 */

.success-hero,
.success-collect-card,
.success-receipt-card,
.success-qr-modal {
    position: relative;
    background: linear-gradient(180deg, #fffdf8, #fffaf3);
    border: 1px solid rgba(213, 189, 143, 0.36);
    border-radius: 32px;
    box-shadow: 0 4px 10px rgba(36, 48, 42, 0.045);
    overflow: hidden;
}

/* 统一控制订单成功页面顶部的订单摘要区及相关元素的布局和外观。 */

.success-page--failed .success-hero,
.success-page--failed .success-collect-card,
.success-page--failed .success-receipt-card {
    border-color: rgba(197, 112, 94, 0.28);
}

/* 控制订单成功页面顶部的订单摘要区的布局、尺寸和外观。 */

.success-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    min-height: 320px;
}

/* 控制订单成功页面顶部的订单摘要区的横幅版本的布局、尺寸和外观。 */

.success-hero--banner {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* 控制订单成功页面顶部的订单摘要区中的横幅页面外框的布局、尺寸和外观。 */

.success-hero__banner-shell {
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

/* 控制订单成功页面顶部的订单摘要区中的横幅图片的布局、尺寸和外观。 */

.success-hero__banner-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* 控制订单提交成功页面中的项目排列区域的布局、尺寸和外观。 */

.success-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 1.5rem;
    align-items: start;
}

/* 控制订单成功取餐卡片的布局、尺寸和外观。 */

.success-collect-card {
    padding: 1.45rem;
}

/* 控制订单成功区块标题的布局、尺寸和外观。 */

.success-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* 控制订单成功区块标题中的标题上方的小字的布局、尺寸和外观。 */

.success-section-heading__kicker {
    margin: 0 0 0.35rem;
    color: #8d856f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 控制订单成功区块标题内标题文字的大小和间距的布局、尺寸和外观。 */

.success-section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* 控制订单成功区块标题内说明文字的大小和颜色的布局、尺寸和外观。 */

.success-section-heading p {
    margin: 0.55rem 0 0;
    color: #76746a;
    line-height: 1.65;
    max-width: 32rem;
}

/* 控制订单成功胶囊按钮的布局、尺寸和外观。 */

.success-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(213, 189, 143, 0.36);
    color: #4c5248;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* 控制订单成功胶囊按钮的实色版本的布局、尺寸和外观。 */

.success-pill--solid {
    background: linear-gradient(135deg, #ffd079, #f4a13d);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 20px rgba(244, 161, 61, 0.2);
}

/* 控制订单成功二维码顶部摘要区的布局、尺寸和外观。 */

.success-qr-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
}

/* 控制订单成功二维码列表的布局、尺寸和外观。 */

.success-qr-list {
    display: grid;
    gap: 1rem;
}

/* 控制订单成功二维码列表中的项目的布局、尺寸和外观。 */

.success-qr-list__item {
    min-width: 0;
}

/* Order Detail keeps every ready collection QR in its own modal-inspired card. */
.success-qr-list--ticket-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    align-items: start;
}

.success-qr-ticket-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(34, 73, 54, 0.1);
    border-radius: 24px;
    background: #fff;
    color: #123e2d;
    box-shadow: 0 3px 8px rgba(36, 48, 42, 0.035);
}

.success-qr-ticket-card__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem 1.15rem;
}

.success-qr-ticket-card__header::after {
    position: absolute;
    right: 1.35rem;
    bottom: 0;
    left: 1.35rem;
    height: 1px;
    content: '';
    background: rgba(36, 69, 54, 0.1);
}

.success-qr-ticket-card__heading {
    min-width: 0;
}

.success-qr-ticket-card__stall {
    margin: 0 0 0.3rem;
    color: #5c7f6c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.success-qr-ticket-card__header h3 {
    margin: 0;
    color: #123e2d;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.success-qr-ticket-card__queue {
    margin: 0.28rem 0 0;
    color: #868b87;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.success-qr-ticket-card__header .success-pill {
    flex: 0 0 auto;
}

.success-qr-ticket-card__body {
    padding: 1.7rem 1.4rem 1.35rem;
    text-align: center;
}

.success-qr-ticket-card__locker-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #416b55;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.success-qr-ticket-card__locker-eyebrow::before,
.success-qr-ticket-card__locker-eyebrow::after {
    width: 28px;
    height: 1px;
    content: '';
    background: rgba(65, 107, 85, 0.18);
}

.success-qr-ticket-card__locker-code {
    margin-top: 0.65rem;
    color: #063c26;
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.success-qr-ticket-card__locker-hint,
.success-qr-ticket-card__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #858b86;
    font-size: 0.75rem;
}

.success-qr-ticket-card__locker-hint {
    margin: 1rem 0 0;
}

.success-qr-ticket-card__location {
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}

.success-qr-ticket-card__locker-hint i,
.success-qr-ticket-card__location i {
    flex: 0 0 auto;
    color: #75a46e;
    font-size: 0.95rem;
}

.success-qr-ticket-card__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 238px);
    aspect-ratio: 1;
    margin: 1.35rem auto 0;
    padding: 1rem;
    border: 1px solid rgba(34, 73, 54, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(36, 48, 42, 0.025);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.success-qr-ticket-card__location + .success-qr-ticket-card__frame {
    margin-top: 0;
}

.success-qr-ticket-card__frame:hover,
.success-qr-ticket-card__frame:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(36, 48, 42, 0.05);
}

.success-qr-ticket-card__frame svg {
    width: 100%;
    height: auto;
}

.success-qr-ticket-card__instruction {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.8rem;
    padding: 1.4rem 0.55rem 0.15rem;
    border-top: 1px solid rgba(36, 69, 54, 0.09);
    color: #747b76;
    text-align: left;
}

.success-qr-ticket-card__instruction i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #78a66f;
    font-size: 1.05rem;
    line-height: 1;
}

.success-qr-ticket-card__instruction p {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
}

.success-qr-ticket-card__counter {
    margin-top: 0.9rem;
    color: #8a8d89;
    font-size: 0.72rem;
    font-weight: 750;
}

@media (max-width: 576px) {
    .success-qr-ticket-card__header {
        flex-direction: column;
        gap: 0.7rem;
        padding: 1rem;
    }

    .success-qr-ticket-card__header::after {
        right: 1rem;
        left: 1rem;
    }

    .success-qr-ticket-card__header .success-pill {
        align-self: flex-start;
    }

    .success-qr-ticket-card__body {
        padding: 1.35rem 1rem 1.1rem;
    }

    .success-qr-ticket-card__frame {
        width: min(100%, 220px);
    }
}

/* 控制订单成功二维码顶部摘要区中的内容外框的布局、尺寸和外观。 */

.success-qr-hero__frame {
    width: 100%;
    aspect-ratio: 1;
    border: 3px dashed rgba(208, 188, 153, 0.7);
    border-radius: 32px;
    background: linear-gradient(180deg, #fffdf9, #fff8ef);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

/* 鼠标悬停或键盘聚焦订单成功二维码顶部摘要区中的内容外框时，提供可操作反馈。 */

.success-qr-hero__frame:hover,
.success-qr-hero__frame:focus-visible {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 5px 12px rgba(36, 48, 42, 0.05);
}

/* 控制订单成功二维码顶部摘要区中的内容外框内 SVG 图标的尺寸的布局、尺寸和外观。 */

.success-qr-hero__frame svg {
    width: min(100%, 320px);
    height: auto;
}

/* 控制订单成功二维码顶部摘要区中的当前状态标签内标题文字的大小和间距的布局、尺寸和外观。 */

.success-qr-hero__status h3 {
    margin: 0.95rem 0 0.5rem;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* 控制订单成功二维码顶部摘要区中的当前状态标签内说明文字的大小和颜色的布局、尺寸和外观。 */

.success-qr-hero__status p {
    margin: 0;
    color: #75726b;
    line-height: 1.65;
}

/* 控制订单成功二维码顶部摘要区中的COUNTER的布局、尺寸和外观。 */

.success-qr-hero__counter {
    margin-top: 0.8rem;
    color: #8b8578;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 控制订单成功二维码顶部摘要区中的辅助资料文字的布局、尺寸和外观。 */

.success-qr-hero__meta {
    margin-top: 0.9rem;
    color: #8d8675;
    font-size: 0.9rem;
    font-weight: 600;
}

.collection-floor-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(91, 139, 80, 0.26);
    border-radius: 14px;
    background: #f1f8eb;
    color: #28583f;
    text-align: left;
}

.collection-floor-callout > i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: #5b8b50;
    font-size: 1.2rem;
}

.collection-floor-callout span,
.collection-floor-callout strong,
.collection-floor-callout small {
    display: block;
}

.collection-floor-callout span {
    color: #5b8065;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.collection-floor-callout strong {
    margin-top: 0.1rem;
    color: #174c32;
    font-size: 1.05rem;
    font-weight: 850;
}

.collection-floor-callout small {
    margin-top: 0.2rem;
    color: #547262;
    font-size: 0.78rem;
    line-height: 1.45;
}

.collection-floor-callout--hero {
    margin: 0.8rem 0 0;
}

.collection-floor-callout--modal {
    margin: 0 0 1rem;
}

.collection-floor-callout--modal small:empty {
    display: none;
}

.success-qr-ticket-card__actual-location {
    width: min(100%, 28rem);
    margin: 0.85rem auto 0;
}

.success-qr-ticket-card__collection-unavailable {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: min(100%, 28rem);
    margin: 0.85rem auto 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(180, 116, 31, 0.25);
    border-radius: 12px;
    background: #fff8ec;
    color: #7a5422;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: left;
}

/* 控制订单成功二维码顶部摘要区中的取餐标签文字的布局、尺寸和外观。 */

.success-qr-hero__collect-label {
    padding: 0.35rem 0.65rem;
    background: #f0ece3;
    border-radius: 8px;
    color: #5a5346;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-block;
}

/* 控制订单成功二维码占位内容的布局、尺寸和外观。 */

.success-qr-placeholder {
    text-align: center;
    padding: 0.35rem 0 0.1rem;
}

/* 控制订单成功二维码占位内容中的内容外框的布局、尺寸和外观。 */

.success-qr-placeholder__frame {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1;
    margin: 0 auto 1.25rem;
    border-radius: 34px;
    border: 3px dashed rgba(208, 188, 153, 0.7);
    background: linear-gradient(180deg, #fffdf9, #fdf6ea);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 控制订单成功二维码占位内容中的外框柔和色的布局、尺寸和外观。 */

.success-qr-placeholder__frame--soft {
    background: linear-gradient(180deg, #fffefb, #f6f3eb);
}

/* 控制订单成功二维码占位内容中的淡色的布局、尺寸和外观。 */

.success-qr-placeholder__ghost {
    width: 72%;
    height: 72%;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(194, 192, 190, 0.54) 14%, transparent 14% 32%, rgba(194, 192, 190, 0.54) 32% 46%, transparent 46% 58%, rgba(194, 192, 190, 0.54) 58% 74%, transparent 74%),
        linear-gradient(rgba(194, 192, 190, 0.54) 14%, transparent 14% 32%, rgba(194, 192, 190, 0.54) 32% 46%, transparent 46% 58%, rgba(194, 192, 190, 0.54) 58% 74%, transparent 74%);
    filter: blur(3px);
    opacity: 0.85;
}

/* 统一控制订单成功二维码占位内容中的锁定提示及相关元素的布局和外观。 */

.success-qr-placeholder__lock,
.success-qr-placeholder__check {
    position: absolute;
    width: 94px;
    height: 94px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 12px rgba(36, 48, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 统一控制订单成功二维码占位内容中的锁定提示内图标的位置和尺寸及相关元素的布局和外观。 */

.success-qr-placeholder__lock i,
.success-qr-placeholder__check i {
    font-size: 2.5rem;
}

/* 控制订单成功二维码占位内容中的锁定提示内图标的位置和尺寸的布局、尺寸和外观。 */

.success-qr-placeholder__lock i {
    color: #787979;
}

/* 控制订单成功二维码占位内容中的勾选标记内图标的位置和尺寸的布局、尺寸和外观。 */

.success-qr-placeholder__check i {
    color: #84b15b;
}

/* 控制订单成功二维码占位内容内标题文字的大小和间距的布局、尺寸和外观。 */

.success-qr-placeholder h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* 控制订单成功二维码占位内容内说明文字的大小和颜色的布局、尺寸和外观。 */

.success-qr-placeholder p {
    max-width: 28rem;
    margin: 0.65rem auto 0;
    color: #7b776d;
    line-height: 1.65;
}

/* 控制订单成功收据垂直列表的布局、尺寸和外观。 */

.success-receipt-stack {
    display: grid;
    gap: 1.2rem;
}

/* 控制订单成功页面的电子收据卡片的布局、尺寸和外观。 */

.success-receipt-card {
    padding: 1.35rem 2rem 1.45rem;
    background: #FFFEFD;
}

/* 为订单成功页面的电子收据卡片添加不占用内容空间的装饰图层。 */

.success-receipt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

/* 控制订单成功状态状态标签的布局、尺寸和外观。 */

.success-status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0. 75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(213, 189, 143, 0.34);
    color: #4c5145;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 控制订单成功页面的电子收据卡片中的下载按钮的布局、尺寸和外观。 */

.success-receipt-card__download {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(213, 189, 143, 0.34);
    background: rgba(255, 255, 255, 0.92);
    color: #474a44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(36, 48, 42, 0.08);
}

/* 鼠标悬停或键盘聚焦订单成功页面的电子收据卡片中的下载按钮时，提供可操作反馈。 */

.success-receipt-card__download:hover,
.success-receipt-card__download:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(36, 48, 42, 0.12);
}

/* 控制订单成功页面的电子收据卡片中的品牌的布局、尺寸和外观。 */

.success-receipt-card__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding-top: 1.6rem;
}

/* 控制订单成功页面的电子收据卡片中的品牌内图片的尺寸和裁切方式的布局、尺寸和外观。 */

.success-receipt-card__brand img {
    max-width: min(180px, 72%);
    max-height: 84px;
    object-fit: contain;
}

/* 统一控制订单成功页面的电子收据卡片中的取餐号码及相关元素的布局和外观。 */

.success-receipt-card__queue,
.success-receipt-card__fulfilment,
.success-receipt-card__subtext,
.success-receipt-card__meta {
    text-align: center;
}

/* 控制订单成功页面的电子收据卡片中的取餐号码的布局、尺寸和外观。 */

.success-receipt-card__queue {
    color: #052518;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* 控制订单成功页面的电子收据卡片中的取餐或配送方式的布局、尺寸和外观。 */

.success-receipt-card__fulfilment {
    margin-top: 0.45rem;
    color: #373a35;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* 控制订单成功页面的电子收据卡片中的次要说明的布局、尺寸和外观。 */

.success-receipt-card__subtext {
    margin-top: 0.2rem;
    color: #7c786e;
    font-size: 0.94rem;
}

/* 控制订单成功页面的电子收据卡片中的辅助资料文字的布局、尺寸和外观。 */

.success-receipt-card__meta {
    margin-top: 0.55rem;
    color: #8d877a;
    font-size: 0.83rem;
}

/* 控制订单成功页面的电子收据卡片中的内容分隔线的布局、尺寸和外观。 */

.success-receipt-card__divider {
    margin: 1rem 0;
    border-top: 1px dashed rgba(163, 151, 126, 0.46);
}

/* 统一控制订单成功页面的电子收据卡片中的项目列表及相关元素的布局和外观。 */

.success-receipt-card__items,
.success-receipt-card__summary,
.success-receipt-card__customer {
    position: relative;
    z-index: 1;
}

/* 控制订单成功页面的电子收据卡片中的档口BLOCK的布局、尺寸和外观。 */

.success-receipt-card__store-block {
    display: grid;
    gap: 1rem;
}

.success-receipt-card__store-block + .success-receipt-card__store-block {
    margin-top: 0.6rem;
}

/* 控制订单成功页面的电子收据卡片中的档口标题行的布局、尺寸和外观。 */

.success-receipt-card__store-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
}

/* 控制订单成功页面的电子收据卡片中的档口说明文字的布局、尺寸和外观。 */

.success-receipt-card__store-copy {
    min-width: 0;
}

/* 控制订单成功页面的电子收据卡片中的档口标题的布局、尺寸和外观。 */

.success-receipt-card__store-title {
    color: #817d75;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(129, 125, 117, 0.55);
    text-underline-offset: 0.18em;
}

/* 控制订单成功页面的电子收据卡片中的档口辅助信息的布局、尺寸和外观。 */

.success-receipt-card__store-meta {
    margin-top: 0.22rem;
    color: #7c786e;
    font-size: 0.8rem;
    line-height: 1.55;
    text-transform: uppercase;
}

/* 控制订单成功页面的电子收据卡片中的档口状态的布局、尺寸和外观。 */

.success-receipt-card__store-status {
    flex: 0 0 auto;
    padding-top: 0.12rem;
    color: #5a5d57;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

/* 统一控制订单成功页面的电子收据卡片中的单行内容的排列及相关元素的布局和外观。 */

.success-receipt-card__row,
.success-receipt-card__summary-row,
.success-receipt-card__customer-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

/* 控制相邻订单成功页面的电子收据卡片中的单行内容的排列之间的间距和分隔效果。 */

.success-receipt-card__row + .success-receipt-card__row,
.success-receipt-card__summary-row + .success-receipt-card__summary-row,
.success-receipt-card__customer-line + .success-receipt-card__customer-line {
    margin-top: 0.7rem;
}

/* 控制订单成功页面的电子收据卡片中的内容行说明文字的布局、尺寸和外观。 */

.success-receipt-card__row-copy {
    min-width: 0;
}

/* 控制订单成功页面的电子收据卡片中的项目的布局、尺寸和外观。 */

.success-receipt-card__item {
    color: #052518;
    font-size: 1rem;
    font-weight: 650;
    display: inline-block;
    transform: scaleX(1);
    transform-origin: left center;
}

/* 控制订单成功页面的电子收据卡片中的项目辅助信息的布局、尺寸和外观。 */

.success-receipt-card__item-meta {
    margin-top: 0.18rem;
    color: #7c786e;
    font-size: 0.82rem;
    line-height: 1.55;
}

/* 控制订单成功页面的电子收据卡片中的金额文字的布局、尺寸和外观。 */

.success-receipt-card__item-meta--quantity,
.success-receipt-card__item-queue {
    padding-left: 0.6rem;
}

.success-receipt-card__amount {
    color: #052518;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 控制订单成功页面的电子收据卡片中的摘要内容行的布局、尺寸和外观。 */

.success-receipt-card__summary-row {
    color: #5c5e59;
    font-size: 0.9rem;
}

/* 控制订单成功页面的电子收据卡片中的摘要内容行优惠金额的布局、尺寸和外观。 */

.success-receipt-card__summary-row--discount {
    color: #c06553;
}

/* 控制订单成功页面的电子收据卡片中的摘要内容行总金额的布局、尺寸和外观。 */

.success-receipt-card__summary-row--total {
    color: #052518;
    font-size: 1rem;
    font-weight: 700;
}

/* 控制订单成功页面的电子收据卡片中的顾客的布局、尺寸和外观。 */

.success-receipt-card__customer {
    color: #676a64;
    font-size: 0.83rem;
    line-height: 1.6;
}

/* 控制订单成功页面的电子收据卡片中的顾客内容行的布局、尺寸和外观。 */

.success-receipt-card__customer-line span:last-child {
    text-align: right;
}

.success-receipt-card__cutlery {
    margin-top: 0.8rem;
}

/* 控制订单成功页面的电子收据卡片中的顾客备注的布局、尺寸和外观。 */

.success-receipt-card__customer-note {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(163, 151, 126, 0.34);
    color: #50534e;
}

/* 控制订单成功操作区的布局、尺寸和外观。 */

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* 控制订单成功详情分页的布局、尺寸和外观。 */

.success-detail-pagination {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    margin-bottom: 1.2rem;
}

/* 控制订单成功详情分页中的辅助资料文字的布局、尺寸和外观。 */

.success-detail-pagination__meta {
    color: #7d7568;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 控制订单成功详情分页中的操作按钮区域的布局、尺寸和外观。 */

.success-detail-pagination__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* 控制订单成功页面底部的操作按钮的布局、尺寸和外观。 */

.success-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 164px;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(213, 189, 143, 0.34);
    color: #434743;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(36, 48, 42, 0.08);
}

/* 鼠标悬停或键盘聚焦订单成功页面底部的操作按钮时，提供可操作反馈。 */

.success-action:hover,
.success-action:focus-visible {
    color: #2f3330;
    transform: translateY(-1px);
}

/* 控制订单成功页面底部的操作按钮的主要版本的布局、尺寸和外观。 */

.success-action--primary {
    background: linear-gradient(135deg, #ffcb72, #f29a30);
    border-color: transparent;
    color: #fff;
}

/* 鼠标悬停或键盘聚焦订单成功页面底部的操作按钮的主要版本时，提供可操作反馈。 */

.success-action--primary:hover,
.success-action--primary:focus-visible {
    color: #fff;
}

/* 控制放大显示取餐二维码的弹窗的布局、尺寸和外观。 */

.success-qr-modal {
    padding: 0.1rem 0.1rem 0.4rem;
}

/* 控制放大显示取餐二维码的弹窗中的内容外框的布局、尺寸和外观。 */

@media (min-width: 769px) and (max-width: 1199.98px) {
    /* 控制订单提交成功页面中的项目排列区域的布局、尺寸和外观。 */
    .success-page__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    /* 控制订单成功页面顶部的订单摘要区的布局、尺寸和外观。 */
    .success-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 控制订单成功页面顶部的订单摘要区的横幅版本的布局、尺寸和外观。 */

    .success-hero--banner {
        padding: 0;
    }

    /* 控制订单成功二维码顶部摘要区的布局、尺寸和外观。 */

    .success-qr-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 后续补充的基础样式 */

/* 商品规格数量选择区 */

/* 控制商品规格和数量的表格式选择区的表格尺寸和排列的布局、尺寸和外观。 */

.variation-table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.15rem;
}

/* 控制单个商品规格的数量选择行的布局、尺寸和外观。 */

.variation-qty-row {
    display: table-row;
}

/* 统一控制商品规格数量名称及相关元素的布局和外观。 */

.variation-qty-name,
.variation-qty-price,
.variation-qty-group {
    display: table-cell;
    vertical-align: middle;
    padding: 0.3rem 0;
}

/* 控制商品规格数量名称的布局、尺寸和外观。 */

.variation-qty-name {
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
    line-height: 1.25;
    padding-right: 0.5rem;
    word-break: break-word;
}

/* 控制商品规格数量价格的布局、尺寸和外观。 */

.variation-qty-price {
    font-size: clamp(0.68rem, 2.5vw, 0.82rem);
    white-space: nowrap;
    padding-right: 0.5rem;
    text-align: right;
}

/* 控制商品规格右侧的数量加减控制区的布局、尺寸和外观。 */

.variation-qty-group {
    white-space: nowrap;
    text-align: right;
    width: 1%;
}

/* 控制按钮的布局、尺寸和外观。 */

.variation-qty-group .btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    border-radius: 50%;
}

/* 控制商品规格数量数值的布局、尺寸和外观。 */

.variation-qty-value {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 1.5rem;
    text-align: center;
}

/* 商品详情卡片按内容自然增高，滚动仅保留在最外层 Bootstrap 弹窗。 */

/* 控制弹窗弹窗窗口的布局、尺寸和外观。 */

#menuAddModal .modal-dialog {
    max-height: none;
}

/* 控制选择商品规格和数量的弹窗的布局、尺寸和外观。 */

#menuAddModal .menu-modal {
    max-height: none;
    overflow: visible;
}

/* 商品详情内容不建立独立滚动区，卡片高度由完整内容撑开。 */

#menuAddModal .menu-modal__body {
    overflow: visible;
    flex: 0 0 auto;
}

/* ==================================================
   2. 平板版样式（577px–768px）
   ================================================== */

@media (min-width: 577px) and (max-width: 768px) {
    #menuAddModal .menu-modal__description {
        min-height: 0;
    }

    /* When Remark is the only option row, do not reserve the Variants spacing above it. */
    #menuAddModal .menu-modal__options:has(#menuAddVariationContainer > .menu-modal__remark:only-child) {
        margin-top: 0;
    }

    #menuAddModal #menuAddVariationContainer > .menu-modal__remark:only-child {
        padding-top: 0;
    }

    .sticky-header:not(.kiosk-header) .brand-butterfly {
        display: none;
    }

    /* 控制首页的菜单和档口搜索卡片的布局、尺寸和外观。 */
    .search-card {
        padding: 1.1rem 1.2rem;
    }

    /* 控制可横向滚动的筛选标签列表的布局、尺寸和外观。 */

    .chip-track {
        flex-wrap: nowrap;
    }

    /* 控制档口筛选标签的可滚动导航容器的布局、尺寸和外观。 */

    .stall-chip-nav {
        display: block;
    }
    /* 控制顾客前台页面的整体框架的布局、尺寸和外观。 */
    .layout-shell main {
        padding-bottom: 8rem;
    }

    /* 控制顶部白色顾客导航栏的布局、尺寸和外观。 */

    .customer-nav {
        border-radius: 22px 22px 34px 34px;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    /* 控制导航栏右侧的操作按钮区域的布局、尺寸和外观。 */

    .nav-actions {
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    /* 控制导航栏左侧的品牌 Logo 区域的布局、尺寸和外观。 */

    .brand-identity {
        width: auto;
        flex: 1 1 auto;
    }

    /* 控制导航栏使用的圆角操作按钮的布局、尺寸和外观。 */

    .nav-pill {
        padding: 0.55rem 1.1rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    /* 控制顾客账户页面的白色内容卡片的布局、尺寸和外观。 */
    .account-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    /* 控制订单记录页面顶部的摘要区域的布局、尺寸和外观。 */

    .account-orders-hero {
        grid-template-columns: 1fr;
    }

    /* 控制订单记录页面顶部的摘要区域中的操作按钮区域的布局、尺寸和外观。 */

    .account-orders-hero__actions {
        justify-content: flex-start;
    }

    /* 统一控制账户订单分组中的标题和操作区域及相关元素的布局和外观。 */

    .account-order-group__header,
    .account-order-qr-header {
        flex-direction: column;
    }

    /* 控制账户订单分组中的取餐号码列表的布局、尺寸和外观。 */

    .account-order-group__queue-list {
        justify-content: flex-start;
    }

    /* 控制账户操作区的布局、尺寸和外观。 */

    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* 统一控制账户页面的次要操作按钮及相关元素的布局和外观。 */

    .account-secondary-btn,
    .account-primary-btn {
        width: 100%;
        text-align: center;
    }
    /* 控制热门商品横向商品带的布局、尺寸和外观。 */
    .popular-strip {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
    }

    /* 隐藏热门商品横向商品带的浏览器滚动条，同时保留滚动功能。 */

    .popular-strip::-webkit-scrollbar {
        display: none;
    }

    /* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

    .popular-card {
        width: 80vw;
        min-width: 80vw;
        padding: 0.95rem 1rem;
        border-radius: 16px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* 控制热门商品区域中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

    .popular-card__thumb {
        width: 82px;
        height: 82px;
    }

    /* 控制热门商品区域中的商品卡片中的底部操作区的布局、尺寸和外观。 */

    .popular-card__footer {
        align-items: center;
    }

    /* 控制顶部白色顾客导航栏的布局、尺寸和外观。 */

    .customer-nav {
        padding: 0.5rem 1rem;
    }
    /* 控制顾客结账页面的布局、尺寸和外观。 */
    .checkout-page {
        padding: 0.25rem;
    }

    /* 控制结账页面左右内容栏的网格布局的布局、尺寸和外观。 */

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* 控制档口卡片的布局、尺寸和外观。 */

    .stall-card {
        padding: 0.85rem;
        border-radius: 20px;
    }

    /* 控制档口卡片中的标题和操作区域的布局、尺寸和外观。 */

    .stall-card__header {
        gap: 0.5rem;
    }

    /* 控制项目卡片的布局、尺寸和外观。 */

    .item-card {
        grid-template-columns: 1fr;
        padding: 0.75rem;
        border-radius: 16px;
    }

    /* 控制项目卡片中的商品缩略图的布局、尺寸和外观。 */

    .item-card__thumb {
        width: 80px;
        height: 80px;
    }

    /* 控制项目卡片中的删除按钮的布局、尺寸和外观。 */

    .item-card__remove {
        width: 44px;
        height: 44px;
    }

    /* 控制项目卡片中的底部的布局、尺寸和外观。 */

    .item-card__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* 控制项目卡片中的数量的布局、尺寸和外观。 */

    .item-card__quantity {
        width: 100%;
        justify-content: space-between;
    }

    /* 控制数量控制项的布局、尺寸和外观。 */

    .qty-control {
        width: 100%;
        justify-content: space-between;
    }

    /* 控制项目卡片中的价格文字的布局、尺寸和外观。 */

    .item-card__price {
        width: 100%;
        text-align: left;
    }

    /* 控制结账详情区卡片的布局、尺寸和外观。 */

    .checkout-details-card {
        border-radius: 22px;
        padding: 1rem 1.1rem 1.25rem;
    }

    /* 控制结账详情区面板的布局、尺寸和外观。 */

    .checkout-details-panel {
        padding: 1rem 0.95rem 1rem;
        border-radius: 24px;
    }

    /* 控制结账摘要中的总金额文字的布局、尺寸和外观。 */

    .checkout-summary__total > span,
    .checkout-summary__total strong {
        font-size: 1.4rem;
    }
    /* 控制订单提交成功页面中的项目排列区域的布局、尺寸和外观。 */
    .success-page__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    /* 控制订单成功页面顶部的订单摘要区的布局、尺寸和外观。 */
    .success-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 控制订单成功页面顶部的订单摘要区的横幅版本的布局、尺寸和外观。 */

    .success-hero--banner {
        padding: 0;
    }

    /* 控制订单成功二维码顶部摘要区的布局、尺寸和外观。 */

    .success-qr-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (min-width: 577px) and (max-width: 767.98px) {
    /* 统一控制订单成功页面顶部的订单摘要区中的标题和操作区域及相关元素的布局和外观。 */
    
    .success-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    /* 控制订单成功页面的电子收据卡片的布局、尺寸和外观。 */

    .success-receipt-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* 控制订单成功页面的电子收据卡片中的取餐号码的布局、尺寸和外观。 */

    .success-receipt-card__queue {
        font-size: 1.15rem;
    }

    /* 控制订单成功页面的电子收据卡片中的取餐或配送方式的布局、尺寸和外观。 */

    .success-receipt-card__fulfilment {
        font-size: 1.22rem;
    }

    /* 控制订单成功页面的电子收据卡片中的档口标题行的布局、尺寸和外观。 */

    .success-receipt-card__store-head {
        flex-direction: column;
        gap: 0.35rem;
    }

    /* 控制订单成功页面的电子收据卡片中的档口状态的布局、尺寸和外观。 */

    .success-receipt-card__store-status {
        text-align: left;
    }

    /* 控制订单成功页面底部的操作按钮的布局、尺寸和外观。 */

    .success-action {
        width: 100%;
    }

    /* 控制订单成功详情分页中的操作按钮区域的布局、尺寸和外观。 */

    .success-detail-pagination__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}
@media (min-width: 577px) and (max-width: 640px) {
    /* 控制档口列表网格布局的布局、尺寸和外观。 */
    .stores-grid {
        gap: 1rem;
    }

    /* 控制首页显示档口资料的卡片的布局、尺寸和外观。 */

    .store-card {
        border-radius: 18px;
        padding: 1rem 1.1rem;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

    /* 统一控制首页显示档口资料的卡片中的Logo及相关元素的布局和外观。 */

    .store-card__logo,
    .store-card__logo-placeholder {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    /* 控制首页显示档口资料的卡片中的标题内容行的布局、尺寸和外观。 */

    .store-card__title-row {
        font-size: 0.98rem;
    }

    /* 控制首页显示档口资料的卡片中的展开或移动箭头的布局、尺寸和外观。 */

    .store-card__arrow {
        font-size: 1.05rem;
    }

    /* 控制菜单卡片内容行的布局、尺寸和外观。 */

    .menu-card-row {
        padding: 4px 4px 14px;
    }

    /* 控制菜单卡片内容行的横向滚动版本的布局、尺寸和外观。 */

    .menu-card-row--scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 4px 4px 14px;
    }

    /* 隐藏菜单卡片内容行的横向滚动版本的浏览器滚动条，同时保留滚动功能。 */

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

    /* 控制菜单卡片网格布局的竖版版本的布局、尺寸和外观。 */

    .menu-card-grid--portrait {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    /* 隐藏菜单卡片网格布局的竖版版本的浏览器滚动条，同时保留滚动功能。 */

    .menu-card-grid--portrait::-webkit-scrollbar {
        display: none;
    }

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card-grid--portrait .menu-card {
        width: 100%;
        min-width: 0;
    }

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card-row--scroll .menu-card {
        flex: 0 0 calc(50% - 0.375rem);
        min-width: calc(50% - 0.375rem);
    }

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card {
        min-width: 0;
        padding: 0.65rem 0.7rem;
        border-radius: 16px;
    }

    /* 控制菜单列表中的商品卡片中的主要内容区的布局、尺寸和外观。 */

    .menu-card__body {
        grid-template-columns: 48px 1fr;
        gap: 0.5rem;
    }

    /* 控制菜单列表中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

    .menu-card__thumb {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    /* 控制菜单列表中的商品卡片中的标题文字的布局、尺寸和外观。 */

    .menu-card__title {
        font-size: 0.85rem;
    }

    /* 统一控制菜单列表中的商品卡片中的辅助资料文字及相关元素的布局和外观。 */

    
    .menu-card__desc {
        font-size: 0.78rem;
    }

    /* 控制猪肉标识状态状态标签中的图片尺寸和裁切方式的布局、尺寸和外观。 */

    .menu-card .pork-status-badge__image {
        height: 18px;
        max-width: 80px;
    }

    /* 控制菜单列表中的商品卡片中的价格文字的布局、尺寸和外观。 */

    .menu-card__price {
        font-size: 0.88rem;
    }

    /* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

    .popular-card {
        padding: 0.95rem 1rem;
        border-radius: 16px;
    }

    /* 控制热门商品区域中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

    .popular-card__thumb {
        width: 82px;
        height: 82px;
    }

    /* 控制热门商品区域中的商品卡片中的底部操作区的布局、尺寸和外观。 */

    .popular-card__footer {
        align-items: center;
    }
    /* 控制菜单卡片内容行的布局、尺寸和外观。 */
    .menu-card-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.3rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        gap: 4vw;
    }

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card-row .menu-card {
        width: 50vw;
        min-width: 50vw;
        flex: 0 0 50vw;
        scroll-snap-align: start;
    }

    /* 控制热门商品横向商品带的布局、尺寸和外观。 */

    .popular-strip {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* 隐藏热门商品横向商品带的浏览器滚动条，同时保留滚动功能。 */

    .popular-strip::-webkit-scrollbar {
        display: none;
    }

    /* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

    .popular-card {
        width: 88vw;
        min-width: 88vw;
        max-width: 88vw;
        flex: 0 0 auto;
        height: auto;
    }
}
@media (min-width: 768px) and (max-width: 768px) {
    /* 控制热门商品横向商品带的布局、尺寸和外观。 */
    .popular-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* ==================================================
   Customer frontend tablet homepage (577px-768px)
   Keep the completed mobile and desktop layouts outside this range unchanged.
   ================================================== */
@media (min-width: 577px) and (max-width: 768px) {
    .home-search-content {
        --tablet-home-card-gap: 0.85rem;
        --tablet-item-card-width: calc(100vw - 7.25rem);
        --tablet-popular-card-width: var(--tablet-item-card-width);
        --tablet-home-thumb-size: 110px;
        --tablet-home-card-height: 150px;
        --tablet-stall-edge-bleed: 2.5rem;
    }

    .home-search-content .section-heading h5 {
        font-size: clamp(1.4rem, 3.4vw, 1.7rem) !important;
    }

    .home-search-content .popular-strip--scroll {
        display: flex;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        gap: var(--tablet-home-card-gap);
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0 !important;
        scrollbar-width: none;
        scroll-behavior: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        touch-action: pan-x pan-y;
    }

    .home-search-content .popular-strip--items[data-scroll-edge-feedback] {
        scroll-snap-type: none;
        touch-action: pan-y;
    }

    .home-search-content .popular-stalls-section .stall-chip-nav {
        margin-right: calc(-1 * var(--tablet-stall-edge-bleed));
    }

    .home-search-content .popular-stalls-section .popular-strip--scroll {
        width: calc(100% + 4px);
        scroll-snap-type: none;
        touch-action: pan-y;
    }

    .home-search-content .popular-strip--scroll::-webkit-scrollbar,
    .home-search-content .menu-card-row--scroll::-webkit-scrollbar {
        display: none;
    }

    .home-search-content .popular-strip--scroll .popular-card {
        width: var(--tablet-popular-card-width);
        min-width: var(--tablet-popular-card-width);
        max-width: var(--tablet-popular-card-width);
        flex: 0 0 var(--tablet-popular-card-width);
        height: auto;
        min-height: 118px;
        padding: 0.9rem 1rem;
        border-radius: 24px;
        gap: 0.6rem;
        scroll-snap-align: start;
    }

    .home-search-content .popular-card__body {
        grid-template-columns: var(--tablet-home-thumb-size) minmax(0, 1fr);
        gap: 0.85rem;
    }

    .home-search-content .popular-card__thumb,
    .home-search-content .popular-card__thumb-placeholder {
        width: var(--tablet-home-thumb-size);
        height: var(--tablet-home-thumb-size);
        min-width: var(--tablet-home-thumb-size);
        border-radius: 18px;
    }

    .home-search-content .popular-card__title {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .home-search-content .popular-stalls-section .popular-card--store .popular-card__title {
        font-size: 1.1rem;
    }

    .home-search-content .popular-stalls-section .popular-card--store .pork-status-badge {
        height: 25px;
        border-radius: 7px;
        font-size: 0.94rem;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) {
        display: grid;
        width: var(--tablet-item-card-width);
        min-width: var(--tablet-item-card-width);
        max-width: var(--tablet-item-card-width);
        height: var(--tablet-home-card-height);
        min-height: var(--tablet-home-card-height);
        max-height: var(--tablet-home-card-height);
        flex: 0 0 var(--tablet-item-card-width);
        grid-template-columns: var(--tablet-home-thumb-size) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 22px;
        position: relative;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__body {
        display: contents;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__thumb {
        position: static;
        grid-column: 1;
        width: calc(var(--tablet-home-thumb-size) - 2.4px);
        height: calc(var(--tablet-home-thumb-size) - 2.4px);
        min-width: calc(var(--tablet-home-thumb-size) - 2.4px);
        margin: 0;
        border-radius: 18px;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__copy {
        position: static;
        grid-column: 2;
        display: grid;
        min-width: 0;
        height: 100%;
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: 0.35rem;
        align-self: stretch;
        transform: none;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__title {
        grid-row: 1;
        font-size: 1.1rem;
        line-height: 1.25;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__badge-row {
        grid-row: 2;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .pork-status-badge {
        height: 25px;
        border-radius: 7px;
        font-size: 0.94rem;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__price--content {
        display: block;
        grid-row: 3;
        padding-right: 44px;
        font-size: 1.05rem;
        align-self: end;
        transform: none;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__price--footer {
        display: none;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__footer {
        display: contents;
        padding: 0;
        margin: 0;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart {
        position: absolute;
        right: 0.6rem;
        bottom: 0.5rem;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        transform: none;
    }

    .home-search-content .store-card-scroll-viewport {
        width: 100%;
        min-width: 0;
        box-sizing: content-box;
        padding-right: var(--tablet-stall-edge-bleed);
    }

    .home-search-content .store-card-scroll-viewport > .store-card.store-card--item-scroll {
        width: max-content;
        min-width: 100%;
        max-width: none;
        overflow: visible;
    }

    .home-search-content .store-card--item-scroll > .list-scroll-nav--menu,
    .home-search-content .store-card--item-scroll > .list-scroll-nav--menu > .menu-card-row {
        width: max-content;
        min-width: 100%;
        max-width: none;
    }

    .home-search-content .store-card--item-scroll > .list-scroll-nav--menu {
        overflow: hidden;
        border-radius: 24px;
    }

    .home-search-content .store-card--item-scroll > .list-scroll-nav--menu > .menu-card-row {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--tablet-home-card-gap);
        overflow: visible;
        padding: 4px 0 10px;
    }

    .home-search-content .menu-card-row--scroll .menu-card,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card {
        --menu-card-thumb-size: var(--tablet-home-thumb-size);
        display: grid;
        width: var(--tablet-item-card-width);
        min-width: var(--tablet-item-card-width);
        max-width: var(--tablet-item-card-width);
        height: var(--tablet-home-card-height);
        min-height: var(--tablet-home-card-height);
        max-height: var(--tablet-home-card-height);
        flex: 0 0 var(--tablet-item-card-width);
        grid-template-columns: var(--menu-card-thumb-size) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 22px;
        scroll-snap-align: start;
        position: relative;
    }

    .home-search-content .store-card--focused .menu-card-grid--portrait {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--tablet-home-card-gap);
    }

    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .home-search-content .menu-card-row--scroll .menu-card__body,
    .home-search-content .menu-card-row--scroll .menu-card__footer,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__body,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__footer {
        display: contents;
    }

    .home-search-content .menu-card-row--scroll .menu-card__thumb,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__thumb {
        position: static;
        grid-column: 1;
        width: var(--menu-card-thumb-size);
        height: var(--menu-card-thumb-size);
        margin: 0;
        border-radius: 18px;
    }

    .home-search-content .menu-card-row--scroll .menu-card__content,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__content {
        position: static;
        grid-column: 2;
        display: grid;
        min-width: 0;
        height: 100%;
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: 0.35rem;
        align-self: stretch;
        transform: none;
    }

    .home-search-content .menu-card-row--scroll .menu-card__title,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__title {
        grid-row: 1;
    }

    .home-search-content .menu-card-row--scroll .menu-card__badge-row,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__badge-row {
        grid-row: 2;
    }

    .home-search-content .menu-card-row--scroll .pork-status-badge,
    .home-search-content .store-card--focused .menu-card-grid--portrait .pork-status-badge {
        height: 25px;
        border-radius: 7px;
        font-size: 0.94rem;
    }

    .home-search-content .menu-card-row--scroll .menu-card__title,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__title {
        font-size: 1.1rem;
        line-height: 1.25;
    }

    .home-search-content .menu-card-row--scroll .menu-card__price--content,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__price--content {
        display: block;
        grid-row: 3;
        padding-right: 44px;
        font-size: 1.05rem;
        align-self: end;
        transform: none;
    }

    .home-search-content .menu-card-row--scroll .menu-card__price--footer,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__price--footer {
        display: none;
    }

    .home-search-content .menu-card-row--scroll .menu-card__footer,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__footer {
        padding: 0;
        margin: 0;
    }

    .home-search-content .menu-card-row--scroll .add-to-cart-btn.menu-card__cart,
    .home-search-content .store-card--focused .menu-card-grid--portrait .add-to-cart-btn.menu-card__cart {
        position: absolute;
        right: 0.6rem;
        bottom: 0.5rem;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        transform: none;
    }
}

@media (min-width: 700px) and (max-width: 768px) {
    .home-search-content {
        --tablet-item-card-width: calc((100vw - 8.1rem) / 2);
        --tablet-popular-card-width: var(--tablet-item-card-width);
        --tablet-home-thumb-size: 120px;
        --tablet-home-card-height: 138px;
    }

    .home-search-content .popular-strip--scroll .popular-card {
        min-height: 110px;
        padding: 0.75rem;
        border-radius: 20px;
    }

    .home-search-content .popular-card__body {
        gap: 0.65rem;
    }

    .home-search-content .popular-card__title {
        font-size: 0.82rem;
    }

    .home-search-content .popular-stalls-section .popular-card--store .popular-card__title {
        font-size: 1rem;
    }

    .home-search-content .popular-stalls-section .popular-card--store .pork-status-badge {
        height: 26px;
        font-size: 0.95rem;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) {
        grid-template-columns: var(--tablet-home-thumb-size) minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.65rem;
        border-radius: 18px;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__copy {
        gap: 0.2rem;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__title {
        font-size: 1rem;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .pork-status-badge {
        height: 26px;
        font-size: 0.95rem;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__price--content {
        padding-right: 38px;
        font-size: 0.95rem;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .menu-card__cart .add-to-cart-btn__icon {
        width: 26px;
        height: 26px;
    }

    .home-search-content .menu-card-row--scroll .menu-card__title,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__title {
        font-size: 1rem;
    }

    .home-search-content .menu-card-row--scroll .pork-status-badge,
    .home-search-content .store-card--focused .menu-card-grid--portrait .pork-status-badge {
        height: 26px;
        font-size: 0.95rem;
    }

    .home-search-content .menu-card-row--scroll .menu-card,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card {
        grid-template-columns: var(--menu-card-thumb-size) minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.65rem;
        border-radius: 18px;
    }

    .home-search-content .store-card--focused .menu-card-grid--portrait {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-search-content .menu-card-row--scroll .menu-card__content,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__content {
        gap: 0.2rem;
    }

    .home-search-content .menu-card-row--scroll .menu-card__price--content,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__price--content {
        padding-right: 38px;
        font-size: 0.95rem;
    }

    .home-search-content .menu-card-row--scroll .add-to-cart-btn.menu-card__cart,
    .home-search-content .store-card--focused .menu-card-grid--portrait .add-to-cart-btn.menu-card__cart {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .home-search-content .menu-card-row--scroll .menu-card__cart .add-to-cart-btn__icon,
    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card__cart .add-to-cart-btn__icon {
        width: 26px;
        height: 26px;
    }
}

/* ==================================================
   3. 手机版样式（最大 576px）
   ================================================== */

@media (max-width: 576px) {
    /* 控制可横向滚动的筛选标签列表的布局、尺寸和外观。 */

    .chip-track {
        flex-wrap: nowrap;
    }

    /* 控制档口筛选标签的可滚动导航容器的布局、尺寸和外观。 */

    .stall-chip-nav {
        display: block;
    }
    /* 控制顾客前台页面的整体框架的布局、尺寸和外观。 */
    .layout-shell main {
        padding-bottom: 8rem;
    }

    /* 控制顶部白色顾客导航栏的布局、尺寸和外观。 */

    .customer-nav {
        border-radius: 22px 22px 34px 34px;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    /* 控制导航栏右侧的操作按钮区域的布局、尺寸和外观。 */

    .nav-actions {
        width: auto;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    /* 控制导航栏左侧的品牌 Logo 区域的布局、尺寸和外观。 */

    .brand-identity {
        width: auto;
    }

    /* 控制导航栏使用的圆角操作按钮的布局、尺寸和外观。 */

    .nav-pill {
        white-space: nowrap;
    }
    /* 控制顶部白色顾客导航栏的布局、尺寸和外观。 */
    .customer-nav {
        gap: 0.45rem;
    }

    /* 控制导航栏左侧的品牌 Logo 区域的布局、尺寸和外观。 */

    .brand-identity {
        flex: 0 1 auto;
        min-width: 0;
        padding-right: 0.1rem;
        gap: 0.35rem;
    }
    /* 控制导航栏左侧的文字 Logo的布局、尺寸和外观。 */
    .brand-wordmark {
        width: 110px;
    }

    /* 控制导航栏中央的蝴蝶图片的布局、尺寸和外观。 */

    .brand-butterfly {
        display: none;
    }

    /* 控制导航栏右侧的操作按钮区域的布局、尺寸和外观。 */

    .nav-actions {
        gap: 0.3rem;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
    }

    /* 控制导航栏使用的圆角操作按钮的布局、尺寸和外观。 */

    .nav-pill {
        padding: 0.35rem 0.75rem;
        font-size: 0.78rem;
        gap: 0.28rem;
        flex: 0 1 auto;
        min-width: 0;
        min-height: 44px;
    }

    /* 控制导航栏使用的圆角操作按钮的布局、尺寸和外观。 */

    .nav-pill span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 控制导航按钮内的图标的布局、尺寸和外观。 */

    .nav-pill__icon {
        font-size: 0.82rem;
        flex: 0 0 auto;
    }

    /* 控制导航栏中的登录按钮的布局、尺寸和外观。 */

    .nav-pill--login {
        padding-left: 0.72rem;
        padding-right: 0.72rem;
    }

    /* 控制顾客前台页面的整体框架的布局、尺寸和外观。 */

    .layout-shell main {
        padding-top: 6.5rem;
    }
    /* 控制顾客账户页面的白色内容卡片的布局、尺寸和外观。 */
    .account-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    /* 控制订单记录页面顶部的摘要区域的布局、尺寸和外观。 */

    .account-orders-hero {
        grid-template-columns: 1fr;
    }

    /* 控制订单记录页面顶部的摘要区域中的操作按钮区域的布局、尺寸和外观。 */

    .account-orders-hero__actions {
        justify-content: flex-start;
    }

    /* 统一控制账户订单分组中的标题和操作区域及相关元素的布局和外观。 */

    .account-order-group__header,
    .account-order-qr-header {
        flex-direction: column;
    }

    /* 控制账户订单分组中的取餐号码列表的布局、尺寸和外观。 */

    .account-order-group__queue-list {
        justify-content: flex-start;
    }

    /* 控制账户操作区的布局、尺寸和外观。 */

    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* 统一控制账户页面的次要操作按钮及相关元素的布局和外观。 */

    .account-secondary-btn,
    .account-primary-btn {
        width: 100%;
        text-align: center;
    }
    /* 控制订单记录页面顶部的摘要区域的布局、尺寸和外观。 */
    .account-orders-hero {
        padding: 1.25rem;
    }

    .account-orders-intro {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding-top: 0;
    }

    .account-orders-intro__kicker {
        margin-bottom: 0.25rem;
        font-size: 0.62rem;
    }

    .account-orders-intro__title {
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .account-orders-intro__description {
        margin-top: 0.4rem;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .account-order-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        padding: 0.22rem;
    }

    .account-order-tabs__item {
        min-height: 32px;
        padding: 0.4rem 0.6rem;
        font-size: 0.66rem;
    }

    .account-order-detail-link {
        flex: 1 1 100%;
        width: 100%;
    }

    .account-order-summary-card__header {
        align-items: center;
    }

    .account-orders-page {
        width: calc(100% + 1rem);
        margin-left: -0.375rem;
        margin-top: -1.85rem;
        gap: 1.5rem;
    }

    .account-order-summary-card {
        padding: 0.75rem 0.75rem 0.65rem;
        border-radius: 18px;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.20);
    }

    .account-order-summary-card__date {
        margin-top: 0.15rem;
        font-size: 0.6rem;
    }

    .account-order-summary-card__title {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .account-order-summary-card__overview {
        gap: 0.4rem;
        margin-top: 0.35rem;
        font-size: 0.7rem;
    }

    .account-order-summary-card__stalls {
        margin-top: 0.7rem;
    }

    .account-order-stall-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.7rem 0;
    }

    .account-order-stall-summary__item-row {
        align-items: center;
        gap: 0.65rem;
    }

    .account-order-stall-summary__item-row > div {
        min-width: 0;
    }

    .account-order-stall-summary__identity {
        gap: 0.8rem;
    }

    .account-order-stall-summary__item-row h3 {
        font-size: 0.8rem;
        line-height: 1.22;
    }

    .account-order-stall-summary__item-row p {
        margin-top: 0.18rem;
        font-size: 0.61rem;
    }

    .account-order-stall-summary__status {
        min-height: 27px;
        padding: 0.3rem 0.55rem;
        font-size: 0.58rem;
    }

    .account-order-item-qr-link {
        min-height: 28px;
        padding: 0.3rem 0.5rem;
        font-size: 0.56rem;
    }

    .account-order-stall-summary__qr {
        justify-content: flex-start;
        min-width: 0;
    }

    .account-order-qr-link,
    .account-order-qr-waiting {
        min-height: 29px;
        padding: 0.35rem 0.55rem;
        font-size: 0.56rem;
    }

    .account-order-summary-card__footer .account-order-detail-link {
        width: 100%;
        min-height: 31px;
        padding: 0.4rem 0.7rem;
        font-size: 0.68rem;
        box-shadow: none;
    }

    .account-order-summary-card__footer {
        padding-top: 0.55rem;
    }

    /* 控制账户订单列表统计资料的布局、尺寸和外观。 */

    .account-orders-stat {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
    }

    /* 统一控制账户订单记录项及相关元素的布局和外观。 */

    
    .account-order-qr-card {
        padding: 1rem;
    }

    /* 控制账户订单二维码卡片的布局、尺寸和外观。 */

    .account-order-qr-grid .account-order-qr-card {
        max-width: none;
    }

    /* 控制账户订单列表二维码弹窗中的内容外框的布局、尺寸和外观。 */

    .account-orders-qr-modal__frame {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    /* 控制热门商品横向商品带的布局、尺寸和外观。 */
    .popular-strip {
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
    }

    /* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

    .popular-card {
        scroll-snap-align: start;
    }
    /* 统一控制菜单列表中的商品卡片中的主要内容区及相关元素的布局和外观。 */
    .menu-card__body,
    .popular-card__body {
        text-align: left;
    }

    /* 控制热门商品区域中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

    .popular-card__thumb {
        max-width: 100%;
    }
    /* 控制档口列表网格布局的布局、尺寸和外观。 */
    .stores-grid {
        gap: 0rem;
    }

    /* 控制首页显示档口资料的卡片中的标题内容行的布局、尺寸和外观。 */

    .store-card__title-row {
        font-size: 0.98rem;
    }

    /* 控制首页显示档口资料的卡片中的展开或移动箭头的布局、尺寸和外观。 */

    .store-card__arrow {
        font-size: 1.05rem;
    }

    /* 控制菜单卡片内容行的布局、尺寸和外观。 */

    .menu-card-row {
        padding: 4px 4px 14px;
    }

    /* 控制菜单卡片内容行的横向滚动版本的布局、尺寸和外观。 */

    .menu-card-row--scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 4px 4px 14px;
    }

    /* 隐藏菜单卡片内容行的横向滚动版本的浏览器滚动条，同时保留滚动功能。 */

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

    /* 控制菜单卡片网格布局的竖版版本的布局、尺寸和外观。 */

    .menu-card-grid--portrait {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 隐藏菜单卡片网格布局的竖版版本的浏览器滚动条，同时保留滚动功能。 */

    .menu-card-grid--portrait::-webkit-scrollbar {
        display: none;
    }

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card-row--scroll .menu-card {
        flex: 0 0 calc(50% - 0.375rem);
        min-width: calc(50% - 0.375rem);
    }

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card {
        min-width: 0;
        padding: 0.65rem 0.7rem;
        border-radius: 16px;
    }

    /* 控制菜单列表中的商品卡片中的主要内容区的布局、尺寸和外观。 */

    .menu-card__body {
        grid-template-columns: 48px 1fr;
        gap: 0.5rem;
    }

    /* 控制菜单列表中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

    .menu-card__thumb {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    /* 控制菜单列表中的商品卡片中的标题文字的布局、尺寸和外观。 */

    .menu-card__title {
        font-size: 0.85rem;
    }

    /* 统一控制菜单列表中的商品卡片中的辅助资料文字及相关元素的布局和外观。 */

    
    .menu-card__desc {
        font-size: 0.78rem;
    }

    /* 控制猪肉标识状态状态标签中的图片尺寸和裁切方式的布局、尺寸和外观。 */

    .menu-card .pork-status-badge__image {
        height: 18px;
        max-width: 80px;
    }

    /* 控制菜单列表中的商品卡片中的价格文字的布局、尺寸和外观。 */

    .menu-card__price {
        font-size: 0.88rem;
    }

    /* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

    .popular-card {
        border-radius: 16px;
    }

    /* 控制热门商品区域中的商品卡片中的商品缩略图的布局、尺寸和外观。 */

    .popular-card__thumb {
        width: 82px;
        height: 82px;
    }

    /* 控制热门商品区域中的商品卡片中的底部操作区的布局、尺寸和外观。 */

    .popular-card__footer {
        align-items: center;
    }
    /* 控制菜单卡片内容行的布局、尺寸和外观。 */
    .menu-card-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.3rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        gap: 4vw;
    }

    /* 控制菜单列表中的商品卡片的布局、尺寸和外观。 */

    .menu-card-row .menu-card {
        width: 50vw;
        min-width: 50vw;
        flex: 0 0 50vw;
        scroll-snap-align: start;
    }

    /* 控制热门商品横向商品带的布局、尺寸和外观。 */

    .popular-strip {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* 隐藏热门商品横向商品带的浏览器滚动条，同时保留滚动功能。 */

    .popular-strip::-webkit-scrollbar {
        display: none;
    }

    /* 控制热门商品区域中的商品卡片的布局、尺寸和外观。 */

    .popular-card {
        width: 88vw;
        min-width: 88vw;
        max-width: 88vw;
        flex: 0 0 auto;
        height: auto;
    }
    /* 控制选择商品规格和数量的弹窗中的图片尺寸和裁切方式的布局、尺寸和外观。 */
    .menu-modal__image {
        width: 120px;
    }

    /* 控制顶部白色顾客导航栏的布局、尺寸和外观。 */

    .customer-nav {
        padding: 0.5rem 1rem;
    }
    /* 控制订单卡片的布局、尺寸和外观。 */
    .order-card {
        padding: 1.25rem;
        border-radius: 24px;
    }

    /* 控制订单数量的布局、尺寸和外观。 */

    .order-quantity {
        min-width: 62px;
    }
    /* 控制结账页面左右内容栏的网格布局的布局、尺寸和外观。 */

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* 控制档口卡片的布局、尺寸和外观。 */

    .stall-card {
        padding: 0.85rem;
        border-radius: 20px;
    }

    /* 控制档口卡片中的标题和操作区域的布局、尺寸和外观。 */

    .stall-card__header {
        gap: 0.5rem;
    }

    /* 控制项目卡片的布局、尺寸和外观。 */

    .item-card {
        grid-template-columns: 1fr;
        padding: 0.75rem;
        border-radius: 16px;
    }

    /* 控制项目卡片中的商品缩略图的布局、尺寸和外观。 */

    .item-card__thumb {
        width: 80px;
        height: 80px;
    }

    /* 控制项目卡片中的删除按钮的布局、尺寸和外观。 */

    .item-card__remove {
        width: 44px;
        height: 44px;
    }

    /* 控制项目卡片中的底部的布局、尺寸和外观。 */

    .item-card__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* 控制项目卡片中的数量的布局、尺寸和外观。 */

    .item-card__quantity {
        width: 100%;
        justify-content: space-between;
    }

    /* 控制数量控制项的布局、尺寸和外观。 */

    .qty-control {
        width: 100%;
        justify-content: space-between;
    }

    /* 控制项目卡片中的价格文字的布局、尺寸和外观。 */

    .item-card__price {
        width: 100%;
        text-align: left;
    }

    /* 控制结账摘要中的总金额文字的布局、尺寸和外观。 */

    .checkout-summary__total > span,
    .checkout-summary__total strong {
        font-size: 1.4rem;
    }
    /* 控制订单提交成功页面中的项目排列区域的布局、尺寸和外观。 */
    .success-page__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    /* 控制订单成功页面顶部的订单摘要区的布局、尺寸和外观。 */
    .success-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 控制订单成功页面顶部的订单摘要区的横幅版本的布局、尺寸和外观。 */

    .success-hero--banner {
        padding: 0;
    }

    /* 控制订单成功二维码顶部摘要区的布局、尺寸和外观。 */

    .success-qr-hero {
        grid-template-columns: minmax(0, 1fr);
    }
    /* 统一控制订单成功页面顶部的订单摘要区中的标题和操作区域及相关元素的布局和外观。 */
    
    .success-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    /* 控制订单成功页面的电子收据卡片的布局、尺寸和外观。 */

    .success-receipt-card {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* 控制订单成功页面的电子收据卡片中的取餐号码的布局、尺寸和外观。 */

    .success-receipt-card__queue {
        font-size: 1.15rem;
    }

    /* 控制订单成功页面的电子收据卡片中的取餐或配送方式的布局、尺寸和外观。 */

    .success-receipt-card__fulfilment {
        font-size: 1.22rem;
    }

    /* 控制订单成功页面的电子收据卡片中的档口标题行的布局、尺寸和外观。 */

    .success-receipt-card__store-head {
        flex-direction: column;
        gap: 0.35rem;
    }

    /* 控制订单成功页面的电子收据卡片中的档口状态的布局、尺寸和外观。 */

    .success-receipt-card__store-status {
        text-align: left;
    }

    /* 控制订单成功页面底部的操作按钮的布局、尺寸和外观。 */

    .success-action {
        width: 100%;
    }

    /* 控制订单成功详情分页中的操作按钮区域的布局、尺寸和外观。 */

    .success-detail-pagination__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    /* 控制弹窗弹窗窗口的布局、尺寸和外观。 */
    #menuAddModal .modal-dialog {
        max-height: none;
    }
    /* 控制选择商品规格和数量的弹窗的布局、尺寸和外观。 */
    #menuAddModal .menu-modal {
        padding: 0.25rem 0.25rem 0.75rem;
    }
    /* 控制商品选择弹窗的标题区域的布局、尺寸和外观。 */
    #menuAddModal .menu-modal__header {
        padding: 0.85rem 1rem 0.5rem;
    }
    /* 控制商品选择弹窗中可滚动的主要内容区的布局、尺寸和外观。 */
    #menuAddModal .menu-modal__body {
        padding: 0.5rem 1rem;
    }
}

/* ==================================================
   打印样式
   ================================================== */

/* Keep the same soft, springy motion across frontend buttons. */
:where(
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .btn,
    .nav-pill,
    .search-chip,
    .floating-cart-bar,
    .page-link,
    .success-action,
    .store-category-focus-bar__back
) {
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

:where(
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .btn,
    .nav-pill,
    .search-chip,
    .floating-cart-bar,
    .page-link,
    .success-action,
    .store-category-focus-bar__back
):not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
    transform: translateY(-1px) scale(1.012) !important;
}

:where(
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .btn,
    .nav-pill,
    .search-chip,
    .floating-cart-bar,
    .page-link,
    .success-action,
    .store-category-focus-bar__back
):not(:disabled):not(.disabled):not([aria-disabled="true"]):active {
    transform: translateY(-1px) scale(0.985) !important;
    transition-duration: 0.1s !important;
}

#menuAddModal .menu-modal__close:not(:disabled):is(:hover, :focus-visible) {
    transform: translate(
        var(--menu-modal-close-offset-x),
        calc(var(--menu-modal-close-offset-y) - 1px)
    ) scale(1.012) !important;
}

#menuAddModal .menu-modal__close:not(:disabled):active {
    transform: translate(
        var(--menu-modal-close-offset-x),
        calc(var(--menu-modal-close-offset-y) - 1px)
    ) scale(0.985) !important;
}

@media (prefers-reduced-motion: reduce) {
    :where(
        button,
        input[type="button"],
        input[type="submit"],
        input[type="reset"],
        .btn,
        .nav-pill,
        .search-chip,
        .floating-cart-bar,
        .page-link,
        .success-action,
        .store-category-focus-bar__back
    ) {
        transition-duration: 0.01ms !important;
    }
}

/* Keep the Delivery Address trigger fixed while its address rows retain the global button bounce. */
#checkoutForm [data-delivery-selector] .checkout-payment-selector__trigger {
    transform: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

#checkoutForm [data-delivery-selector] .checkout-payment-selector__trigger:not(:disabled):is(:hover, :focus-visible, :active) {
    transform: none !important;
}

/* Use the homepage Stall and Item card language throughout the Cart list.
   Cart controls keep their own hooks, but no Cart-only surface styling remains. */
.checkout-page .stall-card {
    padding: 1.3rem 1.3rem 1.1rem 1.4rem;
    background: #f2f8eb;
    border: 0.1px solid #b4d79d;
    border-radius: 38px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}

.checkout-page .stall-card.pork-surface--pork-free {
    background: #f2f8eb;
    border-color: #b4d79d;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}

.checkout-page .stall-card.pork-surface--non-pork-free {
    background: #fff7ec;
    border-color: #ffd49f;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}

.checkout-page .stall-card.pork-surface--pending {
    background: #f6fceb;
    border-color: rgba(204, 211, 209, 0.5);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}

.checkout-page .stall-card.is-dine-in-blocked {
    border-color: #b9bfba;
    background: #eef0ee;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
}

.checkout-page .stall-card.is-dine-in-blocked .stall-card__header,
.checkout-page .stall-card.is-dine-in-blocked .stall-card__body {
    filter: grayscale(1);
    opacity: .48;
}

.checkout-page .stall-card.is-dine-in-blocked [data-checkout-item-detail] {
    cursor: not-allowed;
}

.checkout-dine-in-unavailable,
.checkout-delivery-window-notice {
    display: none;
    align-items: flex-start;
    gap: .7rem;
    padding: .8rem .9rem;
    border: 1px solid #efb75f;
    border-radius: 8px;
    background: #fff8e9;
    color: #674515;
    font-size: .78rem;
    line-height: 1.4;
}

.checkout-dine-in-unavailable:not([hidden]),
.checkout-delivery-window-notice.is-visible {
    display: flex;
}

.checkout-delivery-window-notice.is-visible:not(.is-closed) {
    display: block;
}

.checkout-dine-in-unavailable {
    margin-top: .85rem;
}

.checkout-delivery-window-notice {
    margin-top: .75rem;
    border-color: #b9d8a7;
    background: #f2f8ec;
    color: #31582c;
}

.checkout-delivery-window-notice.is-closed {
    display: grid;
    width: calc(100% - var(--checkout-label-indent));
    grid-template-rows: 0fr;
    margin-top: 0;
    margin-left: var(--checkout-label-indent);
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #7b7f70;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.45rem);
    transition:
        grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.34s;
}

.checkout-delivery-window-notice.is-closed > div {
    min-height: 0;
}

.checkout-delivery-window-notice.is-closed.is-note-feedback > div {
    color: #b42318;
    animation: menu-variation-limit-shake 0.55s ease-in-out 1;
}

@media (prefers-reduced-motion: reduce) {
    .checkout-delivery-window-notice.is-closed.is-note-feedback > div {
        animation: none;
    }
}

.checkout-delivery-window-notice.is-closed.is-visible {
    display: grid;
    grid-template-rows: 1fr;
    margin-top: -0.5rem;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.checkout-delivery-window-notice:not(.is-closed) {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.checkout-dine-in-unavailable > i {
    flex: 0 0 auto;
    margin-top: .1rem;
    color: #df8517;
    font-size: 1rem;
}

.checkout-dine-in-unavailable > div > strong,
.checkout-dine-in-unavailable > div > span,
.checkout-delivery-window-notice > div > strong,
.checkout-delivery-window-notice > div > span {
    display: block;
}

.checkout-dine-in-unavailable > div > span,
.checkout-delivery-window-notice > div > span {
    margin-top: .15rem;
}

.checkout-delivery-window-notice__detail {
    display: inline;
    font-weight: 700;
}

.checkout-page .checkout-grid__col--items {
    container-type: inline-size;
    container-name: checkout-items-column;
}

.checkout-page .stall-card__header {
    gap: 2rem;
    margin-left: 10px;
    margin-bottom: 1rem;
}

.checkout-page .stall-card__avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fff5fb;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.checkout-page .stall-card__logo {
    display: block;
    object-fit: cover;
    opacity: 1;
    transform: none;
}

.checkout-page .item-card--homepage-style {
    --cart-item-thumb-size: 120px;
    position: relative;
    min-width: 0;
    min-height: 160px;
    padding: 1rem 1.5rem 0.7rem 1.3rem;
    grid-template-columns: var(--cart-item-thumb-size) minmax(0, 1fr);
    grid-template-areas:
        "header header"
        "media content";
    column-gap: 1.5rem;
    row-gap: 0.5rem;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(204, 211, 209, 0.5);
    border-radius: 28px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}

.checkout-page .item-card--homepage-style[data-checkout-item-detail] {
    cursor: pointer;
}

.checkout-page .item-card--homepage-style[data-checkout-item-detail]:focus-visible {
    outline: 3px solid rgba(255, 173, 85, 0.32);
    outline-offset: 3px;
}

.checkout-page .item-card--homepage-style.item-card--no-variations {
    grid-template-areas:
        "header header"
        "media content";
}

.checkout-page .item-card--homepage-style .item-card__thumb {
    display: block;
    width: var(--cart-item-thumb-size);
    height: var(--cart-item-thumb-size);
    border-radius: 24px;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.checkout-page .stall-card__title,
.checkout-page .item-card--homepage-style .item-card__title {
    font-size: 1.2rem;
    font-weight: 1000;
    line-height: 1.2;
    text-align: left;
    color: #083b25;
}

.checkout-page .item-card--homepage-style .item-card__content {
    grid-area: content;
    min-width: 0;
    max-width: 100%;
    align-self: stretch;
}

.checkout-page .item-card--homepage-style .item-card__top-row {
    grid-area: header;
    display: flex;
    min-height: 0;
    padding-right: 44px;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__content {
    justify-content: flex-start;
}

.checkout-page .item-card--homepage-style .item-card__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    gap: 0.45rem;
}

.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: var(--cart-item-thumb-size);
}

.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__bottom {
    grid-row: 2;
}

.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__main:has(.item-card__remark) {
    grid-template-rows: minmax(0, 1fr) auto auto;
}

.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__main:has(.item-card__remark) .item-card__remark {
    grid-row: 2;
}

.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__main:has(.item-card__remark) .item-card__bottom {
    grid-row: 3;
}

.checkout-page .item-card--homepage-style .item-card__media {
    grid-area: media;
}

.checkout-page .item-card--homepage-style.item-card--has-variations {
    align-items: start;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__media,
.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__content {
    align-self: start;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: var(--cart-item-thumb-size);
    gap: 0.45rem;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__tags,
.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__tags--placeholder {
    grid-row: 1;
    align-self: center;
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-tag,
.checkout-page .item-card--homepage-style.item-card--no-variations .item-card__tags--placeholder .item-tag {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(33, 37, 41, 0.75);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    text-align: left;
    overflow-wrap: anywhere;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__bottom {
    grid-row: 2;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__main:has(.item-card__remark) {
    grid-template-rows: minmax(0, 1fr) auto auto;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__main:has(.item-card__remark) .item-card__remark {
    grid-row: 2;
}

.checkout-page .item-card--homepage-style.item-card--has-variations .item-card__main:has(.item-card__remark) .item-card__bottom {
    grid-row: 3;
}

@media (min-width: 769px) {
    .checkout-page .item-card--homepage-style.item-card--no-variations {
        align-items: start;
    }

    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__media,
    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__content {
        align-self: start;
    }

    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__bottom {
        flex: 0 0 auto;
    }
}

.checkout-page .item-card--homepage-style .item-card__name-wrap {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 10px;
    align-self: stretch;
    align-items: center;
    justify-content: flex-start;
}

.checkout-page .item-card--homepage-style .item-card__remove {
    position: absolute;
    top: 0.2rem;
    right: 0.4rem;
    z-index: 2;
    background: transparent;
    color: #ff8c3a;
    box-shadow: none;
}

/* Reuse the Item Detail quantity typography and pill treatment in Cart;
   only the pill width is reduced to fit the narrower card content area. */
.checkout-page .item-card--homepage-style .item-card__label,
.checkout-page .item-card--homepage-style .item-card__price-value {
    color: #083b25;
    font-size: 1rem;
    font-weight: 900 !important;
    line-height: 1.2;
}

.checkout-page .item-card--homepage-style .item-card__quantity {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.checkout-page .item-card--homepage-style .item-card__bottom {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-top: 1px solid rgba(59, 56, 56, 0.12);
    border-bottom: 1px solid rgba(59, 56, 56, 0.12);
}

.checkout-page .item-card--homepage-style .qty-control {
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 28px;
    height: 28px;
    flex: 1 1 auto;
    justify-content: space-between;
    border: 2px solid #d0cece;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
}

.checkout-page .item-card--homepage-style .qty-btn {
    width: 30px;
    height: 100%;
    min-height: 0;
    flex: 0 0 30px;
    padding: 0;
    background: transparent;
    color: #ff8c3a;
    font-weight: 800;
}

.checkout-page .item-card--homepage-style .order-quantity {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
    font-size: 0.9rem;
    font-weight: 700;

}

.checkout-page .item-card--homepage-style .order-quantity::-webkit-inner-spin-button,
.checkout-page .item-card--homepage-style .order-quantity::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

@media (min-width: 992px) {
    @container checkout-items-column (min-width: 572px) {
        .checkout-page .stall-card__title-wrap {
            min-width: 0;
            flex: 1 1 auto;
        }

        .checkout-page .stall-card__title {
            width: 100%;
            min-width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .checkout-page .item-card--homepage-style,
        .checkout-page .item-card--homepage-style.item-card--no-variations,
        .checkout-page .item-card--homepage-style.item-card--has-variations {
            --checkout-item-action-gap: 2rem;
            --checkout-item-variants-bottom-gap: 0rem;
            --checkout-item-content-offset-y: 8px;
            min-height: 0;
            padding: 0.5rem 2rem 0.5rem 0.5rem;
            grid-template-areas:
                "media header"
                "media content";
            grid-template-rows: auto minmax(0, 1fr);
            align-items: stretch;
        }

        .checkout-page .item-card--homepage-style .item-card__name-wrap {
            margin-left: 0;
        }

        .checkout-page .item-card--homepage-style .item-card__title {
            color: #083b25;
            font-size: 1rem;
            font-weight: 900 !important;
            line-height: 1.2;
            max-width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .checkout-page .item-card--homepage-style .item-card__top-row {
            align-self: start;
            transform: translateY(var(--checkout-item-content-offset-y));
        }

        .checkout-page .item-card--homepage-style .item-card__content {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-rows: minmax(0, 1fr) auto;
            column-gap: 0;
            row-gap: var(--checkout-item-variants-bottom-gap);
            align-items: stretch;
            transform: translateY(var(--checkout-item-content-offset-y));
        }

        .checkout-page .item-card--homepage-style .item-card__content:has(.item-card__remark) {
            grid-template-rows: minmax(0, 1fr) auto auto;
        }

        .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__content,
        .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__content {
            min-height: 0;
            align-self: stretch;
        }

        .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__tags {
            display: -webkit-box;
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
            white-space: normal;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
        }

        .checkout-page .item-card--homepage-style.item-card--has-variations .item-tag {
            display: inline;
            margin-right: 0.35rem;
        }

        .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__main,
        .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__main {
            display: contents;
        }

        .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__bottom,
        .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__bottom {
            grid-column: 1;
            grid-row: 2;
            padding-right: 0;
            border-bottom: none;
        }

        .checkout-page .item-card--homepage-style .item-card__content:has(.item-card__remark) .item-card__bottom {
            grid-row: 3;
        }

        .checkout-page .item-card--homepage-style .item-card__quantity {
            gap: var(--checkout-item-action-gap);
        }

        .checkout-page .item-card--homepage-style .item-card__price {
            grid-column: 2;
            grid-row: 2;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            width: auto;
            padding: 0.6rem 0 0.6rem var(--checkout-item-action-gap);
            border-top: 1px solid rgba(59, 56, 56, 0.12);
            border-bottom: none;
            text-align: right;
            white-space: nowrap;
        }

        .checkout-page .item-card--homepage-style .item-card__content:has(.item-card__remark) .item-card__price {
            grid-row: 3;
        }
    }
}

@media (max-width: 768px) {
    .checkout-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-page .stall-card {
        padding: 0.8rem 1.1rem 1rem;
        border-radius: 18px;
    }

    .checkout-page .stall-card__header {
        align-items: center;
        gap: 0.75rem;
        margin-left: 0;
    }

    .checkout-page .stall-card__avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .checkout-page .item-card--homepage-style {
        --cart-item-thumb-size: 48px;
        --cart-item-mobile-info-height: 160px;
        height: calc(var(--cart-item-mobile-info-height) + var(--cart-item-mobile-info-height) + 2px);
        min-height: 0;
        padding: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: var(--cart-item-mobile-info-height) auto minmax(0, 1fr);
        grid-template-areas:
            "media media"
            "header remove"
            "content content";
        gap: 0;
        align-items: start;
        border-radius: 16px;
        overflow: hidden;
    }

    .checkout-page .item-card--homepage-style.item-card--no-variations {
        grid-template-areas:
            "media media"
            "header remove"
            "content content";
    }

    .checkout-page .item-card--homepage-style .item-card__top-row {
        padding: 0.65rem 0 0.15rem 0.7rem;
    }

    .checkout-page .item-card--homepage-style .item-card__name-wrap {
        margin-left: 0;
    }

    .checkout-page .item-card--homepage-style .item-card__remove {
        position: static;
        grid-area: remove;
        align-self: center;
        margin: 0rem 0rem 0 0;
        transform: translateY(-4px);
    }

    .checkout-page .item-card--homepage-style .item-card__media {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .checkout-page .item-card--homepage-style .item-card__thumb {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 15px 15px 0 0;
        object-fit: cover;
    }

    .checkout-page .item-card--homepage-style .item-card__content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: minmax(0, 1fr) auto;
        column-gap: 1rem;
        row-gap: 0.15rem;
        min-height: 0;
        padding: 0.25rem 0.7rem 0.7rem;
        overflow: hidden;
    }

    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__content,
    .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__content {
        align-self: stretch;
        width: 100%;
    }

    .checkout-page .item-card--homepage-style .item-card__content:has(.item-card__remark) {
        grid-template-rows: minmax(0, 1fr) auto auto;
    }

    .checkout-page .item-card--homepage-style .item-card__content::before {
        content: "";
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: start;
        width: calc(100% + 1.4rem);
        margin-left: -0.7rem;
        border-top: 1px solid rgba(59, 56, 56, 0.12);
        pointer-events: none;
        transform: translateY(-10px);
    }

    .checkout-page .item-card--homepage-style .item-card__content:has(.item-card__remark)::before {
        grid-row: 3;
    }

    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__main,
    .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__main,
    .checkout-page .item-card--homepage-style .item-card__bottom {
        display: contents;
    }

    .checkout-page .item-card--homepage-style .item-card__tags {
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: center;
    }

    .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__tags {
        display: -webkit-box;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        white-space: normal;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .checkout-page .item-card--homepage-style.item-card--has-variations .item-tag {
        display: inline;
        margin-right: 0.35rem;
    }

    .checkout-page .item-card--homepage-style .item-card__remark {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .checkout-page .item-card--homepage-style .item-card__quantity {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        align-items: flex-start;
        align-self: end;
        gap: 0.2rem;
        width: auto;
    }

    .checkout-page .item-card--homepage-style .item-card__content:has(.item-card__remark) .item-card__quantity {
        grid-row: 3;
    }

    .checkout-page .item-card--homepage-style .qty-control {
        width: 200px;
        flex: 0 0 auto;
    }

    .checkout-page .item-card--homepage-style .qty-control .order-quantity {
        font-size: 0.85rem;
        font-weight: 1000;
    }

    .checkout-page .item-card--homepage-style .item-card__price {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        width: auto;
        text-align: right;
        white-space: nowrap;
        translate: 0 -4px;
    }

    .checkout-page .item-card--homepage-style .item-card__content:has(.item-card__remark) .item-card__price {
        grid-row: 3;
    }

    .checkout-page .stall-card__title {
        flex: 1 0 100%;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        font-size: 0.85rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .checkout-page .stall-card__title-wrap {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: wrap;
        row-gap: 0.25rem;
        translate: 0 4px;
    }

    .checkout-page .stall-card__title-wrap .pork-status-badge {
        flex: 0 0 auto;
    }

    .checkout-page .item-card--homepage-style .item-card__title {
        font-size: 1rem;
        font-weight: 900 !important;
    }

    .checkout-page .item-card--homepage-style .item-card__label {
        font-size: 0.85rem;
        font-weight: 1000 !important;
    }

    .checkout-page .item-card--homepage-style .item-card__title,
    .checkout-page .item-card--homepage-style .item-card__label {
        translate: -4px 0;
    }

    .checkout-page .item-card--homepage-style .item-card__tags {
        translate: -4px -12px;
    }

}

/* ==================================================
   Customer frontend tablet Checkout (577px-768px)
   Payment details stay on the left and item details stay on the right.
   ================================================== */
@media (min-width: 577px) and (max-width: 768px) {
    .layout-shell main > .container.container--checkout {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .checkout-page {
        padding: 0.25rem;
        border-radius: 18px;
    }

    .checkout-heading {
        margin-bottom: 0.85rem;
    }

    .checkout-title {
        font-size: 1.65rem;
    }

    .checkout-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 0.75rem;
        align-items: start;
    }

    .checkout-grid__col {
        min-width: 0;
        gap: 0.75rem;
    }

    .checkout-grid__col--details {
        order: 1;
    }

    .checkout-grid__col--items {
        order: 2;
    }

    .checkout-details-panel {
        --checkout-details-field-gap: 1rem;
        padding: 1rem 0.85rem;
        border-radius: 24px;
        gap: var(--checkout-details-field-gap);
    }

    .checkout-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--checkout-details-field-gap);
    }

    .checkout-details-label {
        margin-bottom: 0.35rem;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    #checkoutForm {
        --checkout-icon-size: 0.9rem;
        --checkout-input-icon-left: 0.85rem;
        --checkout-input-icon-text-gap: 0.65rem;
        --checkout-label-indent: 0.2rem;
    }

    .checkout-page .pill-input,
    .checkout-page .form-control.pill-input {
        height: 38px;
        min-height: 38px;
        max-height: 38px;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        font-size: 0.82rem;
    }

    #checkoutForm .checkout-order-type-group,
    #checkoutForm .checkout-cutlery-group {
        width: 100%;
        max-width: 100%;
    }

    #checkoutForm .checkout-order-type-option,
    #checkoutForm .checkout-cutlery-option {
        min-width: 0;
    }

    #checkoutForm .checkout-order-type-option > span,
    #checkoutForm .checkout-cutlery-option span {
        min-height: 42px;
        padding: 0.35rem 0.25rem;
        gap: 0.3rem;
        font-size: clamp(0.62rem, 1.65vw, 0.78rem);
        line-height: 1.05;
        text-align: center;
    }

    #checkoutForm .checkout-choice-icon {
        width: 0.8rem;
        height: 0.8rem;
        flex: 0 0 0.8rem;
    }

    #checkoutForm .checkout-payment-shell {
        padding: 0.65rem;
        border-radius: 20px;
    }

    #checkoutForm .checkout-payment-section .alert {
        margin: 0;
        padding: 0.7rem;
        border-radius: 14px;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    #checkoutForm .checkout-payment-mode__buttons {
        gap: 0.6rem;
    }

    #checkoutForm .checkout-payment-mode__button {
        min-height: 42px;
        padding: 0.45rem 0.6rem;
        border-radius: 18px;
    }

    #checkoutForm .checkout-payment-mode__meta,
    #checkoutForm .checkout-inline-note {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .checkout-summary {
        gap: 0.15rem;
    }

    .summary-row,
    #checkoutForm .summary-row--subtotal {
        font-size: 0.72rem;
    }

    .checkout-summary__total {
        gap: 0.5rem;
        padding-top: 0.65rem;
    }

    .checkout-summary__total > span,
    .checkout-summary__total strong {
        font-size: clamp(1.05rem, 3vw, 1.35rem);
    }

    .checkout-page .checkout-btn {
        min-height: 44px;
        max-height: 44px;
        margin-top: 0.65rem;
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }

    .checkout-order-shell {
        gap: 0.75rem;
    }

    .checkout-page .stall-card {
        padding: 0.65rem;
        border-radius: 22px;
    }

    .checkout-page .stall-card__header {
        gap: 0.5rem;
        margin: 0 0 0.65rem;
        align-items: center;
    }

    .checkout-page .stall-card__avatar {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border-radius: 10px;
    }

    .checkout-page .stall-card__title-wrap {
        min-width: 0;
        gap: 0.3rem;
        flex-wrap: wrap;
        translate: 0;
    }

    .checkout-page .stall-card__title {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        display: -webkit-box;
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: normal;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .checkout-page .stall-card__title-wrap .pork-status-badge {
        flex: 0 0 auto;
        height: 18px;
        padding: 0 0.35rem;
        font-size: 0.62rem;
    }

    .checkout-page .stall-card__body {
        gap: 0.6rem;
    }

    .checkout-page .item-card--homepage-style,
    .checkout-page .item-card--homepage-style.item-card--no-variations,
    .checkout-page .item-card--homepage-style.item-card--has-variations {
        --cart-item-thumb-size: clamp(58px, 10vw, 72px);
        height: auto;
        min-height: 150px;
        max-height: none;
        padding: 0.6rem;
        grid-template-columns: var(--cart-item-thumb-size) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "media header"
            "media content";
        column-gap: 0.55rem;
        row-gap: 0.35rem;
        align-items: start;
        border-radius: 18px;
        overflow: visible;
    }

    .checkout-page .item-card--homepage-style .item-card__media {
        grid-area: media;
        width: var(--cart-item-thumb-size);
        height: var(--cart-item-thumb-size);
        min-width: var(--cart-item-thumb-size);
        overflow: hidden;
        align-self: start;
    }

    .checkout-page .item-card--homepage-style .item-card__thumb {
        width: var(--cart-item-thumb-size);
        height: var(--cart-item-thumb-size);
        border-radius: 14px;
        object-fit: cover;
    }

    .checkout-page .item-card--homepage-style .item-card__top-row {
        grid-area: header;
        min-width: 0;
        padding: 0 28px 0 0;
        align-items: start;
    }

    .checkout-page .item-card--homepage-style .item-card__name-wrap {
        min-width: 0;
        margin: 0;
        align-items: flex-start;
    }

    .checkout-page .item-card--homepage-style .item-card__title {
        overflow: hidden;
        display: -webkit-box;
        font-size: 0.75rem;
        line-height: 1.2;
        translate: 0;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .checkout-page .item-card--homepage-style .item-card__remove {
        position: absolute;
        top: 0.35rem;
        right: 0.35rem;
        width: 32px;
        height: 32px;
        margin: 0;
        font-size: 0.8rem;
        transform: none;
    }

    .checkout-page .item-card--homepage-style .item-card__content,
    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__content,
    .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__content {
        grid-area: content;
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 0;
        flex-direction: column;
        gap: 0.35rem;
        overflow: visible;
        align-self: stretch;
    }

    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__main,
    .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__main {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 0.35rem;
    }

    .checkout-page .item-card--homepage-style .item-card__content::before {
        display: none;
    }

    .checkout-page .item-card--homepage-style .item-card__tags,
    .checkout-page .item-card--homepage-style.item-card--has-variations .item-card__tags {
        display: -webkit-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
        grid-row: auto;
        align-self: auto;
        white-space: normal;
        text-overflow: ellipsis;
        translate: 0;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .checkout-page .item-card--homepage-style.item-card--has-variations .item-tag,
    .checkout-page .item-card--homepage-style.item-card--no-variations .item-card__tags--placeholder .item-tag {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .checkout-page .item-card--homepage-style .item-card__bottom {
        display: flex;
        width: 100%;
        min-width: 0;
        padding: 0.35rem 0 0;
        border-top: 1px solid rgba(59, 56, 56, 0.12);
        border-bottom: 0;
    }

    .checkout-page .item-card--homepage-style .item-card__quantity {
        display: flex;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .checkout-page .item-card--homepage-style .item-card__label {
        font-size: 0.68rem;
        line-height: 1;
        translate: 0;
    }

    .checkout-page .item-card--homepage-style .qty-control {
        width: 100%;
        min-width: 0;
        height: 28px;
        min-height: 28px;
    }

    .checkout-page .item-card--homepage-style .qty-btn {
        width: 28px;
        flex-basis: 28px;
    }

    .checkout-page .item-card--homepage-style .item-card__price {
        width: 100%;
        margin-top: 0.15rem;
        text-align: left;
        white-space: nowrap;
        translate: 0;
    }

    .checkout-page .item-card--homepage-style .item-card__price-value {
        font-size: 0.75rem;
    }
}

/* Mobile-only controls stay out of the desktop layout and accessibility tree. */
.mobile-filter-trigger,
.mobile-filter-backdrop,
.mobile-filter-sheet__header,
.mobile-filter-sheet__footer {
    display: none;
}

/* ==================================================
   Customer frontend mobile usability refinements
   ================================================== */
@media (max-width: 576px) {
    .frontend-access-modal .modal-dialog {
        --mobile-login-card-inline-gap: 0.5rem;
        width: calc(100% - (2 * var(--mobile-login-card-inline-gap)));
        max-width: 460px;
        margin-right: auto;
        margin-left: auto;
    }

    .frontend-access-modal .frontend-access-modal__card {
        padding: 2rem 1.2rem;
        border-radius: 48px;
    }

    #loginModalMemberCodeLabel,
    #loginModalMemberCompleteLabel {
        font-size: 2.5rem;
    }

    .frontend-access-modal .modal-header,
    .frontend-access-modal .modal-body {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    #loginModalLabel,
    #profileModalLabel,
    #loginModalCustomerRegisterLabel {
        font-size: 48px;
        font-weight: 800!important;
        color: #3B3838;
    }


    #loginModalLabel,
    #profileModalLabel,
    #loginModalCustomerRegisterLabel {
        margin-bottom: -6px !important;
    }

    .frontend-access-modal .login-modal-subtitle {
        font-size: 14px;
        font-weight: 500;
        color: #3B3838;
    }

    .frontend-access-modal .login-modal-form {
        margin-top: 16px;
    }

    #loginModal .login-modal-login-field {
        margin-bottom: 14px !important;
    }

    .frontend-access-modal .login-modal-btn-primary,
    .frontend-access-modal .login-modal-btn-secondary {
        font-size: 18px;
        font-weight: 650 !important;
        letter-spacing: 0.6px;
    }

    .frontend-access-modal .login-modal-login-row .login-modal-btn-primary {
        position: relative;
        z-index: 2;
    }

    .frontend-access-modal .login-modal-login-leaf {
        right: auto;
        left: 12px;
        top: -10%;
        transform: translateY(-50%) scaleX(-1);
        z-index: 1;
        width: 14px;
    }

    .frontend-access-modal .login-modal-login-leaf--copy {
        display: block;
    }

    .frontend-access-modal .login-modal-login-leaf--second {
        left: 19.5px;
        width: 18px;
        top: -12%;
    }

    .frontend-access-modal .login-modal-login-leaf--third {
        left: 32px;
        width: 14px;
        top: -10%;
    }

    #loginModal .login-modal-remember .login-modal-link {
        margin-right: 16px;
    }

    #loginModal .login-modal-remember {
        margin-top: -16px;
    }

    #loginModal .login-modal-remember .form-check-input {
        transform: translateY(-1px);
    }

    #loginModal .login-modal-remember .form-check {
        margin-left: 16px !important;
    }

    .frontend-access-modal .login-modal-label {
        margin-left: 16px;
        font-weight: 700 !important;
        color: #3B3838 !important;
        font-size: 15px;
    }


    .frontend-access-modal .login-modal-label {
        margin-bottom: 0 !important;
    }

    #loginModal input[name="login"],
    #loginModal .password-toggle-wrap {
        margin-top: 2px;
    }

    .frontend-access-modal .login-modal-input {
        max-height: 38px;
        min-height: 38px;
        border: 1px solid #E1DEC3;
        font-size: 15px;
        font-weight: 501;
        padding-left: 28px;

    }

    #loginModal #frontendLoginPassword {
        padding-top: 7px;
        padding-bottom: 7px;
        line-height: 22px;
    }

    #loginModal .password-toggle-btn,
    #loginModal .password-toggle-btn:hover,
    #loginModal .password-toggle-btn:focus,
    #loginModal .password-toggle-btn:focus-visible,
    #loginModal .password-toggle-btn:active {
        transform: translateY(-50%) !important;
    }

    #loginModal .password-toggle-btn .password-toggle-icon,
    #loginModal .password-toggle-btn.is-visible .password-toggle-icon {
        transform: scale(1);
        opacity: 1;
    }

    #loginModal .password-toggle-btn:active .password-toggle-icon {
        transform: scale(0.9);
    }

    #loginModal .password-toggle-btn.is-toggle-animating .password-toggle-icon {
        animation: login-password-eye-toggle 220ms ease-out;
    }

    @keyframes login-password-eye-toggle {
        0%, 100% {
            transform: scale(1);
        }

        45% {
            transform: scale(0.86);
        }
    }

    .frontend-access-modal .login-modal-input:focus {
        border-color: #C8C3DF;
        border: 1px solid #E1DEC3;
    }

    .frontend-access-modal .login-modal-input:-webkit-autofill,
    .frontend-access-modal .login-modal-input:-webkit-autofill:hover,
    .frontend-access-modal .login-modal-input:-webkit-autofill:active,
    .frontend-access-modal .login-modal-input:autofill {
        background-color: #FFFFFF !important;
        -webkit-text-fill-color: #3B3838;
        caret-color: #3B3838;
        -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
        box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    }

    .frontend-access-modal .login-modal-input:-webkit-autofill:focus,
    .frontend-access-modal .login-modal-input:autofill:focus {
        -webkit-box-shadow:
            0 0 0 1000px #FFFFFF inset,
            0 0 0 3px rgba(225, 222, 195, 0.65) !important;
        box-shadow:
            0 0 0 1000px #FFFFFF inset,
            0 0 0 3px rgba(225, 222, 195, 0.65) !important;
    }


    .layout-shell main > .container {
        --bs-gutter-x: 1.75rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .home-slider {
        margin-bottom: 1.25rem !important;
    }

    .sticky-header:not(.kiosk-header) > .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sticky-header:not(.kiosk-header) .customer-nav {
        gap: 0.35rem;
        padding: 0.65rem;
    }

    .sticky-header:not(.kiosk-header) .brand-identity {
        width: clamp(4.5rem, 22vw, 5.25rem);
        min-width: clamp(4.5rem, 22vw, 5.25rem);
        flex: 0 0 clamp(4.5rem, 22vw, 5.25rem);
        margin-left: 1rem;
        padding: 0;
        gap: 0;
    }

    .sticky-header:not(.kiosk-header) .brand-wordmark {
        width: 100%;
        margin-left: 0;
    }

    .sticky-header:not(.kiosk-header) .brand-wordmark img {
        display: block;
        width: 100%;
        height: auto;
    }

    .sticky-header:not(.kiosk-header) .nav-actions {
        --mobile-nav-action-height: 40px;
        width: 0;
        flex: 1 1 0;
        gap: 0.25rem;
    }

    .nav-actions > .nav-pill--cart {
        flex: 0 0 auto;
    }

    .nav-actions > .nav-pill--cart [data-nav-cart-label] {
        overflow: visible;
        text-overflow: clip;
    }

    .nav-actions > .dropdown {
        flex: 0 1 clamp(4.75rem, 24vw, 5.75rem);
        min-width: 0;
        max-width: clamp(4.75rem, 24vw, 5.75rem);
    }

    .nav-actions .nav-account-trigger {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: var(--mobile-nav-action-height);
        padding: 0.35rem 0.72rem !important;
        border-radius: 999px !important;
        background: linear-gradient(110deg, #c6ecad 0%, #FFB45B 30%, #FFB45B 100%) !important;
        color: #fff !important;
        box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.4) !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 0.78rem;
        font-weight: 700 !important;
        line-height: 1.2;
    }

    .nav-actions > .nav-pill--cart,
    .nav-actions > .nav-pill--login,
    .nav-actions .nav-account-trigger {
        height: var(--mobile-nav-action-height);
        min-height: var(--mobile-nav-action-height);
        max-height: var(--mobile-nav-action-height);
    }

    .nav-actions .nav-account-trigger:is(:hover, :focus-visible, :active),
    .nav-actions .nav-account-trigger[aria-expanded="true"] {
        background: linear-gradient(110deg, #c6ecad 0%, #FFB45B 30%, #FFB45B 100%) !important;
        color: #fff !important;
    }

    .home-slider__carousel,
    .home-slider__placeholder,
    .home-slider .carousel-inner,
    .home-slider__carousel .carousel-inner img,
    .home-slider__placeholder img {
        border-radius: 28px !important;
    }

    .search-card {
        padding: 0.85rem;
        border-radius: 22px;
        overflow: visible;
    }

    .search-card__bar {
        width: 100%;
        min-width: 0;
        gap: 0.65rem;
        padding: 0.25rem 0.85rem;
        box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.4);
    }

    .search-card__icon {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .search-card__input {
        width: 100%;
        min-width: 0;
        font-size: 0.95rem;
        text-overflow: ellipsis;
    }

    .search-chip-group {
        margin-top: 0.75rem;
    }

    .search-chip-group--secondary {
        padding-top: 0.35rem;
    }

    body.mobile-filter-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .mobile-filter-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        margin-top: 0.75rem;
        padding: 0.55rem 0.9rem 0.55rem 0.85rem;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 999px;
        background: #fff;
        color: #083b25;
        font-weight: 750;
        box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.4);
    }

    .mobile-filter-trigger__leading {
        display: inline-flex;
        align-items: center;
        gap: calc(0.65rem + 2px);
    }

    .mobile-filter-trigger__leading > i {
        width: 1.1rem;
        flex: 0 0 1.1rem;
        text-align: center;
    }

    .mobile-filter-trigger__leading > span {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .mobile-filter-trigger__count {
        display: inline-grid;
        place-items: center;
        min-width: 1.65rem;
        height: 1.65rem;
        padding: 0 0.35rem;
        border-radius: 999px;
        background: #ffad55;
        color: #fff;
        font-size: 0.78rem;
    }

    .mobile-filter-trigger__chevron {
        font-size: 0.9rem;
    }

    .mobile-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1430;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        -webkit-backdrop-filter: blur(1px);
        backdrop-filter: blur(1px);
        transition: opacity 0.22s ease, visibility 0s linear 0.22s;
    }

    .mobile-filter-backdrop.is-mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .chip-filter-stack {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0;
        z-index: 1440;
        display: flex;
        flex-direction: column;
        width: auto;
        max-height: min(78dvh, 700px);
        padding: 0 1rem max(0.75rem, env(safe-area-inset-bottom));
        border-radius: 28px 28px 0 0;
        background: #fffdf8;
        box-shadow: 0 -16px 40px rgba(5, 37, 24, 0.2);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transform: translateY(105%);
        transition:
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.2s ease,
            visibility 0s linear 0.32s;
    }

    .chip-filter-stack::-webkit-scrollbar {
        display: none;
    }

    .chip-filter-stack.is-mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .mobile-filter-sheet__header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin: 0 -1rem 0.5rem;
        padding: 1rem 1rem 0.8rem;
        background: #fffdf8;
        border-bottom: 1px solid rgba(8, 59, 37, 0.1);
    }

    .mobile-filter-sheet__header > div {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .mobile-filter-sheet__eyebrow {
        color: #6b746c;
        font-size: 0.76rem;
        font-weight: 650;
    }

    .mobile-filter-sheet__header strong {
        color: #052518;
        font-size: 1.3rem;
    }

    .mobile-filter-sheet__close {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #083b25;
    }

    .mobile-filter-sheet__close-icon {
        display: block;
        width: 20px;
        height: 20px;
    }

    .chip-filter-stack .search-chip-group {
        margin-top: 0;
        padding: 0.55rem 0;
    }

    .chip-filter-stack > .search-chip-group--secondary {
        border-top: 0;
    }

    .chip-filter-stack > .mobile-filter-sheet__header + .search-chip-group--secondary {
        padding-bottom: 0;
    }

    .chip-filter-stack .chip-filter-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.65rem;
        padding: 0;
    }

    .chip-filter-stack .chip-filter-row > .search-chip,
    .chip-filter-stack .chip-track > .search-chip {
        width: auto;
        min-width: 0;
        max-width: 100%;
        flex: 0 0 auto;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .chip-filter-stack [data-mobile-category-clear] {
        position: relative;
        top: 2px;
    }

    .chip-filter-stack [data-mobile-stall-clear] {
        position: relative;
        top: 5.2px;
    }

    .chip-filter-stack .chip-track {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 0.65rem;
        width: 100%;
        padding: 0;
        overflow: visible;
        contain: none;
        touch-action: auto;
        cursor: default;
    }

    .chip-filter-stack .chip-track--category {
        position: relative;
        margin-top: 0.65rem;
        padding-top: 1.5rem;
    }

    .chip-filter-stack .chip-track--category::before {
        content: '';
        position: absolute;
        top: 0;
        left: -1rem;
        width: calc(100% + 2rem);
        border-top: 1px solid rgba(8, 59, 37, 0.1);
        pointer-events: none;
    }

    .chip-filter-stack .chip-track--category > .search-chip[data-pork-status] {
        width: calc(50% - 0.325rem);
        min-width: calc(50% - 0.325rem);
        max-width: calc(50% - 0.325rem);
        flex: 0 0 calc(50% - 0.325rem);
    }

    .chip-filter-stack .chip-filter-row--stall {
        position: relative;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .chip-filter-stack .chip-filter-row--stall::before {
        content: '';
        position: absolute;
        top: 0;
        left: -1rem;
        width: calc(100% + 2rem);
        border-top: 1px solid rgba(8, 59, 37, 0.1);
        pointer-events: none;
    }

    .chip-filter-stack .chip-track--stall {
        position: relative;
        margin-top: 1rem;
        padding-top: 1.5rem;
    }

    .chip-filter-stack .chip-track--stall > [data-mobile-stall-option] {
        box-sizing: border-box;
        justify-content: flex-start;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chip-filter-stack .chip-track--stall::before {
        content: '';
        position: absolute;
        top: 0;
        left: -1rem;
        width: calc(100% + 2rem);
        border-top: 1px solid rgba(8, 59, 37, 0.1);
        pointer-events: none;
    }

    .chip-filter-stack .search-chip.is-filter-disabled {
        opacity: 0.42;
        filter: grayscale(0.7);
        cursor: not-allowed;
        box-shadow: none;
    }

    .chip-filter-stack .stall-filter-controls {
        display: block;
        padding-right: 0;
    }

    .chip-filter-stack .stall-chip-nav {
        overflow: visible;
    }

    .chip-filter-stack .stall-filter-expand {
        display: none;
    }

    .mobile-filter-sheet__footer {
        position: sticky;
        bottom: calc(-1 * max(0.75rem, env(safe-area-inset-bottom)));
        z-index: 2;
        display: grid;
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
        gap: 0.75rem;
        margin: 0.5rem -1rem 0;
        padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom));
        background: #fffdf8;
        border-top: 1px solid rgba(8, 59, 37, 0.1);
    }

    .mobile-filter-sheet__clear,
    .mobile-filter-sheet__done {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        border-radius: 999px;
        font-weight: 750;
        text-decoration: none;
    }

    .mobile-filter-sheet__clear {
        border: 1px solid #d8dfd4;
        background: #fff;
        color: #083b25;
    }

    .mobile-filter-sheet__done {
        border: 0;
        background: linear-gradient(to right, #d1f2bb, #f6bb76, #ffb35b);
        color: #fff;
    }

    .chip-filter-stack::before {
        display: none;
    }

    .chip-filter-row {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: 0.75rem;
        padding-right: 0;
    }

    .chip-filter-row > .search-chip {
        width: 100%;
    }

    .chip-filter-row > .chip-track {
        padding-left: 0;
    }

    .stall-filter-controls {
        padding-right: 1.75rem;
    }

    .stall-filter-expand {
        top: 12px;
        right: 0;
        width: 1.75rem;
        max-width: 1.75rem;
        height: 2.75rem;
    }

    .chip-filter-row > .search-chip,
    .chip-track--category > .search-chip,
    .chip-track--stall > .search-chip {
        height: 44px;
        min-height: 44px;
        max-height: 44px;
    }

    .chip-track--category .search-chip,
    .chip-track--stall .search-chip {
        min-width: calc(100% - 1rem);
    }

    .section-heading {
        padding-top: 0rem !important;
        padding-bottom: 0rem !important;
    }

    .section-heading h4,
    .section-heading h5 {
        font-size: 1.5rem !important;
        line-height: 1.15;
    }

    .section-heading--all-stalls {
        margin-bottom: 1rem;
    }

    .popular-strip--scroll {
        gap: 0.65rem;
        padding: 0.25rem 1rem 0.35rem 0;
    }

    .popular-strip--scroll .popular-card {
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14);
    }

    .popular-stalls-section .stall-chip-nav {
        --mobile-popular-stall-right-bleed: 1.5rem;
        margin-right: calc(-1 * var(--mobile-popular-stall-right-bleed));
    }

    .popular-stalls-section .popular-strip {
        width: calc(100% + 8px);
        margin-left: -4px;
        padding-left: 4px;
        padding-bottom: 1.25rem !important;
    }

    .popular-strip--scroll .popular-card {
        width: calc(100% - 1.25rem);
        min-width: calc(100% - 1.25rem);
        max-width: calc(100% - 1.25rem);
    }

    .popular-stalls-section .popular-strip--scroll .popular-card--store {
        width: calc(100% - 1.25rem - var(--mobile-popular-stall-right-bleed));
        min-width: calc(100% - 1.25rem - var(--mobile-popular-stall-right-bleed));
        max-width: calc(100% - 1.25rem - var(--mobile-popular-stall-right-bleed));
    }

    .popular-card {
        padding: 0.8rem;
    }

    .popular-card.popular-card--store {
        border-width: 1px;
        border-radius: 28px;
    }

    .popular-card__body {
        gap: 0.75rem;
    }

    .popular-card__thumb,
    .popular-card__thumb-placeholder {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 14px;
    }

    .popular-card__title {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .stores-grid .store-card {
        padding: 0.85rem;
        padding-bottom: 0.3rem;
        border-width: 1px;
        border-radius: 28px;
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14);
    }

    .store-card__logo,
    .store-card__logo-placeholder {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .menu-card-row--scroll {
        gap: 0.65rem;
        padding-right: 1.5rem;
    }

    .menu-card-grid--portrait {
        gap: 0.65rem;
        row-gap: 0.9rem;
    }

    .menu-card-grid--portrait .menu-card {
        width: 100%;
        min-width: 0;
    }

    .floating-cart-bar-wrap {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0;
        height: auto !important;
        min-height: 76px;
        padding: 1rem 0.5rem max(0.75rem, env(safe-area-inset-bottom)) !important;
        border-radius: 38px 38px 0 0 !important;
    }

    .floating-cart-bar-wrap > img {
        display: none;
    }

    .floating-cart-bar-wrap .container {
        padding-right: 0;
        padding-left: 0;
    }

    .floating-cart-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.55rem;
        padding: 0.55rem 0.9rem;
    }

    /* Mobile homepage cart bar follows the checkout Confirm Order layout. */
    .floating-cart-bar-wrap--home {
        left: 0;
        right: 0;
        min-height: 0;
        height: auto !important;
        padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-top: 1px solid rgba(8, 59, 37, 0.1) !important;
        border-radius: 0 !important;
        background: #F7FAF5 !important;
        box-shadow: 0 -3px 10px rgba(5, 37, 24, 0.1);
    }

    /* The cart link fills this container; leave room for its focus outline and button shadow. */
    .floating-cart-bar-wrap--home .container {
        overflow: visible;
    }

    .floating-cart-bar-wrap--home .floating-cart-bar {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
        gap: 0.75rem;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .floating-cart-bar-wrap--home .floating-cart-bar:hover,
    .floating-cart-bar-wrap--home .floating-cart-bar:focus-visible,
    .floating-cart-bar-wrap--home .floating-cart-bar:active {
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .floating-cart-bar-wrap--home .floating-cart-bar__side {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-content: center;
        justify-self: stretch;
        gap: 0.8rem;
        min-width: 0;
        min-height: 52px;
        padding: 0.65rem 1rem;
        border-radius: 999px;
        background: linear-gradient(to right, #d1f2bb, #f6bb76, #ffb35b);
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14);
    }

    .floating-cart-bar-wrap--home .floating-cart-bar__cart-icon {
        display: block;
        flex: 0 0 auto;
        width: 20px;  /* icon 宽度 */
        height: 20px; /* icon 高度 */
        position: relative;
        top: -1px;
    }

    .floating-cart-bar-wrap--home #floatingCartAmount {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        align-items: flex-start;
        justify-self: stretch;
        min-width: 0;
        overflow: hidden;
        color: #052518;
        font-size: 1.15rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .floating-cart-bar-wrap--home #floatingCartAmount::before {
        content: "Total";
        color: #6b746c;
        font-size: 0.76rem;
        font-weight: 650;
    }

    .floating-cart-bar-wrap--home #floatingCartText {
        display: block;
        min-width: 0;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 800;
        text-align: center;
        box-shadow: none;
    }

    .floating-cart-bar__text,
    .floating-cart-bar__amount {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    #menuAddModal .modal-dialog {
        min-height: calc(100% - 1.5rem);
        margin: 2rem 1.5rem 0.75rem;
        align-items: flex-start;
    }

    #menuAddModal .menu-modal {
        width: 100%;
        border: 2px solid #FFB45B;
        border-radius: 32px;
        padding-bottom: 0.75rem;
    }

    #menuAddModal .menu-modal__header {
        position: static;
        background: transparent;
        padding-top: 0.85rem;
    }

    #menuAddModal .menu-modal__header::before {
        display: none;
    }

    #menuAddModal .menu-modal__image {
        width: min(100vw, 1000px);
    }

    /* Remove Bootstrap's g-4 row gap so the image-to-badge spacing has one source only. */
    #menuAddModal .menu-modal__body > .row > [class*="col-"]:nth-child(2) {
        margin-top: 0;
    }

    #menuAddModal .menu-modal__description-wrap {
        margin-top: 1.5rem;
    }

    #menuAddModal .menu-modal__description {
        min-height: 0;
        margin-bottom: 0;
    }

    #menuAddModal .menu-modal__options:has(#menuAddVariationContainer > .menu-modal__remark:only-child) {
        margin-top: 0;
    }

    #menuAddModal #menuAddVariationContainer > .menu-modal__remark:only-child {
        padding-top: 0;
    }

    #menuAddModal {
        --mobile-option-title-font-size: 1rem;
        --mobile-option-title-font-weight: 800;
        --mobile-option-title-color: #083b25;
        --mobile-detail-control-width: min(45vw, 300px);
    }

    #menuAddModal #menuAddVariationContainer .variation-group > .variation-group__header > .fw-semibold,
    #menuAddModal .menu-modal__remark-label,
    #menuAddModal .menu-modal__qty-label {
        color: var(--mobile-option-title-color);
        font-size: var(--mobile-option-title-font-size);
        font-weight: var(--mobile-option-title-font-weight) !important;
    }

    #menuAddModal .menu-modal__remark-field,
    #menuAddModal .menu-modal__qty-group {
        width: var(--mobile-detail-control-width);
        max-width: var(--mobile-detail-control-width);
        flex: 0 1 var(--mobile-detail-control-width);
    }

    #menuAddModal #menuAddNote {
        resize: none;
    }

    #menuAddModal .menu-modal__remark-resize-handle {
        display: block;
        position: absolute;
        right: -8px;
        bottom: -8px;
        z-index: 2;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        cursor: ns-resize;
        touch-action: none;
    }

    #menuAddModal .menu-modal__remark-divider {
        display: block;
    }

    #menuAddModal .menu-modal__quantity::before {
        display: none;
    }

    #menuAddModal .menu-modal__quantity {
        margin-top: 0 !important;
        padding-top: 0;
    }

    #menuAddModal .menu-modal__totals {
        margin-top: 0 !important;
        padding-top: 0;
        padding-left: 0.25rem;
    }

    #menuAddModal .menu-modal__price-divider {
        display: none;
    }

    #menuAddModal .menu-modal__price-row--total {
        margin-top: 1rem;
    }

    #menuAddModal .menu-modal__remark-field.is-resizing #menuAddNote {
        border-color: #FF8C3A;
        box-shadow: 0 0 0 0.2rem rgba(255, 140, 58, 0.2);
    }

    #menuAddVariationContainer .variation-group__header {
        margin-bottom: 0.5rem !important; /* Pull mobile options closer to their title. */
    }

    #menuAddVariationContainer .variation-group__options {
        width: calc(100% - 1rem);
        margin-left: 0rem;
        margin-right: 0rem;
    }

    #menuAddVariationContainer .variation-table {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        border-spacing: 0;
    }

    #menuAddVariationContainer .variation-table .variation-qty-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content max-content;
        align-items: center;
        column-gap: 0.5rem;
    }

    #menuAddVariationContainer .variation-table .variation-qty-name,
    #menuAddVariationContainer .variation-table .variation-qty-price,
    #menuAddVariationContainer .variation-table .variation-qty-group {
        display: block;
    }

    #menuAddVariationContainer .variation-table .variation-qty-group {
        width: auto;
    }

    #menuAddVariationContainer .variation-table .variation-qty-row[data-price-adjustment="0"] {
        grid-template-columns: minmax(0, 1fr) max-content;
    }

    #menuAddVariationContainer .variation-table .variation-qty-row[data-price-adjustment="0"] .variation-qty-price {
        display: none;
    }

    #menuAddVariationContainer {
        gap: 0.5rem !important; /* Mobile spacing between complete variation groups. */
    }

    #menuAddModal .menu-modal__options {
        margin-top: 1.5rem;
        margin-left: 0rem;
        margin-right: 0rem;
    }

    #menuAddModal .menu-modal__options hr {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
    }

    #menuAddVariationContainer .variation-group--required + hr {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    #menuAddModal .modal-footer {
        position: static;
        padding: 0.75rem 1rem;
        background: transparent;
    }

    #menuAddModal .menu-modal__submit {
        min-height: 44px;
        max-height: 44px;
    }

    .checkout-page {
        padding: 0;
        background: transparent;
    }

    .checkout-page .stall-card.pork-surface--pork-free {
        background: #f5faf0;
    }

    .checkout-heading {
        margin-bottom: 0.9rem;
    }

    .checkout-title {
        font-size: 1.65rem;
    }

    .checkout-grid,
    .checkout-grid__col {
        gap: 1rem;
    }

    .checkout-page .checkout-grid {
        row-gap: 1.5rem;
    }

    .checkout-order-shell {
        gap: 1rem;
    }

    .checkout-details-card {
        padding: 0.85rem;
        border-radius: 20px;
    }

    .checkout-details-panel {
        --checkout-details-field-gap: 1.25rem;
        --checkout-details-accent-size: 26px;
        --checkout-details-accent-left:0.4rem;
        --checkout-details-accent-top: -15px;
        position: relative;
        padding: 1rem;
        border-radius: 20px;
        gap: var(--checkout-details-field-gap);
    }

    #checkoutForm .checkout-details-panel::before {
        content: "";
        position: absolute;
        z-index: 1;
        top: var(--checkout-details-accent-top);
        left: var(--checkout-details-accent-left);
        width: var(--checkout-details-accent-size);
        height: var(--checkout-details-accent-size);
        background: url('/mushroom.png') center / contain no-repeat;
        pointer-events: none;
    }

    .checkout-page .pill-input,
    .checkout-page .form-control.pill-input {
        height: 48px;
        min-height: 42px;
        max-height: 42px;
        font-size: 16px;
    }

    #checkoutForm [data-delivery-selector] .checkout-delivery-selectbox .checkout-payment-selector__option {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    #checkoutForm [data-delivery-selector] {
        --checkout-address-edge-icon-gap: 1.2rem;
        --checkout-address-icon-divider-gap: 0.4rem;
        --checkout-address-divider-text-gap: 0.8rem;
        --checkout-collect-side-inset: 1.5rem;
        --checkout-collect-heading-left: 1rem;
    }

    #checkoutForm .checkout-payment-mode__buttons {
        --checkout-payment-button-inline-inset: 0rem;
        --checkout-payment-row-inline-padding: 1.2rem;
        --checkout-payment-divider-text-gap: 0.8rem;
    }

    #checkoutForm .checkout-payment-mode__button {
        width: 100%;
        min-height: 44px;
        max-height: 44px;
        padding: 0 var(--checkout-payment-row-inline-padding);
        border-radius: 24px;
        gap: var(--checkout-payment-divider-text-gap);
    }

    #checkoutForm .checkout-svg-icon--address {
        --checkout-icon-scale: 1.2;
    }

    #checkoutForm [data-delivery-selector] .checkout-payment-selector__copy strong,
    #checkoutForm [data-delivery-selector] .checkout-payment-selector__option-copy strong,
    #checkoutForm .checkout-collect-suboption__heading strong,
    #checkoutForm .checkout-collect-choice__copy strong,
    #checkoutForm .checkout-payment-mode__button .checkout-payment-mode__meta {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .checkout-page .checkout-summary > .checkout-btn {
        height: 44px;
        min-height: 44px;
        max-height: 44px;
    }

    .footer:not(.kiosk-footer) {
        border-right: 0;
        border-left: 0;
    }

    .footer:not(.kiosk-footer) .footer__inner {
        max-width: 420px;
        padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom)) !important;
    }

    .floating-cart-bar-wrap--home:not(.is-slide-hidden):not(.is-cart-empty)
        ~ .footer:not(.kiosk-footer) .footer__inner {
        padding-bottom: calc(0.85rem + 76px + env(safe-area-inset-bottom)) !important;
    }

    .footer:not(.kiosk-footer) .footer__copyright {
        margin-bottom: 0.3rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.24);
        font-size: 0.78rem;
        font-weight: 500;
        line-height: 1.45;
    }

    .footer:not(.kiosk-footer) .footer__links {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 0.25rem;
        row-gap: 0.15rem;
    }

    .footer:not(.kiosk-footer) .footer__links a {
        grid-column: span 2;
        min-width: 0;
        min-height: 34px;
        padding: 0.25rem 0.35rem;
        border: 0;
        border-radius: 12px;
        background: transparent;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
    }

    .footer:not(.kiosk-footer) .footer__links a:nth-child(n + 4) {
        grid-column: span 3;
    }

    .success-page {
        gap: 1rem;
    }

    .success-hero,
    .success-collect-card,
    .success-receipt-card {
        border-radius: 20px;
    }

    /* Keep normal mobile frontend elevation light and consistent.
       Bottom-fixed surfaces mirror the same shadow upward. */
    .layout-shell {
        --mobile-ui-shadow: 0 2px 3px rgba(0, 0, 0, 0.14);
        --mobile-ui-shadow-up: 0 -2px 3px rgba(0, 0, 0, 0.14);
    }

    .sticky-header:not(.kiosk-header) .customer-nav,
    .sticky-header:not(.kiosk-header) .nav-pill--cart,
    .sticky-header:not(.kiosk-header) .nav-pill--login,
    .sticky-header:not(.kiosk-header) .nav-account-trigger,
    .home-search-content .search-card,
    .home-search-content .search-chip,
    .home-search-content .popular-strip--scroll .popular-card,
    .home-search-content .stores-grid .store-card,
    .home-search-content .stores-grid .store-card__logo,
    .floating-cart-bar-wrap:not(.floating-cart-bar-wrap--home) .floating-cart-bar,
    .floating-cart-bar-wrap--home .floating-cart-bar__side,
    #menuAddModal .menu-modal__image,
    #menuAddModal .menu-modal__submit,
    #toastContainer .toast,
    .frontend-access-modal .modal-content,
    .auth-page-card,
    .btn-theme,
    .account-card,
    .account-primary-btn,
    .account-orders-page .account-secondary-btn.active,
    .account-order-qr-card,
    .order-card,
    .layout-shell .page-link,
    .layout-shell .page-item.active .page-link,
    .checkout-page .stall-card,
    .checkout-page .stall-card__avatar,
    .checkout-page .item-card--homepage-style,
    .checkout-page .checkout-details-card,
    .checkout-page .checkout-details-panel,
    .checkout-page .checkout-btn,
    .checkout-page .pill-radio,
    .checkout-page .checkout-payment-selector__trigger,
    .checkout-page .checkout-payment-selector__option,
    .checkout-page .checkout-validation-message,
    .checkout-page .alert-info,
    .success-page__flash,
    .success-qr-modal,
    .success-pill--solid,
    .success-qr-placeholder__check,
    .success-receipt-card__download,
    .success-action,
    .company-info,
    .company-info__intro-icon,
    .company-info__icon,
    .company-info__item--action,
    .layout-shell main .card.shadow-sm,
    .preorder-page .preorder-card,
    .preorder-page .form-control,
    .preorder-page .checkout-payment-selector__trigger,
    .preorder-page .checkout-payment-selector__option,
    .preorder-page .btn-brand,
    .preorder-page .day-pill.is-active,
    .preorder-page .stall-tile:hover,
    .preorder-page .preorder-menu-card:hover,
    .preorder-float-btn {
        box-shadow: var(--mobile-ui-shadow) !important;
    }

    .sticky-header:not(.kiosk-header) .nav-pill--cart:hover,
    .sticky-header:not(.kiosk-header) .nav-pill--cart:active,
    .sticky-header:not(.kiosk-header) .nav-pill--login:hover,
    .sticky-header:not(.kiosk-header) .nav-pill--login:active,
    .sticky-header:not(.kiosk-header) .nav-account-trigger:hover,
    .sticky-header:not(.kiosk-header) .nav-account-trigger:active,
    .home-search-content .search-chip:hover,
    .home-search-content .search-chip:active {
        box-shadow: var(--mobile-ui-shadow) !important;
    }

    .home-search-content .chip-filter-stack,
    .floating-cart-bar-wrap--home {
        box-shadow: var(--mobile-ui-shadow-up) !important;
    }

    .sticky-header:not(.kiosk-header) .nav-pill:focus-visible,
    .sticky-header:not(.kiosk-header) .nav-account-trigger:focus-visible,
    .home-search-content .search-chip:focus-visible,
    .floating-cart-bar:focus-visible,
    #menuAddModal .menu-modal__submit:focus-visible,
    .login-modal :is(.login-modal-btn-primary, .login-modal-btn-secondary):focus-visible,
    .layout-shell .page-link:focus-visible,
    .checkout-page :is(.checkout-btn, .checkout-payment-selector__trigger, .checkout-payment-selector__option):focus-visible,
    .success-action:focus-visible,
    .company-info__item--action:focus-visible,
    .preorder-page :is(.form-control, .checkout-payment-selector__trigger, .checkout-payment-selector__option, .btn-brand):focus-visible,
    .preorder-float-btn:focus-visible {
        outline: 3px solid rgba(255, 163, 72, 0.28);
        outline-offset: 2px;
    }

    .home-slider__carousel .carousel-inner img,
    .home-slider__placeholder img {
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.14));
    }
}

/* Mobile homepage items use a portrait card while desktop keeps the existing landscape layout. */
@media (max-width: 576px) {
    .home-search-content {
        --mobile-item-cart-offset-x: 8px;
        --mobile-item-cart-offset-y: -10px;
        --mobile-item-price-offset-y: -8px;
    }

    /* Mobile All Stalls card name. */
    .home-search-content .stores-grid .store-card__title-text {
        font-size: 1.2rem;
        font-weight: 650;
        line-height: 1;
    }

    .home-search-content .stores-grid .store-card__arrow {
        font-size: 0.8rem; /* 箭头大小 */
        position: relative;
        left: 0;            /* X 偏移：正数向右，负数向左 */
        top: 0;             /* Y 偏移：正数向下，负数向上 */
    }

    .home-search-content .menu-card-row--scroll .menu-card-row,
    .home-search-content .menu-card-grid--portrait,
    .home-search-content .popular-strip--items {
        gap: 1rem;
    }

    .home-search-content .menu-card-row--scroll .menu-card,
    .home-search-content .menu-card-grid--portrait .menu-card,
    .home-search-content .popular-card:not(.popular-card--store) {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    }

    .home-search-content .menu-card-row--scroll .menu-card {
        width: clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
        min-width: clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
        max-width: clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
        flex: 0 0 clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
    }

    .home-search-content .menu-card-grid--portrait .menu-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .home-search-content .menu-card-row--scroll .menu-card,
    .home-search-content .menu-card-grid--portrait .menu-card {
        gap: 0;
        padding: 0;
        border-radius: 16px;
        box-shadow: none !important;
        filter: none !important;
        overflow: hidden;
        scroll-snap-align: start;
    }

    .home-search-content .menu-card-grid--portrait {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc(100% - 1rem);
        justify-content: start;
        gap: 0.65rem;
        padding: 4px 4px 14px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-search-content .menu-card-grid--portrait::-webkit-scrollbar {
        display: none;
    }

    .home-search-content .menu-card__body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .home-search-content .menu-card__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 0;
        object-fit: cover;
        box-shadow: none !important;
    }

    .home-search-content .menu-card__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        width: 100%;
        padding: 0.65rem 0.65rem 0;
        overflow: visible;
    }

    .home-search-content .menu-card__title {
        width: 100%;
        min-height: 2.6em;
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .home-search-content .menu-card__desc,
    .home-search-content .menu-card__price--content {
        display: none;
    }

    .home-search-content .menu-card__badge-row {
        display: flex;
        align-items: center;
        min-height: 21px;
    }

    .home-search-content .menu-card .pork-status-badge {
        margin: 0;
    }

    .home-search-content .menu-card__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
        width: 100%;
        margin: 0;
        margin-bottom: -10px;
        padding: 0 0.65rem;
    }

    .home-search-content .menu-card__price--footer {
        display: block;
        position: relative;
        top: var(--mobile-item-price-offset-y);
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .home-search-content .menu-card .add-to-cart-btn.menu-card__cart {
        position: relative;
        left: var(--mobile-item-cart-offset-x);
        top: var(--mobile-item-cart-offset-y);
        margin-right: 0;
        margin-left: auto;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 44px;
    }

    .home-search-content .popular-card:not(.popular-card--store) {
        width: clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
        min-width: clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
        max-width: clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
        flex: 0 0 clamp(118px, calc((100vw - 3.5rem) / 2.25), 160px);
        gap: 0;
        padding: 0;
        border-radius: 20px;
        overflow: hidden;
        scroll-snap-align: start;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.25);
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__thumb {
        width: 100%;
        height: auto;
        max-width: none;
        aspect-ratio: 4 / 3;
        border-radius: 23px 23px 0 0;
        object-fit: cover;
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        width: 100%;
        padding: 0.65rem 0.65rem 0;
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__title {
        width: 100%;
        min-height: 2.6em;
        font-size: 0.8rem;
        font-weight: 600;
        line-height: 1.3;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__meta,
    .home-search-content .popular-card:not(.popular-card--store) .popular-card__price--content {
        display: none;
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__badge-row {
        display: flex;
        align-items: center;
        min-height: 21px;
    }

    .home-search-content .popular-card:not(.popular-card--store) .pork-status-badge {
        margin: 0;
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
        width: 100%;
        margin: 0;
        padding: 0rem 0.65rem 0rem;
    }

    .home-search-content .popular-card:not(.popular-card--store) .popular-card__price--footer {
        display: block;
        position: relative;
        top: var(--mobile-item-price-offset-y);
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .home-search-content .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart {
        position: relative;
        left: var(--mobile-item-cart-offset-x);
        top: var(--mobile-item-cart-offset-y);
        margin-right: 0;
        margin-left: auto;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 44px;
    }

    .home-search-content .menu-card .add-to-cart-btn.menu-card__cart,
    .home-search-content .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart {
        transform: none !important;
    }

    .home-search-content .menu-card .add-to-cart-btn.menu-card__cart:is(:hover, :focus-visible),
    .home-search-content .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart:is(:hover, :focus-visible) {
        transform: scale(1.012) !important;
    }

    .home-search-content .menu-card .add-to-cart-btn.menu-card__cart:active,
    .home-search-content .popular-card:not(.popular-card--store) .add-to-cart-btn.menu-card__cart:active {
        transform: scale(0.985) !important;
    }

    /* Let the card itself clip Best Seller images so both top corners fill cleanly. */
    .home-search-content .popular-strip--items .popular-card:not(.popular-card--store) .popular-card__thumb {
        border-radius: 0;
    }

    /* Focused Stall pages retain the desktop catalogue structure on mobile:
       one vertical column of compact landscape item cards. */
    .home-search-content .store-card.store-card--focused {
        width: 100%;
        margin-bottom: 1.25rem;
        padding: 0.75rem;
        border-width: 1.5px;
        border-radius: 24px;
        gap: 0.75rem;
        overflow: hidden;
    }

    .home-search-content .store-card--focused > .store-card__header {
        gap: 0.75rem;
        margin-left: 0;
        padding: 0.1rem 0.2rem;
    }

    .home-search-content .store-card--focused .store-card__logo,
    .home-search-content .store-card--focused .store-card__logo-placeholder {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 14px;
    }

    .home-search-content .store-card--focused .store-card__title-main {
        display: flex;
        width: 100%;
        transform: none;
    }

    .home-search-content .store-card--focused .store-card__title-text {
        display: -webkit-box;
        overflow: hidden;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.15;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .home-search-content .store-card--focused .store-category-section {
        margin-bottom: 0.75rem;
        padding: 0.85rem;
        border-radius: 20px;
    }

    .home-search-content .store-card--focused .store-category-section--expanded .store-category-section__header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.65rem;
    }

    .home-search-content .store-card--focused .store-category-section__title,
    .home-search-content .store-card--focused .store-category-focus-bar__title {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .home-search-content .store-card--focused .menu-card-grid--portrait {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 0.75rem;
        width: 100%;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
    }

    .home-search-content .store-card--focused .menu-card-grid--portrait .menu-card {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 0;
        padding: 0;
        border-radius: 20px;
        gap: 0;
        overflow: hidden;
        scroll-snap-align: none;
    }

    .home-search-content .store-card--focused .menu-card__body {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        min-width: 0;
    }

    .home-search-content .store-card--focused .menu-card__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 0;
        object-fit: cover;
    }

    .home-search-content .store-card--focused .menu-card__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        width: 100%;
        min-width: 0;
        padding: 0.55rem 0.55rem 0;
    }

    .home-search-content .store-card--focused .menu-card__title {
        width: 100%;
        min-height: 2.5em;
        font-size: 0.82rem;
        font-weight: 650;
        line-height: 1.25;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .home-search-content .store-card--focused .menu-card__badge-row {
        min-height: 21px;
    }

    .home-search-content .store-card--focused .menu-card__footer {
        position: static;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
        width: 100%;
        margin: auto 0 0;
        padding: 0 0.55rem 0.45rem;
    }

    .home-search-content .store-card--focused .menu-card__price--footer {
        position: static;
        top: auto;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .home-search-content .store-card--focused .add-to-cart-btn.menu-card__cart {
        position: static;
        top: auto;
        left: auto;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 44px;
        margin: 0;
    }
}

@keyframes login-password-eye-toggle {
    0%, 100% {
        transform: scale(1);
    }

    45% {
        transform: scale(0.86);
    }
}

/* Tablet and desktop login keep the finished mobile visual language with roomier geometry. */
@media (min-width: 577px) {
    .frontend-access-modal {
        --login-dialog-width: 520px;
        --login-card-padding: 26px 28px 30px;
        --login-card-radius: 32px;
        --login-body-inline-padding: 8px;
        --login-title-size: 52px;
        --login-title-gap: -10px;
        --login-subtitle-size: 15px;
        --login-form-top: 16px;
        --login-field-gap: 14px;
        --login-label-size: 15px;
        --login-input-height: 42px;
        --login-input-font-size: 15px;
        --login-input-padding-left: 28px;
        --login-remember-left: 20px;
        --login-forgot-right: 20px;
        --login-remember-top: -14px;
        --login-button-height: 46px;
        --login-button-font-size: 18px;
        --login-leaf-left: 16px;
        --login-leaf-top: -8%;
        --login-leaf-width: 16px;
        --login-leaf-second-left: 26px;
        --login-leaf-second-top: -10%;
        --login-leaf-second-width: 20px;
        --login-leaf-third-left: 40px;
        --login-leaf-third-top: -8%;
        --login-leaf-third-width: 16px;
    }

    .frontend-access-modal .modal-dialog {
        width: calc(100% - 3rem);
        max-width: var(--login-dialog-width);
        margin-right: auto;
        margin-left: auto;
    }

    .frontend-access-modal .frontend-access-modal__card {
        padding: var(--login-card-padding);
        border-radius: var(--login-card-radius);
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14);
    }

    .frontend-access-modal .modal-header,
    .frontend-access-modal .modal-body {
        padding-right: var(--login-body-inline-padding);
        padding-left: var(--login-body-inline-padding);
    }

    .frontend-access-modal .login-modal-close-icon {
        top: 16px;
        right: 16px;
    }

    #loginModal .login-modal-back-icon {
        top: 16px;
        left: 16px;
    }

    #loginModalLabel,
    #profileModalLabel,
    #loginModalCustomerRegisterLabel {
        margin-bottom: var(--login-title-gap) !important;
        color: #3B3838;
        font-size: var(--login-title-size);
        font-weight: 800 !important;
    }

    .frontend-access-modal .login-modal-subtitle {
        color: #3B3838;
        font-size: var(--login-subtitle-size);
        font-weight: 500;
    }

    .frontend-access-modal .login-modal-form {
        margin-top: var(--login-form-top);
    }

    #loginModal .login-modal-login-field {
        margin-bottom: var(--login-field-gap) !important;
    }

    .frontend-access-modal .login-modal-label {
        margin-bottom: 0 !important;
        margin-left: 16px;
        color: #3B3838 !important;
        font-size: var(--login-label-size);
        font-weight: 700 !important;
    }

    #loginModal input[name="login"],
    #loginModal .password-toggle-wrap {
        margin-top: 2px;
    }

    .frontend-access-modal .login-modal-input {
        width: 100%;
        height: var(--login-input-height);
        min-height: var(--login-input-height);
        max-height: var(--login-input-height);
        padding-top: calc((var(--login-input-height) - 24px) / 2);
        padding-bottom: calc((var(--login-input-height) - 24px) / 2);
        padding-left: var(--login-input-padding-left);
        border: 1px solid #E1DEC3;
        color: #3B3838;
        font-size: var(--login-input-font-size);
        font-weight: 500;
        line-height: 22px;
    }

    .frontend-access-modal .login-modal-input:focus {
        border-color: #E1DEC3;
        box-shadow: 0 0 0 3px rgba(225, 222, 195, 0.65);
    }

    #loginModal .login-modal-remember {
        margin-top: var(--login-remember-top);
    }

    #loginModal .login-modal-remember .form-check {
        margin-left: var(--login-remember-left) !important;
    }

    #loginModal .login-modal-remember .form-check-input {
        transform: translateY(-1px);
    }

    #loginModal .login-modal-remember .login-modal-link {
        margin-right: var(--login-forgot-right);
    }

    .frontend-access-modal .login-modal-btn-primary,
    .frontend-access-modal .login-modal-btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: var(--login-button-height);
        padding-top: 0;
        padding-bottom: 0;
        font-size: var(--login-button-font-size);
        font-weight: 650 !important;
        letter-spacing: 0.6px;
        box-shadow: none;
    }

    .frontend-access-modal .login-modal-login-row .login-modal-btn-primary {
        position: relative;
        z-index: 2;
    }

    .frontend-access-modal .login-modal-login-leaf {
        right: auto;
        left: var(--login-leaf-left);
        top: var(--login-leaf-top);
        width: var(--login-leaf-width);
        transform: translateY(-50%) scaleX(-1);
        z-index: 1;
    }

    .frontend-access-modal .login-modal-login-leaf--copy {
        display: block;
    }

    .frontend-access-modal .login-modal-login-leaf--second {
        left: var(--login-leaf-second-left);
        top: var(--login-leaf-second-top);
        width: var(--login-leaf-second-width);
    }

    .frontend-access-modal .login-modal-login-leaf--third {
        left: var(--login-leaf-third-left);
        top: var(--login-leaf-third-top);
        width: var(--login-leaf-third-width);
    }

    #loginModal .password-toggle-btn,
    #loginModal .password-toggle-btn:hover,
    #loginModal .password-toggle-btn:focus,
    #loginModal .password-toggle-btn:focus-visible,
    #loginModal .password-toggle-btn:active {
        transform: translateY(-50%) !important;
    }

    #loginModal .password-toggle-btn .password-toggle-icon,
    #loginModal .password-toggle-btn.is-visible .password-toggle-icon {
        transform: scale(1);
        opacity: 1;
    }

    #loginModal .password-toggle-btn:active .password-toggle-icon {
        transform: scale(0.9);
    }

    #loginModal .password-toggle-btn.is-toggle-animating .password-toggle-icon {
        animation: login-password-eye-toggle 220ms ease-out;
    }

    .frontend-access-modal .login-modal-input:-webkit-autofill,
    .frontend-access-modal .login-modal-input:-webkit-autofill:hover,
    .frontend-access-modal .login-modal-input:-webkit-autofill:active,
    .frontend-access-modal .login-modal-input:autofill {
        background-color: #FFFFFF !important;
        -webkit-text-fill-color: #3B3838;
        caret-color: #3B3838;
        -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
        box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    }

    .frontend-access-modal .login-modal-input:-webkit-autofill:focus,
    .frontend-access-modal .login-modal-input:autofill:focus {
        -webkit-box-shadow:
            0 0 0 1000px #FFFFFF inset,
            0 0 0 3px rgba(225, 222, 195, 0.65) !important;
        box-shadow:
            0 0 0 1000px #FFFFFF inset,
            0 0 0 3px rgba(225, 222, 195, 0.65) !important;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .frontend-access-modal {
        --login-card-padding: 30px 32px 34px;
        --login-title-size: 58px;
        --login-title-gap: -6px;
        --login-subtitle-size: 16px;
        --login-form-top: 20px;
        --login-field-gap: 18px;
        --login-label-size: 18px;
        --login-input-height: 44px;
        --login-input-font-size: 18px;
        --login-remember-top: -10px;
        --login-button-height: 48px;
        --login-button-font-size: 19px;
                /* 第一株 */
        --login-leaf-left: 16px;
        --login-leaf-top: -10%;
        --login-leaf-width: 16px;

        /* 第二株 */
        --login-leaf-second-left: 26px;
        --login-leaf-second-top: -12%;
        --login-leaf-second-width: 20px;

        /* 第三株 */
        --login-leaf-third-left: 40px;
        --login-leaf-third-top: -10%;
        --login-leaf-third-width: 16px;
    }

    #loginModal input[name="login"],
    #loginModal .password-toggle-wrap {
        margin-top: 4px;
    }

    #loginModal .login-modal-remember .form-check-label {
        font-size: 18px;
    }

    #loginModal .login-modal-remember .login-modal-link {
        font-size: 18px;
    }

    #loginModal .login-modal-actions {
        gap: 18px !important;
    }

    .frontend-access-modal .login-modal-close-icon {
        width: 48px;
        height: 48px;
    }

    #loginModal .login-modal-back-icon {
        width: 48px;
        height: 48px;
    }

    .frontend-access-modal .login-modal-close-icon__image {
        width: 22px;
        height: 22px;
    }

    #loginModal .login-modal-back-icon svg {
        width: 25px;
        height: 25px;
    }

}

@media (min-width: 769px) {
    .frontend-access-modal {
        --login-dialog-width: 560px;
        --login-card-padding: 30px 34px 34px;
        --login-body-inline-padding: 12px;
        --login-title-size: 54px;
        --login-title-gap: -8px;
        --login-subtitle-size: 16px;
        --login-form-top: 18px;
        --login-field-gap: 16px;
        --login-label-size: 16px;
        --login-input-height: 44px;
        --login-input-font-size: 16px;
        --login-input-padding-left: 30px;
        --login-remember-left: 24px;
        --login-forgot-right: 24px;
        --login-remember-top: -11px;
        --login-button-height: 48px;
        --login-leaf-left: 16px;
        --login-leaf-top: -11%;
        --login-leaf-width: 18px;
        --login-leaf-second-left: 30px;
        --login-leaf-second-top: -14%;
        --login-leaf-second-width: 22px;
        --login-leaf-third-left: 48px;
        --login-leaf-third-top: -11%;
        --login-leaf-third-width: 18px;
    }
}

@media print {
    /* 控制顾客前台页面主体的布局、尺寸和外观。 */
    body {
        background: #fff !important;
    }

    /* 统一控制固定在页面顶部的导航区域及相关元素的布局和外观。 */

    .sticky-header,
    .footer,
    .floating-cart-bar-wrap,
    .success-page__flash,
    .success-hero,
    .success-collect-card,
    .success-detail-pagination,
    .success-actions,
    .success-receipt-card__download,
    .modal {
        display: none !important;
    }

    /* 控制顾客前台页面的整体框架的布局、尺寸和外观。 */

    .layout-shell main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* 控制内容容器的布局、尺寸和外观。 */

    .layout-shell .container {
        max-width: none !important;
        width: 100% !important;
    }

    /* 控制订单提交成功页面的布局、尺寸和外观。 */

    .success-page {
        gap: 0;
    }

    /* 控制订单提交成功页面中的项目排列区域的布局、尺寸和外观。 */

    .success-page__grid {
        display: block;
    }

    /* 控制订单成功收据垂直列表的布局、尺寸和外观。 */

    .success-receipt-stack {
        gap: 1rem;
    }

    /* 控制订单成功页面的电子收据卡片的布局、尺寸和外观。 */

    .success-receipt-card {
        box-shadow: none !important;
        border: 1px solid #d8d8d8 !important;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Login and Profile share one visual shell; only their internal content differs. */
body:has(.frontend-access-modal.show) > .modal-backdrop.show {
    background: rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(2px);
}

.frontend-access-modal .frontend-access-modal__card {
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 0 !important;
    border-radius: 28px;
    background: #fbf6ef;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .14);
}

.frontend-access-modal .frontend-access-modal__surface {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#profileModal .profile-modal__message {
    margin-bottom: 16px;
    border-radius: 16px;
    font-size: .9rem;
}

#profileModal .profile-modal__save-reveal {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height .42s cubic-bezier(.22, 1, .36, 1),
        margin-top .36s ease,
        padding-top .36s ease,
        opacity .24s ease,
        transform .36s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear .42s;
}

#profileModal .profile-modal__save-reveal.is-visible {
    max-height: 86px;
    margin-top: 12px;
    padding-top: 12px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

#profileModal .profile-modal__save-reveal .login-modal-login-row {
    width: 100%;
}

#profileModal .login-modal-btn-primary:disabled {
    cursor: wait;
    opacity: .68;
}

.profile-staff-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-staff-access__divider {
    border-color: #ff8c3a;
    opacity: .7;
}

.profile-staff-access__details {
    min-width: 0;
}

.profile-staff-access__title {
    color: #48464d;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-staff-access__status {
    color: #7d7a80;
    font-size: .9rem;
    line-height: 1.35;
    margin-top: .2rem;
}

.profile-staff-access__action {
    flex: 0 0 auto;
}

.profile-staff-access__linked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 50px;
    padding: .7rem 1.25rem;
    border-radius: 999px;
    background: #f9efe4;
    color: #533f30;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.profile-staff-access__linked .bi {
    color: #ff7f1e;
    font-size: 1.45rem;
    line-height: 1;
}

#profileModal .profile-staff-access__action {
    width: auto;
}

#profileModal .profile-staff-access__details {
    margin-left: 16px;
}

.profile-staff-link,
.profile-staff-link:hover,
.profile-staff-link:focus {
    border-color: #ff8c3a !important;
    background: #ff8c3a !important;
    color: #fff !important;
    text-decoration: none;
}

.profile-staff-link:hover {
    background: #f47f2c !important;
}

.profile-staff-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 58, .28) !important;
}

.profile-staff-link:active {
    border-color: #e97425 !important;
    background: #e97425 !important;
    color: #fff !important;
    transform: translateY(1px);
}

.profile-staff-access--unlinked {
    display: block;
}

.profile-staff-access--unlinked .profile-staff-access__details {
    margin-left: 0;
}

.profile-staff-access--unlinked .profile-staff-access__title {
    color: #06472f;
    font-size: 1rem;
}

.profile-staff-access--unlinked .profile-staff-access__status {
    max-width: 300px;
    margin-top: .3rem;
}

.profile-staff-access--unlinked .profile-staff-access__action {
    width: 100%;
    margin-top: 1rem;
}

.profile-staff-access--unlinked .profile-staff-link,
.profile-staff-access--unlinked .profile-staff-link:hover,
.profile-staff-access--unlinked .profile-staff-link:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    gap: .65rem;
    border: 1px solid #ff8c3a !important;
    border-radius: 999px;
    background: transparent !important;
    color: #533f30 !important;
    box-shadow: none !important;
    font-size: .95rem;
    font-weight: 500 !important;
}

.profile-staff-access--unlinked .profile-staff-link__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.profile-staff-access--unlinked .profile-staff-link:hover {
    background: #fff5eb !important;
}

.profile-staff-access--unlinked .profile-staff-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 140, 58, .22) !important;
}

.profile-staff-access--unlinked .profile-staff-link:active {
    border-color: #e97425 !important;
    background: #ffead8 !important;
    color: #533f30 !important;
}

@media (max-width: 576px) {
    .frontend-access-modal .frontend-access-modal__card {
        max-height: calc(100dvh - 16px);
        border-radius: var(--login-card-radius, 48px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #profileModal .profile-modal__save-reveal {
        transition-duration: .01ms;
    }
}
