/* CONFUT system toasts: shared across public and authenticated pages. */

#toast-container {
  pointer-events: none;
}

#toast-container.toast-bottom-right,
#toast-container.toast-bottom-center,
#toast-container.toast-top-right,
#toast-container.toast-top-center {
  width: min(390px, calc(100vw - 32px));
}

#toast-container.toast-bottom-right {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}

#toast-container.toast-bottom-center {
  right: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(50%);
}

#toast-container.toast-top-right {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

#toast-container.toast-top-center {
  top: max(16px, env(safe-area-inset-top));
  right: 50%;
  transform: translateX(50%);
}

#toast-container > .toast {
  --toast-accent: oklch(48% 0.12 28);
  --toast-soft: oklch(96.5% 0.018 28);
  --toast-surface: oklch(98.7% 0.006 248);
  --toast-ink: oklch(27% 0.045 255);
  --toast-muted: oklch(52% 0.032 255);
  --toast-border: oklch(88% 0.018 248);
  position: relative;
  display: block !important;
  width: 100% !important;
  min-height: 58px;
  margin: 0 0 10px !important;
  padding: 13px 42px 13px 54px !important;
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border: 1px solid color-mix(in oklch, var(--toast-accent) 16%, var(--toast-border));
  border-radius: 14px !important;
  background-color: #f8fbff !important;
  background-color: var(--toast-surface) !important;
  background-image: none !important;
  color: #24344d !important;
  color: var(--toast-ink) !important;
  box-shadow: 0 12px 28px rgba(10, 38, 71, 0.12), inset 0 1px 0 rgba(248, 251, 255, 0.72) !important;
  box-shadow:
    0 12px 28px oklch(24% 0.045 255 / 0.11),
    inset 0 1px 0 oklch(98.5% 0.008 248 / 0.72) !important;
  opacity: 1 !important;
  animation: confut-toast-in 180ms cubic-bezier(0.25, 1, 0.5, 1) both;
}

#toast-container > .toast::before,
#toast-container > .toast::after {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

#toast-container > .toast::before {
  content: "";
  background: #f8eff0;
  background: var(--toast-soft);
  border: 1px solid rgba(179, 66, 47, 0.18);
  border: 1px solid color-mix(in oklch, var(--toast-accent) 18%, transparent);
}

#toast-container > .toast::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b3422f;
  color: var(--toast-accent);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-rendering: auto;
}

#toast-container > .toast-success {
  --toast-accent: oklch(47% 0.11 154);
  --toast-soft: oklch(96.7% 0.025 154);
}

#toast-container > .toast-success::after {
  content: "\2713";
}

#toast-container > .toast-error {
  --toast-accent: oklch(48% 0.14 28);
  --toast-soft: oklch(96.5% 0.025 28);
}

#toast-container > .toast-error::after,
#toast-container > .toast-warning::after {
  content: "\21";
}

#toast-container > .toast-warning {
  --toast-accent: oklch(50% 0.105 78);
  --toast-soft: oklch(96.8% 0.032 86);
}

#toast-container > .toast-info {
  --toast-accent: oklch(43% 0.095 245);
  --toast-soft: oklch(96.7% 0.02 245);
}

#toast-container .toast-title,
#toast-container .toast-message {
  min-width: 0;
}

#toast-container .toast-title {
  margin: 0 0 2px;
  color: #9a6f00;
  color: var(--toast-accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

#toast-container .toast-message {
  color: #24344d;
  color: var(--toast-ink);
  font-size: 0.93rem;
  font-weight: 680;
  line-height: 1.34;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#toast-container .toast-message a,
#toast-container .toast-message label {
  color: #9a6f00;
  color: var(--toast-accent);
  font-weight: 750;
}

#toast-container .toast-message a:hover,
#toast-container .toast-message a:focus {
  color: #24344d;
  color: var(--toast-ink);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

#toast-container .toast-close-button {
  position: absolute;
  top: 9px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #65748c;
  color: var(--toast-muted);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0.82;
  text-shadow: none;
  transition:
    background-color 140ms cubic-bezier(0.25, 1, 0.5, 1),
    color 140ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 140ms cubic-bezier(0.25, 1, 0.5, 1);
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
  background-color: rgba(154, 111, 0, 0.08);
  background-color: color-mix(in oklch, var(--toast-accent) 8%, transparent);
  color: #9a6f00;
  color: var(--toast-accent);
  outline: none;
  opacity: 1;
}

#toast-container .toast-close-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(154, 111, 0, 0.18);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--toast-accent) 18%, transparent);
}

#toast-container .toast-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: #9a6f00;
  background: var(--toast-accent);
  opacity: 0.58;
}

#toast-container > .toast:hover,
#toast-container > .toast:focus-within {
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(10, 38, 71, 0.14), inset 0 1px 0 rgba(248, 251, 255, 0.72) !important;
  box-shadow:
    0 14px 30px oklch(24% 0.045 255 / 0.13),
    inset 0 1px 0 oklch(98.5% 0.008 248 / 0.72) !important;
}

@keyframes confut-toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  #toast-container.toast-bottom-right,
  #toast-container.toast-bottom-center,
  #toast-container.toast-top-right,
  #toast-container.toast-top-center {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    width: auto;
    transform: none;
  }

  #toast-container.toast-bottom-right,
  #toast-container.toast-bottom-center {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  #toast-container.toast-top-right,
  #toast-container.toast-top-center {
    top: max(12px, env(safe-area-inset-top));
  }

  #toast-container > .toast {
    min-height: 58px;
    margin-bottom: 8px !important;
    padding: 12px 40px 12px 52px !important;
    border-radius: 14px !important;
  }

  #toast-container > .toast::before,
  #toast-container > .toast::after {
    left: 13px;
    top: 13px;
    width: 26px;
    height: 26px;
  }

  #toast-container .toast-message {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  #toast-container .toast-close-button {
    top: 7px;
    right: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #toast-container > .toast,
  #toast-container .toast-close-button {
    animation: none !important;
    transition: none !important;
  }
}
