.analytics-consent {
  position: fixed;
  z-index: 100;
  inset: auto 0.75rem 0.75rem;
  width: min(54rem, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: #162766;
  background: #faf9f4;
  border: 1px solid #ccd1e2;
  border-radius: 0.85rem;
  box-shadow: 0 0.6rem 2.5rem #12245b26;
}
.analytics-consent p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}
.analytics-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.analytics-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 0.5rem;
}
.analytics-consent-actions button {
  border: 1px solid #26398c;
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  color: #182e83;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.analytics-consent-actions button:hover {
  background: #edf0fc;
}
.analytics-preferences {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.analytics-consent button:focus-visible,
.analytics-preferences:focus-visible {
  outline: 0.2rem solid #cc9f00;
  outline-offset: 0.25rem;
}
[data-analytics-banner][hidden],
[data-analytics-open][hidden] {
  display: none;
}
@media (max-width: 48rem) {
  .analytics-consent {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .analytics-consent-actions {
    width: 100%;
  }
}
