/* 奶茶代下单 - 买家端样式（移动端优先） */
:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --primary: #1f8a5f;
  --primary-dark: #176c4a;
  --primary-soft: #e8f5ee;
  --accent: #f5a623;
  --text: #23201c;
  --text-2: #6b655c;
  --text-3: #9a9389;
  --border: #ece8e1;
  --danger: #e0483c;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(35, 32, 28, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: 90px;
}

/* 顶部 */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 10px rgba(31, 138, 95, .18);
}
.app-header h1 { margin: 0; font-size: 17px; font-weight: 600; }
.app-header .sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.app-header .ht-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-header .ht-titles { min-width: 0; }
.app-header .ht-titles h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 顶部副标题（公告文案）：允许折行，不省略 */
.app-header .ht-titles .sub { font-size: 11.5px; line-height: 1.45; white-space: normal; overflow: visible; text-overflow: clip; }
/* 左上角「返回上一页」 */
.header-back {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: -7px; padding: 0;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 50%; cursor: pointer;
}
.header-back:active { background: rgba(255,255,255,.32); }
.header-btn {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.header-btn:active { background: rgba(255,255,255,.3); }

/* 订单进度页：隐藏顶部绿色标题栏 */
body.order-mode .app-header { display: none; }
/* 订单进度页：步骤条隐藏，只保留一个左上的后退按钮（占位高度与步骤条一致，避免布局跳动） */
.order-back { display: none; }
body.order-mode .order-back { display: flex; align-items: center; height: 50px; }
body.order-mode .steps { display: none; }
.order-back .ob-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; margin-left: -4px;
  background: #fff; color: #6b655c; border: 1px solid #e5e1da; border-radius: 50%;
  cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.order-back .ob-btn:hover { background: #f5f6f7; color: #1f8a5f; }
.order-back .ob-btn:active { background: #eef1f0; }
.wrap { max-width: 640px; margin: 0 auto; padding: 14px; }

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 6px; padding: 12px 4px 4px; }
.step { flex: 1; text-align: center; font-size: 12px; color: var(--text-3); }
.step .dot {
  width: 22px; height: 22px; border-radius: 50%; background: #e5e1da; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-bottom: 3px;
}
.step.on .dot { background: var(--primary); }
.step.on { color: var(--primary); font-weight: 600; }
.step-line { width: 18px; height: 1px; background: var(--border); }

/* 卡片 & 区块标题 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 10px; }
.sec-title h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sec-title .tip { font-size: 12px; color: var(--text-3); }

/* 选饮品页顶部：当前门店卡片（左侧门店信息可压缩换行，右侧按钮不被挤变形） */
.shop-cur { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shop-cur .sc-info { flex: 1; min-width: 0; }
.shop-cur .sc-name { font-weight: 600; }
.shop-cur .sc-addr {
  font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-cur .btn { flex: none; white-space: nowrap; }

/* 城市选择 + 搜索 */
.filter-row { display: flex; gap: 8px; align-items: center; margin: 12px 0 8px; }
.city-sel {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%236b655c' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>") no-repeat right 12px center;
  font-size: 15px; font-family: inherit; color: var(--text); outline: none;
  -webkit-appearance: none; appearance: none; padding-right: 32px;
}
.city-sel:focus { border-color: var(--primary); }

.search-box {
  position: relative; display: flex; align-items: center; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; margin-bottom: 4px;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box .ico { font-size: 14px; opacity: .5; flex: none; }
.search-box input {
  flex: 1; border: none; outline: none; padding: 10px 8px; font-size: 15px;
  font-family: inherit; background: transparent; color: var(--text); min-width: 0;
}
.search-box .clear {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: #e5e1da; color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* 品牌 Tab */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 7px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--border);
  font-size: 14px; color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.tab.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }

/* 门店列表 */
.shop-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff;
  border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow);
  border: 2px solid transparent; cursor: pointer; transition: .15s;
}
.shop-item.on { border-color: var(--primary); background: var(--primary-soft); }
.shop-item .info { flex: 1; min-width: 0; }
.shop-item .name { font-weight: 600; font-size: 15px; }
/* 门店地址：自动换行显示完整地址（不再省略号截断） */
.shop-item .addr { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.5; word-break: break-word; }
.shop-item .hours { font-size: 12px; color: var(--primary); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-item .dist { font-size: 12px; color: var(--primary); font-weight: 600; flex: none; }
/* 非营业时间门店：整体置灰，禁止选择 */
.shop-item.closed { opacity: .55; background: #f7f7f8; }
.shop-item.closed .name,
.shop-item.closed .addr,
.shop-item.closed .hours { color: #9a9389; }
.shop-item.closed .check { border-color: #d8d5d0; background: #ececea; }
.shop-item.closed.on { border-color: #d8d5d0; background: #f7f7f8; }
.shop-item .tag-rest {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px;
  font-size: 11px; font-weight: 600; color: #9a9389; background: #ececea; border: 1px solid #dedbd6;
}
.shop-item .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ddd; flex: none; }
.shop-item.on .check { background: var(--primary); border-color: var(--primary); position: relative; }
.shop-item.on .check::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.tag-near {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 500; vertical-align: middle;
}

/* 饮品网格 */
.drinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.drink {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.drink img { width: 100%; height: 118px; object-fit: cover; background: #f0ede8; display: block; }
.drink .noimg { width: 100%; height: 118px; display: flex; align-items: center; justify-content: center; background: #f0ede8; color: var(--text-3); font-size: 26px; }
.drink .body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drink .nm { font-size: 14px; font-weight: 600; line-height: 1.3; }
.drink .ds { font-size: 11px; color: var(--text-3); line-height: 1.35; min-height: 15px; }
.drink .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.drink .price { color: var(--danger); font-weight: 700; font-size: 15px; }
.drink .price small { font-size: 11px; }
.drink .price .from { font-style: normal; font-size: 11px; font-weight: 400; color: #8a857c; margin-left: 1px; }

/* 单品链接模式：价格位照常显示，但金额统一为 0 元（卡片价 / 底部合计 / 结算页金额 / 订单详情合计） */

/* 数量步进器 */
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 24px; height: 24px; border-radius: 50%; border: none; font-size: 16px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.stepper .minus { background: #f0ede8; color: var(--text-2); display: none; }
.stepper .plus { background: var(--primary); color: #fff; }
.stepper .qty { font-size: 14px; font-weight: 600; min-width: 14px; text-align: center; display: none; }
.stepper.has .minus, .stepper.has .qty { display: flex; }
.stepper.has .qty { display: block; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { resize: none; height: 72px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
/* 提交页表单：备注放大、加粗、更醒目 */
.form-card .field label { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.form-card .field label .opt { font-size: 13px; font-weight: 400; color: var(--text-3); }
.form-card .field input,
.form-card .field textarea {
  padding: 14px; font-size: 17px; border-radius: 12px;
  border-color: #ded7c9; background: #fdfcfa;
}
/* 备注改成单行：不设 maxlength，超长由提交校验拦下并提示修改 */
.form-card .field input#iptRemark { height: auto; }
.form-card .field input#iptRemark.over { border-color: var(--danger); background: #fff8f7; }
.form-card .field input:focus,
.form-card .field textarea:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 138, 95, .12);
}
.form-card .field input::placeholder { font-size: 15px; color: var(--text-3); }
.form-card .hint { font-size: 13px; margin-top: 6px; }

/* 核销链接失效 / 已使用：置顶持久提示 */
.link-notice {
  margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger);
  font-size: 14px; font-weight: 600; line-height: 1.5;
}
/* 已使用核销链接提示里的「查看取餐号」按钮 */
.link-notice .ln-btn {
  display: inline-block; margin-top: 8px; padding: 7px 16px;
  border: 1px solid var(--danger); border-radius: var(--radius); cursor: pointer;
  background: #fff; color: var(--danger); font-size: 14px; font-weight: 700;
}
.link-notice .ln-btn:active { background: var(--primary-soft); }
/* 提交页：温馨提示 */
.tips-card h4 {
  margin: 0 0 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 16px; font-weight: 700; color: var(--text);
}
.tips-list { margin: 0; padding-left: 20px; }
.tips-list li {
  font-size: 14px; line-height: 1.75; color: var(--text-2);
  padding-left: 2px; margin-bottom: 6px;
}
.tips-list li:last-child { margin-bottom: 0; }
.tips-list li::marker { color: var(--text-2); font-size: 14px; }
.tips-list .em { color: var(--danger); font-weight: 700; }

/* 按钮 */
.btn {
  display: block; width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn:disabled { background: #c9c4bb; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
/* 单品链接模式：订单页的「再下一单」无意义（链接本身就是该饮品的下单入口），隐藏 */
body.single-mode #btnNewOrder { display: none; }
.btn.small { padding: 8px 14px; font-size: 13px; width: auto; }

/* 底部结算栏 */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
  box-shadow: 0 -2px 14px rgba(0,0,0,.08); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.bar .inner { max-width: 640px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 12px; }
.bar .sum { flex: 1; font-size: 13px; color: var(--text-2); }
.bar .sum b { color: var(--danger); font-size: 18px; }
.bar .btn { width: auto; padding: 11px 26px; }

/* 订单进度 */
.timeline { display: flex; align-items: center; margin: 6px 0; }
.tl-item { flex: 1; text-align: center; font-size: 12px; color: var(--text-3); position: relative; }
.tl-item .dot { width: 14px; height: 14px; border-radius: 50%; background: #e5e1da; margin: 0 auto 5px; }
.tl-item.on .dot { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tl-item.on { color: var(--primary); font-weight: 600; }
.tl-line { height: 2px; background: #e5e1da; width: 24px; margin-bottom: 18px; }
.tl-line.on { background: var(--primary); }

.pickup {
  background: linear-gradient(135deg, #fff6e6, #ffeecc); border: 1px dashed var(--accent);
  border-radius: var(--radius); padding: 16px; text-align: center; margin-top: 12px;
}
.pickup .label { font-size: 13px; color: var(--text-2); }
.pickup .no { font-size: 24px; font-weight: 800; color: var(--danger); letter-spacing: 2px; margin: 4px 0; line-height: 1.25; }
.pickup .pk-note {
  margin-top: 8px; padding-top: 7px; border-top: 1px dashed #f0d9ae;
  font-size: 13px; color: #8a5a1e; font-weight: 500; line-height: 1.5;
  word-break: break-word;
}
/* 留言正文标红，标签保持原色 */
.pickup .pk-note .txt { color: var(--danger); font-weight: 700; }
/* 取餐号卡片内的手机号后4位 */
.pickup .pk-phone {
  margin-top: 2px; font-size: 13px; color: #8a5a1e; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.pickup img { max-width: 100%; border-radius: 10px; margin-top: 10px; border: 1px solid #f0e4cd; }

/* 弹窗 */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 360px; }
.modal h3 { margin: 0 0 12px; font-size: 16px; }

/* 规格选择底部弹层 */
.mask.bottom { align-items: flex-end; padding: 0; }
.sheet {
  width: 100%; max-width: 640px; margin: 0 auto; background: #fff;
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  animation: sheetUp .22s ease;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; margin-bottom: 14px;
}
.sheet-close {
  width: 26px; height: 26px; border-radius: 50%; background: #f0ede8; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer;
}
.spec-block { margin-bottom: 16px; }
.spec-title {
  display: flex; align-items: center; position: relative;
  font-size: 15px; color: var(--text); margin-bottom: 9px; font-weight: 700;
  padding-left: 10px; line-height: 1.4;
}
.spec-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 2px; background: var(--primary);
}
.spec-title .req-badge, .spec-title .opt-badge {
  display: inline-block; font-size: 11px; border-radius: 8px; padding: 0 6px;
  margin-left: 6px; font-weight: 500; vertical-align: middle;
}
.spec-title .req-badge { color: #e0483c; background: #fdecea; }
.spec-title .opt-badge { color: #8a8578; background: #f1f2f4; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chip {
  padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); background: #fff;
  font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none;
}
.spec-chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
/* 杯型选项后面的价格 */
.spec-chip .chip-price {
  font-style: normal; font-size: 12px; font-weight: 500;
  margin-left: 5px; color: var(--text-3);
}
.spec-chip.on .chip-price { color: var(--primary); opacity: .85; }
/* 链接锁定的杯型：不可点、不可取消 */
.spec-chip.locked { cursor: default; box-shadow: 0 0 0 1px var(--primary) inset; }
.spec-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.stepper-big { display: flex; align-items: center; gap: 14px; }
.stepper-big button {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: #f0ede8;
  color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.stepper-big button:last-child { background: var(--primary); color: #fff; }
.stepper-big span { font-size: 16px; font-weight: 600; min-width: 18px; text-align: center; }
.spec-actions .btn { flex: 1; width: auto; }

.empty { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 14px; }
.toast {
  position: fixed; left: 50%; top: 40%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; z-index: 200; opacity: 0; transition: .2s; pointer-events: none; max-width: 80%;
  text-align: center;
}
.toast.show { opacity: 1; }

.hidden { display: none !important; }

/* 第一页底部：平台性质声明（跟随内容排在门店列表下方，不用固定定位，避免遮挡卡片） */
.page-foot {
  margin: 18px 2px 4px;
  text-align: center; font-size: 12px; color: #9a9389;
}
#viewShop { padding-bottom: 8px; }

/* 已选清单行 */
.line-item { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 7px 0; }
.line-item .li-main { flex: 1 1 auto; min-width: 0; }
.line-item .li-name { display: flex; align-items: baseline; gap: 0; flex-wrap: wrap; }
.line-item .nm { color: var(--text); }
.line-item .li-spec { display: block; color: var(--text-3); font-size: 12px; margin: 1px 0 0; line-height: 1.5; word-break: break-word; }
.line-item .li-qty { color: var(--text-2); font-size: 12px; font-weight: 600; margin-left: 5px; white-space: nowrap; }
.line-item .qt { color: var(--text-3); font-size: 12px; flex: none; white-space: nowrap; }
/* 订单详情：饮品逐杯纵向排列（名称 + 已选口味），与提交页风格一致 */
.li-drinks { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.li-drinks .li-main { min-width: 0; text-align: right; }
.li-drinks .li-name { justify-content: flex-end; }
/* 提交页：价格靠右（只作用于已选饮品清单，避免影响订单详情的左右布局） */
#formItems .line-item .qt { margin-left: auto; }
/* 迭代40：已选饮品「修改」按钮 */
.line-item .li-edit {
  flex: none; padding: 0 10px; height: 24px; line-height: 22px;
  font-size: 12px; font-family: inherit; color: var(--primary);
  background: var(--primary-soft); border: 1px solid transparent;
  border-radius: 999px; cursor: pointer;
}
.line-item .li-edit:active { background: #d7ecdf; }

/* ===== 提交订单页：门店信息 + 堂食/外带 + 联系方式 ===== */
.shop-form-card { padding-bottom: 14px; }
.sfc-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sfc-tag {
  flex: none; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 4px 6px; border-radius: 5px;
}
.sfc-name {
  font-size: 16px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sfc-addr {
  margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--text-3);
  word-break: break-all;
}

/* 堂食 / 外带 */
.dine-pick { display: flex; gap: 10px; margin-top: 12px; }
.dine-opt {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dine-opt .do-ico { flex: none; display: flex; width: 26px; height: 26px; color: var(--text); }
.dine-opt .do-ico svg { width: 100%; height: 100%; }
.dine-opt .do-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dine-opt .do-txt b { font-size: 15px; font-weight: 600; color: var(--text); }
.dine-opt .do-txt i { font-style: normal; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dine-opt .do-ck {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--danger); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
  opacity: 0; transform: scale(.6); transition: .15s;
}
.dine-opt.on { border-color: var(--danger); background: #fff8f7; }
.dine-opt.on .do-ck { opacity: 1; transform: scale(1); }

/* 联系方式 */
.phone-card { padding: 4px 14px; }
.phone-field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px;
}
.phone-field label { flex: none; font-size: 15px; color: var(--text); }
.phone-field input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  text-align: right; font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--text); letter-spacing: .5px; padding: 2px 0;
}
.phone-field input::placeholder { font-weight: 400; font-size: 13.5px; color: var(--text-3); letter-spacing: 0; }

/* ===== 联系客服（买家端右下角悬浮按钮 + 弹窗） ===== */
.cs-fab {
  position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%; border: none; z-index: 70;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(31, 138, 95, .35);
}
.cs-fab:active { transform: scale(.94); }

.cs-modal { max-height: 80vh; overflow-y: auto; }
.cs-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.cs-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.cs-row .lb { flex: none; min-width: 48px; color: var(--text-3); }
.cs-row b { color: var(--text); font-weight: 600; word-break: break-all; }
.cs-row .cp {
  flex: none; font-style: normal; font-size: 11px; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 2px 8px; cursor: pointer;
}
.cs-empty { color: var(--text-3); font-size: 13px; padding: 4px 0; }
.cs-qr { text-align: center; margin-bottom: 8px; }
.cs-qr img { max-width: 140px; border-radius: 10px; border: 1px solid var(--border); }
.cs-tip {
  font-size: 12.5px; color: #a3701a; background: #fff8e8; border: 1px solid #f6e3bb;
  border-radius: 10px; padding: 8px 10px; line-height: 1.6; margin-bottom: 10px;
}
.cs-tip:empty { display: none; }
.cs-faq { margin-bottom: 12px; }
.cs-faq .cs-h { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.cs-faq details {
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
  margin-bottom: 6px; background: #fff;
}
.cs-faq summary { font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.cs-faq .ca { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin-top: 6px; }
.cs-form { border-top: 1px dashed var(--border); padding-top: 10px; }
.cs-form label { display: block; font-size: 12.5px; color: var(--text-2); margin: 0 0 5px; }
.cs-form .cs-req { color: var(--text-3); }
.cs-form input, .cs-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px;
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff; margin-bottom: 9px;
}
.cs-form input:focus, .cs-form textarea:focus { outline: none; border-color: var(--primary); }
.cs-form textarea { resize: vertical; line-height: 1.6; }
.cs-msgs { margin-top: 10px; }
.cs-msgs .cs-h { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.cs-msg {
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
  margin-bottom: 7px; background: #fff;
}
.cs-msg .cm-top { font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.cs-msg .cm-st { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: #fdecea; color: var(--danger); }
.cs-msg .cm-st.done { background: var(--primary-soft); color: var(--primary); }
.cs-msg .cm-tx { font-size: 13px; color: var(--text); line-height: 1.6; word-break: break-word; }
.cs-msg .cm-re { margin-top: 6px; font-size: 12.5px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 8px; padding: 6px 8px; line-height: 1.6; }
