.privacy-settings-button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.privacy-settings-button:hover {
  color: #a8c7ee;
}

.privacy-settings-button:focus-visible,
.analytics-consent a:focus-visible,
.analytics-consent-button:focus-visible {
  outline: 3px solid #75b6ff;
  outline-offset: 3px;
}

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

.analytics-consent {
  align-items: flex-end;
  background: #071d31;
  border: 1px solid #28435d;
  border-radius: 8px;
  bottom: 88px;
  box-shadow: 0 12px 28px #0006;
  color: var(--text, #d8dee1);
  display: flex;
  gap: 24px;
  left: max(24px, env(safe-area-inset-left));
  max-width: 760px;
  padding: 20px;
  position: fixed;
  width: calc(100% - 48px);
  z-index: 9998;
}

.analytics-consent-copy {
  flex: 1 1 auto;
}

.analytics-consent h2 {
  color: var(--text, #d8dee1);
  font-family: Inter, sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.analytics-consent p {
  color: var(--text, #d8dee1);
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 8px;
}

.analytics-consent a {
  color: #75b6ff;
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
}

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

.analytics-consent-button {
  border: 1px solid var(--primary-button, #03346e);
  border-radius: 8px;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 44px;
  padding: 10px 14px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.analytics-consent-button-primary {
  background: var(--primary-button, #03346e);
  color: var(--text, #d8dee1);
}

.analytics-consent-button-primary:hover {
  background: #02244d;
}

.analytics-consent-button-secondary {
  background: transparent;
  color: var(--text, #d8dee1);
}

.analytics-consent-button-secondary:hover {
  background: #102a43;
  border-color: #75b6ff;
}

@media screen and (max-width: 767px) {
  .analytics-consent {
    align-items: stretch;
    bottom: 84px;
    flex-direction: column;
    gap: 16px;
    left: max(16px, env(safe-area-inset-left));
    max-width: none;
    padding: 18px;
    width: calc(100% - 32px);
  }

  .analytics-consent-actions {
    justify-content: flex-end;
  }
}

@media screen and (max-width: 499px) {
  .analytics-consent {
    bottom: 80px;
    left: max(12px, env(safe-area-inset-left));
    padding: 16px;
    width: calc(100% - 24px);
  }

  .analytics-consent-actions {
    flex-direction: column;
  }

  .analytics-consent-button {
    width: 100%;
  }
}
