.public-root,
.public-layout {
  min-height: 100%;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.public-layout {
  margin: 0;
  background-color: var(--color-surface-white, #fff);
  color: var(--color-typography-primary, #141414);
  font-family: GeneralSans, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.flash-banner {
  position: fixed;
  left: 50%;
  bottom: 3rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(calc(100vw - 2rem), 32rem);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  gap: 0.75rem;
}

.flash-banner__message {
  min-width: 0;
}

.flash-banner__dismiss {
  display: none;
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.flash-banner--alert {
  background-color: #f1d2d2;
  color: var(--color-carbon-error, #8a3f3f);
}

.flash-banner--notice {
  background-color: #dbe9e3;
  color: var(--color-forest-success, #3e836e);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  #main-container {
    scroll-behavior: smooth;
  }

  body.page-is-exiting {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
  }

  body.page-is-entering {
    animation: page-enter 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hide-after-delay {
    animation: hide-after-delay 1s forwards;
    animation-iteration-count: 1;
    animation-delay: 3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hide-after-delay {
    animation: none;
  }

  .flash-banner {
    justify-content: space-between;
    text-align: left;
  }

  .flash-banner__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@keyframes hide-after-delay {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
