/* Consent controls use the same brand colours and fonts as the website. */
.analytics-panel {
  position: fixed;
  z-index: 100;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 930px;
  max-height: calc(100dvh - 48px);
  margin: 0 auto;
  padding: 25px 28px;
  overflow-y: auto;
  background: var(--ivory, #f6f3ec);
  color: var(--forest, #103d35);
  border: 1px solid var(--sage, #8fae9d);
  border-radius: 6px;
  box-shadow: 0 8px 40px #103d3530;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.analytics-panel[hidden] { display: none; }
.analytics-panel h2 {
  font-family: Sora, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}
.analytics-panel p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 9px;
}
.analytics-panel .analytics-details,
.analytics-panel .analytics-current {
  font-size: 12px;
  margin-bottom: 0;
}
.analytics-panel .analytics-details { margin-bottom: 7px; }
.analytics-current { color: #485c52; }
.analytics-actions { display: grid; gap: 10px; min-width: 165px; }
.analytics-choice {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--forest, #103d35);
  border-radius: 4px;
  background: var(--ivory, #f6f3ec);
  color: var(--forest, #103d35);
  font: 600 14px/1.4 Inter, Arial, sans-serif;
  cursor: pointer;
}
.analytics-choice:hover { background: #e3e8dc; }
.analytics-choice:focus-visible,
.analytics-panel a:focus-visible,
.analytics-settings-link:focus-visible {
  outline: 3px solid #367d94;
  outline-offset: 4px;
}
.analytics-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}
.analytics-settings-link[hidden] { display: none; }
.analytics-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 650px) {
  .analytics-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-height: calc(100dvh - 24px);
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 20px;
  }
  .analytics-actions { grid-template-columns: 1fr 1fr; min-width: 0; gap: 10px; }
  .analytics-choice { padding: 10px 9px; }
}
