/* THE SITE'S OWN PICKERS' LOOK (16 Oct 2026, the operator: "form dropdown and date pickers need to be customised in line
   with theme, across the whole site"; assets/ws-pop.js, ws-dropdown.js, ws-datepick.js; SHARE-CLOUD.md 75). One family:
   the button that stands in for a field, and the panel it opens (a list, or a month). The button wears the field's own
   classes (.ws-inp, .sc-inp), so its size, focus and refusal looks are the field's; this sheet adds only what a button
   needs to read as a field (words from the left, cut with an ellipsis, the prompt in the small-words colour, the chevron
   on a date) and the panel. Every colour, edge and corner of the panel is a --wsp- token, set below by where the button
   sits (the website's tone, the calculator, the gallery's box) and copied onto the panel as it opens, so the panel is
   always the ground it opens from and Website settings' Colours (/_theme.css) recolour it as they recolour the page.
   The website's and the calculator's corners are square (the operator, 10 Oct 2026: "No rounded corners on website:
   designing rule"), and the gallery's box since 2 Nov 2026 ("go A"). Never bold. */

/* ---------------- the field kept underneath (ws-pop.js keep repeats it through the CSSOM) ---------------- */

.ws-native {
  position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important;
  overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}

/* WHILE A PICKER HAS THE FOCUS the page holds still, as it did for the focused field (site.js counts it as one, so the
   snap is held): Chromium's scroll anchoring otherwise moved the page 42 px as Check my date's estimate was drawn under a
   picked package (Edge, 1440 by 900), where a focused select had kept it put (the body's, which Chromium reads for the
   page; the root's own does nothing there) */
body:has(.ws-dd-btn:focus, .ws-dp-btn:focus, [data-ws-pick]) { overflow-anchor: none; }

/* ---------------- each place's tokens ---------------- */

/* the website, every ground: the tone's own colours (site.css section 3), so the page is white with its hairline, the band
   its beige and the dark ground its brown with the yellow focus; the picked day the moon yellow, a picked row its soft wash */
.ws .ws-dd-btn, .ws .ws-dp-btn, .ws .ws-tp-in {
  --wsp-bg: var(--ws-bg); --wsp-fg: var(--ws-fg); --wsp-fg-2: var(--ws-fg-2); --wsp-line: var(--ws-line); --wsp-edge: var(--ws-edge);
  --wsp-hov: var(--ws-hov); --wsp-focus: var(--ws-focus); --wsp-pick: var(--ws-c-tertiary); --wsp-pick-fg: var(--ws-c-on-tertiary);
  --wsp-soft: color-mix(in srgb, var(--ws-c-tertiary) 20%, var(--ws-bg)); --wsp-mark: var(--ws-c-tertiary); --wsp-off: var(--ws-edge);
  --wsp-few: var(--ws-fg-2); --wsp-r: 0; --wsp-r-row: 0; --wsp-shadow: none;
}
/* the price calculator: its own beige sheet's tokens (site-calc.css), its white field and its yellow */
.sc .ws-dd-btn, .sc .ws-dp-btn, .sc .ws-tp-in {
  --wsp-bg: var(--sc-white); --wsp-fg: var(--sc-ink); --wsp-fg-2: var(--sc-muted); --wsp-line: var(--sc-faint); --wsp-edge: var(--sc-faint);
  --wsp-hov: color-mix(in srgb, var(--sc-ink) 6%, var(--sc-white)); --wsp-focus: var(--sc-ink); --wsp-pick: var(--sc-yellow);
  --wsp-pick-fg: var(--sc-ink); --wsp-soft: var(--sc-yellow-soft); --wsp-mark: var(--sc-yellow); --wsp-off: var(--sc-off);
  --wsp-few: var(--sc-few); --wsp-r: 0; --wsp-r-row: 0; --wsp-shadow: var(--sc-sh);
}
/* the gallery's take-down box: the gallery's own theme (gallery.css, its --gl- tokens), square since 2 Nov 2026 (the
   operator: "also redesign the gallery to match to website", then "go A"), the picked row the calculator's yellow */
.gl-ask .ws-dd-btn, .gl-ask .ws-dp-btn {
  --wsp-bg: var(--gl-card); --wsp-fg: var(--gl-fg); --wsp-fg-2: var(--gl-sub); --wsp-line: var(--gl-line);
  --wsp-edge: var(--gl-edge); --wsp-hov: var(--gl-hov); --wsp-focus: var(--gl-fg);
  --wsp-pick: var(--gl-y); --wsp-pick-fg: var(--gl-on-y); --wsp-soft: var(--gl-ysoft); --wsp-mark: var(--gl-y);
  --wsp-off: var(--gl-edge); --wsp-few: var(--gl-sub); --wsp-r: 0; --wsp-r-row: 0;
  --wsp-shadow: var(--gl-lift);
}

/* ---------------- the button ---------------- */

.ws-dd-btn, .ws-dp-btn { text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.ws-dd-val { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
/* the calculator's STATIC STEPS clip nothing: an answer longer than its field (A friend or referral, where a phone on
   its side leaves the field 140 px) goes to a second line inside it, the field's height kept */
.sc-sel > .ws-dd-btn > .ws-dd-val { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; overflow-wrap: anywhere; }
/* a prompt is not an answer: "Choose" in the small-words colour, as an empty box's placeholder is */
.ws-dd-ph > .ws-dd-val { color: var(--wsp-fg-2); }
/* open, the field keeps its focused look while the focus is in its list */
.ws-inp.ws-dd-btn[aria-expanded="true"], .ws-inp.ws-dp-btn[aria-expanded="true"] { border-color: var(--ws-fg); box-shadow: 0 0 0 1px var(--ws-fg); }
.sc-inp.ws-dd-btn[aria-expanded="true"] { box-shadow: var(--sc-sel); }
/* the focus given back after a press or a tap draws no ring (Safari rings any focus a script moves after a tap) */
.ws-dd-btn[data-ws-quiet]:focus, .ws-dp-btn[data-ws-quiet]:focus { outline: none; }
/* the date, which has no wrapper: the select's own chevron drawn on the button, and the select's room for it */
.ws-dp-btn { position: relative; padding-right: 44px; }
.ws-dp-btn::after {
  content: ""; position: absolute; right: 19px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
@media (max-width: 399px) {
  .ws-dp-btn { padding-right: 32px; }
  .ws-dp-btn::after { right: 14px; }
}
/* the gallery's reason: the box its select wore (gallery.css .gl-asksel select), its own chevron beside it */
.gl-asksel .ws-dd-btn {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 40px 0 12px; border-radius: 0; font: inherit; font-size: .88rem;
  background: var(--gl-field); color: var(--gl-fg); border: 1px solid var(--gl-edge);
}
.gl-asksel .ws-dd-btn.ws-dd-ph > .ws-dd-val { color: var(--gl-sub); }
.gl-asksel .ws-dd-btn:focus-visible { outline: none; border-color: var(--gl-fg); box-shadow: 0 0 0 1px var(--gl-fg); }
.gl-asksel .ws-dd-btn[aria-expanded="true"] { border-color: var(--gl-fg); box-shadow: 0 0 0 1px var(--gl-fg); }

/* ---------------- the panel ---------------- */

/* over the page (and the website's header, where only the whole window holds it), under Report a problem's button; it
   fades in over 120 ms with a 4 px rise, at once where less motion is asked for */
.ws-pick {
  position: fixed; z-index: 1000; box-sizing: border-box; display: flex; flex-direction: column; margin: 0; padding: 4px;
  overflow: hidden; background: var(--wsp-bg, #fff); color: var(--wsp-fg, #241f19); border: 1px solid var(--wsp-line, rgba(36, 31, 25, .2));
  border-radius: var(--wsp-r, 0); box-shadow: var(--wsp-shadow, none); line-height: 1.35; text-align: left;
  opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease;
}
.ws-pick.ws-pick--on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ws-pick { transform: none; transition: none; } }
.ws-pick *, .ws-pick *::before, .ws-pick *::after { box-sizing: border-box; }

/* TYPE TO FIND (9 Nov 2026; assets/ws-typepick.js): the box is the field's own, a pick's words over it in as many lines as they
   need once the box is left, the active row marked by an edge, the foot row (My club isn't listed) held under the rest */
.ws-tp { position: relative; display: block; }
.ws-tp-in { display: block; width: 100%; box-sizing: border-box; cursor: text; }
.ws-tp-show { display: none; }
.ws-tp.ws-tp-has:not(:focus-within) > .ws-tp-in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; color: transparent; -webkit-text-fill-color: transparent; }
.ws-tp.ws-tp-has:not(:focus-within) > .ws-tp-show { position: relative; z-index: 1; display: flex; align-items: center; box-sizing: border-box; width: 100%; height: auto; background: none; border-color: transparent; box-shadow: none; pointer-events: none; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; padding-top: 8px; padding-bottom: 8px; }
.ws-dd-opt.ws-tp-on { background: var(--wsp-hov); outline: 1.5px solid var(--wsp-focus); outline-offset: -1.5px; }
.ws-dd-opt.ws-tp-foot { position: sticky; bottom: 0; background: var(--wsp-bg); border-top: 1px solid var(--wsp-line); }
.ws-dd-opt.ws-tp-foot.ws-tp-on { background: var(--wsp-hov); }
/* (a phone on its side with the keyboard up leaves the list room for one row, and held there it lay over every result, the first
   match active and unseen: where two results cannot show over it, it is the list's last row, ws-typepick.js holdFoot) */
.ws-dd-list.ws-tp-loose > .ws-dd-opt.ws-tp-foot { position: static; }

/* THE LIST: a row as tall as its field, the words where the field's start (14 px in), the picked one washed and ticked */
.ws-dd-list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ws-dd-group + .ws-dd-group, .ws-dd-opt + .ws-dd-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--wsp-line); }
.ws-dd-gh { padding: 8px 10px 4px; font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--wsp-fg-2); }
.ws-dd-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--wsp-row, 44px); margin: 0; padding: 6px 10px;
  border: 0; border-radius: var(--wsp-r-row, 0); background: none; color: inherit; font: inherit; font-weight: 400; line-height: 1.35;
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ws-dd-w { flex: 1 1 auto; min-width: 0; }
.ws-dd-opt[aria-selected="true"] { background: var(--wsp-soft); }
.ws-dd-opt[aria-selected="true"]::after {
  content: ""; flex: none; width: 10px; height: 5px; margin: 0 4px 3px 0; border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
}
.ws-dd-opt[aria-disabled="true"] { color: var(--wsp-off); cursor: default; }
@media (hover: hover) {
  .ws-dd-opt:not([aria-disabled="true"]):hover { background: var(--wsp-hov); }
  .ws-dd-opt[aria-selected="true"]:hover { background: var(--wsp-soft); }
}

/* THE MONTH: the calculator's own calendar (site-calc.css A2) in the page's colours */
.ws-pick.ws-pick--date { padding: 8px 12px 12px; overflow-y: auto; overscroll-behavior: contain; }
.ws-dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.ws-dp-nav {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--wsp-r-row, 0);
  background: none; color: inherit; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ws-dp-nav:disabled { color: var(--wsp-off); cursor: default; }
.ws-dp-month { font-weight: 500; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.ws-dp-grid { display: grid; gap: 0; margin-top: 2px; }
.ws-dp-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ws-dp-dow { display: grid; place-items: center; height: 24px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--wsp-fg-2); }
.ws-dp-cell { display: grid; min-width: 0; }
/* (an empty week as tall as a full one, so every month is six weeks high: 1 Nov 2026, "make it same size") */
.ws-dp-grid > .ws-dp-row:not(.ws-dp-dows) { min-height: 44px; }
@media (min-width: 1024px) and (pointer: fine) { .ws-dp-grid > .ws-dp-row:not(.ws-dp-dows) { min-height: 40px; } }
.ws-dp-day {
  position: relative; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--wsp-r-row, 0); background: none;
  color: inherit; font: inherit; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums tabular-nums; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1024px) and (pointer: fine) { .ws-dp-day { min-height: 40px; } }
.ws-dp-today { box-shadow: inset 0 0 0 1px var(--wsp-fg); }
/* (a 2 px underline in the day's own colour, as the price calculator's calendar: 2 Nov 2026, no yellow underline anywhere) */
.ws-dp-busy { box-shadow: inset 0 -2px 0 currentColor; }
.ws-dp-today.ws-dp-busy { box-shadow: inset 0 0 0 1px var(--wsp-fg), inset 0 -2px 0 currentColor; }
.ws-dp-few::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; background: var(--wsp-few); }
/* LIMITED AVAILABILITY (2 Nov 2026, the operator: "just show limited availability (dont say spots filling up unless theres
   an actual booking on the date), different colour to the other ones"): the same corner mark in the yellow 42% over the
   words' colour, the calculator's own olive on its white (4.3:1), 3.1:1 on the band's beige, and a light yellow on the dark */
.ws-dp-hours::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; background: color-mix(in srgb, var(--wsp-mark) 42%, var(--wsp-fg)); }
.ws-dp-off { color: var(--wsp-off); cursor: default; }
.ws-dp-full { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ws-dp-day.ws-dp-on { background: var(--wsp-pick); color: var(--wsp-pick-fg); box-shadow: none; }
.ws-dp-on.ws-dp-few::after { background: var(--wsp-pick-fg); }
@media (hover: hover) {
  .ws-dp-day:not(.ws-dp-off):not(.ws-dp-on):hover, .ws-dp-nav:not(:disabled):hover { background: var(--wsp-hov); }
}
.ws-dp-key { margin: 8px 2px 0; font-size: 12px; line-height: 1.45; color: var(--wsp-fg-2); }
/* a short window (a phone on its side): tighter days and no key, before anything scrolls */
.ws-pick--tight .ws-dp-day, .ws-pick--tight .ws-dp-grid > .ws-dp-row:not(.ws-dp-dows) { min-height: 32px; }
.ws-pick--tight .ws-dp-head { min-height: 36px; }
.ws-pick--tight .ws-dp-nav { height: 36px; }
.ws-pick--tight .ws-dp-dow { height: 18px; }
.ws-pick--tight .ws-dp-key { display: none; }

/* the keys' ring, inside the row it marks (the site's own 2 px, in the ground's focus colour); none after a press or a
   tap, where a script moved the focus */
.ws-pick .ws-dd-opt:focus, .ws-pick .ws-dp-day:focus, .ws-pick .ws-dp-nav:focus { outline: none; }
.ws-pick .ws-dd-opt:focus-visible, .ws-pick .ws-dp-day:focus-visible, .ws-pick .ws-dp-nav:focus-visible { outline: 2px solid var(--wsp-focus); outline-offset: -2px; }
.ws-pick.ws-pick--quiet .ws-dd-opt:focus-visible, .ws-pick.ws-pick--quiet .ws-dp-day:focus-visible, .ws-pick.ws-pick--quiet .ws-dp-nav:focus-visible { outline: none; }
