/* Customer pages (index.html, order.html), from Main, OrderSent and PersonalForm.dc.html. base.css supplies tokens and shared components. */
.cust { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--ground); }
.loading { padding: 48px 16px; text-align: center; font-size: 15px; color: var(--muted); }

/* The customer form uses larger fields than the admin pages. */
.cust .lbl { font-size: 14px; }
.cust .inp { min-height: 48px; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.cust .inp[type="date"], .cust .inp[type="time"] { min-width: 0; }
.cust .inp[aria-invalid="true"] { border-color: var(--red); }
.opt { font-weight: 500; color: var(--muted); }

/* Header */
.cust-head { background: var(--brown); color: #FFF; padding: 20px 20px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.cust-head h1 { font-size: 24px; line-height: 1.2; font-weight: 800; }
.cust-lead { font-size: 15px; line-height: 1.55; color: #FBEFD9; }
.head-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.head-chips li { background: #7A4520; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.cust-head-row { flex-direction: row; text-align: left; padding: 14px 20px; }
.cust-head-row h1 { font-size: 22px; }
.head-biz { font-size: 13px; font-weight: 600; color: #F6DFB4; }

/* Steps */
.step { padding: 28px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.step-gap { gap: 18px; }
.step-custom { padding-top: 16px; }
.step-last { padding-bottom: 24px; }
.step-title { display: flex; align-items: center; gap: 10px; }
.step-title h2 { font-size: 20px; font-weight: 700; }
.step-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.cats, .cat { display: flex; flex-direction: column; gap: 14px; }
.cats { gap: 22px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cat-head h3 { font-size: 16px; font-weight: 700; }
.cat-head span { font-size: 13px; color: var(--muted); }

/* Cards and dish rows */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.panel h2, .panel h3 { font-size: 17px; font-weight: 700; }
.panel-pad { padding: 18px 16px; }
.panel-desc { margin: 4px 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.panel-stack { display: flex; flex-direction: column; gap: 12px; }
.panel-stack-14 { display: flex; flex-direction: column; gap: 14px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.list-head h2 { font-size: 17px; font-weight: 700; }
.list-head span { font-size: 13px; color: var(--muted); }
.list-foot { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.dish { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 70px; border-top: 1px solid var(--line-soft); background: var(--card); }
.dish.on { background: var(--sel); }
.dish-info { flex: 1; min-width: 0; }
.dish-name { font-size: 15px; font-weight: 600; }
.dish-sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.dish-desc { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.dish-photo { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--line-soft); }
.dish-total { flex: none; width: 72px; text-align: right; font-size: 15px; font-weight: 700; }
.dish.sold .dish-info, .dish.sold .dish-photo, .dish.off .dish-info, .dish.off .dish-total { opacity: 0.55; }
.add-btn { flex: none; min-width: 76px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--brown); background: #FFF; color: var(--brown); font: 700 14px var(--font); cursor: pointer; }
.stepper { flex: none; display: flex; align-items: center; gap: 4px; padding: 2px; border-radius: 999px; background: var(--brown); color: #FFF; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 600 20px var(--font); cursor: pointer; }
.stepper span { min-width: 22px; text-align: center; font-size: 15px; font-weight: 700; }
.stepper-outline { background: none; border: 1px solid var(--input); color: var(--ink); }
.stepper-outline button { font-size: 18px; }
.add-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: none; }

/* When and how */
.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.plain legend { padding: 0; }
.seg-lg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; border-radius: 14px; background: #E9ECE7; }
.seg-lg button { min-height: 48px; border: 0; border-radius: 11px; background: transparent; color: var(--gray); font: 700 15px var(--font); cursor: pointer; }
.seg-lg button[aria-pressed="true"] { background: #FFF; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 32, 27, 0.12); }
.addr-wrap { margin-top: 14px; }
.rush-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--input); border-radius: 14px; background: #FFF; font-family: var(--font); text-align: left; cursor: pointer; }
.rush-card[aria-pressed="true"] { padding: 13px 15px; border: 2px solid var(--rush); background: #FFF6EE; }
.rush-text { flex: 1; }
.rush-title { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.rush-desc { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.track { flex: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: #B9C1BA; }
.track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFF; transition: left 0.15s; }
.rush-card[aria-pressed="true"] .track { background: var(--rush-dark); }
.rush-card[aria-pressed="true"] .track::after { left: 23px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ro { background: var(--ground); border-radius: 12px; padding: 12px; }
.ro-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.ro-val { margin-top: 2px; font-size: 15px; font-weight: 700; }
.small-muted { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Policies */
.policies { display: flex; flex-direction: column; gap: 8px; }
.policies h3 { font-size: 15px; }
.policies p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.expiry { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); font-size: 14px; color: var(--brown); }
.expiry svg { flex: none; }
.intro { font-size: 15px; line-height: 1.55; color: #2E3833; }

/* Review lines and totals */
.when { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.line > :last-child { font-weight: 600; white-space: nowrap; }
.line .tbc { color: var(--orange); }
.line .muted { color: var(--muted); }
.line-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--ink); }
.line-total > :first-child { font-size: 16px; font-weight: 700; }
.line-total > :last-child { font-size: 18px; font-weight: 800; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.sum-row > :last-child { font-weight: 600; }
.sum-row .tbc { color: var(--orange); }
.panel .line-total + .hint { margin-top: 6px; }
#pay { margin-bottom: 8px; }

/* Sticky bar and big buttons */
.bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #FFF; }
.bar .err { flex: 1 0 100%; margin: 0; }
.bar .err:empty { display: none; }
.bar-col { flex-direction: column; align-items: stretch; gap: 8px; }
.bar-sum { flex: 1; min-width: 0; }
.bar-count { font-size: 13px; color: var(--muted); }
.bar-total { font-size: 20px; font-weight: 800; }
.bar-link { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 600; text-align: center; }
.btn-big { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--brown); color: #FFF; font: 700 16px var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.btn-big:hover { background: var(--brown-dark); color: #FFF; }
.btn-big:disabled { opacity: 0.6; cursor: progress; }
.btn-out { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--input); border-radius: 14px; background: #FFF; color: var(--ink); font: 700 15px var(--font); text-decoration: none; cursor: pointer; }
.btn-out:hover { color: var(--ink); border-color: #B9C1BA; }
.btn-col { display: flex; flex-direction: column; gap: 8px; }
.btn-col .btn-big { display: flex; }
.cust-foot { padding: 20px 16px 28px; text-align: center; font-size: 13px; color: var(--muted); }

/* Order sent */
.sent { padding: 40px 16px 28px; display: flex; flex-direction: column; gap: 20px; }
.sent-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.sent-num { font-size: 14px; font-weight: 700; color: var(--brown); }
.sent h1 { font-size: 26px; line-height: 1.2; font-weight: 800; }
.sent h1:focus { outline: none; }
.sent-lead { font-size: 15px; line-height: 1.55; color: var(--gray); }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.steps b { display: block; font-size: 15px; }
.step-body { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--yellow-soft); color: var(--brown); }
.steps li:first-child .dot { background: var(--brown); color: #FFF; }
.sent .panel h2 { margin-bottom: 4px; }

/* Personal link page and notices */
.stack { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.notice { margin: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.notice h2 { font-size: 20px; }
.notice p { font-size: 15px; line-height: 1.55; color: var(--gray); }
.notice .btn-col { margin-top: 6px; }
