/* fafaresturant.com/campus/: campus deals + pre-order sheet (on top of site.css) */
main > section.cx-head { padding-top: 28px; padding-bottom: 6px; }
.cx-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 7vw, 56px); line-height: 1.02; margin-top: 12px; text-wrap: balance; }
.cx-head h1 .zh { display: block; font-size: .5em; color: var(--accent); margin-top: 6px; letter-spacing: 2px; }
.cx-lead { color: var(--muted); max-width: 52ch; margin-top: 10px; }
.cx-lead .zh { display: block; }
.cx-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 20px; }
.cx-steps li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cx-steps b { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); }
.cx-steps .zh { display: block; color: var(--muted); font-size: 13px; }

main > section.cx-days, main > section.cx-mine { margin-top: 30px; }
main > section.cx-wechat { margin-top: 30px; }
.cx-list { display: grid; gap: 16px; margin-top: 14px; }
@media (min-width: 760px) { .cx-list { grid-template-columns: repeat(2, 1fr); } }

.day { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.day__img { position: relative; }
.day__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.day__date { position: absolute; left: 12px; top: 12px; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(20, 16, 13, .82); backdrop-filter: blur(6px); }
.day__date.is-today { background: var(--accent); color: var(--accent-ink); }
.day__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.day__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.day__n { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.day__n .zh { display: block; font-family: var(--f-zh); font-size: 15px; font-weight: 600; color: var(--muted); }
.day__p { text-align: right; font-family: var(--f-display); font-weight: 800; font-size: 28px; color: var(--accent); line-height: 1; white-space: nowrap; }
.day__p s { display: block; font-family: var(--f-body); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; }
.day__facts { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.day__facts b { color: var(--ink); font-weight: 600; }
.day__note { font-size: 14px; }
.day__go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.left { font-size: 14px; font-weight: 600; color: var(--ok); }
.left.is-low { color: #fbbf24; }
.left.is-out { color: var(--bad); }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 22px; color: var(--muted); }

/* my orders */
.mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; text-decoration: none; }
.mine small { display: block; color: var(--muted); }

/* the order sheet */
.sheet { margin: auto auto 0; width: min(560px, 100%); max-height: 92dvh; border: 0; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  background: var(--surface); color: var(--ink); overflow-y: auto; }
.sheet::backdrop { background: rgba(0, 0, 0, .6); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet__x { position: sticky; top: 0; float: right; }
.sheet__x button { border: 0; background: var(--surface-2); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.sheet h2 { font-size: 24px; padding-right: 44px; }
.sheet .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.fld { display: grid; gap: 6px; margin-top: 16px; }
.fld > span { font-weight: 600; font-size: 14px; }
.fld > span small { color: var(--muted); font-weight: 400; }
.fld input, .fld textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.zones { display: grid; gap: 8px; }
.zone { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.zone input { accent-color: var(--accent); width: 18px; height: 18px; }
.zone span { flex: 1; }
.zone em { font-style: normal; color: var(--muted); font-size: 14px; }
.zone:has(input:checked) { border-color: var(--accent); }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 20px; cursor: pointer; }
.qty output { min-width: 40px; text-align: center; font-weight: 700; font-size: 18px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); }
.agree input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 auto; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.total b { font-family: var(--f-display); font-size: 28px; color: var(--accent); }
.err { color: var(--bad); font-weight: 600; margin-top: 10px; min-height: 1.5em; }
.btn--block { width: 100%; justify-content: center; margin-top: 12px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* pay + status */
.pay { text-align: center; }
.pay__code { display: inline-block; font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); margin-top: 8px; }
.pay__amt { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--accent); margin-top: 14px; font-variant-numeric: tabular-nums; }
.pay__amt small { display: block; font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.pay__qr { width: min(260px, 80%); margin: 16px auto 0; background: #fff; border-radius: 16px; padding: 10px; }
.pay__how { text-align: left; display: grid; gap: 6px; margin-top: 16px; font-size: 14px; }
.pay__how li { margin-left: 18px; }
.pay__how .zh { color: var(--muted); }
.pay__state { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.pay__state.is-paid { background: rgba(74, 222, 128, .14); color: var(--ok); }
.pay__state.is-bad { background: rgba(248, 113, 113, .12); color: var(--bad); }
.pay__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; margin-right: 8px; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pay__dot { animation: none; } }
.pay__help { margin-top: 12px; font-size: 13px; color: var(--muted); }
.copy { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; margin-top: 10px; }
