/* ==================== Cookie Banner ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  padding: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.is-leaving {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner__inner {
  width: 100%;
  max-width: 920px;
  background:
    linear-gradient(180deg, rgba(17, 32, 70, 0.97), rgba(8, 19, 52, 0.99));
  border: 1px solid rgba(219, 170, 31, 0.4);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(219, 170, 31, 0.18);
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cookie-banner__main {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
.cookie-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(219, 170, 31, 0.18);
  border: 1px solid rgba(219, 170, 31, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold-bright);
}
.cookie-banner__icon svg { width: 24px; height: 24px; }
.cookie-banner__text { flex: 1; }
.cookie-banner__text h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--c-cream);
  margin: 0 0 0.5rem;
}
.cookie-banner__text p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--c-cream-dim);
  margin: 0;
}
.cookie-banner__text strong { color: var(--c-cream); }
.cookie-banner__text a {
  color: var(--c-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Settings panel */
.cookie-banner__settings {
  margin-bottom: 1.4rem;
  padding: 1rem 1.2rem;
  background: rgba(8, 19, 52, 0.5);
  border: 1px solid rgba(219, 170, 31, 0.2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  background: rgba(219, 170, 31, 0.15);
  border: 1px solid rgba(219, 170, 31, 0.4);
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  transition: background 200ms ease;
}
.cookie-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-cream-dim);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: var(--c-gold-bright);
  border-color: var(--c-gold-bright);
}
.cookie-toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
  background: var(--c-navy-deep);
}
.cookie-toggle input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.cookie-toggle__label {
  flex: 1;
  font-family: var(--font-body);
}
.cookie-toggle__label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--c-cream);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.cookie-toggle__label small {
  font-size: 0.82rem;
  color: var(--c-cream-dim);
  line-height: 1.55;
}

/* Action buttons */
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-banner__actions .btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  cursor: inherit;
}
.cookie-btn-tertiary {
  border-color: rgba(219, 170, 31, 0.4);
  color: var(--c-cream-dim);
}
.cookie-btn-tertiary:hover {
  background: rgba(219, 170, 31, 0.1);
  color: var(--c-cream);
}
.cookie-btn-secondary {
  border-color: rgba(245, 235, 215, 0.3);
  color: var(--c-cream-dim);
}

@media (max-width: 640px) {
  .cookie-banner { padding: 0.7rem; }
  .cookie-banner__inner { padding: 1.2rem 1.2rem; }
  .cookie-banner__main { flex-direction: column; gap: 0.8rem; }
  .cookie-banner__icon { width: 38px; height: 38px; }
  .cookie-banner__actions { flex-direction: column-reverse; }
  .cookie-banner__actions .btn { width: 100%; justify-content: center; }
}
