.cookie-banner,
.cookie-preferences {
  --cookie-ink: #071526;
  --cookie-paper: #f3efe6;
  --cookie-accent: #f6bf18;
  position: fixed;
  z-index: 9999;
  color: var(--cookie-paper);
  font-family: Arial, Helvetica, sans-serif;
}

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

.cookie-banner {
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: rgba(4, 16, 28, .98);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .4);
}

.cookie-banner h2,
.cookie-preferences h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.cookie-banner p,
.cookie-preferences p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.55;
}

.cookie-banner a,
.cookie-preferences a {
  color: #fff;
  text-underline-offset: .2em;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.25rem;
}

.cookie-button {
  min-height: 44px;
  padding: .8rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  border-color: var(--cookie-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 191, 24, .25);
}

.cookie-button-primary {
  border-color: var(--cookie-accent);
  color: var(--cookie-ink);
  background: var(--cookie-accent);
}

.cookie-preferences {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .7);
}

.cookie-panel {
  width: min(100%, 660px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  background: #04101c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem 1.5rem;
  align-items: center;
  margin-top: 1.35rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.cookie-option strong {
  display: block;
  margin-bottom: .25rem;
}

.cookie-status {
  color: #b9f63e;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cookie-switch {
  width: 22px;
  height: 22px;
  accent-color: var(--cookie-accent);
}

@media (max-width: 600px) {
  .cookie-banner {
    right: .7rem;
    bottom: .7rem;
    left: .7rem;
  }

  .cookie-actions {
    display: grid;
  }

  .cookie-button {
    width: 100%;
  }
}
