/* POJO Toast — site-wide */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

.pojo-toast-stack {
  --pojo-toast-red: #FE2740;
  --pojo-toast-red-soft: #FFE9EC;
  --pojo-toast-navy: #282D54;
  --pojo-toast-ink: #1c2138;
  --pojo-toast-muted: #6b7190;
  --pojo-toast-line: #e7e9f2;
  --pojo-toast-bg: #f4f5fb;
  --pojo-toast-white: #fff;
  --pojo-toast-green: #0a7d4d;
  --pojo-toast-green-soft: #e3f6ec;
  --pojo-toast-blue: #3a96f0;
  --pojo-toast-blue-soft: #e7f1fd;
  --pojo-toast-shadow: 0 18px 48px rgba(28, 33, 84, .22), 0 2px 6px rgba(28, 33, 84, .08);
  --pojo-toast-display: "Poppins", system-ui, sans-serif;
  --pojo-toast-body: "Plus Jakarta Sans", system-ui, sans-serif;

  position: fixed;
  top: var(--pojo-toast-top, 83px);
  right: 24px;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  width: min(420px, calc(100vw - 48px));
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .pojo-toast-stack {
    right: 16px;
    width: min(420px, calc(100vw - 32px));
  }
}

.pojo-toast-stack .pojo-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--pojo-toast-white);
  color: var(--pojo-toast-ink);
  border: 1px solid var(--pojo-toast-line);
  border-left: none;
  border-radius: 14px;
  padding: 15px 16px 15px 20px;
  box-shadow: var(--pojo-toast-shadow);
  animation: pojo-toast-in .42s cubic-bezier(.16, 1, .3, 1) both;
  font-family: var(--pojo-toast-body);
}

.pojo-toast-stack .pojo-toast.leaving {
  animation: pojo-toast-out .3s cubic-bezier(.4, 0, 1, 1) both;
}

.pojo-toast-stack .pojo-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--pojo-toast-red);
}

.pojo-toast-stack .pojo-toast.success::before {
  background: var(--pojo-toast-green);
}

.pojo-toast-stack .pojo-toast.info::before {
  background: var(--pojo-toast-blue);
}

.pojo-toast-stack .pojo-toast .pojo-toast__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pojo-toast-red-soft);
  color: var(--pojo-toast-red);
  margin-top: 1px;
}

.pojo-toast-stack .pojo-toast.success .pojo-toast__icon {
  background: var(--pojo-toast-green-soft);
  color: var(--pojo-toast-green);
}

.pojo-toast-stack .pojo-toast.info .pojo-toast__icon {
  background: var(--pojo-toast-blue-soft);
  color: #2f7fd8;
}

.pojo-toast-stack .pojo-toast__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.pojo-toast-stack .pojo-toast__body {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.pojo-toast-stack .pojo-toast__title {
  font-family: var(--pojo-toast-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pojo-toast-navy);
  letter-spacing: -.01em;
  line-height: 1.25;
}

.pojo-toast-stack .pojo-toast__msg {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pojo-toast-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.pojo-toast-stack .pojo-toast__close {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  margin: -3px -3px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0bd;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .14s, color .14s;
}

.pojo-toast-stack .pojo-toast__close:hover {
  background: var(--pojo-toast-bg);
  color: var(--pojo-toast-navy);
}

.pojo-toast-stack .pojo-toast__close svg {
  width: 16px;
  height: 16px;
}

.pojo-toast-stack .pojo-toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--pojo-toast-red);
  opacity: .5;
  transform-origin: left;
  animation: pojo-toast-shrink 5s linear forwards;
}

.pojo-toast-stack .pojo-toast.success .pojo-toast__progress {
  background: var(--pojo-toast-green);
}

.pojo-toast-stack .pojo-toast.info .pojo-toast__progress {
  background: var(--pojo-toast-blue);
}

@keyframes pojo-toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pojo-toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
}

@keyframes pojo-toast-shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pojo-toast-stack .pojo-toast,
  .pojo-toast-stack .pojo-toast.leaving {
    animation: none;
  }

  .pojo-toast-stack .pojo-toast__progress {
    animation: none;
  }
}
