/* Saját, nem modális statisztikai választó, az eredeti arculattal. */
.analytics-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
}
.analytics-settings:hover {
  color: var(--theme-accent-ink, #00dff5);
}
.analytics-consent {
  position: fixed;
  z-index: 60;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  border: 1px solid var(--theme-line-strong, #44535e);
  border-radius: 12px;
  background: var(--panel, #0c1216);
  color: var(--text, #f4f7f8);
  box-shadow: 0 12px 50px var(--theme-dialog-shadow, #0007);
  font:
    16px/1.6 Arial,
    "Helvetica Neue",
    sans-serif;
  animation: analytics-consent-in 0.2s ease-out;
}
.analytics-consent-copy h2 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.35;
}
.analytics-consent-copy p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--muted);
}
.analytics-consent-copy a {
  color: var(--theme-accent-ink, #00dff5);
  font-size: 14px;
  text-decoration: underline;
}
.analytics-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.analytics-consent-actions button {
  min-width: 110px;
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 8px;
  border: 1px solid var(--theme-line-strong, #53636e);
  background: var(--theme-inset, #11181e);
  color: var(--text);
  font:
    700 15px/1.4 Arial,
    "Helvetica Neue",
    sans-serif;
  cursor: pointer;
}
.analytics-consent-actions button:hover,
.analytics-consent-actions button[aria-pressed="true"] {
  border-color: var(--theme-accent-ink, #00dff5);
}
.analytics-consent-actions [data-analytics-close] {
  min-width: 80px;
}
.analytics-consent-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.analytics-consent-status:empty {
  display: none;
}
.analytics-consent :focus-visible,
.analytics-settings:focus-visible {
  outline: 2px solid var(--theme-accent-ink, #00dff5);
  outline-offset: 4px;
}
@keyframes analytics-consent-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 760px) {
  .analytics-consent {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    bottom: 12px;
    max-height: calc(100dvh - 24px);
  }
  .analytics-consent-actions button {
    flex: 1 1 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-consent {
    animation: none;
  }
}
@media print {
  .analytics-consent,
  .analytics-settings {
    display: none !important;
  }
}
