html[data-age-gate="pending"] {
  overflow: hidden;
}

html[data-age-gate="pending"] body > :is(.skip-link, .site-header, main, .site-footer) {
  visibility: hidden;
}

html[data-age-gate="confirmed"] .age-gate {
  display: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  width: min(32rem, 100% - 2rem);
  max-width: none;
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: clamp(1.3rem, 5vw, 2.5rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem rgb(39 29 41 / 20%);
}

.age-gate::backdrop {
  background: rgb(39 29 41 / 22%);
}

.age-gate-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.age-gate-badge {
  display: inline-grid;
  min-width: 2.65rem;
  min-height: 2.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--plum-light);
  color: var(--plum);
  font-weight: 750;
}

.age-gate h2 {
  font-size: clamp(1.8rem, 5vw, 2.65rem);
}

.age-gate p {
  margin-top: .8rem;
  color: var(--muted);
}

.age-gate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.4rem;
}

.age-gate .button {
  min-height: 3rem;
  justify-content: center;
  text-align: center;
}

.age-gate .age-gate-decline {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--plum);
}

.age-gate .age-gate-decline:hover {
  background: var(--plum-light);
}

.age-gate-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-top: 1.35rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 30rem) {
  .age-gate-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
