.as-toast--wrap {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 99999;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
}

.as-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
  padding: 10px 12px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background: rgb(13 13 13 / 70%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.as-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.as-toast__dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 15px;
  background: #9b51e0;
}

.as-toast__message {
  min-width: 0;
  flex: 1 1 auto;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.as-toast__actions:empty {
  display: none;
}

.as-toast__action {
  min-height: 30px;
  margin: -4px -3px -4px 2px;
  padding: 5px 9px !important;
  border: 1px solid rgba(190, 115, 255, .5) !important;
  border-radius: 999px !important;
  background: rgba(155, 81, 224, .16) !important;
  color: #d9b4ff !important;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .045em;
  cursor: pointer;
}

.as-toast__action:hover,
.as-toast__action:focus-visible {
  background: rgba(155, 81, 224, .32) !important;
  color: #fff !important;
}

.as-toast__action:disabled {
  opacity: .55;
}

.as-toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, .07);
}

.as-toast__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed 0%, #9b51e0 55%, #c084fc 100%);
  box-shadow: 0 0 10px rgba(155, 81, 224, .72);
  transform: scaleX(1);
  transform-origin: left center;
  animation: as-toast-countdown var(--as-toast-duration, 6000ms) linear forwards;
}

.as-toast.is-paused .as-toast__progress span {
  animation-play-state: paused;
}

@keyframes as-toast-countdown {
  to { transform: scaleX(0); }
}

@media (max-width: 768px) {
  .as-toast--wrap {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .as-toast {
    align-items: center;
  }

  .as-toast__action {
    min-height: 36px;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}
