.cookie-consent[hidden],
.cookie-preferences[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 1000;
  max-width: 760px;
  margin-inline: auto;
  padding: 18px;
  background: rgba(5, 12, 12, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.cookie-consent__content {
  display: grid;
  gap: 14px;
}

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

.cookie-consent p,
.cookie-preferences p {
  margin: 0;
  color: var(--muted, #b8c4c2);
}

.cookie-consent a,
.cookie-preferences a,
.cookie-settings-button {
  color: var(--gold, #f2b705);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions,
.cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  color: #f5f7f7;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  border-color: var(--gold, #f2b705);
}

.cookie-consent__button--primary,
.cookie-consent__button--reject {
  background: var(--gold, #f2b705);
  border-color: var(--gold, #f2b705);
  color: #161100;
}

.cookie-consent__button--reject {
  background: #f5f7f7;
  border-color: #f5f7f7;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.cookie-preferences__panel {
  width: min(100%, 660px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 22px;
  background: #071111;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.cookie-preferences__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cookie-preferences__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  color: #f5f7f7;
  font-size: 1.35rem;
  cursor: pointer;
}

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-category:first-of-type {
  margin-top: 18px;
}

.cookie-category__status {
  color: #d6dfde;
  font-size: 0.9rem;
  font-weight: 700;
}

.cookie-toggle {
  width: 22px;
  height: 22px;
  accent-color: var(--gold, #f2b705);
}

.cookie-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cookie-dialog-open {
  overflow: hidden;
}

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

  .cookie-consent__actions,
  .cookie-preferences__actions {
    display: grid;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .cookie-preferences {
    padding: 10px;
  }

  .cookie-preferences__panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-preferences {
    scroll-behavior: auto;
  }
}
