/* CMP / cookies consent */
.cmp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cmp-overlay.is-visible { display: flex; }

.cmp-modal {
  width: min(820px, 54vw);
  max-height: 72vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  border: 1px solid rgba(232,214,177,.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(199,164,93,.14), transparent 36%),
    linear-gradient(180deg, rgba(24,22,17,.98), rgba(10,10,8,.98));
  box-shadow: 0 38px 120px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.06);
  color: var(--text, #F7F1E6);
  padding: clamp(22px, 3vw, 38px);
}

.cmp-modal > .cmp-kicker,
.cmp-modal > .cmp-title,
.cmp-modal > .cmp-actions,
.cmp-modal > .cmp-footer {
  flex: 0 0 auto;
}

.cmp-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.cmp-scroll::-webkit-scrollbar { width: 8px; }
.cmp-scroll::-webkit-scrollbar-thumb {
  background: rgba(232,214,177,.24);
  border-radius: 999px;
}

.cmp-kicker {
  color: var(--primary, #C7A45D);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cmp-title {
  font-family: var(--fd, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  margin-bottom: 16px;
}

.cmp-intro {
  color: var(--muted2, #BEB4A3);
  font-size: 15px;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 22px;
}

.cmp-options {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
}

.cmp-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(232,214,177,.15);
  border-radius: 20px;
  background: rgba(247,241,230,.045);
}

.cmp-option h3 {
  font-family: var(--fd, 'Cormorant Garamond', Georgia, serif);
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cmp-option p {
  color: var(--muted2, #BEB4A3);
  font-size: 13px;
  line-height: 1.6;
}

.cmp-switch {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 32px;
  flex: 0 0 58px;
}

.cmp-switch input { opacity: 0; width: 0; height: 0; }

.cmp-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(232,214,177,.18);
  transition: .22s;
}

.cmp-slider::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: #F7F1E6;
  transition: .22s;
}

.cmp-switch input:checked + .cmp-slider { background: linear-gradient(135deg, #E7D09A, #A77D3C); }
.cmp-switch input:checked + .cmp-slider::before { transform: translateX(26px); }
.cmp-switch input:disabled + .cmp-slider { opacity: .75; cursor: not-allowed; }

.cmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(232,214,177,.12);
  background: linear-gradient(180deg, rgba(24,22,17,.78), rgba(10,10,8,.94));
}

.cmp-btn {
  border: 1px solid rgba(232,214,177,.24);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--fb, Manrope, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  color: #F7F1E6;
  background: rgba(247,241,230,.045);
}

.cmp-btn:hover { border-color: rgba(232,214,177,.42); background: rgba(247,241,230,.075); }

.cmp-btn--primary {
  color: #16120B;
  border-color: rgba(255,244,218,.42);
  background: linear-gradient(135deg, #E7D09A 0%, #C7A45D 45%, #A77D3C 100%);
  box-shadow: 0 18px 48px rgba(167,125,60,.20), inset 0 1px 0 rgba(255,255,255,.34);
}

.cmp-footer {
  color: var(--muted, #8F8779);
  font-size: 12px;
  line-height: 1.65;
  margin-top: 18px;
}

.cmp-footer a {
  color: var(--accent, #D9C08A);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,192,138,.32);
}

.cmp-manage {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: none;
  border: 1px solid rgba(232,214,177,.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(10,10,8,.82);
  color: #D9C08A;
  font-family: var(--fb, Manrope, sans-serif);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.cmp-manage.is-visible { display: inline-flex; }

@media (max-width: 900px) {
  .cmp-overlay {
    align-items: center;
    justify-content: center;
    padding: 14px;
  }

  .cmp-modal {
    width: min(94vw, 560px);
    height: 70vh;
    min-height: 70vh;
    max-height: 70vh;
    padding: 16px;
    border-radius: 24px;
  }

  .cmp-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 10px;
  }

  .cmp-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 5px;
  }

  .cmp-intro {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .cmp-options {
    gap: 9px;
    margin: 0;
  }

  .cmp-option {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
  }

  .cmp-option h3 { font-size: 20px; }
  .cmp-option p { font-size: 12px; line-height: 1.45; }

  .cmp-actions {
    flex: 0 0 auto;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .cmp-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 12px;
  }

  .cmp-footer {
    flex: 0 0 auto;
    font-size: 10px;
    line-height: 1.35;
    margin-top: 8px;
  }
}

@media (max-width: 420px), (max-height: 760px) {
  .cmp-modal {
    height: 70vh;
    min-height: 70vh;
    max-height: 70vh;
  }

  .cmp-kicker { margin-bottom: 6px; }
  .cmp-title { font-size: 27px; margin-bottom: 8px; }
  .cmp-intro { margin-bottom: 10px; }
  .cmp-option { padding: 11px; }
  .cmp-option h3 { font-size: 18px; }
}

@media (min-width: 901px) and (max-width: 1366px) {
  .cmp-modal {
    width: min(760px, 62vw);
    max-height: 72vh;
  }
}

@media (min-width: 1367px) {
  .cmp-modal {
    width: min(820px, 50vw);
    max-height: 70vh;
  }
}
