.em-analytics-consent[hidden] { display: none !important; }
.em-analytics-consent {
  position: fixed;
  z-index: 1100;
  right: 1.25rem;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: min(32rem, calc(100% - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1.5rem;
  border: 1px solid #666;
  border-radius: 1rem;
  background: #171717;
  color: #f4f4ed;
  box-shadow: 0 1rem 4rem #0005;
  font: 400 0.9rem/1.55 var(--font-sans, system-ui, sans-serif);
  text-align: left;
}
.em-analytics-consent h2 { margin: 0 2rem 0.7rem 0; font: 600 1.2rem/1.3 var(--font-sans, system-ui, sans-serif); color: inherit; letter-spacing: normal; text-transform: none; }
.em-analytics-consent p { margin: 0 0 0.8rem; }
.em-analytics-consent a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.em-analytics-consent__status { font-size: 0.8rem; color: #ccc; }
.em-analytics-consent__actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1rem; }
.em-analytics-consent__actions button {
  flex: 1 1 10rem;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid #aaa;
  border-radius: 0.5rem;
  background: #252525;
  color: #f4f4ed;
  font: inherit;
  cursor: pointer;
}
.em-analytics-consent__actions button:hover { background: #363636; }
.em-analytics-consent__close { position: absolute; top: 0.65rem; right: 0.65rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0.5rem; background: transparent; color: inherit; font: 1.5rem/1 system-ui, sans-serif; cursor: pointer; }
.em-analytics-preferences { position: static; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: color 220ms ease; }
.em-analytics-preferences:hover { color: var(--color-accent, #ff4925); }
.em-analytics-consent button:focus-visible, .em-analytics-consent a:focus-visible, .em-analytics-consent h2:focus-visible, .em-analytics-preferences:focus-visible { outline: 2px solid #f4f4ed; outline-offset: 3px; }
@media (max-width: 640px) {
  .em-analytics-consent { right: 0.75rem; bottom: calc(5.5rem + env(safe-area-inset-bottom)); width: calc(100% - 1.5rem); max-height: calc(100dvh - 6.5rem - env(safe-area-inset-bottom)); padding: 1.15rem; }
}
