#toast-container.vonika-toast-layer {
  position: fixed;
  inset: 24px 24px auto auto;
  z-index: 999;
  width: min(680px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  pointer-events: none;
  font-family: Inter, "Segoe UI", sans-serif;
}
#toast-container.vonika-toast-layer[popover]:not(:popover-open),
#toast-container.vonika-toast-layer[hidden] {
  display: none;
}
.vonika-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--color-border, #303034);
  border-radius: 16px;
  background: var(--color-bg-surface, #18181b);
  color: var(--color-text-primary, #f4f4f5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 1.6;
  pointer-events: auto;
  animation: vonika-toast-in 0.2s ease-out;
}
.vonika-toast > i {
  flex-shrink: 0;
  color: #a8c7fa;
  font-size: 16px;
}
.vonika-toast.success > i {
  color: #81b995;
}
.vonika-toast.error > i {
  color: #e99d9d;
}
.vonika-toast-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.vonika-toast button {
  flex-shrink: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.vonika-toast .vonika-toast-action {
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--color-bg-hover, #2b2b2e);
}
.vonika-toast .vonika-toast-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
.vonika-toast button:hover {
  filter: brightness(1.15);
}
.vonika-toast button:focus-visible {
  outline: 2px solid #a8c7fa;
  outline-offset: 3px;
}
@keyframes vonika-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 520px) {
  #toast-container.vonika-toast-layer {
    inset: 12px 12px auto auto;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .vonika-toast {
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px 14px;
  }
  .vonika-toast-text {
    flex-basis: calc(100% - 70px);
  }
  .vonika-toast-action {
    order: 4;
    margin-left: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vonika-toast {
    animation: none;
  }
}
