/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0B2545;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  animation: cookieSlideUp 0.4s ease-out forwards;
  font-family: 'Inter', -apple-system, sans-serif;
}

@keyframes cookieSlideUp {
  to { transform: translateY(0); }
}

.cookie-banner.hiding {
  animation: cookieSlideDown 0.3s ease-in forwards;
}

@keyframes cookieSlideDown {
  to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; transform: translateY(0); }
  .cookie-banner.hiding { animation: none; display: none; }
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
  color: #c8cdd5;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-link {
  color: #D4AF37;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-link:hover {
  color: #E8C847;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Buttons ── */
.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #D4AF37;
  color: #0B2545;
}

.cookie-btn-primary:hover {
  background: #E8C847;
}

.cookie-btn-outline {
  background: transparent;
  color: #D4AF37;
  border: 1px solid #D4AF37;
}

.cookie-btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

.cookie-btn-text {
  background: transparent;
  color: #c8cdd5;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 10px 12px;
}

.cookie-btn-text:hover {
  color: #ffffff;
}

/* ── Preferences Panel ── */
.cookie-preferences {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-pref-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.cookie-pref-inner h3 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 16px;
}

.cookie-category {
  margin-bottom: 12px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.cookie-category-header strong {
  color: #ffffff;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.cookie-category-header p {
  color: #8895a7;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

/* ── Toggle Switch ── */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #3a4a5e;
  border-radius: 24px;
  transition: background 0.2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #D4AF37;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

.cookie-pref-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .cookie-pref-actions {
    flex-direction: column;
  }
}
