/* ReadyMeds account: sign in with a code, and the orders. Reuses the consultation's frame and inputs. */
html.account .app { position: fixed; inset: 0; display: flex; flex-direction: column; }
html.account .scene { padding-top: 24px; }
html.account .scene__in { margin: 0 auto; } /* an account page starts at the top on a desktop too; only a single question sits centred */
.orders { display: grid; gap: 10px; }
.ord { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.ordmain { display: flex; align-items: center; gap: 12px; margin: -4px; padding: 4px; border-radius: 12px; color: inherit; transition: background-color 0.15s; }
.ordmain:hover { background: var(--bg-2); }
.ord .txt { flex: 1; min-width: 0; }
.ord .txt b { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.ord .txt span { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.4; color: var(--fg-3); }
.ord .chev { width: 18px; height: 18px; flex: none; color: var(--fg-4); }
.chipst { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.chipst--ok { background: var(--green-soft); color: var(--green); }
.chipst--warn { background: #fff4e0; color: var(--orange-ink); }
.chipst--off { background: var(--bg-2); color: var(--fg-3); }
.signrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 0.875rem; color: var(--fg-3); }
.signrow a { color: var(--accent); font-weight: 500; }
.empty { margin: 24px 0 0; padding: 22px 18px; border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; color: var(--fg-3); font-size: 0.9375rem; }
.empty .btn { margin-top: 12px; }
#acct .cnext { width: 100%; margin-top: 16px; }
.codein { text-align: center; font-size: 1.75rem; letter-spacing: 0.35em; font-weight: 600; height: 60px; }
.resume { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 13px 14px; border: 1px solid var(--accent); border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); transition: background-color 0.15s; }
.resume:hover { background: #dce8fc; }
.resume .txt { flex: 1; min-width: 0; }
.resume b { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.resume .txt span { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.4; opacity: 0.85; }
.resume .chev { width: 18px; height: 18px; flex: none; }
#acct .cnext + .resume { margin: 18px 0 0; }

/* ---- the account: details, then orders ---- */
.sec { margin-top: 22px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.sechead h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.sechead a { font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.drows { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.drow { display: flex; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.4; }
.drow:first-child { border-top: 0; }
.drow .k { width: 104px; flex: none; font-size: 0.8125rem; color: var(--fg-3); padding-top: 1px; }
.drow .v { flex: 1; min-width: 0; font-weight: 500; }
.drow .v--none { font-weight: 400; color: var(--fg-4); }
.lbl--gap { margin-top: 16px; }
.actions--det { display: flex; gap: 10px; margin-top: 16px; }
.actions--det .btn { height: 48px; padding: 0 22px; }
#details .hint { margin-top: 10px; }

/* ---- orders: live ones with their four stages, then previous ones by month ---- */
.ordgrp { margin: 0 0 18px; }
.ordgrp h3 { margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-4); }
.dots { display: flex; align-items: center; gap: 0; width: 100%; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.dots span { display: flex; align-items: center; flex: 1; min-width: 0; font-size: 0.6875rem; line-height: 1.2; color: var(--fg-4); }
.dots span:last-child { flex: none; }
.dots i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.dots span::after { content: ""; flex: 1; height: 2px; margin: 0 4px; background: var(--line); }
.dots span:last-child::after { display: none; }
.dots span.is-done i, .dots span.is-now i { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dots span.is-done::after { background: var(--accent); }
.dots span.is-now i { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
.dots b { display: block; margin-left: 6px; font-weight: 500; white-space: nowrap; color: var(--fg-3); }
.dots span.is-now b { color: var(--accent-ink); font-weight: 600; }
.ordacts { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.again { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--fg); font-size: 0.8125rem; font-weight: 600; transition: background-color 0.15s; }
.again:hover { background: var(--bg-3); }
.again svg { width: 14px; height: 14px; }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars span { font-size: 0.8125rem; color: var(--fg-3); margin-right: 6px; }
.stars button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #d2d2d7; transition: color 0.1s, transform 0.1s; }
.stars button svg { width: 20px; height: 20px; fill: currentColor; }
.stars button:hover, .stars button.is-on, .stars.is-busy button.is-on { color: #f5a300; }
.stars:hover button { color: #f5a300; }
.stars button:hover ~ button { color: #d2d2d7; }
.stars button:active { transform: scale(1.15); }
.rated { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--fg-3); }
.rated svg { width: 14px; height: 14px; fill: #f5a300; }
.rated b { color: var(--fg); font-weight: 600; }
.ord.is-prev .txt b { font-weight: 500; }
