/* Local, non-modal consent. Never changes body padding or dock positioning. */
.analytics-consent {
  color: inherit;
  font: inherit;
}

.analytics-consent-manage {
  padding: 8px 0;
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.analytics-consent-panel {
  position: fixed;
  z-index: 12;
  left: max(calc(var(--rail, 76px) + 24px), env(safe-area-inset-left, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 480px));
  box-sizing: border-box;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 27px;
  border: 1px solid #d2dde0;
  border-radius: 0;
  background: #fffdf8;
  color: #182324;
  box-shadow: 0 12px 40px #003c461c;
  font-family: inherit;
  text-align: left;
}

.analytics-consent-panel[hidden] {
  display: none;
}

.analytics-consent-panel .analytics-consent-eyebrow {
  margin: 0 24px 10px 0;
  color: #546569;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.analytics-consent-panel h2 {
  margin: 0 12px 14px 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.analytics-consent-panel p:not(.analytics-consent-eyebrow) {
  margin: 0 0 12px;
  color: #546569;
  font-size: 13px;
  line-height: 1.6;
}

.analytics-consent-privacy {
  color: #007c93;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.analytics-consent-choice {
  min-height: 44px;
  padding: 11px 8px;
  border: 1px solid #008da7;
  border-radius: 5px;
  background: #f6faf9;
  color: #005968;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.analytics-consent-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #546569;
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}

.analytics-consent :is(button, a):focus-visible,
.analytics-consent-panel h2:focus-visible {
  outline: 2px solid #007c93;
  outline-offset: 4px;
}

.analytics-consent-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) {
  .analytics-consent-choice:hover,
  .analytics-consent-close:hover {
    background: #edf6f7;
  }
}

/* Above the bottom admissions dock; no backdrop and no focus trap. */
@media (max-width: 1000px) {
  .analytics-consent-panel {
    top: max(20px, env(safe-area-inset-top, 0px));
    bottom: auto;
    left: max(92px, env(safe-area-inset-left, 0px));
    width: min(390px, calc(100vw - 116px));
    max-height: min(65dvh, calc(100dvh - 180px));
  }
}

@media (max-width: 760px) {
  .analytics-consent-panel {
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: 440px;
    padding: 24px;
  }
}
