/* ── COOKIE BANNER ─────────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity  0.35s ease;
  opacity: 0;
  width: calc(100% - 48px);
  max-width: 620px;
  background: #0D1323;
  border-radius: 16px;
  padding: 28px;
  z-index: 500;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28);
  font-family: 'Inter', sans-serif;
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── HEADER ── */
.cb-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cb-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.cb-policy-links {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.cb-policy-links a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.cb-policy-links a:hover {
  color: rgba(255,255,255,0.75);
}

/* ── ACTION ROW ── */
.cb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cb-btn {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  padding: 10px 20px;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.cb-btn--primary {
  background: #fff;
  color: #0D1323;
}

.cb-btn--primary:hover {
  opacity: 0.9;
}

.cb-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.cb-btn--ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.cb-details-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(255,255,255,0.38);
  margin-left: auto;
  padding: 4px 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cb-details-toggle:hover {
  color: rgba(255,255,255,0.7);
}

.cb-details-toggle .cb-chevron {
  transition: transform 0.25s ease;
  display: inline-block;
}

.cb-details-toggle.is-open .cb-chevron {
  transform: rotate(180deg);
}

/* ── DETAILS PANEL ── */
.cb-details {
  display: none;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.cb-details.is-open {
  display: block;
}

.cb-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cb-category:last-of-type {
  border-bottom: none;
}

.cb-category-info strong {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 13.5px;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.cb-category-info p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
  max-width: 380px;
}

/* Always-on badge */
.cb-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Toggle switch */
.cb-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cb-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.25s;
}

.cb-toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.25s;
}

.cb-toggle input:checked + .cb-toggle-slider {
  background: #E05212;
}

.cb-toggle input:checked + .cb-toggle-slider::after {
  transform: translateX(18px);
}

/* Save prefs button */
.cb-save {
  margin-top: 18px;
  width: 100%;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 22px;
  }

  .cb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cb-btn {
    text-align: center;
  }

  .cb-details-toggle {
    margin-left: 0;
    justify-content: center;
  }
}
