.ldr-toast-container {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 99999;
  display: flex;
  width: min(380px, calc(100vw - 32px));
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.ldr-toast {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 13px 14px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      rgba(51, 15, 72, 0.98),
      rgba(20, 5, 31, 0.98)
    );
  border: 1px solid rgba(255, 215, 72, 0.38);
  border-radius: 16px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(30px) scale(0.97);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.ldr-toast.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.ldr-toast.is-leaving {
  opacity: 0;
  transform: translateX(35px) scale(0.96);
}

.ldr-toast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent, #ffd84c);
  transform-origin: left center;
  animation: ldr-toast-progress var(--toast-duration, 3500ms)
    linear forwards;
}

.ldr-toast-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #16051f;
  background: var(--toast-accent, #ffd84c);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.ldr-toast-content {
  min-width: 0;
}

.ldr-toast-title {
  display: block;
  margin: 0 0 3px;
  color: var(--toast-accent, #ffd84c);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ldr-toast-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ldr-toast-close {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.ldr-toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.ldr-toast-success {
  --toast-accent: #61e59b;
}

.ldr-toast-error {
  --toast-accent: #ff6f82;
}

.ldr-toast-warning {
  --toast-accent: #ffd15c;
}

.ldr-toast-info {
  --toast-accent: #8fc7ff;
}

@keyframes ldr-toast-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (max-width: 600px) {
  .ldr-toast-container {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .ldr-toast {
    grid-template-columns: 34px 1fr 26px;
    min-height: 62px;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .ldr-toast-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ldr-toast {
    transition: none;
  }

  .ldr-toast::after {
    animation: none;
  }
}