/* ==================================================================
   吃完振作肉桂捲介面
   ================================================================== */

:root {
  --bg:        #fbf5ec;
  --bg-warm:   #f4e9da;
  --panel:     #ffffff;
  --ink:       #3b2a1c;
  --ink-soft:  #7c6754;
  --muted:     #a08c78;
  --line:      #ecdcc8;
  --line-soft: #f5ebdd;
  --accent:    #c2661f;
  --accent-dk: #9c4f14;
  --accent-bg: #fdf0e2;
  --ok:        #2f8f5b;
  --danger:    #c0392b;
  --shadow-sm: 0 1px 2px rgba(90, 60, 30, .08), 0 2px 6px rgba(90, 60, 30, .06);
  --shadow-md: 0 4px 14px rgba(90, 60, 30, .12);
  --shadow-lg: 0 18px 40px rgba(90, 60, 30, .22);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(255, 255, 255, .9), transparent 45%),
    radial-gradient(circle at 88% 4%,  rgba(244, 233, 218, .8), transparent 40%);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang TC",
               "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 190px;                  /* 讓出底部結帳列 */
  -webkit-text-size-adjust: 100%;
}

body.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .01em; }

.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── 頂部 ─────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 32px);
  background: rgba(255, 253, 249, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--accent-bg);
  border: 1px solid var(--line);
  border-radius: 50%;
}
/* 換成真的 logo 圖時：方角比圓形不會切到四個角 */
img.brand-mark {
  object-fit: contain;
  background: #000;
  border-color: transparent;
  border-radius: 12px;
}

.topbar h1 { font-size: 19px; }
.brand-sub { margin: 0; font-size: 12.5px; color: var(--muted); }

.topbar-total { text-align: right; line-height: 1.25; }
.topbar-total .label { display: block; font-size: 11.5px; color: var(--muted); }
.topbar-total .money { font-size: 20px; color: var(--accent-dk); }

/* ── 版面 ─────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  padding: clamp(14px, 2.4vw, 26px);
  max-width: 1400px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(14px, 2vw, 20px);
}

.col-right {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 24px);
  min-width: 0;
}

.panel-flavors { position: sticky; top: 84px; }

.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.panel-head h2 { font-size: 16px; }
.panel-head .count { font-size: 12.5px; color: var(--muted); }
.panel-hint { margin: 2px 0 14px; font-size: 12.5px; color: var(--muted); }

/* ── 口味卡 ───────────────────────────────────── */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
}

.flavor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 9px;
  background: linear-gradient(180deg, #fff, #fffaf2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: grab;
  text-align: center;
  touch-action: none;                     /* 讓觸控拖曳不捲動頁面 */
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.flavor:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dcc4a4; }
.flavor:active { cursor: grabbing; }
.flavor:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.flavor.is-picked {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 3px rgba(194, 102, 31, .16);
}
.flavor.is-source { opacity: .4; }

.flavor img {
  width: 76px; height: 76px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(120, 80, 40, .2));
}

/* 還沒上傳照片的品項：用色塊頂著，不要出現破圖 */
.nophoto {
  display: grid; place-items: center;
  background: var(--accent-bg);
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--accent-dk);
  font-weight: 700;
  letter-spacing: .5px;
  pointer-events: none;
  overflow: hidden;
}
.flavor .nophoto { width: 76px; height: 76px; font-size: 20px; }
.slot   .nophoto { width: 100%; height: 100%; font-size: 22px; }

.flavor-name  { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.flavor-desc  { font-size: 11px; color: var(--muted); line-height: 1.35;
                display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                overflow: hidden; }
.flavor-price { font-size: 13px; font-weight: 700; color: var(--accent-dk); }

.flavor-quick {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1;
  color: var(--accent-dk);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity .14s, background .14s;
}
.flavor:hover .flavor-quick,
.flavor-quick:focus-visible { opacity: 1; }
.flavor-quick:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── 盒子 ─────────────────────────────────────── */
.box-list { display: flex; flex-direction: column; gap: 14px; }

.box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fffdf9, #fdf7ee);
  padding: 12px 14px 14px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.box.is-full   { border-color: #bfe0cc; background: linear-gradient(180deg, #fcfffd, #f3fbf6); }
.box.is-over   { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 102, 31, .14); }
.box.is-reject { animation: shake .35s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.box-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 11px; flex-wrap: wrap;
}
.box-title { font-size: 14.5px; font-weight: 700; }

.box-progress {
  font-size: 12px; font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.box.is-full .box-progress { background: #dff2e6; color: var(--ok); }

.box-spacer { flex: 1 1 auto; }
.box-sub { font-size: 13px; font-weight: 700; color: var(--accent-dk); }

.box-tool {
  background: none; border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  font-size: 12px; padding: 3px 9px; cursor: pointer;
  transition: .14s;
}
.box-tool:hover { background: #fff0e6; color: var(--accent-dk); border-color: #e3c4a5; }
.box-tool.danger:hover { background: #fdecea; color: var(--danger); border-color: #f0c2bc; }
.box-tool:disabled { opacity: .35; cursor: not-allowed; }

.slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.slot {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, .55);
  border: 2px dashed #e0cdb4;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  color: #cbb69c;
  transition: border-color .14s, background .14s, transform .14s, box-shadow .14s;
}
.slot:hover { border-color: #cfae86; background: #fffaf2; }
.slot:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.slot.is-empty::after { content: '＋'; font-size: 20px; line-height: 1; }

.slot.is-filled {
  border: 1px solid transparent;
  background: transparent;
  cursor: grab;
  touch-action: none;
}
.slot.is-filled:hover { transform: translateY(-2px); }

.slot.is-target {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-bg);
  transform: scale(1.07);
  box-shadow: 0 0 0 4px rgba(194, 102, 31, .16);
}
.slot.is-source { opacity: .35; }

.slot img {
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(120, 80, 40, .22));
}

.slot .remove {
  position: absolute; top: -4px; right: -4px;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  font-size: 12px; line-height: 1;
  color: #fff; background: var(--danger);
  border: 2px solid #fff; border-radius: 50%;
  cursor: pointer; opacity: 0;
  transition: opacity .14s, transform .14s;
}
.slot.is-filled:hover .remove,
.slot .remove:focus-visible { opacity: 1; }
.slot .remove:hover { transform: scale(1.14); }

@keyframes pop {
  0%   { transform: scale(.3) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.14) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
.slot.just-added img { animation: pop .34s cubic-bezier(.2, 1.4, .5, 1); }

/* ── 新增盒子 ─────────────────────────────────── */
.add-box-wrap {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: 14px;
}
.add-box-hint { font-size: 12.5px; color: var(--muted); }

/* ── 訂購資料表單 ─────────────────────────────── */
.req { color: var(--danger); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 11.5px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 12px;
}
.field-wide { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  width: 100%;
  transition: border-color .14s, box-shadow .14s;
}
.field textarea { resize: vertical; min-height: 54px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 102, 31, .15);
}
.field input::placeholder,
.field textarea::placeholder { color: #c9b7a3; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.field.has-error > label { color: var(--danger); }

.field-error { margin: 0; font-size: 11.5px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

/* 付款方式 */
.pay-options { display: flex; gap: 10px; flex-wrap: wrap; }

.pay-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fffdfa;
  cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: .14s;
  flex: 1 1 160px;
}
.pay-opt:hover { border-color: #dcbc96; background: var(--accent-bg); }
.pay-opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.pay-opt.is-on { border-color: var(--accent); background: var(--accent-bg); box-shadow: 0 0 0 3px rgba(194, 102, 31, .12); }
.pay-opt:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.pay-detail {
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg-warm);
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.pay-detail[hidden] { display: none; }
.pay-detail img {
  width: 148px; height: 148px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
}
.pay-detail .pay-info { flex: 1 1 200px; min-width: 0; font-size: 13px; }
.pay-detail .pay-info h4 { margin: 0 0 6px; font-size: 13.5px; }
.pay-detail dl { margin: 0 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.pay-detail dt { color: var(--muted); font-size: 12.5px; }
.pay-detail dd {
  margin: 0; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  word-break: break-all;
}
.pay-detail .pay-note { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }

.copy-btn {
  font: inherit; font-size: 12px; font-weight: 700;
  color: var(--accent-dk);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px 10px; margin-top: 4px; cursor: pointer;
  transition: .14s;
}
.copy-btn:hover { background: var(--accent-bg); border-color: var(--accent); }

/* ── 按鈕 ─────────────────────────────────────── */
.btn {
  font: inherit; font-weight: 700;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 9px 18px;
  transition: transform .12s, background .14s, box-shadow .14s, opacity .14s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.btn-add {
  background: #fff; color: var(--accent-dk);
  border: 1.5px dashed #dcbc96;
}
.btn-add:hover:not(:disabled) { background: var(--accent-bg); border-color: var(--accent); }

.btn-submit {
  background: linear-gradient(180deg, #d0742a, var(--accent-dk));
  color: #fff;
  box-shadow: 0 4px 12px rgba(156, 79, 20, .3);
  padding: 12px 30px;
  font-size: 15.5px;
}
.btn-submit:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(156, 79, 20, .38); }

.btn-ghost {
  background: #fff; color: var(--ink-soft); border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-warm); }

/* ── 底部結帳列 ───────────────────────────────── */
.checkout {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 12px clamp(14px, 3vw, 32px) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(90, 60, 30, .08);
}

.checkout-lines { min-width: 240px; flex: 1 1 260px; max-width: 420px; }
.checkout .line {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--ink-soft);
  padding: 1px 0;
}
.checkout .line em { font-style: normal; font-weight: 700; color: var(--ink); }
.checkout .line-total {
  margin-top: 5px; padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.money-lg { font-size: 25px; color: var(--accent-dk); line-height: 1.15; }

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.13); }
  100% { transform: scale(1); }
}
.money.is-bump { animation: bump .3s ease-out; }

.checkout-action { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.submit-hint { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 230px; }

/* 金額變動的浮動提示 */
.delta {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  animation: floatUp .95s ease-out forwards;
}
.delta.up   { color: var(--ok); }
.delta.down { color: var(--danger); }
@keyframes floatUp {
  0%   { opacity: 0; transform: translate(-50%, 4px) scale(.85); }
  18%  { opacity: 1; transform: translate(-50%, -6px) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -42px) scale(1); }
}

/* ── 選取提示條 ───────────────────────────────── */
.pick-bar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  max-width: calc(100vw - 24px);
}
.pick-bar[hidden] { display: none; }
.pick-bar img { width: 30px; height: 30px; object-fit: contain; }
.pick-bar strong { color: #ffd9a8; }
.pick-bar button {
  font: inherit; font-weight: 700;
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 0; border-radius: 999px; padding: 5px 13px; cursor: pointer;
}
.pick-bar button:hover { background: rgba(255, 255, 255, .3); }

/* ── 拖曳分身 ─────────────────────────────────── */
#ghostLayer { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.ghost {
  position: fixed;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(90, 60, 30, .4));
  transform: scale(1.1) rotate(-6deg);
}
.ghost.nophoto { font-size: 24px; background: var(--panel); }

/* ── Toast ────────────────────────────────────── */
#toastLayer {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  top: 78px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff;
  padding: 9px 17px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .22s ease-out, toastOut .3s ease-in 1.7s forwards;
}
.toast.warn { background: var(--danger); }
.toast.good { background: var(--ok); }
@keyframes toastIn  { from { opacity: 0; transform: translateY(-12px); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(-12px); } }

/* ── 收據 ─────────────────────────────────────── */
.receipt {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  max-width: 460px; width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-family: inherit;
}
.receipt::backdrop { background: rgba(60, 40, 20, .45); backdrop-filter: blur(2px); }
.receipt h3 { font-size: 17px; margin-bottom: 12px; }
.receipt-box { border-top: 1px dashed var(--line); padding: 9px 0; }
.receipt-box h4 { margin: 0 0 4px; font-size: 13.5px; }
.receipt-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--ink-soft); padding: 1px 0;
}
.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--line); margin-top: 10px; padding-top: 10px;
  font-weight: 700;
}
.receipt-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.receipt-who {
  background: var(--bg-warm);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.receipt-who .receipt-row { color: var(--ink); }
.receipt-who .receipt-row span:first-child { color: var(--muted); }

.receipt-pay {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
}
.receipt-pay img { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.receipt-pay .pay-info { flex: 1 1 180px; min-width: 0; font-size: 13px; }

.receipt-msg {
  margin: 14px 0 0; padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.6;
}
.receipt-msg[hidden] { display: none; }
.receipt-msg.ok   { background: #e9f7ef; color: #1e6b42; border: 1px solid #bfe0cc; }
.receipt-msg.bad  { background: #fdecea; color: #9c2b1f; border: 1px solid #f0c2bc; }
.receipt-msg.info { background: var(--bg-warm); color: var(--ink-soft); border: 1px solid var(--line); }
.receipt-msg strong { font-size: 15px; letter-spacing: .04em; }

.btn.is-busy { position: relative; color: transparent; pointer-events: none; }
.btn.is-busy::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 響應式 ───────────────────────────────────── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .panel-flavors { position: static; }
  .flavor-grid { max-height: none; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .flavor img,
  .flavor .nophoto { width: 62px; height: 62px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body { padding-bottom: 210px; }
}

@media (max-width: 560px) {
  .topbar { padding: 10px 14px; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .topbar h1 { font-size: 16.5px; }
  .checkout { gap: 10px; padding-top: 10px; }
  .checkout-action { width: 100%; }
  .checkout-action .btn-submit { flex: 1 1 auto; }
  .submit-hint { max-width: none; flex: 1 1 100%; order: -1; }
}

/* 觸控裝置沒有 hover，這些按鈕要直接顯示出來 */
@media (hover: none) {
  .flavor-quick { opacity: 1; }
  .slot.is-filled .remove { opacity: .92; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
