:root {
  --cookie-bg: #061824;
  --cookie-panel: #0b2230;
  --cookie-border: rgba(134, 219, 226, .28);
  --cookie-text: #edf8fb;
  --cookie-muted: #a9c0c8;
  --cookie-accent: #54d7df;
  --cookie-focus: #ffd166;
}

.cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 9999;
  display: none;
  color: var(--cookie-text);
  font-family: inherit;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-consent__panel {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(6, 24, 36, .98), rgba(10, 44, 56, .98));
  border: 1px solid var(--cookie-border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
  border-radius: 18px;
  padding: 18px;
}

.cookie-consent__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cookie-consent h2 {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: 0;
}

.cookie-consent p {
  margin: 0;
  color: var(--cookie-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-consent button,
.cookie-consent a {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible {
  outline: 3px solid var(--cookie-focus);
  outline-offset: 2px;
}

.cookie-consent__accept {
  background: var(--cookie-accent);
  color: #03222b;
}

.cookie-consent__decline,
.cookie-consent__settings {
  background: transparent;
  color: var(--cookie-text);
  border-color: rgba(255, 255, 255, .22) !important;
}

.cookie-consent__settings {
  color: var(--cookie-muted);
}

.cookie-consent__details {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.cookie-consent.has-details .cookie-consent__details {
  display: block;
}

.cookie-consent__toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.cookie-consent__toggle input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cookie-accent);
}

.cookie-consent__small {
  display: block;
  margin-top: 2px;
  color: var(--cookie-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.cookie-preferences-link {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9998;
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(134, 219, 226, .34);
  background: rgba(6, 24, 36, .82);
  color: var(--cookie-text);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
  cursor: pointer;
}

.cookie-preferences-link.is-visible {
  display: grid;
}

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

  .cookie-consent__content {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent button,
  .cookie-consent a {
    flex: 1 1 140px;
  }
}
