﻿/* EVERWOOD - Cookie consent UI */
.ewConsent {
  position: relative;
  z-index: 220;
}

.ewConsent [hidden] {
  display: none !important;
}

body.ewConsent--locked {
  overflow: hidden;
}

body.page-gdpr.ewConsent--gdpr-header-locked .siteHeader__brand,
body.page-gdpr.ewConsent--gdpr-header-locked .siteHeader [data-menu-btn] {
  pointer-events: none !important;
  opacity: 0.42;
  cursor: default;
}

.footer__gdpr[data-open-cookie-settings] {
  display: block;
  margin-top: 8px;
}

.ewConsent__gate {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: none;
}

.ewConsent__gate.is-open {
  display: block;
}

.ewConsent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 14, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ewConsent__bannerWrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ewConsent__banner {
  width: min(760px, calc(100vw - 32px));
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(11, 15, 20, 0.62);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.ewConsent__title {
  margin: 0;
  font-family: "Chillax-Semibold", "Chillax", system-ui, sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}

.ewConsent__text {
  margin: 12px auto 0;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.5;
}

.ewConsent__text--modal {
  margin-top: 10px;
  color: rgba(11, 15, 20, 0.78);
}

.ewConsent__link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ewConsent__actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ewConsent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-family: "Chillax-Semibold", "Chillax", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.ewConsent__btn:focus-visible,
.ewConsent__close:focus-visible,
.ewConsent__row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(220, 185, 122, 0.9);
  outline-offset: 2px;
}

.ewConsent__btn--primary {
  background: var(--gold);
  color: var(--green);
  border-color: rgba(220, 185, 122, 0.9);
}

.ewConsent__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.ewConsent__btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.ewConsent__modal {
  position: absolute;
  inset: 0;
  display: none;
}

.ewConsent__gate--modal-open .ewConsent__modal {
  display: block;
}

.ewConsent__gate--modal-open .ewConsent__bannerWrap {
  display: none;
}

.ewConsent__gate--modal-open .ewConsent__backdrop {
  display: none;
}

.ewConsent__modalBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(8, 11, 14, 0.54);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}

.ewConsent__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 620px);
  max-height: min(88vh, 760px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(11, 15, 20, 0.16);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 24px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}

.ewConsent__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.08);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ewConsent__modalTitle {
  margin: 0;
  font-family: "Chillax-Semibold", "Chillax", system-ui, sans-serif;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.1;
}

.ewConsent__rows {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.ewConsent__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(11, 15, 20, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
}

.ewConsent__row strong {
  display: block;
  font-family: "Chillax-Semibold", "Chillax", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

.ewConsent__row small {
  display: block;
  margin-top: 4px;
  color: rgba(11, 15, 20, 0.75);
  font-size: 13px;
  line-height: 1.4;
}

.ewConsent__row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

.ewConsent__row input[type="checkbox"][disabled] {
  cursor: not-allowed;
  opacity: 0.85;
}

.ewConsent__actions--modal .ewConsent__btn--ghost {
  color: var(--ink);
  border-color: rgba(11, 15, 20, 0.22);
  background: rgba(11, 15, 20, 0.04);
}

.ewConsent__actions--modal .ewConsent__btn--outline {
  color: var(--ink);
  border-color: rgba(11, 15, 20, 0.35);
}

/* GDPR exception: keep page readable when user opens gdpr.html from the banner. */
.ewConsent__gate--inline {
  pointer-events: none;
}

.ewConsent__gate--inline:not(.ewConsent__gate--modal-open) .ewConsent__backdrop {
  display: none;
}

.ewConsent__gate--inline:not(.ewConsent__gate--modal-open) .ewConsent__bannerWrap {
  position: fixed;
  inset: auto;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: block;
  padding: 0;
}

.ewConsent__gate--inline:not(.ewConsent__gate--modal-open) .ewConsent__banner {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .ewConsent__bannerWrap {
    padding: 10px;
  }

  .ewConsent__banner {
    width: calc(100vw - 20px);
    border-radius: 14px;
  }

  .ewConsent__panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .ewConsent__actions {
    flex-direction: column;
  }

  .ewConsent__btn {
    width: 100%;
  }

  .ewConsent__gate--inline:not(.ewConsent__gate--modal-open) .ewConsent__bannerWrap {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .ewConsent__gate--inline:not(.ewConsent__gate--modal-open) .ewConsent__banner {
    width: calc(100vw - 20px);
  }
}
