/* Cookie consent banner/modal (no inline CSS; brand-aligned) */

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

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-consent__panel {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(740px, calc(100% - 2rem));
  background: rgba(250, 249, 247, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 1.25rem;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  padding: 1.1rem;
}

.cookie-consent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-consent__header h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.15;
}

.cookie-consent__text {
  margin: 0.65rem 0 0.9rem;
  color: #3A3E3F;
}

.cookie-consent__options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.cookie-consent__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(250, 249, 247, 0.92);
}

.cookie-consent__label {
  margin: 0;
  font-weight: 700;
}

.cookie-consent__subtext {
  margin: 0.1rem 0 0;
  color: #3A3E3F;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent__fineprint {
  margin: 0.8rem 0 0;
  color: #3A3E3F;
  font-size: 0.98rem;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(250, 249, 247, 0.95);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.pill {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.pill-on {
  background: rgba(26, 108, 119, 0.10);
  border-color: rgba(26, 108, 119, 0.25);
}

/* Switch */
.switch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 34px;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  width: 52px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.08);
}

.switch__thumb {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #FAF9F7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-9px);
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid rgba(26, 108, 119, 0.55);
  outline-offset: 3px;
}

.switch input:checked ~ .switch__track {
  background: rgba(26, 108, 119, 0.22);
  border-color: rgba(26, 108, 119, 0.35);
}

.switch input:checked ~ .switch__thumb {
  transform: translateX(9px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .switch__thumb {
    transition: none;
  }
}

@media (min-width: 700px) {
  .cookie-consent__panel {
    bottom: 1.25rem;
    padding: 1.25rem;
  }
}
