/**
 * [ARTNET Toast]
 * - 역할: 전역 토스트 알림 스타일 (기본 주황 · 닫기 버튼)
 * - 작성/수정일: 2026-08-12
 */
.an-toast-host {
  position: fixed;
  z-index: 10050;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.an-toast {
  --an-toast-bg: #f97316;
  --an-toast-fg: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 14px 12px 14px 18px;
  border-radius: 10px;
  background: var(--an-toast-bg);
  color: var(--an-toast-fg);
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: auto;
}

.an-toast__msg {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding-left: 22px; /* X 버튼 폭과 시각적 균형 */
}

.an-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: var(--fs-icon, 22px);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0.88;
}

.an-toast__close:hover,
.an-toast__close:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.12);
  outline: none;
}

.an-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.an-toast.is-out {
  opacity: 0;
  transform: translateY(8px);
}

.an-toast--error {
  --an-toast-bg: #dc2626;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.28);
}

.an-toast--info {
  --an-toast-bg: #ea580c;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.32);
}

@media (max-width: 767.98px) {
  .an-toast-host {
    bottom: 18px;
  }
}
