/* MAEVE first-party consent. Colors and type come from style.css tokens. */

.cs_cookie_settings_link {
  align-items: center;
  background: none;
  border: 0;
  color: var(--secondary);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs_cookie_settings_link:hover,
.cs_cookie_settings_link:focus-visible {
  color: var(--accent);
}

.cs_cookie_settings_link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cs_cookie_footer_min {
  border-top: 1px solid rgba(195, 0, 107, 0.16);
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

html.maeve-consent-lock,
html.maeve-consent-lock body {
  overflow: hidden;
}

.maeve-consent {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10050;
}

.maeve-consent__overlay {
  background: rgba(48, 48, 48, 0.42);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.maeve-consent__dialog {
  background: var(--white);
  border: 1px solid rgba(195, 0, 107, 0.16);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(48, 48, 48, 0.16);
  color: var(--secondary);
  font-family: var(--secondary-font);
  max-height: min(720px, calc(100dvh - 32px));
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 32px 32px 28px;
  position: relative;
  width: min(520px, 100%);
}

.maeve-consent__logo {
  display: block;
  height: auto;
  margin: 4px 0 22px;
  width: 168px;
}

.maeve-consent__dialog h2 {
  color: var(--primary);
  font-family: var(--primary-font);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 14px;
}

.maeve-consent__copy,
.maeve-consent__note {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.maeve-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maeve-consent__btn {
  align-items: center;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--secondary-font);
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.06em;
  line-height: 1.35;
  min-height: 52px;
  padding: 14px 18px;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.maeve-consent__btn:focus-visible,
.maeve-consent__switch:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.maeve-consent__btn--primary {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: var(--white);
}

.maeve-consent__btn--primary:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.maeve-consent__btn--outline {
  background-color: var(--white);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.maeve-consent__btn--outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

.maeve-consent__btn--ghost {
  background-color: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.maeve-consent__btn--ghost:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.maeve-consent__row {
  align-items: flex-start;
  border-top: 1px solid rgba(48, 48, 48, 0.1);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 0;
}

.maeve-consent__row h3 {
  color: var(--primary);
  font-family: var(--secondary-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 6px;
}

.maeve-consent__row p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.maeve-consent__switch {
  background: #e4e4e4;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 32px;
  margin-top: 2px;
  padding: 3px;
  position: relative;
  width: 56px;
}

.maeve-consent__switch[aria-checked="true"] {
  background: var(--accent);
}

.maeve-consent__switch[disabled] {
  cursor: not-allowed;
  opacity: 0.85;
}

.maeve-consent__knob {
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(48, 48, 48, 0.25);
  display: block;
  height: 26px;
  transform: translateX(0);
  transition: transform 0.2s ease;
  width: 26px;
}

.maeve-consent__switch[aria-checked="true"] .maeve-consent__knob {
  transform: translateX(24px);
}

.maeve-consent-debug {
  background: var(--white);
  border: 1px solid rgba(48, 48, 48, 0.16);
  border-radius: 12px;
  bottom: 12px;
  box-shadow: 0 10px 30px rgba(48, 48, 48, 0.12);
  color: var(--primary);
  font-family: var(--secondary-font);
  font-size: 12px;
  left: 12px;
  line-height: 1.45;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px 14px;
  position: fixed;
  z-index: 10040;
}

.maeve-consent-debug h2 {
  font-family: var(--secondary-font);
  font-size: 13px;
  margin: 0 0 8px;
}

.maeve-consent-debug p {
  margin: 0 0 4px;
}

@media (max-width: 640px) {
  .maeve-consent {
    align-items: flex-end;
    padding: 0;
  }

  .maeve-consent__dialog {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-left: 0;
    border-right: 0;
    max-height: calc(100dvh - 12px);
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    width: 100%;
  }

  .maeve-consent__dialog h2 {
    font-size: 32px;
  }

  .maeve-consent__logo {
    margin-bottom: 16px;
    width: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maeve-consent__btn,
  .maeve-consent__knob {
    transition: none;
  }

  .maeve-consent__btn--primary:hover {
    transform: none;
  }
}

@media print {
  .maeve-consent,
  .maeve-consent-debug,
  .cs_cookie_footer_min {
    display: none !important;
  }
}
