/* G-Man Consent Mode + cookie popup */
.gman-consent-overlay{
  position:fixed;inset:0;z-index:10050;
  background:rgba(5,8,16,.72);
  display:flex;align-items:center;justify-content:center;
  padding:1rem;backdrop-filter:blur(4px);
}
.gman-consent-overlay[hidden]{display:none!important}
.gman-consent-modal{
  width:min(520px,100%);
  background:#12182a;
  border:1px solid #1e2740;
  border-radius:1rem;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  color:#e8ecf4;
  font-family:Barlow,system-ui,sans-serif;
  overflow:hidden;
}
.gman-consent-modal header{
  padding:1.15rem 1.25rem .35rem;
}
.gman-consent-modal header strong{
  display:block;font-size:1.15rem;line-height:1.3;margin-bottom:.35rem;
}
.gman-consent-modal header p,
.gman-consent-modal .gman-consent-body p{
  margin:0;color:#8b95a8;font-size:.92rem;line-height:1.55;
}
.gman-consent-body{padding:.5rem 1.25rem 1rem}
.gman-consent-body a{color:#4db8ff;text-decoration:none}
.gman-consent-body a:hover{text-decoration:underline}
.gman-consent-toggles{
  margin-top:.9rem;display:flex;flex-direction:column;gap:.55rem;
}
.gman-consent-row{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  background:#0a0e1a;border:1px solid #1e2740;border-radius:.65rem;
  padding:.7rem .85rem;font-size:.9rem;
}
.gman-consent-row span{color:#c5cddc}
.gman-consent-row small{display:block;color:#8b95a8;font-size:.78rem;margin-top:.15rem}
.gman-consent-row input{width:1.15rem;height:1.15rem;accent-color:#ff4d2e}
.gman-consent-actions{
  display:flex;flex-wrap:wrap;gap:.5rem;padding:0 1.25rem 1.25rem;
}
.gman-consent-actions button{
  flex:1 1 auto;min-width:120px;border:0;border-radius:.55rem;
  padding:.7rem 1rem;font-weight:700;font-size:.92rem;cursor:pointer;
  font-family:inherit;
}
.gman-consent-accept{background:#ff4d2e;color:#fff}
.gman-consent-accept:hover{filter:brightness(1.06)}
.gman-consent-reject{background:#1a2238;color:#e8ecf4;border:1px solid #1e2740!important}
.gman-consent-reject:hover{border-color:#4db8ff!important}
.gman-consent-save{background:#4db8ff;color:#0a0e1a}
.gman-consent-save:hover{filter:brightness(1.05)}

/* Preferenze cookie — sinistra, sopra FAB AI */
.gman-consent-fab{
  position:fixed;left:1.1rem;bottom:4.55rem;z-index:10001;
  display:inline-flex;align-items:center;gap:.4rem;
  background:#1a2238;color:#e8ecf4;border:1px solid #1e2740;
  border-radius:999px;padding:.55rem .95rem;
  font-weight:600;font-size:.82rem;cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
  font-family:inherit;
}
.gman-consent-fab:hover{border-color:#4db8ff;color:#7cc9ff}
.gman-consent-fab[hidden]{display:none!important}

@media (max-width:480px){
  .gman-consent-fab{left:.75rem;bottom:4.2rem;font-size:.78rem;padding:.5rem .8rem}
  .gman-consent-actions button{min-width:100%}
}
