.analytics-consent {
  position: fixed;
  z-index: 1500;
  right: 1rem;
  bottom: 1rem;
  box-sizing: border-box;
  width: min(35rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.15rem;
  border: 1px solid #69776e;
  border-radius: 0.35rem;
  background: #fcfbf7;
  color: #101713;
  box-shadow: 0 0.4rem 1.5rem rgb(6 11 18 / 18%);
  font: 0.9rem/1.5 Inter, system-ui, sans-serif;
  text-align: left;
}

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

.analytics-consent h2 {
  margin: 0 0 0.35rem;
  color: #101713;
  font: 700 1rem/1.3 Inter, system-ui, sans-serif;
}

.analytics-consent p {
  margin: 0 0 0.45rem;
  color: #101713;
  font: inherit;
}

.analytics-consent a {
  color: #153b74;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.analytics-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #0c2118;
  border-radius: 0.2rem;
  background: #fcfbf7;
  color: #0c2118;
  font: 650 0.9rem/1.3 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.analytics-consent__actions button:hover {
  background: #0c2118;
  color: #fcfbf7;
}

.analytics-consent :is(a, button):focus-visible {
  outline: 3px solid #153b74;
  outline-offset: 3px;
}

.analytics-preferences-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.analytics-preferences-link[hidden] { display: none; }

.analytics-preferences-link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .analytics-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 1rem;
  }
}
