/**
 * @file
 * Toast notification styles.
 *
 * Modern toast system with queue support and colored borders by type.
 */
/* Container - fixed position in top-right corner */
.wm-toast-container {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  pointer-events: none;
}
.wm-toast-container > * {
  pointer-events: auto;
}

/* Base toast styles */
.wm-toast {
  min-width: 280px;
  max-width: 360px;
  background: var(--wm-color-toast-bg);
  color: var(--wm-color-text-primary);
  border-radius: 8px;
  box-shadow: var(--wm-shadow-toast);
  padding: 0.875rem 1rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-left: 5px solid var(--wm-color-info);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  /* Visible state */
  /* Exiting state */
  /* Type-specific styles - Info (default) */
  /* Type-specific styles - Success */
  /* Type-specific styles - Warning */
  /* Type-specific styles - Error */
}
.wm-toast--visible {
  opacity: 1;
  transform: translateX(0);
}
.wm-toast--exiting {
  opacity: 0;
  transform: translateX(100%);
}
.wm-toast--info {
  border-left-color: var(--wm-color-info);
}
.wm-toast--info .wm-toast__icon {
  color: var(--wm-color-info);
}
.wm-toast--success {
  border-left-color: var(--wm-color-success);
}
.wm-toast--success .wm-toast__icon {
  color: var(--wm-color-success);
}
.wm-toast--warning {
  border-left-color: var(--wm-color-warning);
  background: var(--wm-color-toast-warning-bg);
}
.wm-toast--warning .wm-toast__icon {
  color: var(--wm-color-warning);
}
.wm-toast--error {
  border-left-color: var(--wm-color-danger);
}
.wm-toast--error .wm-toast__icon {
  color: var(--wm-color-danger);
}
.wm-toast--source-socket {
  position: relative;
}
.wm-toast--source-socket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wm-color-info);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  pointer-events: none;
}

/* Toast content layout */
.wm-toast__content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wm-toast__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wm-toast--clickable {
  cursor: pointer;
}
.wm-toast--clickable:hover {
  box-shadow: var(--wm-shadow-toast), 0 0 0 1px var(--wm-overlay-white-20);
}
.wm-toast--clickable:focus {
  outline: none;
  box-shadow: var(--wm-shadow-toast), 0 0 0 2px var(--wm-overlay-white-30);
}

/* Icon styles */
.wm-toast__icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
  margin-top: 0.125rem;
}

/* Message styles */
.wm-toast__message {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wm-toast__details {
  color: var(--wm-color-text-secondary);
  font-size: 0.8125rem;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wm-toast__details > :first-child {
  margin-top: 0;
}

.wm-toast__details > :last-child {
  margin-bottom: 0;
}

.wm-toast__action {
  flex-shrink: 0;
  align-self: center;
  background: var(--wm-overlay-white-10);
  border: 1px solid var(--wm-overlay-white-20);
  color: var(--wm-color-text-primary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.wm-toast__action:hover:not(:disabled) {
  background: var(--wm-overlay-white-18);
  border-color: var(--wm-overlay-white-30);
}
.wm-toast__action:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Dismiss button */
.wm-toast__dismiss {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--wm-overlay-white-60);
  cursor: pointer;
  padding: 0.25rem;
  margin: -0.25rem -0.25rem -0.25rem 0;
  font-size: 0.875rem;
  line-height: 1;
  transition: color 0.2s ease;
  border-radius: 4px;
}
.wm-toast__dismiss:hover {
  color: var(--wm-color-text-primary);
  background: var(--wm-overlay-white-10);
}
.wm-toast__dismiss:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--wm-overlay-white-30);
}

/* Close all button - positioned just above the toast container */
#wm-toast-close-all {
  position: fixed;
  top: 3.5rem;
  right: 1rem;
  z-index: 10000;
  background: var(--wm-color-toast-bg);
  color: var(--wm-color-text-primary);
  border: 1px solid var(--wm-overlay-white-20);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
#wm-toast-close-all:hover {
  background: var(--wm-color-surface-dark-300);
  border-color: var(--wm-overlay-white-30);
}
#wm-toast-close-all.d-none {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .wm-toast-container {
    top: 4rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
  .wm-toast {
    min-width: 0;
    max-width: 100%;
    font-size: 0.875rem;
    padding: 0.75rem;
  }
  .wm-toast__content {
    gap: 0.5rem;
  }
  .wm-toast__action {
    padding: 0.3rem 0.65rem;
  }
  #wm-toast-close-all {
    top: 3.5rem;
    right: 0.5rem;
  }
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .wm-toast {
    transition: opacity 0.1s ease;
    transform: none;
  }
  .wm-toast--visible {
    transform: none;
  }
  .wm-toast--exiting {
    transform: none;
  }
}

/*# sourceMappingURL=toast.css.map */