/* Stile del banner cookie (stampo, 12/11/2026). I colori si cambiano SOLO nelle variabili qui sotto.
   Versione di Rayer Group (12/11/2026): colori letti da sito/style.css e tema-chiaro.css.
   «Accetta» e «Rifiuta» hanno la stessa classe: stessa dimensione, stesso colore, stesso peso. */
:root {
  /* Rayer Group, tema scuro (predefinito del sito: fondo #080810, blu #0057ff, testo chiaro). Contrasti calcolati il 12/11/2026:
     testo/fondo 15,5; collegamenti 9,2; testo bianco sul pulsante 5,5; bordo pulsante sul fondo 3,4. */
  --rx-cb-bg: #0d1020;
  --rx-cb-fg: #e6e8f2;
  --rx-cb-accent: #4d8dff;
  --rx-cb-link: #8fb5ff;
  --rx-cb-title: #ffffff;
  --rx-cb-btn-bg: #0057ff;
  --rx-cb-btn-fg: #ffffff;
  --rx-cb-h: 0px;
}
/* tema chiaro del sito (html[data-tema="chiaro"]): testo/fondo 18,5; collegamenti e pulsante 6,4 */
html[data-tema="chiaro"] {
  --rx-cb-bg: #ffffff;
  --rx-cb-fg: #12131a;
  --rx-cb-accent: #0050e6;
  --rx-cb-link: #0050e6;
  --rx-cb-title: #12131a;
  --rx-cb-btn-bg: #0050e6;
  --rx-cb-btn-fg: #ffffff;
}
.rx-cb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: var(--rx-cb-bg); color: var(--rx-cb-fg);
  border-top: 3px solid var(--rx-cb-accent);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  font-size: 15px; line-height: 1.5;
}
.rx-cb[hidden] { display: none; }
.rx-cb:focus { outline: none; }
.rx-cb:focus-visible { outline: 3px solid var(--rx-cb-accent); outline-offset: -3px; }
.rx-cb-in {
  max-width: 1200px; margin: 0 auto; padding: 18px 40px;
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
}
.rx-cb-txt { flex: 1 1 auto; min-width: 0; }
.rx-cb-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--rx-cb-title, var(--rx-cb-btn-bg)); letter-spacing: 0; }
.rx-cb-text { margin: 0 0 6px; }
.rx-cb-links { margin: 0; font-size: 14px; }
.rx-cb-link { color: var(--rx-cb-link); text-decoration: underline; text-underline-offset: 2px; margin-right: 12px; }
.rx-cb-link:focus-visible, .rx-cb-btn:focus-visible { outline: 3px solid var(--rx-cb-accent); outline-offset: 2px; }
.rx-cb-state { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.rx-cb-state:empty { display: none; }
.rx-cb-btns { display: flex; gap: 12px; flex: 0 0 auto; }
.rx-cb-btn {
  min-width: 132px; min-height: 44px; padding: 10px 22px;
  background: var(--rx-cb-btn-bg); color: var(--rx-cb-btn-fg);
  border: 2px solid var(--rx-cb-btn-bg); border-radius: 6px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.rx-cb-btn:hover { filter: brightness(1.15); }
/* quando il banner e' aperto la pagina si puo' scorrere fino in fondo: niente pulsante coperto */
body.rx-cb-open { padding-bottom: var(--rx-cb-h); }
@media (max-width: 767px) {
  .rx-cb { font-size: 14px; max-height: 70vh; overflow-y: auto; }
  .rx-cb-in { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 16px; }
  .rx-cb-title { font-size: 15px; }
  .rx-cb-links { font-size: 13px; }
  .rx-cb-btns { width: 100%; }
  .rx-cb-btn { flex: 1 1 0; min-width: 0; }
}
