/* ==========================================================================
   Pagina Kart, blocco unico "Scegli il tuo kart" (richieste v4, T3 e 20/10):
   configuratore nel pannello scuro del selettore, impaginato come una scheda
   prodotto (esempio Canyon) e tutto dentro lo schermo da desktop
   (t4-config.js, montato da t4-kart-select.js dentro .t4ks__panel)
   - .t4cf             radice nel corpo del pannello (step, modulo)
   - .t4cf-step--inline step obbligatorio sempre aperto (taglie, consegna)
   - .t4cf-rows        "Accessori e servizi": righe compatte, una aperta alla volta
   - .t4cf-opt         tessera di opzione (vetro scuro, bordo azzurro quando scelta)
   - .t4cf-foot        piede fisso del pannello: totale con le voci, bottone di stato
   - .t4cf-form        modulo di preventivo (prende il posto degli step)
   Token e .t4-pill da t4-fx.css. Misure in px: la root del tema cambia valore
   con la larghezza. Movimento solo dentro (prefers-reduced-motion: no-preference).
   ========================================================================== */
.t4cf { color: #fff; font-family: var(--t4-mono); font-size: 12.5px; line-height: 1.5; }
.t4cf[hidden] { display: none; }
.t4cf *, .t4cf *::before, .t4cf *::after { box-sizing: border-box; }
.t4cf button { font-family: inherit; }
.t4cf :focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 2px; }
.t4cf a { color: var(--t4-sky); }
.t4cf__lab { color: var(--t4-sky); font-family: var(--t4-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .12em; margin: 0; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Step
   -------------------------------------------------------------------------- */
.t4cf__steps { margin-top: 12px; }
.t4cf__steps:empty, .t4cf__steps[hidden] { display: none; }
/* posto tenuto agli step mentre arrivano i dati (niente salto del pannello) */
.t4cf__steps.is-loading { min-height: 300px; }
.t4cf__wait { font-size: 11px; letter-spacing: .06em; margin: 12px 0 0; opacity: .8; }
.t4cf__wait:empty { display: none; }

/* obbligatori, sempre aperti: titolo, "Da scegliere", (i) e le opzioni */
.t4cf-step--inline { border-radius: 14px; margin-top: 10px; }
.t4cf-step--inline:first-child { margin-top: 0; }
.t4cf-step__head { align-items: center; display: flex; gap: 10px; margin-bottom: 6px; min-height: 24px; }
.t4cf-step__t { font-family: var(--t4-head); font-size: 14px; font-weight: 500; letter-spacing: -.005em; line-height: 1.1; margin: 0; text-transform: uppercase; }
.t4cf-step--inline .t4cf-step__v { flex: 0 1 auto; text-align: left; }
.t4cf-step__i { align-items: center; background: none; border: 0; color: rgba(255, 255, 255, .78); cursor: pointer; display: inline-flex; flex: 0 0 auto; font-size: 10.5px; gap: 6px; margin-left: auto; min-height: 24px; padding: 0; }
.t4cf-step__i span { text-decoration: underline; text-underline-offset: 3px; }
.t4cf-step__i svg { height: 15px; width: 15px; }
.t4cf-step__i:hover, .t4cf-step__i[aria-expanded="true"] { color: var(--t4-sky); }
.t4cf-step--inline > .t4cf-help { margin: 0 0 10px; }

/* facoltativi: "Accessori e servizi", righe compatte */
.t4cf-rows { margin-top: 12px; }
.t4cf-rows > .t4cf__lab { margin-bottom: 4px; }
.t4cf-rows .t4cf-step { border-top: 1px solid var(--t4-hair-dark); }
.t4cf-rows .t4cf-step:last-child { border-bottom: 1px solid var(--t4-hair-dark); }
.t4cf-step__h { font: inherit; margin: 0; }
.t4cf-step__b {
  align-items: center;
  background: none;
  border: 0;
  color: #fff;
  column-gap: 10px;
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) 14px;
  min-height: 34px;
  padding: 4px 0;
  text-align: left;
  width: 100%;
}
.t4cf-step__b:hover .t4cf-step__l, .t4cf-step__b[aria-expanded="true"] .t4cf-step__l { color: var(--t4-sky); }
.t4cf-step__b:focus-visible { outline-offset: -2px; }
.t4cf-step__l { font-family: var(--t4-head); font-size: 13px; font-weight: 500; letter-spacing: -.005em; line-height: 1.15; text-transform: uppercase; transition: color var(--t4-dur) var(--t4-ease); }
.t4cf-step__v { font-size: 10.5px; letter-spacing: .04em; line-height: 1.4; opacity: .75; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.t4cf-step__v:empty { display: none; }
.t4cf-step__v b { font-weight: 400; margin-left: 8px; white-space: nowrap; }
/* obbligatorio e ancora da scegliere: in azzurro, come il pallino "sei qui" */
.t4cf-step__v.is-miss { color: var(--t4-sky); opacity: 1; }
.t4cf-step__ic svg { display: block; height: 14px; transition: transform var(--t4-dur) var(--t4-ease); width: 14px; }
.t4cf-step__b[aria-expanded="true"] .t4cf-step__ic svg { transform: rotate(180deg); }
.t4cf-rows .t4cf-step__p { padding: 2px 0 14px; }
.t4cf-step__p[hidden] { display: none; }
.t4cf-step__why { font-size: 11.5px; line-height: 1.5; margin: 0 0 8px; opacity: .75; }
.t4cf-step__hint, .t4cf-step__sub { font-size: 9.5px; letter-spacing: .1em; margin: 0 0 6px; opacity: .65; text-transform: uppercase; }
.t4cf-step__sub { margin-top: 10px; }
.t4cf-step__sub:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Opzioni: tessere compatte; taglie in fila; nome e prezzo su due colonne
   -------------------------------------------------------------------------- */
.t4cf-opts { display: grid; gap: 6px; }
.t4cf-opts + .t4cf-opts { margin-top: 6px; }
.t4cf-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t4cf-opt {
  align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(134, 160, 255, .28);
  border-radius: 12px;
  color: #fff;
  column-gap: 10px;
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 6px 12px;
  text-align: left;
  width: 100%;
}
.t4cf-opt.has-img { grid-template-columns: 44px minmax(0, 1fr) auto; padding-left: 6px; }
.t4cf-opt:hover { border-color: rgba(134, 160, 255, .65); }
.t4cf-opt[aria-checked="true"], .t4cf-opt[aria-pressed="true"], .t4cf-opt--qty[data-on] {
  background: rgba(36, 72, 216, .26);
  border-color: var(--t4-sky);
  box-shadow: inset 0 0 0 1px var(--t4-sky);
}
.t4cf-opt[aria-disabled="true"] { cursor: not-allowed; opacity: .45; }
.t4cf-opt[aria-disabled="true"]:hover { border-color: rgba(134, 160, 255, .28); }
.t4cf-opt:focus-visible { outline-offset: 2px; }
.t4cf-opt__img { background: rgba(255, 255, 255, .06); border-radius: 9px; display: block; height: 44px; overflow: hidden; width: 44px; }
.t4cf-opt__img img { display: block; height: 100%; object-fit: contain; width: 100%; }
.t4cf-opt__txt { display: grid; gap: 1px; min-width: 0; }
.t4cf-opt__txt strong { font-family: var(--t4-head); font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; line-height: 1.2; }
.t4cf-opt__txt small { font-size: 10.5px; line-height: 1.4; opacity: .7; }
.t4cf-opt__need { color: #ffb4ab; font-size: 10.5px; font-style: normal; line-height: 1.4; }
.t4cf-opt__need[hidden] { display: none; }
/* lo stato lo dice il bordo: niente "Scelto" scritto */
.t4cf-opt__on { display: none; }
.t4cf-opt__price { font-size: 10.5px; justify-self: end; letter-spacing: .04em; text-align: right; text-transform: uppercase; white-space: nowrap; }
.t4cf-opt__price.is-incl { color: var(--t4-sky); }
.t4cf-opt__price.is-ask { opacity: .6; }
/* due colonne: nome sopra, prezzo sotto */
.t4cf-opts--2 .t4cf-opt { align-content: center; grid-template-columns: minmax(0, 1fr); row-gap: 1px; }
.t4cf-opts--2 .t4cf-opt__price { justify-self: start; opacity: .85; text-align: left; }
/* taglie (Misura sedile): una fila di bottoni come le taglie di una scheda prodotto */
.t4cf-opts--sizes { gap: 5px; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.t4cf-opts--sizes .t4cf-opt { grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 36px; padding: 4px 2px; text-align: center; }
.t4cf-opts--sizes .t4cf-opt__txt { justify-items: center; }
.t4cf-opts--sizes .t4cf-opt__txt strong { font-size: 14px; }
/* kit e ricambi: selettore − n + */
.t4cf-opt--qty { cursor: default; }
.t4cf-opt--qty .t4cf-opt__price { justify-self: start; margin-top: 2px; text-align: left; }
.t4cf-qty { align-items: center; display: inline-flex; gap: 4px; }
.t4cf-qty button {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(134, 160, 255, .4);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: grid;
  font-size: 17px;
  height: 36px;
  line-height: 1;
  padding: 0;
  place-items: center;
  width: 36px;
}
.t4cf-qty button:hover:not(:disabled) { background: var(--t4-sky); color: var(--t4-navy); }
.t4cf-qty button:disabled { cursor: default; opacity: .35; }
.t4cf-qty output { font-size: 14px; min-width: 2.2ch; text-align: center; }

/* "Quale taglia?", aiuto, riga dei recapiti, messaggi */
.t4cf-help-w { margin-top: 8px; }
.t4cf-help-b { align-items: center; background: none; border: 0; color: #fff; cursor: pointer; display: inline-flex; font-size: 11.5px; gap: 6px; min-height: 32px; padding: 0; }
.t4cf-help-b span { text-decoration: underline; text-underline-offset: 3px; }
.t4cf-help-b svg { flex: 0 0 auto; height: 15px; width: 15px; }
.t4cf-help { background: rgba(134, 160, 255, .12); border-radius: 12px; font-size: 11.5px; line-height: 1.55; margin-top: 4px; padding: 10px 12px; white-space: pre-line; }
.t4cf-help > p { margin: 0; }
.t4cf-help > p + p { margin-top: 6px; }
.t4cf-help[hidden] { display: none; }
.t4cf-ask { align-items: center; display: flex; flex-wrap: wrap; font-size: 10.5px; gap: 0 14px; margin: 6px 0 0; white-space: normal; }
.t4cf-ask > span:first-child { opacity: .7; }
/* niente "·" tra i recapiti: andando a capo restava appeso in fondo alla riga */
.t4cf-ask > span[aria-hidden="true"] { display: none; }
.t4cf-ask a, .t4cf-ask button { align-items: center; background: none; border: 0; color: var(--t4-sky); cursor: pointer; display: inline-flex; font: inherit; min-height: 28px; overflow-wrap: anywhere; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.t4cf-ask [hidden], .t4cf-ask[hidden] { display: none; }
.t4cf-msg { border: 1px dashed rgba(134, 160, 255, .45); border-radius: 12px; line-height: 1.55; margin: 14px 0 0; padding: 10px 12px; }
.t4cf-msg.is-err { background: rgba(179, 38, 30, .18); border-color: rgba(255, 180, 171, .5); color: #ffd9d4; }
.t4cf-msg.is-err a { color: #fff; }

/* --------------------------------------------------------------------------
   Piede fisso: totale con le voci apribili, bottone di stato
   -------------------------------------------------------------------------- */
/* totale (cifra e "Kart + n voci") a sinistra, bottone a destra; le voci si aprono sopra */
.t4cf-foot { align-items: center; column-gap: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.t4cf-foot[hidden] { display: none; }
.t4cf__more { grid-column: 1 / -1; }
.t4cf__tot { min-width: 0; }
.t4cf__tot[hidden] { display: none; }
.t4cf__tot[hidden] + .t4cf__act { grid-column: 1 / -1; }
.t4cf__tot-row { align-items: baseline; display: flex; gap: 8px; }
.t4cf__tot-l { color: var(--t4-sky); flex: 0 0 auto; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.t4cf__tot-v { font-family: var(--t4-head); font-size: clamp(18px, 1.4vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; white-space: nowrap; }
.t4cf__peek { align-items: center; background: none; border: 0; color: var(--t4-sky); cursor: pointer; display: inline-flex; font-size: 10.5px; gap: 2px; min-height: 22px; padding: 0; white-space: nowrap; }
.t4cf__peek span { text-decoration: underline; text-underline-offset: 3px; }
.t4cf__peek svg { height: 14px; transition: transform var(--t4-dur) var(--t4-ease); width: 14px; }
/* le voci si aprono verso l'alto: la freccia punta su quando sono chiuse */
.t4cf__peek svg { transform: rotate(180deg); }
.t4cf__peek[aria-expanded="true"] svg { transform: none; }
.t4cf__more { border-bottom: 1px solid var(--t4-hair-dark); margin-bottom: 8px; max-height: min(36vh, 300px); overflow-y: auto; scrollbar-width: thin; }
.t4cf__more[hidden] { display: none; }
.t4cf__lines { margin: 0; }
.t4cf__lines > div { border-bottom: 1px solid var(--t4-hair-dark); display: grid; gap: 1px 12px; grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
.t4cf__lines dt { font-size: 9.5px; letter-spacing: .1em; line-height: 1.5; opacity: .62; overflow-wrap: anywhere; text-transform: uppercase; }
.t4cf__lines dd { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; margin: 0; min-width: 0; }
.t4cf__lines dd span { min-width: 0; overflow-wrap: anywhere; }
.t4cf__lines dd b { font-size: 11.5px; font-weight: 400; text-align: right; white-space: nowrap; }
.t4cf__lines dd b.is-ask { opacity: .62; }
.t4cf__notes { padding: 4px 0 6px; }
.t4cf__notes p { font-size: 10px; line-height: 1.5; margin: 2px 0 0; opacity: .68; }
.t4cf__notes:empty { display: none; }
.t4cf__act { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t4cf__act[hidden] { display: none; }
.t4cf__cta.t4-pill { justify-content: space-between; width: 100%; }
.t4cf__cta .t4-pill__label { overflow: hidden; text-overflow: ellipsis; }
.t4cf__cta[aria-busy="true"] { opacity: .6; pointer-events: none; }
/* "Verifico disponibilità…": grigio, non cliccabile */
.t4-pill.t4cf__cta--off { --pill-bg: rgba(255, 255, 255, .12); --pill-fg: rgba(255, 255, 255, .7); --pill-dot: rgba(255, 255, 255, .18); --pill-dot-fg: rgba(255, 255, 255, .5); opacity: 1; }

/* --------------------------------------------------------------------------
   Modulo di preventivo e conferma (al posto degli step)
   -------------------------------------------------------------------------- */
.t4cf__req:empty { display: none; }
.t4cf-form { color-scheme: dark; display: grid; gap: 10px; margin-top: 16px; position: relative; }
.t4cf-form__head { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; }
.t4cf-form__h { color: #fff; font-family: var(--t4-head); font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; text-transform: uppercase; }
.t4cf-form__h:focus { outline: none; }
.t4cf-form__x { background: none; border: 0; color: var(--t4-sky); cursor: pointer; font: inherit; font-size: 10.5px; letter-spacing: .08em; min-height: 36px; padding: 0; text-decoration: underline; text-transform: uppercase; text-underline-offset: 3px; white-space: nowrap; }
.t4cf-form__p { line-height: 1.5; margin: 0; opacity: .8; }
.t4cf-form__row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1280px), (min-width: 561px) and (max-width: 991px) { .t4cf-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t4cf-f { display: grid; gap: 4px; min-width: 0; }
.t4cf-f > span { font-size: 9.5px; letter-spacing: .1em; opacity: .7; text-transform: uppercase; }
.t4cf-f input, .t4cf-f select {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(134, 160, 255, .4);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
}
.t4cf-f select option { background: var(--t4-navy); color: #fff; }
.t4cf-f input:focus-visible, .t4cf-f select:focus-visible { border-color: var(--t4-sky); outline-offset: 1px; }
.t4cf-form [aria-invalid="true"] { border-color: #ffb4ab; }
.t4cf-check { align-items: flex-start; display: flex; font-size: 12px; gap: 10px; line-height: 1.45; }
.t4cf-check input { accent-color: var(--t4-sky); flex: 0 0 auto; height: 18px; margin: 1px 0 0; width: 18px; }
.t4cf-hp { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.t4cf-err { color: #ffb4ab; font-size: 11px; margin: 0; }
.t4cf-check + .t4cf-err { margin-top: -6px; }
.t4cf-form__msg { border-radius: 10px; font-size: 12.5px; line-height: 1.5; margin: 0; padding: 10px 12px; }
/* vuoto resta nell'albero accessibile (role=status), senza occupare posto */
.t4cf-form__msg:empty { clip: rect(0 0 0 0); height: 1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.t4cf-form__msg.is-ok { background: rgba(134, 160, 255, .16); color: #fff; }
.t4cf-form__msg.is-err { background: rgba(179, 38, 30, .22); color: #ffd9d4; }
.t4cf-done:focus { outline: none; }
.t4cf-done__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Stretto (pannello a 340px o telefono)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1279px) {
  .t4cf-opts--sizes .t4cf-opt__txt strong { font-size: 13px; }
}
/* piede stretto (pannello sotto i ~460px): totale sopra, bottone a tutta larghezza
   (accanto al totale "Scegli misura sedile" si leggeva troncato) */
@container (max-width: 419px) {
  .t4cf-foot { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .t4cf__tot { align-items: baseline; display: flex; gap: 10px; justify-content: space-between; }
}
@supports not (container-type: inline-size) {
  .t4cf-foot { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .t4cf__tot { align-items: baseline; display: flex; gap: 10px; justify-content: space-between; }
}
@media (max-width: 560px) {
  .t4cf-opt--qty.has-img { grid-template-columns: 44px minmax(0, 1fr); }
  .t4cf-opt--qty .t4cf-qty { grid-column: 2; margin-top: 8px; }
  .t4cf-opt--qty:not(.has-img) .t4cf-qty { grid-column: 1; }
  .t4cf-opt--qty:not(.has-img) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  /* sette taglie: quattro e tre */
  .t4cf-opts--sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Movimento (con "riduci movimento" resta lo stato finale)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .t4cf-step__p:not([hidden]), .t4cf__more:not([hidden]), .t4cf-help:not([hidden]), .t4cf-form, .t4cf__req > .t4cf-done { animation: t4cf-up .35s var(--t4-ease-out) both; }
  .t4cf-step--inline > .t4cf-step__p { animation: none; }
  .t4cf-opt, .t4cf-qty button, .t4cf-form__x { transition: background-color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease); }
  /* "Scegli misura sedile": lo step in linea si accende un attimo */
  .t4cf-step--inline.is-attn { animation: t4cf-attn 1.4s var(--t4-ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .t4cf-step--inline.is-attn { box-shadow: 0 0 0 2px var(--t4-sky); }
}
@keyframes t4cf-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes t4cf-attn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(134, 160, 255, 0); }
  25%, 60% { box-shadow: 0 0 0 8px rgba(134, 160, 255, .22); background: rgba(134, 160, 255, .08); }
}

/* --------------------------------------------------------------------------
   Card "Completa la tua configurazione" e "Accessori compatibili" (21/10,
   come gli accessori della scheda Canyon): si aprono scelta la misura del
   sedile; caroselli con frecce e tacche, due card per pagina
   -------------------------------------------------------------------------- */
.t4cf-addons[hidden], .t4cf-addons-wait[hidden] { display: none; }
.t4cf-addons-wait { border: 1px dashed rgba(134, 160, 255, .35); border-radius: 12px; font-size: 11px; line-height: 1.5; margin: 14px 0 0; opacity: .72; padding: 9px 12px; }
.t4cf-car { margin-top: 18px; }
.t4cf-car__h { font-family: var(--t4-head); font-size: 15px; font-weight: 500; letter-spacing: -.005em; line-height: 1.15; margin: 0 0 10px; text-transform: uppercase; }
.t4cf-car__track {
  display: grid;
  gap: 10px;
  /* una card per volta, la successiva si intravede (pannello stretto: due avrebbero spezzato i nomi) */
  grid-auto-columns: 84%;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px;
  /* 22/10: i testi per i lettori di schermo (.t4fx-sr, assoluti) restano dentro il
     carosello: prima allargavano il corpo del pannello, che scorreva di lato */
  position: relative;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.t4cf-car__track::-webkit-scrollbar { display: none; }
/* 22/10: pannello metà schermo da desktop, due card per pagina */
@media (min-width: 992px) { .t4cf-car__track { grid-auto-columns: calc(50% - 5px); } }
.t4cf-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(134, 160, 255, .25);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  scroll-snap-align: start;
}
.t4cf-card.is-on { background: rgba(36, 72, 216, .2); border-color: var(--t4-sky); box-shadow: inset 0 0 0 1px var(--t4-sky); }
.t4cf-card__top { align-items: start; display: grid; gap: 12px; grid-template-columns: 64px minmax(0, 1fr); }
.t4cf-card__img { align-items: center; background: rgba(255, 255, 255, .06); border-radius: 10px; color: rgba(134, 160, 255, .75); display: flex; height: 64px; justify-content: center; overflow: hidden; width: 64px; }
/* le foto dello shop sono su fondo bianco: tessera bianca */
.t4cf-card__img:has(img) { background: #fff; }
.t4cf-card__img img { display: block; height: 100%; object-fit: contain; padding: 3px; width: 100%; }
.t4cf-card__ph svg { display: block; height: 30px; width: 30px; }
.t4cf-card__txt { min-width: 0; }
.t4cf-card__t { font-family: var(--t4-head); font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; line-height: 1.15; margin: 0; text-transform: uppercase; }
.t4cf-card__s { -webkit-box-orient: vertical; display: -webkit-box; font-size: 10.5px; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.4; margin: 3px 0 0; opacity: .72; overflow: hidden; }
.t4cf-card__p { font-family: var(--t4-head); font-size: 15px; font-weight: 500; line-height: 1.1; margin: 4px 0 0; }
.t4cf-card__p.is-ask { font-family: var(--t4-mono); font-size: 11px; opacity: .6; }
.t4cf-card__vars { display: flex; flex-wrap: wrap; gap: 5px; }
.t4cf-chip { background: none; border: 1px solid rgba(134, 160, 255, .35); border-radius: 999px; color: #fff; cursor: pointer; font-family: var(--t4-mono); font-size: 10.5px; line-height: 1.2; max-width: 100%; min-height: 26px; padding: 3px 9px; position: relative; }
.t4cf-chip span { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4cf-chip:hover { border-color: rgba(255, 255, 255, .7); }
.t4cf-chip[aria-pressed="true"], .t4cf-chip[aria-checked="true"] { background: rgba(255, 255, 255, .14); border-color: #fff; }
.t4cf-chip[aria-disabled="true"] { cursor: not-allowed; opacity: .4; }
/* colori: pallino pieno, anello bianco sulla variante mostrata */
.t4cf-chip.is-sw { align-items: center; display: inline-flex; height: 28px; justify-content: center; padding: 0; width: 28px; }
.t4cf-chip.is-sw i { background: var(--sw); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); display: block; height: 18px; width: 18px; }
.t4cf-chip.is-sw[aria-pressed="true"] { background: none; box-shadow: 0 0 0 1px #fff; }
/* variante già aggiunta: puntino azzurro */
.t4cf-chip__in { background: var(--t4-sky); border-radius: 50%; box-shadow: 0 0 0 2px #1a2459; height: 8px; position: absolute; right: -2px; top: -2px; width: 8px; }
.t4cf-card__add {
  align-items: center;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  color: var(--t4-navy);
  cursor: pointer;
  display: flex;
  font-family: var(--t4-mono);
  font-size: 11px;
  gap: 6px;
  justify-content: center;
  letter-spacing: .08em;
  background-image: none;
  margin-top: auto;
  min-height: 34px;
  padding: 0 12px;
  text-transform: uppercase;
}
.t4cf-card__add:hover { background: var(--t4-sky); border-color: var(--t4-sky); }
.t4cf-card__add.is-on { background: transparent; border-color: var(--t4-sky); color: #fff; }
.t4cf-card__add.is-on:hover { border-color: #fff; }
.t4cf-card__add svg { height: 14px; width: 14px; }
.t4cf-card__add[aria-disabled="true"] { cursor: not-allowed; opacity: .4; }
.t4cf-card__in, .t4cf-card__need { font-size: 10px; line-height: 1.4; margin: -2px 0 0; opacity: .72; }
.t4cf-card__need { color: #ffb4ab; opacity: 1; }
.t4cf-car__nav { align-items: center; display: flex; gap: 4px; margin-top: 8px; }
.t4cf-car__nav[hidden] { display: none; }
.t4cf-car__go { align-items: center; background: none; border: 0; color: #fff; cursor: pointer; display: flex; height: 30px; justify-content: center; padding: 0; width: 30px; }
.t4cf-car__go svg { height: 18px; width: 18px; }
.t4cf-car__go:disabled { cursor: default; opacity: .3; }
.t4cf-car__ticks { display: flex; flex: 1 1 auto; gap: 4px; margin-left: 8px; }
.t4cf-car__ticks i { background: rgba(255, 255, 255, .2); border-radius: 2px; flex: 1 1 0; height: 2px; }
.t4cf-car__ticks i.is-on { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .t4cf-addons:not([hidden]) { animation: t4cf-up .45s var(--t4-ease-out) both; }
  .t4cf-card, .t4cf-card__add, .t4cf-chip { transition: background-color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease); }
}

/* --------------------------------------------------------------------------
   Richieste 21/10 (punti 02 A-E): "Non conosco la mia taglia" con altezza e
   peso, tabella delle taglie nel "Quale taglia?", blocco "Pista e peso"
   (rapporto per circuito, calcolatore zavorra)
   -------------------------------------------------------------------------- */
.t4cf-f[hidden] { display: none; }
.t4cf-meas { border: 1px solid rgba(134, 160, 255, .28); border-radius: 12px; display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; }
.t4cf-meas[hidden] { display: none; }
.t4cf-meas__h { font-size: 9.5px; letter-spacing: .1em; margin: 0; opacity: .7; text-transform: uppercase; }
.t4cf-meas__row, .t4cf-zav__grid { display: grid; gap: 8px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t4cf-meas__p { color: var(--t4-sky); font-size: 11.5px; line-height: 1.5; margin: 0; }
.t4cf-meas__priv { font-size: 10px; line-height: 1.45; margin: 0; opacity: .62; }
.t4cf-help__img { color: var(--t4-sky); display: block; font-size: 10.5px; margin-top: 8px; text-decoration: none; }
.t4cf-help__img img { background: #fff; border-radius: 8px; display: block; height: auto; max-height: 340px; max-width: 100%; object-fit: contain; }
.t4cf-help__img span { display: inline-block; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.t4cf-ratio__note { font-size: 10.5px; line-height: 1.5; margin: 6px 0 0; opacity: .72; }
/* rapporti per circuito (22/10): una corona per rapporto, con le piste che lo usano */
.t4cf-ratios__head { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; }
.t4cf-ratios__head .t4cf-car__h { margin-bottom: 4px; }
.t4cf-ratios__all { background: none; border: 1px solid rgba(134, 160, 255, .5); border-radius: 999px; color: #fff; cursor: pointer; flex: 0 0 auto; font-family: var(--t4-mono); font-size: 10.5px; min-height: 28px; padding: 4px 12px; }
.t4cf-ratios__all:hover, .t4cf-ratios__all[aria-pressed="true"] { border-color: var(--t4-sky); color: var(--t4-sky); }
.t4cf-ratios__all:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 2px; }
.t4cf-ratios__p { font-size: 11px; line-height: 1.5; margin: 0 0 8px; opacity: .78; }
.t4cf-opt--info { cursor: default; }
/* card Zavorra: chili con − e +, combinazione di pezzi */
.t4cf-zstep { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.t4cf-zstep > button[data-zstep] { background: none; border: 1px solid rgba(134, 160, 255, .45); border-radius: 999px; color: #fff; cursor: pointer; font-size: 16px; height: 30px; line-height: 1; width: 30px; }
.t4cf-zstep > button[data-zstep]:hover:not(:disabled) { border-color: var(--t4-sky); }
.t4cf-zstep > button:disabled { cursor: not-allowed; opacity: .35; }
.t4cf-zstep > button:focus-visible, .t4cf-zstep__rec:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 2px; }
.t4cf-zstep output { font-family: var(--t4-head); font-size: 18px; font-weight: 500; min-width: 64px; text-align: center; }
.t4cf-zstep__rec { background: none; border: 0; color: var(--t4-sky); cursor: pointer; font-size: 10.5px; padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }
/* numero di card accanto al titolo del carosello (28/10/2026) */
.t4cf-car__n { border: 1px solid currentColor; border-radius: 999px; display: inline-block; font-family: var(--t4-mono, monospace); font-size: .7em; line-height: 1; margin-left: .35em; opacity: .7; padding: .25em .55em; vertical-align: middle; }

/* Cliente 28/10/2026, punto 15: tabella delle taglie in vista sopra le misure e
   "Non conosco la mia taglia" su una riga intera; punto 17: dati della zavorra
   (abbigliamento, benzina reale) sotto peso e altezza del pilota */
.t4cf-opts--sizes [data-nd] { grid-column: 1 / -1; }
.t4cf-sizeimg { color: var(--t4-sky); display: block; font-size: 10.5px; margin: 0 0 8px; text-decoration: none; }
.t4cf-sizeimg img { background: #fff; border-radius: 8px; display: block; height: auto; max-height: 220px; max-width: 100%; object-fit: contain; }
.t4cf-sizeimg span { display: inline-block; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.t4cf-meas__z { border-top: 1px solid rgba(134, 160, 255, .2); display: grid; gap: 8px; padding-top: 8px; }
.t4cf-meas__z .t4cf-f[hidden] { display: none; }
.t4cf-meas__z .t4cf-f small { font-size: 10px; line-height: 1.4; opacity: .7; }
