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

html:not(.age-confirmed) .cookie-consent,
html:not(.age-confirmed) .cookie-settings { visibility: hidden; }

.cookie-consent,
.cookie-settings {
  position: fixed;
  z-index: 4500;
  color: var(--paper, #f4ecd8);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent {
  right: clamp(16px, 3vw, 42px);
  bottom: clamp(16px, 3vw, 36px);
  width: min(520px, calc(100vw - 32px));
  padding: clamp(22px, 3vw, 32px);
  border: 2px solid var(--orange, #c35c32);
  background: var(--green, #17352d);
  box-shadow: 9px 9px 0 rgb(0 0 0 / .22);
}

.cookie-consent h2,
.cookie-settings h2 {
  margin: 0 0 10px;
  color: var(--orange, #c35c32);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(31px, 4vw, 42px);
  line-height: .95;
}

.cookie-consent p,
.cookie-settings p { margin: 0; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cookie-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--orange, #c35c32);
  color: var(--paper, #f4ecd8);
  background: transparent;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 20px;
  cursor: pointer;
}

.cookie-button--primary { background: var(--orange, #c35c32); }
.cookie-button:hover, .cookie-button:focus-visible { transform: translateY(-2px); }

.cookie-settings {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(8 20 17 / .78);
}

.cookie-settings__panel {
  width: min(610px, 100%);
  max-height: min(720px, calc(100dvh - 36px));
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  background: var(--green, #17352d);
  border: 2px solid var(--orange, #c35c32);
  box-shadow: 10px 10px 0 rgb(0 0 0 / .25);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  padding: 18px 0;
  border-top: 1px solid rgb(244 236 216 / .28);
}

.cookie-option strong { font-family: "Bebas Neue", Impact, sans-serif; font-size: 23px; }
.cookie-option small { grid-column: 1 / -1; color: rgb(244 236 216 / .8); }
.cookie-option input { width: 22px; height: 22px; accent-color: var(--orange, #c35c32); }
.cookie-preferences-link { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; }
.cookie-preferences-link:hover, .cookie-preferences-link:focus-visible { color: var(--orange, #c35c32); }

@media (max-width: 520px) {
  .cookie-actions { display: grid; }
  .cookie-button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent { animation: cookie-in .42s cubic-bezier(.16, 1, .3, 1); }
  .cookie-button { transition: transform .18s ease, background-color .18s ease; }
  @keyframes cookie-in { from { opacity: 0; transform: translateY(18px); } }
}
