.analytics-consent[hidden], .analytics-consent__close[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid #cadce8;
  border-radius: 18px;
  background: #f8fcff;
  color: #273b48;
  box-shadow: 0 12px 40px #10263130;
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.analytics-consent h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.analytics-consent p { margin: 0; font-size: 14px; line-height: 1.5; }
.analytics-consent a { color: #0879aa; text-underline-offset: 3px; }
.analytics-consent__current:empty { display: none; }
.analytics-consent__current { margin-top: 6px !important; font-weight: 650; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.analytics-consent__actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #0879aa;
  border-radius: 12px;
  background: transparent;
  color: #075b81;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.analytics-consent__actions button:hover { background: #e6f3fd; }
.analytics-consent__actions .analytics-consent__close { border-color: #cadce8; }
.analytics-consent button:focus-visible, .analytics-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.analytics-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
body.analytics-consent-visible { padding-bottom: 200px; }
@media (max-width: 680px) {
  .analytics-consent { flex-direction: column; align-items: stretch; gap: 14px; max-height: 70vh; overflow: auto; }
  .analytics-consent__actions { flex: auto; }
  .analytics-consent__actions button { flex: 1 1 110px; }
  body.analytics-consent-visible { padding-bottom: 310px; }
}
@media (prefers-color-scheme: dark) {
  .analytics-consent { border-color: #385463; background: #16313e; color: #e7f2f8; }
  .analytics-consent a { color: #7bc9ef; }
  .analytics-consent__actions button { border-color: #7bc9ef; color: #c8eafa; }
  .analytics-consent__actions button:hover { background: #254b5d; }
  .analytics-consent__actions .analytics-consent__close { border-color: #547080; }
}
