/* ==========================================================================
   todd的铺子 — 精致原生商城视觉系统
   忠于原站紧凑高效的居中卡片质感，去掉框架冗余，兼顾桌面一屏与移动端适配。
   ========================================================================== */

:root {
  --primary: #1677ff;
  --primary-hover: #0f62dc;
  --primary-soft: rgba(22, 119, 255, 0.08);
  --border: #e5ebf4;
  --border-input: #d9e3f0;
  --surface: #ffffff;
  --surface-head: #f8fbff;
  --surface-subtle: #fafbfe;
  --text: #1f2a37;
  --text-2: #40536a;
  --text-weak: #66788e;
  --text-muted: #94a3b8;
  --shadow-shell: 0 14px 30px rgba(20, 58, 112, 0.12);
  --shadow-card: 0 8px 18px rgba(16, 56, 110, 0.06);
  --shadow-pop: 0 10px 28px rgba(15, 35, 66, 0.14);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: Consolas, Menlo, Monaco, ui-monospace, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.store-bg {
  background:
    radial-gradient(1100px 380px at 5% -10%, rgba(22, 119, 255, 0.12), transparent 65%),
    radial-gradient(1000px 300px at 95% 0%, rgba(10, 96, 255, 0.08), transparent 60%),
    url('../index/assets/images/beijing.png');
  background-size: auto, auto, cover;
  background-attachment: scroll, scroll, fixed;
}

[v-cloak] { display: none !important; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

/* ---- Page Outer & Centered Floating Shell ---- */
.page-wrap {
  padding: 16px 10px 28px;
}

.store-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-shell);
  overflow: hidden;
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
}

.store-shell-narrow {
  max-width: 720px;
  min-height: auto;
}

/* ---- Top Bar inside Shell ---- */
.shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
  border-bottom: 1px solid var(--border);
}

.shell-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff7e6;
  color: #b45309;
  border: 1px solid #ffd591;
}

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

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.link-btn:hover { background: var(--primary-soft); text-decoration: none; }

/* ---- Main Underline Tabs ---- */
.shell-body {
  padding: 6px 16px 18px;
  flex: 1 1 auto;
}

.main-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.main-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-weak);
  cursor: pointer;
  transition: color 0.15s ease;
}
.main-tab:hover { color: var(--primary); }
.main-tab.is-active { color: var(--primary); }
.main-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* ---- Status Banner ---- */
.pay-banner {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-banner.is-paid {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* ---- Two-Column Order Workspace ---- */
.order-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.store-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.store-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-head);
  border-bottom: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-outline-btn {
  border: 1px solid #d5e1f0;
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mini-outline-btn:hover { border-color: var(--primary); color: var(--primary); }

.store-card-body {
  padding: 12px 14px 14px;
}

/* ---- Blue Quote Notice ---- */
.tip-quote {
  margin: 0 0 11px;
  padding: 8px 10px;
  background: #f7fbff;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ---- Category 2-Column Radio Grid (Classic) ---- */
.cat-box {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #e7eef8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 164px;
  overflow-y: auto;
  padding-right: 3px;
}

.cat-radio {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: #fff;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-width: 0;
}
.cat-radio:hover { border-color: #9bbef7; color: var(--text); }
.cat-radio.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.cat-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  flex: 0 0 auto;
  position: relative;
}
.cat-radio.is-active .cat-dot {
  border-color: var(--primary);
  background: var(--primary);
}
.cat-radio.is-active .cat-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.cat-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Searchable Platform Combobox Dropdown ---- */
.combo-wrap {
  position: relative;
  margin-bottom: 10px;
}

.combo-trigger {
  position: relative;
  display: flex;
  align-items: center;
}

.combo-input {
  width: 100%;
  height: 38px;
  padding: 0 54px 0 11px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.combo-input:focus {
  border-color: #9fc3ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
  outline: none;
}

.combo-input.has-thumb {
  padding-left: 38px;
}

.combo-picked-img {
  position: absolute;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  pointer-events: none;
}

.combo-actions {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.combo-clear {
  border: 0;
  background: #edf2f7;
  color: #64748b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.combo-clear:hover { background: #cbd5e1; color: var(--text); }

.combo-arrow {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease;
}
.combo-arrow.is-open { transform: rotate(180deg); color: var(--primary); }

.combo-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.combo-panel-head {
  padding: 6px 10px;
  background: #f8fbff;
  border-bottom: 1px solid #eef2f7;
  font-size: 11.5px;
  color: var(--text-weak);
  display: flex;
  justify-content: space-between;
}

.combo-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  contain: layout style;
}

.combo-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  contain: layout style;
}
.combo-opt:hover { background: #f2f7ff; }
.combo-opt.is-active { background: #e8f3ff; }

.combo-opt-img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
  background: #f1f5f9;
  flex: 0 0 auto;
}

.combo-opt-ph {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #eef4fc;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.combo-opt-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-opt-ch {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.combo-opt-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

.combo-empty {
  padding: 18px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---- Inline Selected Product Note ---- */
.explain-box {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px dashed #c8dcf7;
  border-radius: 8px;
  background: #f9fcff;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.65;
}
.explain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--text);
}
.explain-body {
  max-height: 82px;
  overflow-y: auto;
  word-break: break-word;
}
.explain-body.is-full { max-height: none; }

/* ---- Sub Tabs: Single / Batch ---- */
.sub-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 11px;
}

.sub-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-weak);
  cursor: pointer;
}
.sub-tab.is-active { color: var(--primary); }
.sub-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

/* ---- Inputs ---- */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s-input, .s-textarea {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.s-input {
  height: 38px;
  padding: 0 11px;
}

.s-textarea {
  min-height: 128px;
  padding: 9px 11px;
  resize: vertical;
  line-height: 1.6;
}

.s-input:focus, .s-textarea:focus {
  border-color: #9fc3ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
  outline: none;
}

.pwd-box { position: relative; }
.pwd-box .s-input { padding-right: 46px; }
.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 3px 5px;
}
.pwd-toggle:hover { color: var(--primary); }

/* ---- Saved Accounts Dropdown ---- */
.saved-wrap { position: relative; }
.saved-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 70;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: var(--shadow-pop);
  max-height: 230px;
  overflow-y: auto;
  padding: 4px 0;
}

.saved-item {
  position: relative;
  padding: 6px 28px 6px 11px;
  cursor: pointer;
  line-height: 1.45;
}
.saved-item:hover { background: #f2f8ff; }
.saved-user { font-size: 13px; color: var(--text); margin-right: 8px; font-weight: 500; }
.saved-pass { font-size: 12.5px; color: var(--primary); font-family: var(--font-mono); }
.saved-sub { font-size: 11.5px; color: #94a3b8; }
.saved-del {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
}
.saved-del:hover { color: #ef4444; background: #fef2f2; }

/* ---- Form Bottom Action Row ---- */
.form-btn-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  background: #fff;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #9fc3ff;
  color: var(--primary);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled {
  background: #f5f7fa;
  border-color: #e5ebf4;
  color: #b4becd;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.22);
}

.btn-submit {
  background: #009688;
  border-color: #009688;
  color: #fff;
}
.btn-submit:hover:not(:disabled) {
  background: #008276;
  border-color: #008276;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 150, 136, 0.22);
}

.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 6px; }
.btn-xs { height: 25px; padding: 0 8px; font-size: 12px; border-radius: 5px; }

/* ---- Right Card: Course Query Results ---- */
.result-empty-quiet {
  color: #16b777;
  font-size: 13.5px;
  padding: 4px 2px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
}

.res-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.res-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-head);
  border-bottom: 1px solid #eef3f9;
  font-size: 13px;
}

.res-group-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.res-ok { color: #16a34a; font-weight: 700; flex-shrink: 0; }
.res-fail { color: #dc2626; font-weight: 700; flex-shrink: 0; }
.res-acct {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.res-items {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background 0.12s ease;
}
.res-item:hover { background: #f4f8ff; }
.res-item.is-checked { background: #edf5ff; }
.res-item.is-disabled { opacity: 0.5; cursor: not-allowed; }

.res-check {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.res-course-name { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.res-course-id { font-size: 11px; color: #94a3b8; font-family: var(--font-mono); flex-shrink: 0; }

.res-summary-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-2);
}

/* ---- Progress Query Tab ---- */
.query-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.query-search-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}
.query-search-row .saved-wrap { flex: 1 1 auto; }

.recent-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-weak);
}

.recent-tag {
  border: 1px solid var(--border);
  background: var(--surface-head);
  color: var(--text-2);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
}
.recent-tag:hover { border-color: var(--primary); color: var(--primary); }

.query-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-weak);
}

.order-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(16, 56, 110, 0.04);
}

.order-card-head {
  padding: 11px 14px;
  background: var(--surface-head);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-card-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.order-card-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-weak);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.pill-blue { background: #e8f3ff; color: var(--primary); }
.pill-green { background: #ecfdf3; color: #15803d; }
.pill-amber { background: #fff7e6; color: #b45309; }
.pill-red { background: #fef2f2; color: #b91c1c; }
.pill-gray { background: #f1f5f9; color: #475569; }

.order-row {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.order-row:last-child { border-bottom: 0; }

.order-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 82px minmax(110px, 1fr) 128px auto;
  gap: 10px;
  align-items: center;
}

.course-label { font-size: 13.5px; font-weight: 600; color: var(--text); word-break: break-word; }
.course-tag {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
}

.prog-box { display: flex; align-items: center; gap: 7px; }
.prog-track {
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
}
.prog-bar {
  height: 100%;
  border-radius: 999px;
  background: #16b777;
  transition: width 0.3s ease;
}
.prog-bar.is-running { background: var(--primary); }
.prog-num { font-size: 12px; color: var(--text-2); width: 36px; text-align: right; flex-shrink: 0; }

.order-time { font-size: 12px; color: var(--text-weak); line-height: 1.4; }
.order-ops { display: flex; gap: 6px; justify-content: flex-end; }
.order-remark { margin-top: 6px; font-size: 12px; color: #7b8ba1; line-height: 1.55; word-break: break-word; }
.order-log-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #334155;
  line-height: 1.8;
  max-height: 200px;
  overflow-y: auto;
  word-break: break-all;
}

/* ---- Footer inside Shell ---- */
.shell-footer {
  padding: 14px 16px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-weak);
  border-top: 1px solid #f1f5f9;
}
.footer-badges {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-badges img { height: 20px; width: auto; }

/* ---- Modals (Classic Clean Layer Look) ---- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 26, 48, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(10, 30, 60, 0.22);
  overflow: hidden;
}

.modal-box-wide { max-width: 420px; }

.modal-head {
  padding: 12px 16px;
  background: #f8fbff;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.modal-x {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}
.modal-x:hover { color: var(--text); }

.modal-body {
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-foot {
  padding: 10px 16px 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---- Payment Modal (Classic Compact #pay2 Style) ---- */
.pay-price-big {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}

.pay-meta-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-weak);
  margin-bottom: 16px;
}

.pay-btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-btn {
  flex: 1 1 88px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
}
.pay-btn:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }
.pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pay-btn-alipay { background: #1677ff; }
.pay-btn-wxpay { background: #07c160; }
.pay-btn-qqpay { background: #12b7f5; }

/* ---- Toast ---- */
.toast-wrap {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100vw - 24px);
}
.toast-msg {
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.toast-msg.is-error { background: #dc2626; }
.toast-msg.is-success { background: #15803d; }

/* ---- Redirect Mask & Spinner ---- */
.pay-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 26, 48, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pay-mask-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 40px rgba(10, 30, 60, 0.28);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 3px; }

/* ---- Responsive (Tablet & Mobile 390px) ---- */
@media (max-width: 780px) {
  .page-wrap { padding: 6px 6px 18px; }
  .store-shell { border-radius: 10px; min-height: auto; }
  .shell-topbar { padding: 12px 14px; }
  .shell-body { padding: 4px 10px 14px; }
  .order-cols { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { max-height: 144px; }
  .order-row-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
  }
  .prog-col { grid-column: 1 / -1; }
  .order-time { grid-column: 1 / 2; }
  .order-ops { grid-column: 2 / 3; }
  .query-search-row { flex-direction: column; }
}
