/* Naovenant — cookie consent banner (Consent Mode v2) */

.cookie-consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10050;
  padding: 12px 14px;
  pointer-events: none;
}

.cookie-consent-banner[hidden],
.cookie-consent-banner.is-hidden {
  display: none !important;
}

.cookie-consent-panel {
  pointer-events: auto;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #120e0a 0%, #1a1410 100%);
  border: 1px solid rgba(205, 168, 122, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  color: #f8f3ec;
  font-family: 'Inter', sans-serif;
}

.cookie-consent-title {
  margin: 0 0 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f8f3ec;
}

.cookie-consent-text {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.92;
}

.cookie-consent-text a {
  color: #cda87a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-btn--primary {
  background: #cda87a;
  color: #120e0a;
  border-color: #cda87a;
}

.cookie-consent-btn--primary:hover {
  background: #e8b56a;
  border-color: #e8b56a;
}

.cookie-consent-btn--secondary {
  background: transparent;
  color: #f8f3ec;
  border-color: rgba(248, 243, 236, 0.35);
}

.cookie-consent-btn--secondary:hover {
  border-color: rgba(248, 243, 236, 0.65);
}

.cookie-consent-btn--prefs {
  background: rgba(205, 168, 122, 0.12);
  color: #f8f3ec;
  border-color: rgba(205, 168, 122, 0.55);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.cookie-consent-btn--prefs:hover {
  background: rgba(205, 168, 122, 0.2);
  border-color: #cda87a;
  color: #fff;
}

.cookie-consent-preferences {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(205, 168, 122, 0.2);
}

.cookie-consent-preferences[hidden] {
  display: none !important;
}

.cookie-consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(248, 243, 236, 0.08);
}

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

.cookie-consent-category h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8f3ec;
}

.cookie-consent-category p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.78;
}

.cookie-consent-toggle {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
}

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

.cookie-consent-toggle span {
  position: absolute;
  inset: 0;
  background: rgba(248, 243, 236, 0.18);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cookie-consent-toggle span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f8f3ec;
  transition: transform 0.2s ease;
}

.cookie-consent-toggle input:checked + span {
  background: #cda87a;
}

.cookie-consent-toggle input:checked + span::after {
  transform: translateX(20px);
}

.cookie-consent-toggle input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-consent-toggle--locked span::after {
  transform: translateX(20px);
}

.cookie-consent-pref-actions {
  margin-top: 14px;
}

.cookie-consent-settings-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  color: inherit;
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
}

.cookie-consent-settings-link:hover {
  opacity: 1;
  color: #cda87a;
}

@media (max-width: 640px) {
  .cookie-consent-panel {
    padding: 18px 16px;
  }

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

  .cookie-consent-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-consent-btn--prefs {
    width: 100%;
  }
}
