/* Gentleman's Cuts — customer booking page. Square corners, the website's own fonts (Libre Baskerville + Almarai),
   sized to be comfortable to read. Look and motion were settled on the mock-up (preview/book.html). */
@font-face { font-family: "Inter"; font-weight: 400 800; font-display: swap; src: url("/static/fonts/inter-latin.woff2") format("woff2"); }
:root { --green: #12382c; --green-2: #1d5240; --ink: #17181a; --ink-2: #45474b; --ink-3: #6d6f74; --paper: #f4f3ef; --card: #fff; --line: #e2e1dc;
        --save: #0d7a45; --save-bg: #e5f4ea; --r: 0px;
        --head: "Libre Baskerville", Georgia, serif; --text: "Almarai", -apple-system, "Segoe UI", sans-serif; --head-w: 700; --head-ls: -.01em; }
:root[data-motion=off] * { animation: none !important; transition: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #d9d7d0; color: var(--ink); font: 17px/1.4 var(--text); font-feature-settings: "tnum" 1; }
button { font: inherit; color: inherit; cursor: pointer; }
.phone { width: min(480px, 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--paper); display: flex; flex-direction: column; position: relative; box-shadow: 0 0 40px rgba(0,0,0,.18); }
.top { background: var(--green); color: #fff; padding: 16px 18px 18px; }
.top .where { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.top h1 { margin: 8px 0 0; font: var(--head-w) 25px/1.2 var(--head); letter-spacing: var(--head-ls); }
.top .sub { margin-top: 7px; font-size: 14.5px; opacity: .82; }
.top .back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -4px; padding: 4px 8px 4px 2px; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 700; opacity: .85; }
.bar { height: 3px; background: rgba(255,255,255,.18); margin-top: 14px; border-radius: 2px; overflow: hidden; } .bar i { display: block; height: 100%; background: #fff; transition: width .25s; }
.body { flex: 1; padding: 14px 16px 130px; }
h2 { margin: 20px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); } h2:first-child { margin-top: 2px; }
/* the menu: one section open at a time, the rest a single quiet line each */
.sec { width: 100%; display: flex; align-items: center; gap: 10px; padding: 15px 4px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.sec:first-of-type { border-top: 0; } .sec b { flex: 1; font: var(--head-w) 18px var(--head); letter-spacing: var(--head-ls); }
.sec small { color: var(--ink-3); font-size: 14.5px; } .sec .got { color: var(--green-2); font-weight: 700; font-size: 14.5px; } .sec i { font-style: normal; color: var(--ink-3); transition: transform .2s; } .sec.open i { transform: rotate(90deg); }
.item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; }
.note { margin: 6px 0 12px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--tint, #e4e8f0); color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.45; } .note strong { font-weight: 800; }   /* the earned trim: a tinted band, not a grey aside (owner 2026-10-05) */ .note .link { padding: 0; font-size: 15px; } .note b { display: inline-block; margin-top: 6px; font-weight: 700; }
.who { display: flex; width: fit-content; align-items: center; gap: 7px; margin-top: 7px; padding: 3px 11px 3px 3px; border-radius: 20px; background: var(--tint, #e4e8f0); color: var(--green); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.who .av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #ccc; } .sec .who { margin-top: 0; } .item .hint + .who, .item .who + .hint { margin-right: 6px; }
.item { position: relative; }
/* a mark on the minutes line, a pill like the green "Save $5" one: no extra height (owner 2026-10-05: the stamps made marked cards taller) */
.tag { display: inline-block; margin-left: 9px; padding: 1px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; line-height: 1.4; vertical-align: 1px; white-space: nowrap; }
.tag.popular { background: var(--tint, #e4e8f0); color: var(--green); } .tag.finest { background: #f5ebd3; color: #7a5a17; } .tag.most { background: var(--green); color: #fff; }   /* not "top": that is the page header's class */   /* the one most popular add-on per shop (owner 2026-10-09, design B) */
.item.off { opacity: .5; } .item.off .only { display: table; margin-top: 6px; }
.item.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.item .tick { flex: none; width: 24px; height: 24px; border: 1.5px solid #c9c8c2; border-radius: 50%; display: grid; place-items: center; color: transparent; font-size: 14px; font-weight: 800; }
.item.multi .tick { border-radius: 5px; } .item.on .tick { background: var(--green); border-color: var(--green); color: #fff; }
.item .t { flex: 1; min-width: 0; } .item b { display: block; font-size: 17.5px; font-weight: 700; } .item small { color: var(--ink-3); font-size: 14.5px; }
.item .d { display: block; margin-top: 3px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.item .p { flex: none; text-align: right; font-weight: 800; font-size: 17.5px; } .item .p s { display: block; color: var(--ink-3); font-weight: 400; font-size: 13px; }
.hint { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 20px; background: var(--save-bg); color: var(--save); font-size: 13.5px; font-weight: 700; animation: pop .28s ease-out; }
.item.roomstrip { width: calc(100% + 32px); margin: 14px -16px 0; padding: 14px 31px; border: 0; border-top: 1px solid #d6d3c9; border-bottom: 1px solid #d6d3c9; background: #e6e4dc; box-shadow: none; }   /* the private room: a muted strip, edge to edge */
.item.roomstrip.first { margin: -14px -16px 18px; border-top: 0; } .roomstrip .tick { background: #fff; border-color: #8d8a80; }
.item .ph { flex: none; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #ddd; }
.tagline { display: block; margin: 1px 0 4px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.only { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 20px; background: #ecebe6; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.dock { position: sticky; bottom: 0; margin-top: auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.07); }
.dock .sum { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; } .dock .sum b { flex: 1; font-size: 15px; font-weight: 700; min-width: 0; }
.dock .sum > span { font-size: 19px; font-weight: 800; } .dock .sum s { color: var(--ink-3); font-size: 14px; }
.go { width: 100%; height: 54px; border: 0; border-radius: var(--r); background: var(--green); color: #fff; font-size: 17px; font-weight: 700; } .go:disabled { opacity: .35; }
.go.ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); margin-top: 8px; }
.go.pay { margin: 2px 0 0; } .dock .go.ghost { margin-top: 8px; } .paynote { margin: 8px 0 14px; } .paidok { margin: 2px 0 14px; padding: 12px 14px; background: var(--save-bg); color: var(--save); font-weight: 800; font-size: 16px; }
.paidtag { display: block; width: fit-content; margin-top: 10px; padding: 6px 12px; background: #0f8a50; color: #fff; font-weight: 800; font-size: 15px; }      /* paid: it should not be missed (owner 2026-11-02) */
.chip.pay { display: inline-flex; align-items: center; margin-top: 10px; background: #fff; color: var(--green); font-weight: 800; }
/* the calendar: a month at a time; a day with nothing free is faint and cannot be tapped */
.cal { max-width: 440px; margin: 0 0 16px; } .calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .calhead b { font: var(--head-w) 19px var(--head); letter-spacing: var(--head-ls); }
.calnav { width: 46px; height: 42px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font-size: 22px; font-weight: 700; line-height: 1; } .calnav:disabled { opacity: .3; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; } .calgrid i { font-style: normal; text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-3); padding: 0 0 2px; }
.calgrid .day { width: auto; height: 44px; padding: 0; font-size: 16.5px; font-weight: 700; } .calgrid .day.today { box-shadow: inset 0 -3px 0 var(--green-2); }
.calgrid .day.shut, .calgrid .day.gone { background: transparent; border-color: transparent; color: #bcbab3; font-weight: 400; cursor: default; box-shadow: none; } .calgrid .day.shut { text-decoration: line-through; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.day { flex: none; width: 62px; padding: 10px 0; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; text-align: center; } .day small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.day b { font-size: 19px; } .day.on { background: var(--green); border-color: var(--green); color: #fff; } .day.on small { color: rgba(255,255,255,.8); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .time { height: 48px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font-weight: 700; font-size: 15.5px; }
.time.on { background: var(--green); border-color: var(--green); color: #fff; }
.time small { display: block; font-size: 11.5px; font-weight: 800; color: var(--save); line-height: 1; } .time.on small { color: #bfe8cf; } .time.deal { border-color: #a9d8bb; }
.field { display: block; margin-bottom: 14px; } .field span { display: block; margin: 0 2px 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input { width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; font-size: 19px; outline: none; } .field input:focus { border-color: var(--green); }
.otp { display: flex; gap: 8px; } .otp input { flex: 1; min-width: 0; height: 60px; text-align: center; font: inherit; font-size: 26px; font-weight: 700; border: 1.5px solid var(--line); border-radius: var(--r); outline: none; } .otp input:focus { border-color: var(--green); }
.link { border: 0; background: transparent; color: var(--green-2); font-weight: 700; font-size: 14.5px; padding: 10px 2px; text-decoration: underline; text-underline-offset: 3px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.card .big { font: var(--head-w) 21px/1.3 var(--head); letter-spacing: var(--head-ls); } .card p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.card .lines { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.rowl { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 17px; } .rowl.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 19px; } .rowl.save { color: var(--save); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .chip { height: 46px; padding: 0 14px; border: 1.5px solid var(--green); border-radius: var(--r); background: #fff; color: var(--green); font-weight: 700; font-size: 15px; } .chip.quiet { border-color: var(--line); color: var(--ink-2); }
.banner { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; margin-bottom: 8px; border: 0; border-radius: var(--r); background: #e7ece9; color: var(--green); font-weight: 700; font-size: 14.5px; text-align: left; } .banner i { margin-left: auto; font-style: normal; font-size: 18px; }
.with { display: flex; align-items: center; gap: 8px; padding: 13px 16px; margin-bottom: 12px; border-radius: var(--r); background: #fff; border: 1.5px solid var(--line); font-size: 17px; } .with > span, .with > b { flex: 1; } .with .link { padding: 0; font-size: 15px; }
.policy { margin: 4px 2px 14px; padding: 11px 13px; border-left: 3px solid #c9a227; background: #fbf6e6; font-size: 13.5px; line-height: 1.5; color: #5b4a12; }
.tickbig { width: 72px; height: 72px; border-radius: 50%; background: var(--save-bg); color: var(--save); display: grid; place-items: center; font-size: 36px; font-weight: 800; margin: 10px auto 14px; }
/* motion */
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fwd { from { transform: translateX(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes back { from { transform: translateX(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
.phone.fwd .body, .phone.fwd .top h1 { animation: fwd .24s ease-out; } .phone.back .body, .phone.back .top h1 { animation: back .24s ease-out; }   /* forward slides in from the right, Back from the left */
.opened .item { animation: rise .22s ease-out backwards; } .opened .item:nth-child(2) { animation-delay: .03s; } .opened .item:nth-child(3) { animation-delay: .06s; }
.opened .item:nth-child(4) { animation-delay: .09s; } .opened .item:nth-child(n+5) { animation-delay: .12s; }                                     /* a section unfolds top to bottom */
.item { transition: border-color .15s, box-shadow .15s, transform .08s; } .item:active { transform: scale(.985); }                                 /* it gives under the finger */
.item .tick { transition: background .15s, border-color .15s; } .item.on.just .tick { animation: pop .22s ease-out; }
.dock .sum.changed > span { animation: pop .25s ease-out; } .dock .sum { animation: rise .2s ease-out; }                                          /* the price reacts to every tap */
.go { transition: opacity .2s, transform .08s; } .go:active { transform: scale(.985); }
.time, .day, .chip { transition: background .12s, color .12s, border-color .12s; }
.bar i { transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.k { display: block; margin: 0 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.plain { display: block; width: 100%; margin-top: 4px; padding: 14px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-size: 16.5px; font-weight: 700; text-align: left; }
.plain small { display: block; color: var(--ink-3); font-weight: 400; font-size: 14px; margin-top: 2px; }
.card.up { display: flex; align-items: flex-start; gap: 12px; } .card.up .t { flex: 1; min-width: 0; } .card.up .t b { display: block; font-size: 17.5px; } .card.up .t small { color: var(--ink-3); font-size: 14.5px; }
.item.again .ph { width: 56px; height: 56px; }
.card.up .ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
/* his booking is the one thing on this screen he came for: the navy card, not one more white one (owner 2026-10-05: "more obvious") */
.card.up { background: var(--green); border-color: var(--green); color: #fff; padding: 18px; }
.card.up .t b { font: var(--head-w) 22px/1.25 var(--head); letter-spacing: var(--head-ls); margin-bottom: 4px; } .card.up .t small { color: rgba(255,255,255,.85); font-size: 15.5px; line-height: 1.45; }
.card.up .ph { width: 60px; height: 60px; border: 2px solid rgba(255,255,255,.85); } .card.up .chip { border-color: #fff; } .card.up .two { margin-top: 14px !important; }
.two { display: flex; gap: 8px; } .two .chip { flex: 1; text-align: center; height: 42px; padding: 0; } .chip.danger { border-color: #c0392b; color: #c0392b; }
.center { text-align: center; } .muted { color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.bad { color: #a3271f; }
.werror { padding: 10px 12px; background: #fbe9e7; color: #a3271f; font-size: 14.5px; font-weight: 700; }
.dock .sum b.bad { font-size: 14.5px; line-height: 1.4; }

.heroimg, .steps, .visit { display: none; }           /* wide layout only (below) */
/* ── A computer or an iPad: not a phone column (owner 2026-10-05: lets do this). On by default; ?try=phone switches it off. ──
   The same three pieces, laid out: the navy header across the top, the step on the left, and the summary with its
   button in a panel on the right that stays put while the left scrolls. Nothing in the script changes. */
@media (min-width: 760px) {
  html.wide body { background: var(--paper); }
  html.wide .phone { width: 100%; min-height: 100dvh; box-shadow: none; display: grid; align-content: start;
    grid-template-columns: [full-start] minmax(28px, 1fr) [main-start] minmax(0, 640px) [main-end side-start] minmax(280px, 360px) [side-end] minmax(28px, 1fr) [full-end];
    grid-template-rows: auto 1fr; column-gap: 0; }
  html.wide .top { grid-column: full; padding: 20px max(28px, calc((100vw - 1000px) / 2)) 20px; }
  html.wide .top h1 { font-size: 30px; margin-top: 8px; } html.wide .top .where { font-size: 13px; } html.wide .top .sub { font-size: 16px; }
  html.wide .bar { max-width: 640px; margin-top: 18px; }
  html.wide .body { grid-column: main; padding: 26px 36px 80px 0; min-width: 0; }
  html.wide .dock { grid-column: side; grid-row: 2; position: sticky; top: 26px; align-self: start; margin: 26px 0 0; padding: 20px; border: 1.5px solid var(--line); box-shadow: none; }
  html.wide .dock .sum { flex-wrap: wrap; } html.wide .dock .sum b { flex-basis: 100%; font-size: 16.5px; margin-bottom: 6px; } html.wide .dock .sum > span { font-size: 24px; margin-left: auto; }
  html.wide .sec + div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: stretch; padding-bottom: 8px; }      /* an open section: two cards a row */
  html.wide .sec + div > .item { margin-bottom: 0; align-items: flex-start; } html.wide .sec + div > .item .tick { margin-top: 2px; }
  html.wide .sec + div > .only, html.wide .sec + div > .note, html.wide .sec + div > .item.roomstrip { grid-column: 1 / -1; }
  html.wide .sec b { font-size: 21px; } html.wide .sec { padding: 18px 4px; }
  html.wide .item.roomstrip, html.wide .item.roomstrip.first { width: 100%; margin: 14px 0 0; padding: 14px; border: 1.5px solid #d6d3c9; } html.wide .item.roomstrip.first { margin: 0 0 20px; }
  html.wide .times { grid-template-columns: repeat(5, 1fr); } html.wide .days { flex-wrap: wrap; overflow: visible; }
  html.wide .field input { max-width: 420px; } html.wide .otp { max-width: 420px; }
  /* the first step carries the shop's photo on the right half of the header; later steps are a slim bar */
  /* The photo keeps its own shape (about 3 : 2) and sits inside the page's width, over the panel's column. Stretched to the
     screen's edge it became a thin strip on a wide monitor: frames and no barber (owner 2026-10-05: "a bit pointless"). */
  html.wide .top.first { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: center;
    padding-right: calc(max(28px, (100vw - 1000px) / 2) + min(480px, 46vw) + 40px); }
  html.wide .top.first .heroimg { display: block; position: absolute; right: max(28px, calc((100vw - 1000px) / 2)); top: 0; width: min(480px, 46vw); height: 100%;
    object-fit: cover; object-position: 58% 50%; }
  /* the steps by name; the thin line is for phones */
  html.wide .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; max-width: 560px; margin-top: 16px; }
  html.wide .steps > * { padding: 9px 0 0; border: 0; border-top: 3px solid rgba(255,255,255,.22); border-radius: 0; background: transparent; text-align: left; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.5); }
  html.wide .steps .was { border-top-color: #fff; color: rgba(255,255,255,.82); } html.wide .steps .at { border-top-color: #fff; color: #fff; }
  html.wide .steps button.was { cursor: pointer; } html.wide .steps button.was:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  html.wide .top.stepped .bar { display: none; }
  /* the panel: the whole visit, line by line */
  html.wide .visit { display: block; margin-bottom: 14px; } html.wide .visit h4 { margin: 0 0 12px; font: var(--head-w) 19px var(--head); letter-spacing: var(--head-ls); }
  html.wide .visit .ln { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15.5px; } html.wide .visit .ln span:last-child { flex: 0 1 auto; text-align: right; }
  html.wide .visit .ln.q { color: var(--ink-3); } html.wide .visit .ln.sv { color: var(--save); font-weight: 700; }
  html.wide .visit .tot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; font-size: 18px; }
  html.wide .visit + .sum { display: none; }
  html.wide .phone.fwd .body, html.wide .phone.back .body { animation-name: rise; }                                              /* a wide page does not slide sideways */
}
@media (min-width: 760px) and (max-width: 940px) {       /* an iPad held upright: the panel is narrower and the cards go back to one a row */
  html.wide .phone { grid-template-columns: [full-start] 24px [main-start] minmax(0, 1fr) [main-end side-start] 270px [side-end] 24px [full-end]; }
  html.wide .top { padding-left: 24px; padding-right: 24px; }
  html.wide .body { padding-right: 24px; }
  html.wide .sec + div { grid-template-columns: 1fr; }
  html.wide .times { grid-template-columns: repeat(4, 1fr); }
}
/* the booked / moved / cancelled screens, laid out like the email */
.tk { display: flex; position: relative; border: 2px solid var(--green); background: #fff; margin: 0 0 14px; }
.tkm { position: absolute; right: 14px; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--save-bg); color: var(--save); font-size: 18px; font-weight: 800; line-height: 32px; text-align: center; }
.tkm.no { background: #e9e9e6; color: #8a8d93; }
.tk .d { width: 96px; flex: none; background: var(--green); color: #fff; text-align: center; padding: 14px 0; }
.tk .d small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; } .tk .d b { display: block; font: 700 40px/1.08 var(--head); }
.tk .t { padding: 12px 58px 12px 16px; align-self: center; min-width: 0; } .tk .t b { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; }
.tk .t small, .tk .t s { display: block; color: var(--ink-3); font-size: 14.5px; }
.tk.off { border-color: #8a8d93; } .tk.off .d { background: #8a8d93; } .tk.off .t b { text-decoration: line-through; color: #8a8d93; }
.card.vis { padding: 8px 16px 14px; }
.whor { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 17px; line-height: 1.35; } .whor img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; }
.whor span { display: block; color: var(--ink-3); font-size: 16px; }
.tail { display: flex; justify-content: space-between; gap: 14px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; line-height: 1.45; }
.tail b { color: var(--ink); font-size: 17px; white-space: nowrap; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 4px 0 14px; } .acts .btn { display: inline-block; padding: 13px 20px; background: var(--green); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.acts .lnk { color: var(--green); font-weight: 700; font-size: 16px; } .acts button.lnk { border: 0; background: none; padding: 0; text-decoration: underline; }
.latebox { background: var(--tint-2, #eef1f6); border-left: 4px solid var(--green); padding: 12px 14px; margin: 0 0 14px; font-size: 15.5px; line-height: 1.45; }
/* on a computer, Back sits in the page above the content, not in the header (the owner's pick, 2026-10-06, option 3) */
@media (min-width: 760px) {
  html.wide .top { position: relative; }
  /* a button with an outline, in line with the content's left edge (owner 2026-11-15: "not obvious enough and out of line") */
  html.wide .top .back { position: absolute; left: max(28px, calc((100vw - 1000px) / 2)); top: 100%; margin: 14px 0 0; padding: 8px 16px 8px 12px; gap: 6px;
                         border: 1.5px solid var(--green); background: #fff; color: var(--green); opacity: 1; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
  html.wide .top .back:hover { background: var(--green); color: #fff; }
  html.wide .top:has(.back) + .body { padding-top: 66px; }
}
/* the returning customer: the way in, and his details on the home screen */
.minein { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: var(--tint-2, #eef1f6); border: 0; border-left: 4px solid var(--green); padding: 12px 14px; margin: 0 0 16px; font-size: 16px; }
.minein b { color: var(--green); text-decoration: underline; white-space: nowrap; }
.you { background: #fff; border: 1.5px solid var(--line); padding: 12px 16px; margin: 0 0 12px; font-size: 16px; }
.you .yrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .you .yrow small { display: block; color: var(--ink-3); font-size: 14.5px; }
.you .yl { display: block; padding: 10px 0 0; text-decoration: underline; }
.card.past { padding: 4px 16px 6px; } .past div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; } .past div:first-child { border-top: 0; } .past .yl { padding: 8px 0 6px; }
.past small { display: block; color: var(--ink-3); font-size: 14px; } .past b { white-space: nowrap; }
/* a visit at one of the other shops: a soft tag in their green (the owner's pick, 2026-10-06) */
.past .shop { display: inline-block; background: #e3ede7; color: #1a3a2a; font-size: 12px; font-weight: 700; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }
/* the loading bar: a thin green line sliding along the very top while a request is out (owner 2026-10-06) */
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; overflow: hidden; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .15s; }
body.busy .loadbar { opacity: 1; }
.loadbar i { display: block; height: 100%; width: 35%; background: #39b36d; animation: loadslide .9s infinite ease-in-out; }
@keyframes loadslide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
/* the veil: the screen dims, a spinner and a word, while the page waits on the server (the owner's pick, 2026-10-06) */
#veil { position: fixed; inset: 0; z-index: 30; background: rgba(244,243,239,.72); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s; }
#veil.on { opacity: 1; pointer-events: auto; }
#veil i { width: 36px; height: 36px; border: 4px solid #d9d7d0; border-top-color: var(--green); border-radius: 50%; animation: veilspin .8s infinite linear; }
@keyframes veilspin { to { transform: rotate(360deg); } }
/* the front door (BOOK_SHOPS=1): one card per shop, its colour down the edge; and the Change shop chips on the home screen */
.shopcard { display: block; background: #fff; border: 1.5px solid var(--line); border-left: 6px solid var(--green); padding: 16px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
.shopcard b { display: block; font-size: 18px; } .shopcard small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
/* "Our shops", last on the home screen (owner 2026-10-11): this shop a full-colour card marked You are here, the others plain */
.shops .shop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.shops .shop .t { flex: 1; min-width: 0; } .shops .shop b { display: block; font-size: 17px; } .shops .shop small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.shops .shop .dot { width: 12px; height: 12px; flex: none; } .shops .shop i { font-style: normal; color: var(--ink-3); font-size: 22px; line-height: 1; }
.shops .shop.on { color: #fff; border-color: transparent; } .shops .shop.on small { color: #fff; opacity: .85; }
.hereTag { flex: none; background: #fff; color: var(--ink); padding: 4px 8px; font: 800 11px Almarai, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.item.again .shop { margin: 0 4px 0 0; vertical-align: 0; }
/* a shop with price tiers (Tanglin): "from" over a menu price until the barber is chosen; his price on the barber screen */
.item .p .from { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); line-height: 1.2; }
.hint.lost { background: #f1efe8; color: var(--ink-2); }   /* a time where a second barber does a part: the saving is gone */
/* a shop with price tiers (Tanglin): the barber card is a row (tick, photo, name and tagline, price) with the bio under it, full width */
.item.bc { display: block; } .bc .row { display: flex; align-items: center; gap: 12px; } .bc .row .ph { width: 72px; height: 72px; }
.bc .row .t { flex: 1; min-width: 0; } .bc .row .p { flex: none; } .bc .tagline { margin-bottom: 0; }
.bc .bio { display: block; margin-top: 10px; color: var(--ink-3); font-size: 14.5px; line-height: 1.45; } .bc .only { display: table; margin-top: 7px; }
.welline { display: block; margin-top: 10px; padding: 9px 12px; border-left: 3px solid var(--green); background: var(--tint, #e4e8f0); color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.45; } .welline strong { font-weight: 800; }      /* Wilson's welcome in his card (owner 2026-11-16) */
/* barber first (owner 2026-10-11): the way in on Choose your service */
.byb { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1.5px solid var(--line); padding: 12px 14px; margin: 0 0 16px; text-align: left; }
.byb .faces { display: flex; flex: none; } .byb .faces img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; } .byb .faces img:first-child { margin-left: 0; }
.byb .t { flex: 1; min-width: 0; } .byb b { display: block; font-size: 16px; } .byb small { display: block; color: var(--ink-3); font-size: 13.5px; } .byb i { font-style: normal; color: var(--ink-3); font-size: 22px; line-height: 1; }
/* the code box on Check your booking (owner 2026-10-12, option A) */
.codecard { margin-top: 12px; } .codeq { font-size: 15px; } .codeq .link, .okline .link { padding: 0 0 0 8px; font-size: 14px; }
.codebox { display: flex; gap: 8px; } .codebox input { flex: 1; min-width: 0; border: 1.5px solid var(--line); padding: 12px; font: inherit; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.codebox button { border: 0; background: var(--green); color: #fff; font: inherit; font-weight: 700; padding: 0 16px; }
.okline { font-size: 14.5px; color: var(--save); font-weight: 700; } .badline { margin-top: 8px; font-size: 14px; color: #9a2f22; font-weight: 700; }
/* the welcome tick (owner 2026-11-15: Wilson's customers from Rogue & Beyond) */
.welcard { margin-top: 12px; } .welcard .tickrow { display: flex; gap: 12px; align-items: flex-start; width: 100%; background: none; border: 0; padding: 0; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.welcard .tbox { flex: none; width: 24px; height: 24px; border: 2px solid var(--green); display: grid; place-items: center; font-weight: 800; color: #fff; margin-top: 1px; }
.welcard .tickrow.on .tbox { background: var(--green); } .welcard .t b { display: block; font-size: 15.5px; } .welcard .t small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.creditbox { background: var(--save-bg); border: 1.5px solid var(--save); padding: 12px 14px; margin: 0 0 14px; }
.creditbox b { display: block; font-size: 17px; color: var(--save); }
.creditbox p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }

/* A barber's rank as a gold seal, a gold ring round the photo (owner 2026-11-15: Senior Barber "more obvious") */
.rankpill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin: 4px 0 5px; padding: 4px 11px 3px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #d6b56d, #a9853f); color: #20170a; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 2px 6px rgba(120,90,30,.25); }
.rankpill i { font-style: normal; font-size: 11px; line-height: 1; }
.item.ranked .ph { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #b8964f; }
.item.ranked { border-color: #d9c79c; background: linear-gradient(180deg, #fffdf6, var(--card)); }
/* the choice is obvious (owner 2026-11-15): a clear ring to tap, the card lifts under the pointer, and the chosen card is filled */
.item .tick { width: 26px; height: 26px; border: 2px solid #8f8c82; }
.item.on { background: var(--tint, #e9eef5); }
.item.on .tick { transform: scale(1.08); }
@media (hover: hover) { .item:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(0,0,0,.08); } .item:hover .tick { border-color: var(--green); } }
.bc .row .pickgo { flex: none; font-style: normal; font-size: 26px; line-height: 1; color: var(--green); opacity: .55; padding-left: 4px; }
.item.bc:hover .pickgo { opacity: 1; }

/* The footer under the booking page (owner 2026-11-15, for Google): the shop, its hours and number, and behind one line the barbers,
   services and prices. Below the fold; book.js never touches it. */
.about { width: min(480px, 100%); margin: 0 auto; padding: 28px 20px 44px; background: var(--paper); color: var(--ink-2); font-size: 14px; line-height: 1.55; border-top: 1px solid var(--line); }
html.wide .about { width: 100%; padding: 32px max(28px, calc((100vw - 1000px) / 2)) 48px; }
.about h2 { font: var(--head-w) 16px/1.3 var(--head); color: var(--ink); margin: 0 0 4px; }
.about h2 ~ h2 { margin-top: 18px; }
.about p { margin: 0 0 6px; }
.about a { color: var(--green); }
.about details { margin-top: 14px; }
.about summary { cursor: pointer; color: var(--green); font-weight: 700; }
.about h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px; }
.about ul { list-style: none; margin: 0; padding: 0; }
.about li { margin: 0 0 8px; }
.about li b { color: var(--ink); }
/* "With Davin" carries his photo, as on the barber cards (owner 2026-11-15); a ranked barber keeps the gold ring */
.with .ph { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #ddd; margin: -4px 4px -4px -2px; }
.with.ranked .ph { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #b8964f; }
/* The front door: each shop with its shopfront photo (owner 2026-11-15: "make it more interesting with photos"). Stacked on a
   phone, three across on a wide screen. The shop's colour runs under the photo. */
.shopcard { position: relative; }
.shopcard .sc { display: block; padding-right: 22px; }
.shopcard .pickgo { position: absolute; right: 14px; bottom: 18px; font-style: normal; font-size: 24px; line-height: 1; color: var(--ink-3); }
.shopcard.pic { padding: 0; border-left: 1.5px solid var(--line); overflow: hidden; border-radius: var(--r); transition: transform .15s, box-shadow .15s; }
.shopcard.pic img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 5px solid var(--sc, var(--green)); }
.shopcard.pic .sc { padding: 14px 40px 16px 16px; }
.shopcard.pic:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
@media (min-width: 760px) {                     /* html.wide is set on every screen; the wide layout itself starts at 760px */
  html.wide .shoppics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  html.wide .shoppics .shopcard { margin: 0; }
  html.wide .body.doors { grid-column: main-start / side-end; padding-right: 0; }      /* no summary box here, so the shops use its width too */
}
/* where the reminder goes, for an email sign-in with a number on file (owner 2026-11-19, mock static/remind.mock.html) */
.rset { transition: box-shadow .3s; } .rset.flash { box-shadow: 0 0 0 3px rgba(18,56,44,.25); }
.ropt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.ropt.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #e3efe7; }
.ropt .ric { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eef1ee; color: var(--green); }
.ropt .ric.wa { background: #e3f5ea; color: #128c4a; } .ropt.on .ric { background: #fff; }
.ropt .t { flex: 1; min-width: 0; } .ropt .t b { display: block; font-size: 16.5px; font-weight: 700; } .ropt .t small { display: block; margin-top: 1px; color: var(--ink-3); font-size: 14.5px; }
.ropt .rtick { flex: none; width: 24px; height: 24px; border: 1.5px solid #c9c8c2; border-radius: 50%; display: grid; place-items: center; color: transparent; font-size: 14px; font-weight: 800; }
.ropt.on .rtick { background: var(--green); border-color: var(--green); color: #fff; }
.ropt.rnew { flex-wrap: wrap; }
.rnum { flex-basis: calc(100% - 50px); max-width: calc(100% - 50px); display: flex; align-items: center; height: 52px; margin: 12px 0 2px 50px; border: 1.5px solid var(--line); background: #fff; cursor: text; }
.rnum:focus-within { border-color: var(--green); }
.rnum span { padding: 0 4px 0 14px; font-size: 18px; font-weight: 700; color: var(--ink-3); }
.rnum input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 19px; letter-spacing: .02em; }
.rnum i { padding: 0 14px; font-style: normal; font-weight: 800; color: var(--save); opacity: 0; transition: opacity .15s; } .rnum.ok i { opacity: 1; }
.rhint { flex-basis: calc(100% - 50px); margin: 6px 0 0 50px; font-size: 13.5px; color: var(--ink-3); } .rhint.bad { color: #b03a2e; }
.rnum.solo { flex-basis: auto; max-width: none; margin: 0; height: 56px; border-radius: var(--r); }       /* the mobile box of an email sign-in (owner 2026-11-22) */
.rnum b { padding: 0 4px 0 16px; font-size: 19px; font-weight: 700; color: var(--ink-3); } .rnum b[hidden] { display: none; }
.rnum.solo input { padding-left: 4px; } .rnum.solo b[hidden] + input { padding-left: 16px; }
.rhint.solo { margin: 6px 2px 0; } #rset.flash { box-shadow: 0 0 0 3px rgba(18,56,44,.25); }
.rneed { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: none; font-size: 14.5px; color: var(--ink-2); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.rneed[hidden], .rhint[hidden] { display: none; }

/* Christmas gift (owner 2026-11-19, mock static/xmasbook.mock.html): a customer on the gift list, signed in. The resting state is the
   OPENED present; .xg-new plays the opening once a day (book.js xgFresh). */
.xg-card { position: relative; overflow: hidden; margin: 0 0 14px; padding: 16px 16px 16px 14px; background: linear-gradient(135deg, #a50e26, #c8102e 55%, #d8233b); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,210,63,.55); }
.xg-row { position: relative; z-index: 2; display: flex; gap: 12px; align-items: center; }
.xg-row > div { padding-right: 26px; }
.xg-card b { display: block; font: 700 17px/1.3 var(--head); }
.xg-card p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.4; opacity: .95; }
.xg-ic { flex: none; width: 62px; height: 62px; padding: 7px; border-radius: 50%; background: #fff7e6; box-shadow: 0 0 0 2px rgba(255,210,63,.8); animation: xgWig 3.2s ease-in-out 1s infinite; transform-origin: 50% 90%; }
.xg-ic svg { display: block; width: 100%; height: 100%; }
@keyframes xgWig { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-10deg); } 86% { transform: rotate(9deg); } 90% { transform: rotate(-6deg); } 94% { transform: rotate(3deg); } }
.xg-sprig { position: absolute; right: -8px; top: -10px; z-index: 3; width: 52px; height: 36px; }
.xg-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.xg-dots i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffe27a; opacity: 0; animation: xgTwk 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes xgTwk { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.4); } }

.xg-surprise { position: relative; text-align: center; padding: 4px 10px 16px; }
.xg-stage { position: relative; width: 180px; height: 150px; margin: 0 auto; }
.xg-glow { position: absolute; left: 50%; top: 58%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.55), rgba(255,210,63,0) 65%); opacity: .55; }
.xg-stage .xg-present { position: absolute; left: 50%; bottom: 0; width: 130px; height: 130px; margin-left: -65px; overflow: visible; }
.xg-present .xg-body, .xg-present .xg-lid { transform-box: fill-box; }
.xg-stage .xg-lid { transform-origin: 0% 100%; transform: translate(-46px, -22px) rotate(-34deg); }
.xg-note { position: absolute; left: 50%; top: 52px; z-index: 1; width: 86px; margin-left: -43px; padding: 7px 4px; background: #fff; color: #c8102e; font: 700 11.5px/1.2 var(--head); box-shadow: 0 3px 10px rgba(0,0,0,.18); transform: translateY(-34px); }
.xg-spark { position: absolute; left: 50%; top: 62px; width: 10px; height: 10px; margin: -5px; opacity: 0; background: #ffd23f; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.xg-surprise h2 { margin: 10px 0 6px; font: 700 21px/1.25 var(--head); color: #c8102e; text-transform: none; letter-spacing: normal; }
.xg-surprise p { margin: 0 auto; max-width: 300px; font-size: 15px; color: var(--ink-2); }
.xg-new .xg-present { animation: xgPop .55s cubic-bezier(.2,1.4,.4,1) .2s both; }
.xg-new .xg-body { transform-origin: 50% 100%; animation: xgShake .45s ease-in-out .85s 2; }
.xg-new .xg-lid { animation: xgLid .75s cubic-bezier(.3,1.3,.5,1) 1.75s both; }
.xg-new .xg-glow { animation: xgGlow 1.2s ease-out 1.7s both; }
.xg-new .xg-spark { animation: xgBurst 1s ease-out 1.8s both; }
.xg-new .xg-note { animation: xgRise .7s cubic-bezier(.2,1.2,.4,1) 2.1s both; }
.xg-new h2, .xg-new p { animation: xgFade .6s ease-out 2.4s both; }
@keyframes xgPop { from { transform: translateY(60px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes xgShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes xgLid { from { transform: none; } to { transform: translate(-46px, -22px) rotate(-34deg); } }
@keyframes xgGlow { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: .55; transform: scale(1); } }
@keyframes xgBurst { 0% { opacity: 0; transform: translate(0,0) scale(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.2) rotate(140deg); } }
@keyframes xgRise { from { opacity: 0; transform: translateY(40px) scale(.6); } to { opacity: 1; transform: translateY(-34px); } }
@keyframes xgFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xg-new *, .xg-new, .xg-ic, .xg-dots i { animation: none !important; } }
