/* Cookie consent (CMP) — Mobile Sauna Therapy */
.cmp-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.cmp-banner[hidden],
.cmp-modal[hidden] {
  display: none !important;
}

/* Keep the homepage reservation card above this fixed banner. */
.hero {
  padding-bottom: var(--cmp-banner-h, 0px);
}

.cmp-banner__panel {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper, #fbf6ec);
  color: var(--ink, #23201b);
  border: 1px solid rgba(18, 58, 83, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(12, 40, 54, 0.45);
  padding: 1.15rem 1.25rem 1.2rem;
}

.cmp-banner__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy, #123a53);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.cmp-banner__text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3f3b35;
}

.cmp-banner__text a {
  color: #8a4a1f;
  font-weight: 600;
}

.cmp-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cmp-btn {
  appearance: none;
  border-radius: 100px;
  font-family: var(--font-body, system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7em 1.15em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.cmp-btn:hover {
  transform: translateY(-1px);
}

.cmp-btn:focus-visible {
  outline: 3px solid var(--cedar, #d98a4f);
  outline-offset: 2px;
}

.cmp-btn--primary {
  background: var(--navy, #123a53);
  color: var(--cream, #f7f0e3);
}

.cmp-btn--primary:hover {
  background: var(--navy-deep, #0c2836);
}

.cmp-btn--secondary {
  background: transparent;
  color: var(--navy, #123a53);
  border-color: rgba(18, 58, 83, 0.28);
}

.cmp-btn--secondary:hover {
  background: rgba(18, 58, 83, 0.06);
}

.cmp-btn--ghost {
  background: transparent;
  color: #5c564e;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 0.6em;
  padding-right: 0.6em;
}

.cmp-btn--ghost:hover {
  color: var(--navy, #123a53);
  transform: none;
}

/* Preferences modal */
.cmp-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: rgba(12, 40, 54, 0.55);
  backdrop-filter: blur(4px);
}

.cmp-modal__dialog {
  width: min(520px, 100%);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: var(--paper, #fbf6ec);
  color: var(--ink, #23201b);
  border-radius: 20px;
  box-shadow: 0 28px 70px -18px rgba(12, 40, 54, 0.55);
  padding: 1.35rem 1.3rem 1.25rem;
}

.cmp-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cmp-modal__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy, #123a53);
  margin: 0;
  line-height: 1.15;
}

.cmp-modal__close {
  appearance: none;
  border: none;
  background: rgba(18, 58, 83, 0.08);
  color: var(--navy, #123a53);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.cmp-modal__close:focus-visible {
  outline: 3px solid var(--cedar, #d98a4f);
  outline-offset: 2px;
}

.cmp-modal__lede {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3f3b35;
}

.cmp-cat {
  border: 1px solid rgba(18, 58, 83, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  background: #fff;
}

.cmp-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cmp-cat__name {
  font-weight: 700;
  color: var(--navy, #123a53);
  font-size: 0.95rem;
  margin: 0;
}

.cmp-cat__desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #5c564e;
}

.cmp-switch {
  position: relative;
  width: 3rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.cmp-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cmp-switch__ui {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(18, 58, 83, 0.2);
  transition: background 0.2s;
  cursor: pointer;
}

.cmp-switch__ui::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(12, 40, 54, 0.25);
  transition: transform 0.2s;
}

.cmp-switch input:checked + .cmp-switch__ui {
  background: var(--cedar, #d98a4f);
}

.cmp-switch input:checked + .cmp-switch__ui::after {
  transform: translateX(1.25rem);
}

.cmp-switch input:disabled + .cmp-switch__ui {
  background: var(--navy, #123a53);
  cursor: not-allowed;
  opacity: 0.85;
}

.cmp-switch input:focus-visible + .cmp-switch__ui {
  outline: 3px solid var(--cedar, #d98a4f);
  outline-offset: 2px;
}

.cmp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

@media (min-width: 640px) {
  .cmp-modal {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .cmp-banner__actions {
    flex-direction: column;
  }
  .cmp-banner__actions .cmp-btn {
    width: 100%;
  }
  .cmp-btn--ghost {
    order: 3;
  }
}
