/* Shop, basket, checkout and dentist ordering (pages built by worker/shop.ts inside /app-shell/). */
.shop-head { margin-bottom: 28px; }
.app h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--navy); margin: 32px 0 16px; }
.shop-grid { margin-bottom: 12px; }
.shop-card .shop-price { font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.shop-card .btn { margin-top: auto; align-self: flex-start; }
.shop-price { font-weight: 700; color: var(--navy); }
.shop-price-big { font-size: 1.5rem; margin: 0 0 20px; }
.shop-note { color: var(--muted); font-size: 1.1rem; max-width: 46em; }
.shop-crumbs { padding-top: 0; margin-bottom: 16px; }
.shop-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.shop-crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--muted); }
.shop-product { max-width: 52rem; }
.shop-desc { margin-bottom: 28px; font-size: 1.125rem; }
.shop-trade { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-top: 48px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--navy); color: #fff; }
.shop-trade h2 { color: #fff; margin: 0 0 8px; }
.shop-trade p { color: var(--on-navy); font-size: 1.1rem; margin: 0 0 18px; }
.shop-trade .ic, .shop-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.shop-trade .ic { background: rgb(0 173 239 / .18); color: var(--light-blue); }
.shop-trade .ic svg { width: 28px; height: 28px; }

/* Steps */
.shop-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 28px; padding: 0; color: var(--muted); font-size: 1rem; }
.shop-steps li { display: flex; align-items: center; gap: 8px; }
.shop-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-weight: 700; }
.shop-steps li[aria-current] { color: var(--navy); font-weight: 700; }
.shop-steps li[aria-current] span { background: var(--navy); border-color: var(--navy); color: #fff; }
.shop-steps li.done span { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.shop-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; }
.shop-jump a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--tint); color: var(--navy); text-decoration: none; font-weight: 600; }
.shop-group { scroll-margin-top: 110px; }

/* Order questions */
.shop-form { display: grid; gap: 24px; max-width: 48rem; }
.q-sec { border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 30px); background: #fff; display: grid; gap: 16px; margin: 0; min-width: 0; }
.q-sec > legend { padding: 0; float: left; width: 100%; }
.q-sec > legend h2, .q-sec > h2 { margin: 0; display: flex; align-items: center; gap: 12px; }
.q-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: 1rem; flex: none; }
.q-sec p { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.app .q { display: grid; gap: 6px; font-weight: 700; color: var(--navy); }
.q-req, .q-opt { font-weight: 400; color: var(--muted); font-size: .95rem; }
.q-hint { display: block; font-weight: 400; color: var(--muted); font-size: 1rem; }
.q-err { display: block; color: #a4160b; font-weight: 700; font-size: 1rem; margin: 0; }
.app .q input[type="text"], .app .q input[type="email"], .app .q input[type="tel"], .app .q input[type="date"], .app .q input[type="number"], .app .q select, .app .q textarea {
  min-height: 52px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.125rem; font-weight: 400; background: #fff; color: var(--ink); width: 100%; }
.app .q textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.app .q input[type="date"] { max-width: 16rem; }
.app .q input[type="file"] { font: inherit; font-weight: 400; padding: 10px 0; max-width: 100%; }
.app .q [aria-invalid="true"] { border-color: #a4160b; }
.app .q :focus-visible, .q-tick input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.q-checks, .q-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.q-checks legend, .q-choice legend { font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.q-tick { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; line-height: 1.45; cursor: pointer; font-weight: 400; color: var(--ink); }
.q-tick input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.q-confirm { padding: 14px 16px; border-radius: 12px; background: var(--tint); font-weight: 600; }
.q-or { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem !important; }
.q-doc { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: 18px; }
.q-text { display: grid; gap: 12px; }
.q-text ul { margin: 0; padding-left: 1.3em; font-size: 1.1rem; }
.q-terms { color: var(--muted); }
.q-warn { margin-top: 0 !important; }
.q-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.q-checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 1.1rem; line-height: 1.5; }
.q-checklist svg { width: 26px; height: 26px; color: var(--blue); }
.q-upload { display: grid; gap: 10px; padding: 16px; border: 2px dashed var(--line); border-radius: 14px; }
.q-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-submit { display: grid; gap: 12px; justify-items: start; padding: 22px; border-radius: 18px; background: var(--tint); }
.shop-submit .shop-price { margin: 0; font-size: 1.3rem; }
.shop-errors strong { display: block; }

/* Basket and checkout */
.shop-basket { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .shop-basket { grid-template-columns: minmax(0, 1fr) 22rem; } .shop-side { position: sticky; top: 110px; } }
.shop-line { border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 18px; background: #fff; scroll-margin-top: 110px; }
.shop-line-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.shop-line-head h2, .shop-line-head h3 { margin: 0; font-size: 1.3rem; color: var(--navy); }
.shop-line-total { margin: 0; font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.shop-line-sub { color: var(--muted); margin: 6px 0 12px; }
.shop-answers { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.shop-answers div { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .shop-answers div { grid-template-columns: 15rem 1fr; } }
.shop-answers dt { font-weight: 700; color: var(--navy); }
.shop-answers dd { margin: 0; overflow-wrap: anywhere; }
.shop-line-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 16px; }
.shop-line-actions a { font-weight: 700; }
.shop-inline { display: flex; gap: 10px; align-items: center; margin: 0; }
.shop-inline label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.shop-inline input[type="number"] { width: 5rem; min-height: 44px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.shop-qty-fixed { color: var(--muted); }
.btn.shop-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.shop-side { border-radius: 18px; background: var(--tint); padding: 22px; display: grid; gap: 14px; }
.shop-side h2 { margin: 0; font-size: 1.35rem; }
.shop-side-flat { max-width: 26rem; margin: 8px 0 24px; }
.app .shop-totals { font-size: 1.05rem; }
.app .shop-totals th { font-weight: 400; padding: 8px 0; border-color: rgb(0 47 77 / .15); }
.app .shop-totals td { text-align: right; padding: 8px 0; white-space: nowrap; border-color: rgb(0 47 77 / .15); }
.app .shop-grand th, .app .shop-grand td { font-weight: 700; font-size: 1.25rem; color: var(--navy); border-bottom: 0; }
.shop-coupon { display: grid; gap: 10px; justify-items: start; margin: 0; }
.shop-wide { width: 100%; justify-content: center; }
.shop-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-mini li { display: flex; justify-content: space-between; gap: 12px; }
.shop-mini small { color: var(--muted); font-size: .95rem; }
.shop-two { display: grid; gap: 16px; }
@media (min-width: 700px) { .shop-two { grid-template-columns: 1fr 1fr; } }
.shop-pay { padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; }
.shop-pay:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.shop-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.shop-ok { background: #e7f6ec; border-color: #7cc596; color: #12391f; }
.shop-done { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--tint); margin-bottom: 28px; }
.shop-done h1 { margin-bottom: 10px; }
.shop-done .lead { color: var(--ink); }
.shop-bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 1.1rem; }
.shop-bank dt { font-weight: 700; color: var(--navy); }
.shop-bank dd { margin: 0; }

/* Fixes after the page check: tick-box labels in a row (the frame makes every label a grid), sections that never
   grow wider than the screen, and darker links on the pale blue panels for contrast. */
.app .q-tick { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.app .q-tick span { display: block; }
.q-sec, .shop-form { grid-template-columns: minmax(0, 1fr); }
.app .shop-qty { max-width: 8rem; }
.shop-buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.q-confirm a, .shop-side a:not(.btn), .shop-submit a:not(.btn), .shop-done a:not(.btn), .shop-ok a { color: var(--navy); }
.q-scan-direct { padding: 16px 18px; border-radius: 14px; background: #eef6fb; border: 1px solid var(--line); display: grid; gap: 8px; }
.q-scan-direct p { margin: 0; }
