/* © 2026 ABA System. All Rights Reserved. */

.analytics-consent {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: min(880px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #d7d1f4;
  border-radius: 18px;
  background: #fff;
  color: #16132b;
  box-shadow: 0 24px 60px -28px rgba(36, 26, 105, .55);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.analytics-consent-copy { min-width: 0; }
.analytics-consent-copy strong { display: block; margin-bottom: 5px; font-size: 1.05rem; }
.analytics-consent-copy p { margin: 0; color: #4b4767; }
.analytics-consent-copy a { color: #4a3fc5; text-underline-offset: 3px; }

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.analytics-consent-button,
.analytics-settings {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: 750 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.analytics-consent-button { padding: 12px 16px; }
.analytics-consent-button-primary { background: #5b4ee0; color: #fff; }
.analytics-consent-button-primary:hover { background: #493ccb; }
.analytics-consent-button-secondary { border-color: #c8c1ee; background: #fff; color: #302a5b; }
.analytics-consent-button-secondary:hover { background: #f5f3ff; border-color: #8e84d8; }

.analytics-settings {
  display: block;
  min-height: 44px;
  margin: 18px auto 0;
  padding: 8px 12px;
  border-color: transparent;
  background: transparent;
  color: #4b4767;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-settings:hover { color: #493ccb; }
.analytics-settings[hidden] { display: none; }

.analytics-consent-button:focus-visible,
.analytics-settings:focus-visible {
  outline: 3px solid rgba(91, 78, 224, .55);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .analytics-consent { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .analytics-consent-actions { display: grid; grid-template-columns: 1fr; }
  .analytics-consent-button { width: 100%; }
}

@media (max-width: 420px) {
  .analytics-consent { right: 12px; bottom: 12px; left: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent-button,
  .analytics-settings { transition: none; }
}
