.closure-notice {
  /* Keep the notice white on both light and dark pages. */
  --text: var(--colour-light-900);
  --bg: var(--colour-light-0);
  --accent: var(--colour-blue);
  margin: auto;
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: visible;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  text-align: center;
}

.closure-notice__panel {
  max-height: calc(100dvh - 9rem);
  overflow-y: auto;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  background: var(--bg);
  box-shadow: 0 16px 48px rgb(0 0 0 / 8%);
}

.closure-notice::backdrop {
  background: rgb(0 0 0 / 20%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.closure-notice:focus {
  outline: none;
}

.closure-notice[open] {
  animation: closure-notice-in 220ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.closure-notice[open]::backdrop {
  animation: closure-backdrop-in 180ms ease-out both;
}

.closure-notice.is-closing {
  animation: closure-notice-out 160ms ease-in both;
}

.closure-notice.is-closing::backdrop {
  animation: closure-backdrop-out 160ms ease-in both;
}

@keyframes closure-notice-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes closure-notice-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(16px); }
}

@keyframes closure-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes closure-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .closure-notice[open],
  .closure-notice[open]::backdrop {
    animation: none;
  }

  .closure-notice__close:hover .closure-notice__cross {
    transform: none;
  }
}

.closure-notice__actions {
  margin-top: 1rem;
}

.closure-notice__close {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.closure-notice__close-circle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}

.closure-notice__cross {
  transition: transform 180ms ease;
}

.closure-notice__close:hover .closure-notice__cross {
  transform: rotate(90deg);
}

.closure-notice__close:focus-visible {
  outline: none;
}

.closure-notice__close:focus-visible .closure-notice__close-circle {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.closure-notice__close-label {
  color: #fff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 55%);
}

.closure-notice__signature {
  width: min(13.2rem, 100%);
  height: auto;
  margin: 1.25rem auto 0;
}

html.closure-notice-open,
html.closure-notice-open body {
  overflow: hidden;
}
