/* Business account page — builds on styles.css and team.css */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.not-yet { margin: 18px 0 0; }
.code-input { text-align: center; font-family: var(--display) !important; font-size: 2rem !important; font-weight: 800; letter-spacing: .5em; padding: 14px 0 14px .5em !important; }
.code-links { display: flex; justify-content: space-between; margin-top: 10px; }
.btn-text[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

.acct-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .acct-grid { grid-template-columns: 1fr 1fr; } .rates-card, .soon-card, .history-card { grid-column: 1 / -1; } }
.acct-grid[hidden] { display: none; }
.acct-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 20px; animation: rise .5s var(--ease) both; }
.acct-card:nth-child(2) { animation-delay: .06s; } .acct-card:nth-child(3) { animation-delay: .12s; } .acct-card:nth-child(4) { animation-delay: .18s; }
.acct-card h2 { font-size: 1.35rem; margin-bottom: .3em; }

.rates { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.rates li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fbf7f2; }
.rates .r-name { font-weight: 600; }
.rates .r-size { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }
.rates .r-price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--green); white-space: nowrap; }
.rates .r-price small { font-family: Inter, sans-serif; font-size: .75rem; font-weight: 500; color: var(--muted); }
.rates .r-price.tbc { font-family: Inter, sans-serif; font-size: .85rem; font-weight: 600; color: var(--muted); }
.rates li.garnish { border-left: 4px solid var(--berry); }
.rates li.blend_prep { border-left: 4px solid var(--gold); }
.rates-note { background: #fff8e6; border-radius: 14px; padding: 12px; margin: 12px 0 0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 10px 0 0; }
.kv dt { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- tabs ---------- */
.acct-tabs { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.acct-tabs button { font-size: .8rem; padding: 11px 2px; }
.acct-tabs .count:empty, .acct-tabs .count.zero { display: none; }
.tab-panel { animation: rise .35s var(--ease) both; }
.intro-note { margin: 0 2px 12px; }
.fine { margin: 10px 0 0; }

/* ---------- order form ---------- */
.step-label { font-weight: 600; margin: 18px 0 8px; color: var(--green); }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.date-chip { flex: none; scroll-snap-align: start; min-width: 68px; padding: 10px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: #fffdfa; text-align: center; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.date-chip b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.date-chip span { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date-chip[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.date-chip[aria-checked="true"] span { color: #bfe0c3; }
.date-chip .dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--berry); margin: 4px auto 0; }
.date-chip[aria-checked="true"] .dot { background: var(--gold); }

.window-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.win-card { text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fffdfa; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, background .2s; }
.win-card strong { display: block; font-size: .98rem; }
.win-card span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.win-card[aria-checked="true"] { border-color: var(--green); background: #e5f1e4; box-shadow: inset 0 0 0 1px var(--green); }
.win-card[disabled] { opacity: .5; cursor: not-allowed; background: #f4efe9; }
.slot-note { background: #fff8e6; border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin: 10px 0 0; }

.items { display: grid; gap: 8px; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 16px; background: #fbf7f2; border-left: 4px solid var(--line); }
.item-row.garnish { border-left-color: var(--berry); }
.item-row.blend_prep { border-left-color: var(--gold); }
.item-row .r-name { font-weight: 600; font-size: .95rem; }
.item-row .r-size { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 700 1.2rem/1 Inter, sans-serif; color: var(--green); cursor: pointer; }
.stepper button:active { transform: scale(.94); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { min-width: 58px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.stepper output small { font: 500 .7rem Inter, sans-serif; color: var(--muted); }
.item-row.has { background: #e9f4e8; }

.order-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 4px 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
.order-summary strong { font-family: var(--display); font-size: 1.4rem; color: var(--green); }
.order-summary span { font-size: .85rem; color: var(--muted); }

/* ---------- upcoming ---------- */
.upcoming-list { display: grid; gap: 12px; }
.day-head { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--green); margin: 8px 4px 0; }
.up-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px; animation: rise .4s var(--ease) both; }
.up-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.up-top strong { font-size: 1rem; }
.chip { display: inline-block; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip.placed { background: #fff3d6; color: #8a5a00; }
.chip.confirmed { background: #e5f1e4; color: var(--green); }
.chip.unavailable { background: #fff0f0; color: var(--berry-dark); }
.chip.standing { background: #eef0ff; color: #3b44a0; }
.chip.skipped { background: #f1ece6; color: var(--muted); }
.chip.delivered { background: var(--green); color: #fff; }
.chip.cancelled { background: #f1ece6; color: var(--muted); }
.up-items { list-style: none; padding: 0; margin: 0 0 8px; font-size: .92rem; }
.up-items li { display: flex; justify-content: space-between; padding: 3px 0; }
.up-meta { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.up-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.up-actions .btn { min-height: 42px; padding: 8px 16px; font-size: .88rem; }
.up-card.skipped { opacity: .7; }
.up-card.skipped .up-items { text-decoration: line-through; }
.empty-card { text-align: center; color: var(--muted); padding: 34px 16px; background: var(--paper); border: 1px dashed var(--line); border-radius: 20px; }

/* ---------- standing ---------- */
.dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0 6px; }
.dow button { height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdfa; font: 700 .85rem Inter, sans-serif; color: var(--muted); cursor: pointer; }
.dow button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.st-days { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0 10px; }
.st-days span { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: .75rem; font-weight: 700; background: #f1ece6; color: #b4aaa0; }
.st-days span.on { background: var(--green); color: #fff; }
.st-card.paused { background: #f7f3ee; }
.st-empty { border-style: dashed; text-align: center; }
.st-empty p { color: var(--muted); }

/* ---------- history ---------- */
.history { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fbf7f2; font-size: .9rem; }
.history .h-right { text-align: right; }
.history .h-right small { display: block; color: var(--muted); }

/* ---------- shared: delivery partner, ratings, help ---------- */
.driver { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e5f1e4; border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.driver .who { display: flex; align-items: center; gap: 10px; }
.driver .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.driver small { display: block; color: var(--muted); font-size: .75rem; }
.stars { display: flex; gap: 4px; margin: 6px 0; }
.stars button { border: 0; background: none; font-size: 1.7rem; line-height: 1; color: #e2d7cc; cursor: pointer; padding: 2px; }
.stars button.on { color: var(--gold); }
.stars.mini { margin: 0; }
.stars.mini button { font-size: 1.35rem; }
.stars.mini:hover button { color: var(--gold); }
.stars.mini button:hover ~ button { color: #e2d7cc; }
.past-line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.help-req { background: #fbf7f2; border-radius: 14px; padding: 10px 12px; margin-top: 10px; font-size: .9rem; }
.help-req .reply { background: #e5f1e4; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.history li.hist-item { display: block; }
.hist-top { display: flex; justify-content: space-between; gap: 10px; }
.hist-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.fb-done { display: block; color: var(--gold); margin-top: 4px; }
.instant-card { margin-top: 14px; display: grid; gap: 10px; background: #fff3f4; border: 1px solid #f5c8cf; border-radius: 18px; padding: 14px; }
.instant-card strong { display: block; color: var(--berry-dark); }
.instant-card span { font-size: .86rem; color: var(--muted); }
.ref-line { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.code-pill { font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: 1.3rem; background: var(--tint); color: var(--green); padding: 6px 14px; border-radius: 12px; }

.soon-card { background: var(--green-900); border-color: var(--green-900); color: #e9f1ea; }
.soon-card h2 { color: #fff; }
.soon-card .small { color: #a9c0ae; }
