.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(7, 61, 37, 0.78);
  overflow-y: auto;
}

html.age-ok .age-gate {
  display: none !important;
}

html:not(.age-ok) {
  overflow: hidden;
}

.age-gate__panel {
  width: min(680px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  margin: auto;
  padding: 28px 32px 26px;
  border: 4px solid #84754e;
  border-radius: 0;
  background: #073d25;
  color: #fff;
  box-shadow: none;
  font-family: "Libre Baskerville", serif;
  text-align: left;
  outline: none;
}

.age-gate__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #84754e;
  color: #f4cf7e;
  font-family: "Libre Baskerville", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.35;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.age-gate__deny,
.age-gate__allow {
  appearance: none;
  border: 1px solid #f4cf7e;
  border-radius: 0;
  padding: 10px 18px;
  font: 400 14px/1.3 "Libre Baskerville", serif;
  cursor: pointer;
}

.age-gate__deny {
  background: transparent;
  color: #f4cf7e;
}

.age-gate__deny:hover,
.age-gate__deny:focus-visible {
  background: #84754e;
  color: #fff;
}

.age-gate__allow {
  background: #f4cf7e;
  color: #073d25;
}

.age-gate__allow:hover,
.age-gate__allow:focus-visible {
  background: #fff;
  color: #073d25;
}

.age-gate__deny:focus-visible,
.age-gate__allow:focus-visible,
.age-gate__copy a:focus-visible {
  outline: 2px solid #f4cf7e;
  outline-offset: 2px;
}

.age-gate__alert {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #f4cf7e;
  border-radius: 0;
  background: transparent;
  color: #f4cf7e;
  font-size: 14px;
  line-height: 1.45;
}

.age-gate__copy p {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.age-gate__copy strong {
  font-weight: 700;
  color: #f4cf7e;
}

.age-gate__help {
  margin-bottom: 0;
}

.age-gate__help a {
  color: #f4cf7e;
  text-underline-offset: 2px;
}

@media (max-width: 519px) {
  .age-gate__panel {
    padding: 22px 18px 18px;
  }

  .age-gate__title {
    font-size: 1.3rem;
  }

  .age-gate__actions {
    flex-direction: column;
  }

  .age-gate__deny,
  .age-gate__allow {
    width: 100%;
  }
}

html:not(.age-ok) .cookie-banner {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90000;
  display: flex;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cookie-banner__close {
  width: 32px;
  height: 32px;
  border: 1px solid #f4cf7e;
  border-radius: 0;
  background: transparent;
  color: #f4cf7e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner__close[hidden] {
  display: none !important;
}

.cookie-banner__more-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: #f4cf7e;
  font: 400 14px/1.5 "Libre Baskerville", serif;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner__fold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f4cf7e;
  font: 400 15px/1.3 "Libre Baskerville", serif;
  cursor: pointer;
}

.cookie-banner__always {
  color: #f4cf7e;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.cookie-banner__panel {
  pointer-events: auto;
  width: min(760px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 20px 22px;
  border: 4px solid #84754e;
  border-radius: 0;
  background: #073d25;
  color: #fff;
  box-shadow: none;
  font-family: "Libre Baskerville", serif;
}

.cookie-banner__panel h2 {
  margin: 0 0 8px;
  color: #f4cf7e;
  font-family: "Libre Baskerville", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.cookie-banner__panel p,
.cookie-banner__row p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner__panel a {
  color: #f4cf7e;
}

.cookie-banner__settings {
  margin-top: 14px;
}

.cookie-banner__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #84754e;
  border-radius: 0;
}

.cookie-banner__row.is-locked {
  border-color: #f4cf7e;
  background: transparent;
}

.cookie-banner__row p {
  margin-top: 6px;
}

.cookie-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid #84754e;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: #84754e;
  transition: transform 0.15s ease;
}

.cookie-switch.is-on {
  border-color: #f4cf7e;
  background: #f4cf7e;
}

.cookie-switch.is-on span {
  background: #073d25;
  transform: translateX(22px);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cookie-banner__allow,
.cookie-banner__deny,
.cookie-banner__ghost {
  border: 1px solid #f4cf7e;
  border-radius: 0;
  padding: 8px 16px;
  font: 400 14px/1.3 "Libre Baskerville", serif;
  cursor: pointer;
}

.cookie-banner__allow {
  background: #f4cf7e;
  color: #073d25;
}

.cookie-banner__allow:hover,
.cookie-banner__allow:focus-visible {
  background: #fff;
}

.cookie-banner__deny,
.cookie-banner__ghost {
  background: transparent;
  color: #f4cf7e;
}

.cookie-banner__deny:hover,
.cookie-banner__deny:focus-visible,
.cookie-banner__ghost:hover,
.cookie-banner__ghost:focus-visible {
  background: #84754e;
  color: #fff;
}

.casdagli-legal {
  max-width: 860px;
  margin: 36px auto 64px;
  padding: 0 16px;
  color: #fff;
}

.casdagli-legal h1 {
  margin: 8px 0 28px;
  padding-bottom: 16px;
  border-bottom: 5px solid #84754e;
  color: #84754e;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.casdagli-legal h2 {
  margin: 28px 0 10px;
  color: #f4cf7e;
  font-size: 1.4rem;
}

.casdagli-legal p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.casdagli-legal a {
  color: #f4cf7e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin: 0 0 8px;
}

.footer-links a[data-legal-link] {
  color: #fff;
  font-size: 0.8em;
  text-decoration: none;
}

.footer-disclaimer button[data-age-reset] {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #f4cf7e;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
