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

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem;
  color: #fff;
  background: rgba(18, 20, 19, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent h2,
.cookie-preferences h2,
.cookie-preferences h3,
.cookie-consent p,
.cookie-preferences p {
  margin: 0;
}

.cookie-consent h2 {
  font-size: 1.125rem;
  font-weight: 750;
}

.cookie-consent p {
  max-width: 52rem;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.925rem;
  line-height: 1.55;
}

.cookie-consent a,
.cookie-preferences a {
  color: #cbf06d;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-consent__actions {
  display: grid;
  gap: 0.6rem;
}

.cookie-consent__button,
.cookie-consent__preferences {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__button {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.cookie-consent__button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.cookie-consent__preferences {
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid transparent;
}

.cookie-consent__preferences:hover {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent button:focus-visible,
.cookie-preferences button:focus-visible,
.cookie-preferences input:focus-visible + span,
[data-cookie-settings]:focus-visible {
  outline: 3px solid #cbf06d;
  outline-offset: 3px;
}

.cookie-preferences {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  color: #fff;
  background: #181b19;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-preferences::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.cookie-preferences__panel {
  padding: 1.35rem;
}

.cookie-preferences__heading,
.cookie-preferences__option,
.cookie-preferences__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-preferences__eyebrow {
  color: #cbf06d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-preferences h2 {
  margin-top: 0.2rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.cookie-preferences__close {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-preferences__intro {
  margin-top: 1rem !important;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.cookie-preferences__option {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
}

.cookie-preferences__option h3 {
  font-size: 0.98rem;
  font-weight: 750;
}

.cookie-preferences__option p {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cookie-preferences__status {
  flex: 0 0 auto;
  color: #cbf06d;
  font-size: 0.76rem;
  font-weight: 750;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-switch > span {
  position: relative;
  display: block;
  width: 3.1rem;
  height: 1.75rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease;
}

.cookie-switch > span::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 150ms ease;
}

.cookie-switch input:checked + span {
  background: #00af8d;
}

.cookie-switch input:checked + span::after {
  transform: translateX(1.32rem);
}

.cookie-preferences__footer {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-link,
.cookie-consent-standalone-settings {
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-consent-standalone-settings:hover {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent-standalone-settings {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.8rem;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .cookie-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.35rem 1.5rem;
  }

  .cookie-consent__actions {
    grid-template-columns: repeat(2, minmax(9rem, auto));
  }

  .cookie-consent__preferences {
    grid-column: 1 / -1;
    min-height: auto;
    padding-block: 0.2rem;
  }
}

@media (max-width: 520px) {
  .cookie-preferences__option,
  .cookie-preferences__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-preferences__status,
  .cookie-switch {
    align-self: flex-end;
  }

  .cookie-preferences__footer .cookie-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-switch > span,
  .cookie-switch > span::after {
    transition: none;
  }
}
