.analytics-consent {
  position: fixed;
  z-index: 110;
  inset: auto 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 66rem;
  margin-inline: auto;
  padding: 1.25rem;
  color: #172b3a;
  background: #fff;
  border: 1px solid #d5e0e7;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgb(20 45 65 / 18%);
}

.analytics-consent h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.analytics-consent p {
  max-width: 44rem;
  margin: 0;
  font-size: 0.9rem;
}

.analytics-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.analytics-consent button,
.inline-button {
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  color: #172b3a;
  background: #fff;
  border: 1px solid #9aabb8;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.analytics-consent button[data-consent="accepted"] {
  color: #fff;
  background: #174e70;
  border-color: #174e70;
}

.analytics-consent button:focus-visible,
.inline-button:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 2px;
}

.inline-button {
  min-height: auto;
  padding: 0;
  color: #174e70;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 42rem) {
  .analytics-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
