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

.analytics-consent {
  position: fixed;
  z-index: 10000;
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom));
  width: calc(100% - 2rem);
  max-width: 74rem;
  max-height: calc(100svh - 2rem);
  margin-inline: auto;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-y: auto;
  border: 1px solid #777;
  background: #111;
  box-shadow: 0 0.5rem 3rem #0008;
  color: #fff;
  font: 400 14px/1.5 Arial, sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.analytics-consent-copy { flex: 1; min-width: 0; }
.analytics-consent h2 {
  margin: 0 0 0.4rem;
  color: #fff;
  font: 700 18px/1.3 Arial, sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.analytics-consent p { margin: 0 0 0.4rem; color: #eee; font: inherit; }
.analytics-consent a { color: #fff; text-decoration: underline; font: inherit; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.analytics-consent button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #eee;
  border-radius: 0;
  background: #f7f7f4;
  color: #111;
  cursor: pointer;
  font: 700 13px/1.3 Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.analytics-consent .analytics-consent-close { background: transparent; color: #fff; }
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible,
.analytics-preferences button:focus-visible { outline: 3px solid #9ed8ff; outline-offset: 3px; }
.analytics-preferences { padding: 1rem; text-align: center; }
.analytics-preferences button {
  min-height: 44px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 400 12px/1.4 Arial, sans-serif;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .analytics-consent { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1rem; }
  .analytics-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .analytics-consent-close { grid-column: 1 / -1; }
  .analytics-preferences { padding-bottom: 5rem; }
}
