/* Tutto-OSS · Cookie consent styles */
#cookie-banner {
  position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 200;
  background: var(--surface-2, #202027); border: 1px solid var(--gold, #d4af37); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: none;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text, #f4f4f6);
}
#cookie-banner.visible { display: block; }
#cookie-banner h4 { font-size: 15px; margin-bottom: 8px; color: var(--gold, #d4af37); font-weight: 800; }
#cookie-banner p { font-size: 12.5px; color: var(--text-muted, #a0a0ab); line-height: 1.55; max-height: 40vh; overflow-y: auto; }
#cookie-banner p a { color: var(--gold, #d4af37); text-decoration: underline; }
#cookie-banner .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
#cookie-banner .btns button {
  background: var(--gold, #d4af37); color: #111; border: 0; padding: 9px 16px;
  border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: transform .12s;
  font-family: inherit;
}
#cookie-banner .btns button:hover { transform: translateY(-1px); }
#cookie-banner .btns button.ghost { background: transparent; color: var(--gold, #d4af37); border: 1px solid var(--gold, #d4af37); }
#cookie-banner .btns button.link { background: transparent; color: var(--text-muted, #a0a0ab); border: 1px solid var(--border, #2b2b33); }
@media (max-width: 700px) { #cookie-banner { bottom: 8px; left: 8px; right: 8px; padding: 14px; } }

#cookie-modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center; padding: 20px;
  font-family: 'Inter', system-ui, sans-serif;
}
#cookie-modal.visible { display: flex; }
#cookie-modal .box {
  background: var(--surface, #17171b); border: 1px solid var(--border, #2b2b33); border-radius: 16px;
  max-width: 480px; width: 100%; padding: 24px; max-height: 90vh; overflow-y: auto;
  color: var(--text, #f4f4f6);
}
#cookie-modal h3 { color: var(--gold, #d4af37); margin-bottom: 12px; font-size: 20px; }
#cookie-modal .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border, #2b2b33); }
#cookie-modal .row:first-of-type { border-top: 0; }
#cookie-modal .row .txt { flex: 1; }
#cookie-modal .row .txt strong { display: block; margin-bottom: 4px; font-size: 14px; }
#cookie-modal .row .txt small { color: var(--text-muted, #a0a0ab); font-size: 12px; line-height: 1.5; }
#cookie-modal .toggle { position: relative; width: 44px; height: 24px; border-radius: 12px; background: var(--border, #2b2b33); cursor: pointer; flex-shrink: 0; margin-top: 2px; transition: background .18s; }
#cookie-modal .toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; }
#cookie-modal .toggle.on { background: var(--gold, #d4af37); }
#cookie-modal .toggle.on::after { transform: translateX(20px); }
#cookie-modal .toggle.locked { opacity: 0.5; cursor: not-allowed; }
#cookie-modal .btns { display: flex; gap: 8px; margin-top: 20px; justify-content: flex-end; flex-wrap: wrap; }
#cookie-modal .btns button { background: var(--gold, #d4af37); color: #111; border: 0; padding: 10px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: inherit; }
#cookie-modal .btns button.ghost { background: transparent; color: var(--text, #f4f4f6); border: 1px solid var(--border, #2b2b33); }
