/* Optional analytics controls, kept separate from the waiting-list interface. */
.analytics-consent[hidden],
.analytics-consent [hidden],
[data-analytics-settings][hidden] {
  display: none !important;
}

.analytics-consent {
  position: fixed;
  z-index: 900;
  inset: auto 20px 20px;
  width: min(1160px, calc(100% - 40px));
  max-height: min(80vh, 600px);
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow: auto;
  border: 1px solid #c9c6be;
  border-top: 3px solid #b58a43;
  border-radius: 14px;
  background: #fbfaf7;
  color: #102131;
  box-shadow: 0 12px 50px rgba(13, 32, 49, .22);
  font: 14px/1.55 Arial, Helvetica, sans-serif;
}

.analytics-consent-copy {
  flex: 1;
  min-width: 0;
}

.analytics-consent h2 {
  margin: 0 0 8px;
  color: #102131;
  font: 700 20px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: -.02em;
}

.analytics-consent p {
  margin: 0;
}

.analytics-consent .analytics-consent-detail {
  margin-top: 8px;
  font-size: 12px;
  color: #53616c;
}

.analytics-consent a,
.analytics-inline-settings {
  color: #102131;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  flex: 0 0 180px;
  display: grid;
  gap: 10px;
}

.analytics-consent-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #102131;
  border-radius: 7px;
  background: #102131;
  color: #fff;
  font: 700 13px/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.analytics-consent-actions button:hover {
  background: #243e54;
}

.analytics-consent-actions .analytics-consent-close {
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  color: #102131;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}

.analytics-settings,
.analytics-inline-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-footer .analytics-settings {
  color: #374550;
  font: 700 11px Arial, Helvetica, sans-serif;
}

.analytics-settings:hover {
  text-decoration: underline;
}

.analytics-consent :focus-visible,
.analytics-settings:focus-visible,
.analytics-inline-settings:focus-visible {
  outline: 3px solid #8a641f;
  outline-offset: 4px;
}

.analytics-consent-status:empty {
  display: none;
}

.analytics-consent .analytics-consent-status {
  margin-top: 8px;
  font-weight: 700;
}

.analytics-noscript {
  margin: 16px;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 680px) {
  .analytics-consent {
    inset: auto 10px max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: 13px;
  }

  .analytics-consent-actions {
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-consent-actions .analytics-consent-close {
    grid-column: 1 / -1;
  }

  .site-footer .analytics-settings {
    font-size: 10px;
  }
}
