@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap");

#toastRoot.toast-wrap {
  position: fixed !important;
  top: var(--toast-gap-top, 16px);
  right: var(--toast-gap-right, 16px);
  width: min(360px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200005 !important;
  pointer-events: none;
  isolation: isolate;
}

.toast {
  pointer-events: auto;
  background: #0b5ea8;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-md, 0 10px 22px rgba(0, 0, 0, .25));
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-8px);
  opacity: 0;
  animation: toast-in .22s ease-out forwards;
  font: 500 14px/1.45 "Montserrat", "Roboto", sans-serif;
}

.toast .i {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
}

.toast .i svg {
  width: 18px;
  height: 18px;
  color: #fff;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .2));
}

.toast .msg {
  line-height: 1.25;
  font-weight: 600;
}

.toast.success {
  background: #16a34a;
}

.toast.warn {
  background: #d97706;
  color: #111;
}

.toast.error {
  background: #dc2626;
}

.toast .x {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: inherit;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.toast .x:hover {
  background: rgba(255, 255, 255, .12);
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.imgbox-open #toastRoot.toast-wrap {
  position: fixed !important;
  z-index: 2147483647 !important;
}
