/* Cookie consent banner — GDPR */
.cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent-panel {
  background: linear-gradient(180deg, #0e1f3a 0%, #0a1226 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.cookie-consent-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.cookie-consent-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(234, 240, 250, 0.78);
  margin: 0 0 18px;
}

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

.cookie-consent-text a:hover {
  color: #b8e84a;
}

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

.cookie-consent-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
  justify-content: center;
  font-size: 14px;
  padding: 11px 16px;
}

.cookie-consent-actions .btn-reject {
  background: transparent;
  color: rgba(234, 240, 250, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-consent-actions .btn-reject:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.cookie-consent-actions .btn-customize {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-consent-actions .btn-customize:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cookie-consent-actions .btn-accept {
  background: #99d420;
  color: #0e1f3a;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(153, 212, 32, 0.28);
}

.cookie-consent-actions .btn-accept:hover {
  transform: translateY(-2px);
}

.cookie-consent-prefs {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent.is-customizing .cookie-consent-prefs {
  display: block;
}

.cookie-consent.is-customizing .cookie-consent-actions-main {
  display: none;
}

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

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

.cookie-pref-info h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.cookie-pref-info p {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(234, 240, 250, 0.62);
  margin: 0;
}

.cookie-pref-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
}

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

.cookie-pref-toggle label {
  display: block;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-pref-toggle label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-pref-toggle input:checked + label {
  background: #99d420;
}

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

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

.cookie-consent-prefs-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cookie-consent-prefs-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 14px;
  padding: 11px 16px;
}

@media (max-width: 520px) {
  .cookie-consent {
    inset: auto 12px 12px 12px;
  }

  .cookie-consent-panel {
    padding: 18px 16px;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 100%;
  }
}
