#analytics-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: start; }
#analytics-settings:hover { color: #fff; text-decoration: underline; }
.analytics-banner {
  position: fixed; z-index: 30; inset-inline: 20px; bottom: 20px; width: min(840px,calc(100% - 40px));
  margin-inline: auto; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px;
  padding: 22px 44px 22px 24px; border: 1px solid #dedbe5; border-radius: 16px; background: #fff; color: #232332;
  box-shadow: 0 8px 40px #18102824; font: 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.analytics-banner[hidden] { display: none; }
.analytics-banner h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 650; }
.analytics-banner p { margin: 0 0 7px; color: #686777; }
.analytics-banner a { color: #5a26ce; text-underline-offset: 3px; }
.analytics-consent-status { font-weight: 600; }
.analytics-consent-controls { display: flex; flex-direction: column; gap: 8px; min-width: 142px; }
.analytics-consent-controls button {
  width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid #b5a4d0; border-radius: 8px;
  color: #4e2697; background: #f6f2fd; font: inherit; font-weight: 600; line-height: 1.3; cursor: pointer;
}
.analytics-consent-controls button:hover { background: #ebe2fc; border-color: #7a40fb; }
.analytics-consent-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; color: #6e6679; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.analytics-consent-close:hover { background: #f1eef6; }
.analytics-banner :focus-visible { outline: 3px solid #7a40fb; outline-offset: 3px; }
@media (max-width: 620px) {
  .analytics-banner { inset-inline: 12px; bottom: 12px; width: calc(100% - 24px); grid-template-columns: 1fr; gap: 14px; padding: 19px 34px 18px 18px; }
  .analytics-consent-controls { flex-direction: row; min-width: 0; flex-wrap: wrap; }
  .analytics-consent-controls button { flex: 1; width: auto; min-width: 110px; }
}
