.analytics-consent {
  position: fixed;
  z-index: 10000;
  right: .75rem;
  bottom: .75rem;
  left: .75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  max-width: 760px;
  margin-inline: auto;
  padding: .45rem .75rem .45rem .9rem;
  color: #172033;
  background: #fff;
  border: 1px solid #dce4f2;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgb(20 32 58 / 18%);
}

.analytics-consent[hidden] { display: none; }
.analytics-consent__copy { display: flex; flex-wrap: wrap; gap: .2rem .45rem; align-items: baseline; }
.analytics-consent p { margin: 0; font-size: .84rem; line-height: 1.35; }
.analytics-consent a { color: #075fc7; font-size: .82rem; white-space: nowrap; }
.analytics-consent__actions { display: flex; }
.analytics-consent__button {
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid #0866e5;
  border-radius: 9px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.analytics-consent__button--primary { color: #fff; background: #0866e5; }
.analytics-consent__button--primary:hover { background: #0759c8; }
.analytics-consent__button:focus-visible,
.analytics-preference-button:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.analytics-preference-button {
  min-height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 599px) {
  .analytics-consent {
    bottom: calc(76px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    padding: .45rem .65rem;
  }
  .analytics-consent p { display: none; }
  .analytics-consent__copy { gap: .1rem .35rem; }
}
