.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48rem;
  margin: auto;
  padding: 1.25rem;
  color: #03194d;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  box-shadow: 0 .75rem 2.5rem rgb(3 25 77 / 22%);

  &[hidden] {
    display: none;
  }

  & h2,
  & p {
    margin: 0;
  }

  & h2 {
    margin-bottom: .5rem;
    color: #03194d;
    font-size: 1.15rem;
  }

  & p {
    max-width: 60ch;
    color: #334155;
    font-size: .95rem;
    line-height: 1.5;
  }

  & button {
    flex: 1;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: #03194d;
    border: 2px solid #03194d;
    border-radius: .45rem;
    cursor: pointer;
  }

  & button:hover,
  & button:focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 2px;
  }
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.analytics-consent-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  background: transparent;
  border: 0;
  border-radius: .2rem;
  box-shadow: none;
  cursor: pointer;

  &:hover {
    text-decoration-thickness: .12em;
  }

  &:focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 2px;
  }
}

@media (min-width: 48rem) {
  .analytics-consent {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .analytics-consent-actions {
    flex: 0 0 20rem;
  }
}
