/* ---------- Cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--surface, #0f172a);
  border-top: 1px solid var(--border, #233044);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  color: var(--text, #e2e8f0);
}
.consent-banner.hidden { display: none; }

.consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.consent-copy { flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--muted-2, #94a3b8); }
.consent-copy b { color: var(--text, #e2e8f0); font-weight: 700; }
.consent-copy a { color: var(--accent, #f5a524); text-decoration: underline; }

.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.consent-actions .btn { cursor: pointer; border: 1px solid var(--border, #233044); border-radius: var(--radius, 10px); padding: 9px 16px; font-size: 14px; font-weight: 600; background: transparent; color: var(--text, #e2e8f0); transition: .15s; }
.consent-actions .btn:hover { border-color: var(--accent, #f5a524); }
.consent-actions .btn-primary { background: var(--accent, #f5a524); border-color: var(--accent, #f5a524); color: #1a1205; }
.consent-actions .btn-primary:hover { filter: brightness(1.05); }
.consent-actions .btn-link { background: none; border: none; color: var(--muted-2, #94a3b8); text-decoration: underline; padding: 9px 8px; }

/* Manage panel */
.consent-manage {
  flex-basis: 100%;
  border-top: 1px dashed var(--border, #233044);
  margin-top: 4px;
  padding-top: 14px;
  display: none;
}
.consent-manage.open { display: block; }
.consent-toggle { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.consent-toggle span small { display: block; color: var(--muted-2, #94a3b8); font-size: 12.5px; }
.switch { position: relative; width: 44px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #334155; border-radius: 99px; transition: .2s; }
.switch .track::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #e2e8f0; border-radius: 50%; transition: .2s; }
.switch input:checked + .track { background: var(--accent, #f5a524); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .5; }

@media (max-width: 640px) {
  .consent-inner { padding: 14px 16px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn, .consent-actions .btn-link { flex: 1 1 auto; text-align: center; }
}
