/* civis-bar.css — barra di prenotazione Civis v2.
 * Geometria su scala Material 3 (campi 56 px, raggi 12/16, stato 8%). Codice nostro.
 * Colori e font: quelli del gruppo Civis, uguali su tutti i siti (variabili --cb-*): Inter, neutri caldi, rosa cipria. */

.cb, .cb-layer {
  /* colori e font del gruppo Civis (uguali su tutti i siti, Pietro 03/12/2026): Inter, neutri caldi, rosa cipria */
  --cb-font: Inter, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cb-surface: oklch(97% .008 80);      /* card */
  --cb-surface-low: oklch(92% .022 240); /* riga sotto, telefono: carta da zucchero chiara */
  --cb-lowest: oklch(99.3% .004 80);     /* pannelli */
  --cb-high: oklch(92% .022 240);        /* contatori, bordi interni */
  --cb-highest: oklch(85% .018 245);     /* divisori */
  --cb-dim: oklch(88% .028 240);         /* maniglia */
  --cb-on: oklch(22% .028 252);
  --cb-on-var: oklch(42% .030 250);
  --cb-outline: oklch(52% .025 250);
  --cb-outline-var: oklch(85% .018 245);
  --cb-ph: oklch(50% .025 250);
  --cb-primary: oklch(55% .12 40);       /* palette 60-30-10 di gruppo (Pietro 03/12): avorio, carta da zucchero, accento terracotta */
  --cb-on-primary: oklch(99.5% .003 80); /* testo bianco sulla terracotta: 5:1 */
  --cb-sec: oklch(93% .03 45);           /* banda dell'intervallo */
  --cb-on-sec: oklch(22% .028 252);
  --cb-accent: oklch(48% .12 38);
  --cb-error: oklch(52% .19 27);
  --cb-scrim: rgb(0 0 0 / .4);
  --cb-shadow: 0 1px 2px rgb(17 27 39 / .06), 0 10px 28px -6px rgb(17 27 39 / .16); /* ombra leggera sotto la card; in scuro più scura (Pietro 03/12: «anche in dark mode») */
  --cb-soft: 1;                          /* testi secondari pieni: contrasto AA */
  --cb-ease: cubic-bezier(.4, 0, .2, 1);
  --cb-ease-sheet: cubic-bezier(.32, .72, 0, 1);
  font-family: var(--cb-font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--cb-on);
  text-align: start;
  -webkit-tap-highlight-color: transparent;
}
:where(.cb, .cb-layer) *, :where(.cb, .cb-layer) *::before, :where(.cb, .cb-layer) *::after { box-sizing: border-box; }
.cb :where(button), .cb-layer :where(button) {
  font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; margin: 0; padding: 0;
  cursor: pointer; text-align: inherit; -webkit-appearance: none; appearance: none;
}
.cb :focus-visible, .cb-layer :focus-visible { outline: 2px solid var(--cb-accent); outline-offset: 2px; }
.cb-layer .cb-pop:focus, .cb-layer .cb-sheet:focus { outline: none; }
.cb-layer .cb-day:focus-visible { outline: none; }
.cb-layer .cb-day:focus-visible .cb-dot { box-shadow: 0 0 0 2px var(--cb-lowest), 0 0 0 4px var(--cb-accent); }
:where(.cb, .cb-layer) svg { display: block; flex: none; }
.cb :where(p), .cb-layer :where(p) { margin: 0; font: inherit; color: inherit; }

/* ---------- card ---------- */
.cb { container-type: inline-size; width: 100%; }
.cb-card { max-width: 992px; margin-inline: auto; border-radius: 16px; box-shadow: var(--cb-shadow); }
.cb-top {
  background: var(--cb-surface);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--cb-highest);
  border-bottom: 0;
  overflow: hidden;
}
.cb-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-content: space-between; gap: 8px; padding: 16px; }
.cb-dates { display: none; gap: 8px; min-width: 0; }
.cb-sep { height: 1px; background: var(--cb-highest); }

/* campo con etichetta che sale (scala .75), come i campi Material */
.cb-field {
  position: relative; display: flex; width: 100%; min-width: 0; height: 56px; border-radius: 12px;
  color: var(--cb-on-var); cursor: pointer; isolation: isolate;
}
.cb-field::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in oklab, var(--cb-on) 8%, transparent);
  opacity: 0; transition: opacity .15s var(--cb-ease);
}
.cb-ico { display: flex; flex: none; height: 34px; align-self: center; }
.cb-ico svg { width: 22px; height: 22px; margin: 0 16px 12px; }
.cb-ico .cb-i-a { fill: var(--cb-outline); }
.cb-ico .cb-i-b { fill: color-mix(in oklab, var(--cb-outline) 40%, var(--cb-surface)); transition: fill .15s var(--cb-ease); }
.cb-txt { position: relative; flex: 1; min-width: 0; height: 54px; }
.cb-lab {
  position: absolute; inset: 0 auto auto 0; max-width: calc(100% - 2rem); padding-right: 16px; pointer-events: none;
}
.cb-lab > span {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top;
  transform-origin: 0 0; translate: 0 6px; scale: .75; transition: color .15s cubic-bezier(0, 0, .2, 1);
}
.cb-val {
  display: block; margin-right: 8px; padding: 22px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: clip; color: var(--cb-on);
}
.cb-val.is-ph { color: var(--cb-ph); }

/* pulsante Cerca */
.cb-go {
  position: relative; display: grid; place-items: center; height: 56px; padding: 0 32px; border-radius: 9999px;
  background: var(--cb-primary); color: var(--cb-on-primary); font-weight: 500; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: background-color .15s var(--cb-ease);
}
.cb-go::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cb-on-primary);
  opacity: 0; transition: opacity .15s var(--cb-ease);
}
.cb-go:active::before { opacity: .12; }

/* riga sotto: date flessibili e altre opzioni */
.cb-bot {
  display: flex; align-items: center; gap: 0 4px; padding: 16px 12px; font-size: 12px; line-height: 16px;
  color: color-mix(in oklab, var(--cb-on-var) calc(var(--cb-soft) * 100%), transparent);
  background: var(--cb-surface-low); border: 1px solid var(--cb-highest); border-radius: 0 0 16px 16px; margin-top: -1px;
}
.cb-flex, .cb-more {
  position: relative; display: none; align-items: center; gap: 4px; height: 32px; margin: -6px 0; border-radius: 9999px; isolation: isolate;
}
.cb-flex { padding: 0 16px; }
.cb-more { display: flex; justify-content: center; width: 32px; margin: -6px 0 -6px auto; }
.cb-flex::before, .cb-more::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in oklab, var(--cb-on) 8%, transparent); opacity: 0; transition: opacity .15s var(--cb-ease);
}
.cb-more[aria-expanded="true"]::before { opacity: 1; }
.cb-flex svg { width: 14px; height: 14px; }
/* area di tocco di almeno 44 px sui bottoni piccoli, senza cambiare il disegno */
.cb-more::after, .cb-nav::after, .cb-step button::after { content: ""; position: absolute; inset: -6px; }
.cb--nobot .cb-bot { display: none; }
.cb--nobot .cb-top { border-radius: 16px; border-bottom: 1px solid var(--cb-highest); }
.cb-more svg { width: 16px; height: 16px; }

/* desktop: la card è larga almeno 800 px */
@container (min-width: 800px) {
  .cb-top { border: 0; }
  .cb-grid { grid-template-columns: 3fr auto 2fr auto; }
  .cb-dates { display: flex; }
  .cb-dates .cb-field { flex: 1 1 0; }
  .cb-range { display: none; }
  .cb-sep, .cb-vr { width: 1px; height: 36px; flex: none; align-self: center; background: var(--cb-highest); }
  .cb-bot { margin-top: 0; }
  .cb-bot { background: var(--cb-surface); border: 0; box-shadow: inset 0 2px 4px rgb(0 0 0 / .12); }
  .cb-flex { display: flex; }
  .cb--nobot .cb-top { border: 0; }
  /* campo ospiti scuro solo col pannello a tendina del desktop; su telefono no */
  .cb-field[data-cb="guests"][aria-expanded="true"]::before { opacity: 1; }
}

/* ---------- livello dei pannelli (fuori dalla card) ---------- */
.cb-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 100000; } /* sopra i banner dei cookie dei siti (9000) */

/* popover desktop */
.cb-pop {
  position: absolute; outline: none; border-radius: 16px; transform-origin: var(--cb-origin, 50% 0);
  transition: scale .15s var(--cb-ease), opacity .15s var(--cb-ease);
}
.cb-pop[data-starting], .cb-pop[data-ending] { scale: .9; opacity: 0; }
.cb-pop__box {
  position: relative; overflow: clip; border-radius: 16px; background: var(--cb-lowest); user-select: none; -webkit-user-select: none;
  box-shadow: 0 60px 120px rgb(0 0 0 / .07), 0 30px 60px rgb(0 0 0 / .06), 0 15px 30px rgb(0 0 0 / .05),
    0 7.5px 15px rgb(0 0 0 / .04), 0 3px 6px rgb(0 0 0 / .03), 0 0 0 1px color-mix(in oklab, var(--cb-highest) 50%, transparent);
}
.cb-arrow { position: absolute; top: -7px; z-index: 1; width: 20px; height: 10px; }
.cb-arrow .cb-arrow-f { fill: var(--cb-lowest); }
.cb-arrow .cb-arrow-s { fill: none; stroke: color-mix(in oklab, var(--cb-highest) 50%, transparent); stroke-width: 1; }

/* calendario desktop */
.cb-cal { width: 760px; }
.cb-strip-wrap { padding: 16px 16px 0; }
.cb-strip { display: flex; border: 1px solid var(--cb-highest); border-radius: 12px; background: var(--cb-surface); overflow: hidden; }
.cb-strip-in {
  display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent);
}
.cb-strip-in::-webkit-scrollbar { display: none; }
.cb-strip-in.is-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.cb-strip-in.is-l.is-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 10%); mask-image: linear-gradient(to right, transparent, #000 10%); }
.cb-strip-in.is-end:not(.is-l) { -webkit-mask-image: none; mask-image: none; }
.cb-yr { position: relative; display: flex; flex-direction: column; gap: 8px; flex: none; }
.cb-yr::after { content: ""; position: absolute; inset: 12px 0 12px auto; width: 1px; background: var(--cb-highest); }
.cb-yr:last-child::after { display: none; }
.cb-yr__l { position: sticky; left: 16px; z-index: 1; width: max-content; margin: 0 16px; padding-top: 8px; font-size: 15px; line-height: 20px; font-weight: 700; }
.cb-yr__m { display: flex; }
.cb-mo {
  position: relative; width: 56px; padding-bottom: 12px; text-align: center; font-size: 14px; line-height: 18px; font-weight: 600;
  scroll-snap-align: start; scroll-snap-stop: always; color: var(--cb-on);
}
.cb-mo::after { content: ""; position: absolute; bottom: 0; left: 50%; translate: -50%; width: 0; height: 2px; background: var(--cb-primary); transition: width .2s var(--cb-ease); }
.cb-mo.is-on { color: var(--cb-accent); }
.cb-mo.is-on::after { width: 56px; }
.cb-mo:disabled { pointer-events: none; color: color-mix(in oklab, var(--cb-on-var) 30%, transparent); }
.cb-months { position: relative; display: flex; gap: 24px; }
.cb-month { flex: none; width: 368px; padding: 0 16px; }
.cb-mtitle { height: 48px; margin-top: 16px; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; }   /* mese e anno ben visibili (03/12) */
.cb-nav {
  position: absolute; top: 24px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px;
  background: var(--cb-surface); color: var(--cb-on-var); isolation: isolate;
}
.cb-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in oklab, var(--cb-on) 8%, transparent); opacity: 0; transition: opacity .15s var(--cb-ease); }
.cb-nav svg { width: 20px; height: 20px; }
.cb-nav:disabled { cursor: default; color: color-mix(in oklab, var(--cb-on-var) 25%, transparent); }
.cb-nav--p { left: 24px; }
.cb-nav--n { right: 24px; }
.cb-wk { display: grid; grid-template-columns: repeat(7, 48px); margin-top: 16px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--cb-on-var); text-align: center; }
.cb-days { display: grid; grid-template-columns: repeat(7, 48px); grid-auto-rows: 50px; margin-top: 8px; }   /* solo le settimane del mese: sotto, lo stesso spazio dei lati */

/* giorno */
.cb-day { position: relative; height: 50px; border-block: 1px solid var(--cb-lowest); touch-action: manipulation; }
.cb-day:disabled { cursor: default; }
.cb-dot {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 48px; aspect-ratio: 1; border-radius: 9999px; font-size: 17px; line-height: 22px; font-weight: 500; color: var(--cb-on);
  transition: scale .1s var(--cb-ease);
}
.cb-day:not(:disabled):active .cb-dot { scale: .95; }
.cb-num { position: relative; line-height: 22px; }   /* numeri a 17 px (18 sul telefono): standard Civis 03/12, clienti adulti */
.cb-pr {
  display: flex; align-items: center; height: 12px; padding-top: 4px; line-height: 12px; font-size: 10px; white-space: nowrap;
  opacity: var(--cb-soft); color: color-mix(in oklab, currentColor 85%, transparent);
}
.cb-pr.is-deal { text-decoration: underline dotted; text-underline-offset: 2px; }
.cb-day:disabled .cb-dot { color: color-mix(in oklab, var(--cb-on) 38%, transparent); }
.cb-day.is-closed .cb-num { text-decoration: line-through; text-decoration-color: var(--cb-error); opacity: .8; }
.cb-day.is-in { background: var(--cb-sec); }
.cb-day.is-in .cb-dot { color: var(--cb-on-sec); }
.cb-day.is-s { background-image: linear-gradient(to left, var(--cb-sec) 0%, transparent 40%); }
.cb-day.is-e { background-image: linear-gradient(to right, var(--cb-sec) 0%, transparent 40%); }
.cb-day.is-s.is-e { background-image: none; }
.cb-day.is-s .cb-dot, .cb-day.is-e .cb-dot { background: var(--cb-primary); color: var(--cb-on-primary); box-shadow: none; }
.cb-prices-off .cb-pr { display: none; }

/* piede del calendario */
.cb-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--cb-high); }
.cb-ptog { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--cb-on-var); cursor: pointer; }
.cb-ptog b { font-weight: 500; color: var(--cb-on); }
.cb-sw {
  position: relative; flex: none; width: 28px; height: 16px; border-radius: 9999px; background: var(--cb-outline-var);
  transition: background-color .2s var(--cb-ease);
}
.cb-sw::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--cb-lowest);
  transition: translate .2s var(--cb-ease);
}
.cb-sw[aria-checked="true"] { background: var(--cb-primary); }
.cb-sw[aria-checked="true"]::after { translate: 12px 0; }
.cb-flexlink { display: flex; align-items: center; gap: 4px; flex: none; margin-block: -2px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--cb-accent); }
.cb-flexlink svg { width: 12px; height: 12px; }

/* ospiti */
.cb-gst { width: 400px; }
.cb-gst__body { padding: 16px; }
.cb-room { border: 1px solid var(--cb-high); border-radius: 12px; background: var(--cb-surface); }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 0 16px; }
.cb-row + .cb-row { border-top: 1px solid var(--cb-high); }
.cb-row__t { font-size: 16px; line-height: 22px; font-weight: 600; }   /* pannello ospiti leggibile (03/12) */
.cb-row__s { font-size: 13px; line-height: 18px; color: var(--cb-on-var); }
.cb-row > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.cb-step { display: flex; align-items: center; gap: 16px; }
.cb-step__n { min-width: 20px; font-size: 18px; line-height: 24px; font-weight: 600; text-align: center; }
.cb-step button {
  position: relative;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; background: var(--cb-high); color: var(--cb-on);
  transition: background-color .15s var(--cb-ease);
}
.cb-step button:disabled { cursor: default; background: color-mix(in oklab, var(--cb-high) 50%, transparent); color: color-mix(in oklab, var(--cb-outline-var) 75%, transparent); }
.cb-step svg { width: 18px; height: 18px; }
.cb-addroom svg { width: 16px; height: 16px; }
.cb-addroom {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 16px; padding: 0 24px;
  border: 1px dashed var(--cb-outline-var); border-radius: 12px; font-size: 14px; line-height: 20px;
}
.cb-gst__foot { display: flex; justify-content: flex-end; padding: 16px; background: var(--cb-surface); border-top: 1px solid var(--cb-highest); }
.cb-btn {
  position: relative; display: grid; place-items: center; height: 48px; padding: 0 28px; border-radius: 9999px; isolation: isolate; overflow: hidden;
  background: var(--cb-primary); color: var(--cb-on-primary); font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap;
}
.cb-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cb-on-primary); opacity: 0; transition: opacity .15s var(--cb-ease); }
.cb-btn:disabled { cursor: default; background: color-mix(in oklab, var(--cb-on) 12%, transparent); color: color-mix(in oklab, var(--cb-on) 38%, transparent); }

/* menu «altre opzioni» */
.cb-menu { min-width: 240px; padding: 8px 0; }
.cb-menu button, .cb-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 16px; font-size: 14px; line-height: 20px; color: var(--cb-on); text-decoration: none; }


/* effetti al passaggio del mouse solo dove c'è un mouse: su iPhone il giorno toccato resterebbe «in hover»
   con l'anello scuro */
@media (hover: hover) {
  .cb-field:hover::before { opacity: 1; }
  .cb-field:hover .cb-i-b { fill: color-mix(in oklab, var(--cb-outline) 60%, var(--cb-surface)); }   /* al passaggio l'icona si scurisce, non sparisce */
  .cb-go:hover::before { opacity: .08; }
  .cb-flex:hover::before, .cb-more:hover::before { opacity: 1; }
  .cb-nav:hover:not(:disabled)::before { opacity: 1; }
  .cb-day:not(:disabled):hover .cb-dot { box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--cb-primary) 55%, black); }
  .cb-step button:hover:not(:disabled) { background: color-mix(in oklab, var(--cb-high), var(--cb-on) 6%); }
  .cb-btn:hover:not(:disabled)::before { opacity: .08; }
  .cb-menu button:hover, .cb-menu a:hover { background: color-mix(in oklab, var(--cb-on) 8%, transparent); }
}

/* ---------- pannello dal basso (telefono) ---------- */
.cb-scrim {
  position: fixed; inset: 0; background: var(--cb-scrim); opacity: var(--cb-p, 1);
  transition: opacity .45s var(--cb-ease-sheet); -webkit-tap-highlight-color: transparent;
}
.cb-scrim[data-starting], .cb-scrim[data-ending] { opacity: 0; }
.cb-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; margin-inline: auto; width: 100%; max-width: var(--cb-drawer-w, 560px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; background: var(--cb-lowest); border-radius: 16px 16px 0 0; outline: none;
  translate: 0 var(--cb-y, 0px); transition: translate .45s var(--cb-ease-sheet); will-change: translate;
  user-select: none; -webkit-user-select: none;
}
.cb-sheet--full { height: calc(100dvh - 32px); }
.cb-sheet[data-starting], .cb-sheet[data-ending] { translate: 0 100%; }
.cb-sheet.is-drag, .cb-scrim.is-drag { transition: none; }
.cb-grab { flex: none; padding: 12px 0 8px; touch-action: none; cursor: grab; }
.cb-grab i { display: block; width: 48px; height: 5px; margin: 0 auto; border-radius: 9999px; background: var(--cb-dim); }
.cb-tabs { flex: none; padding: 8px 16px; border-bottom: 1px solid var(--cb-highest); touch-action: none; }
.cb-tabs__in { position: relative; display: flex; gap: 4px; width: max-content; isolation: isolate; }
.cb-tabs__in::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; width: var(--cb-tw, 120px); height: 52px; border-radius: 8px;
  background: var(--cb-primary); translate: var(--cb-tx, 0) 0; transition: translate .3s var(--cb-ease-sheet), width .3s var(--cb-ease-sheet);
}
.cb-tabs__in.is-snap::before { transition: none; }
.cb-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 120px; height: 52px; padding: 8px;
  border-radius: 8px; color: var(--cb-on); transition: color .2s var(--cb-ease);
}
.cb-tab small { font-size: 12px; line-height: 16px; opacity: var(--cb-soft); }
.cb-tab span { font-size: 14px; line-height: 20px; font-weight: 500; }
.cb-tab[aria-selected="true"] { color: var(--cb-on-primary); }
.cb-mscroll {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}
.cb-mwk {
  position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(7, 1fr); padding: 16px 16px 0;
  background: var(--cb-lowest); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--cb-on-var); text-align: center;
}
.cb-mmonth { padding: 16px; }
.cb-mmonth .cb-mtitle { margin-top: 0; }
.cb-mmonth .cb-days { grid-template-columns: repeat(7, 1fr); grid-template-rows: none; grid-auto-rows: auto; margin-top: 0; }
.cb-mmonth .cb-day { height: auto; }
.cb-mmonth .cb-dot { width: 100%; font-size: 18px; }
.cb-sfoot { flex: none; padding: 10px 16px max(16px, env(safe-area-inset-bottom)); background: var(--cb-surface); border-top: 1px solid color-mix(in oklab, var(--cb-highest) 50%, transparent); }
.cb-sfoot__r { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cb-sfoot__r .cb-ptog { flex: 1; min-width: 0; }
.cb-sfoot .cb-flexlink::after { content: ""; position: absolute; inset: -6px 0; }
.cb-sfoot .cb-flexlink { position: relative; height: 32px; margin: 0 -12px 0 0; padding: 0 12px; border-radius: 9999px; color: var(--cb-accent); }
.cb-sfoot .cb-sw { width: 32px; height: 18px; margin-top: 7px; }
.cb-sfoot .cb-sw::after { top: 2.25px; left: 2.25px; width: 13.5px; height: 13.5px; }
.cb-sfoot .cb-sw[aria-checked="true"]::after { translate: 14px 0; }
.cb-sfoot__b { display: flex; justify-content: flex-end; margin-top: 10px; }
.cb-btn--sq { border-radius: 12px; padding: 0 16px; }
.cb-sheet .cb-gst { width: 100%; display: flex; flex-direction: column; min-height: 0; }
.cb-sheet .cb-gst__body { overflow-y: auto; }
.cb-ptog p span { white-space: nowrap; }
.cb-sheet .cb-gst__foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.cb-lock, html.cb-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cb-pop, .cb-sheet, .cb-scrim { transition-duration: .01ms !important; }
}

/* ---------- temi ---------- */
/* scuro (gruppo Civis) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cb, :root:not([data-theme="light"]) .cb-layer {
    --cb-surface: oklch(21% .026 250); --cb-surface-low: oklch(25% .030 249); --cb-lowest: oklch(25% .030 249); --cb-high: oklch(25% .030 249);
    --cb-highest: oklch(36% .028 248); --cb-dim: oklch(30% .032 248); --cb-on: oklch(95% .008 90); --cb-on-var: oklch(74% .010 90);
    --cb-outline: oklch(62% .010 90); --cb-outline-var: oklch(36% .028 248); --cb-ph: oklch(64% .010 90);
    --cb-primary: oklch(55% .12 40); --cb-on-primary: oklch(99.5% .003 80); --cb-sec: oklch(32% .045 40); --cb-on-sec: oklch(95% .008 90);
    --cb-accent: oklch(76% .10 45); --cb-error: oklch(72% .15 27); --cb-scrim: rgb(0 0 0 / .55); --cb-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 14px 36px -6px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] .cb, :root[data-theme="dark"] .cb-layer {
    --cb-surface: oklch(21% .026 250); --cb-surface-low: oklch(25% .030 249); --cb-lowest: oklch(25% .030 249); --cb-high: oklch(25% .030 249);
    --cb-highest: oklch(36% .028 248); --cb-dim: oklch(30% .032 248); --cb-on: oklch(95% .008 90); --cb-on-var: oklch(74% .010 90);
    --cb-outline: oklch(62% .010 90); --cb-outline-var: oklch(36% .028 248); --cb-ph: oklch(64% .010 90);
    --cb-primary: oklch(55% .12 40); --cb-on-primary: oklch(99.5% .003 80); --cb-sec: oklch(32% .045 40); --cb-on-sec: oklch(95% .008 90);
    --cb-accent: oklch(76% .10 45); --cb-error: oklch(72% .15 27); --cb-scrim: rgb(0 0 0 / .55); --cb-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 14px 36px -6px rgb(0 0 0 / .6);
}
/* sul telefono i pulsanti + e − arrivano a 44 px */
.cb-sheet .cb-step button { width: 44px; height: 44px; }
