.hw-consent-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  border-top: 1px solid var(--hw-rule);
  background: var(--hw-paper-strong);
  color: var(--hw-ink);
  box-shadow: var(--hw-shadow);
}

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

.hw-consent-inner {
  width: min(100%, 1480px);
  margin-inline: auto;
  padding: clamp(18px, 2vw, 28px) var(--hw-page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 2.5vw, 40px);
  align-items: center;
}

.hw-consent-copy {
  display: grid;
  gap: 8px;
}

.hw-consent-copy p {
  max-width: 76ch;
  margin: 0;
  color: var(--hw-text-muted);
  line-height: 1.65;
}

.hw-consent-copy strong {
  color: var(--hw-ink);
}

.hw-consent-copy a,
.hw-consent-settings {
  color: var(--hw-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hw-consent-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.hw-consent-action {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--hw-rule-strong);
  border-radius: 999px;
  background: var(--hw-paper);
  color: var(--hw-ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.hw-consent-action:hover {
  border-color: var(--hw-blue);
  background: var(--hw-blue-tint);
  color: var(--hw-blue);
}

.hw-consent-action:focus-visible,
.hw-consent-settings:focus-visible {
  outline: 2px solid var(--hw-blue);
  outline-offset: 3px;
}

.hw-consent-settings {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

body.hw-consent-open {
  padding-bottom: clamp(170px, 18vw, 240px);
}

@media (max-width: 720px) {
  .hw-consent-inner {
    grid-template-columns: 1fr;
  }

  .hw-consent-actions {
    flex-direction: column;
  }

  .hw-consent-action {
    width: 100%;
  }

  body.hw-consent-open {
    padding-bottom: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-consent-action {
    transition: none;
  }
}
