/* ── Cookie Consent Banner ──────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-panel, #15100c);
  border-top: 1px solid rgba(246, 90, 23, 0.3);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.cookie-banner__content {
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text {
  color: var(--color-muted, #d9c8b3);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

.cookie-banner__link {
  color: var(--color-orange, #f65a17);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.cookie-banner__link:hover {
  color: var(--color-orange-soft, #ff8145);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-banner__btn {
  min-height: 44px;
  font-size: 0.88rem;
  padding: 0 1rem;
}

/* ── Settings panel ── */

.cookie-settings {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 0.75rem;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-settings__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-settings__item:last-of-type {
  border-bottom: none;
}

.cookie-settings__item input[type="checkbox"] {
  accent-color: var(--color-orange, #f65a17);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}

.cookie-settings__item input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cookie-settings__item label {
  color: var(--color-muted, #d9c8b3);
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: pointer;
  font-family: var(--font-primary, sans-serif);
}

.cookie-settings__item label strong {
  color: var(--color-cream, #fff3df);
  font-weight: 700;
}

.cookie-settings__save {
  margin-top: 0.85rem;
  min-height: 44px;
  font-size: 0.88rem;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
    justify-content: center;
  }
}
