/* public/styles/toast.css */
#toast-stack {
  position: fixed;
  bottom: 16px;
  right: 16px; /* will be dynamically shifted left if a chat FAB exists */
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2147483646;
  pointer-events: none; /* allow clicks through gaps */
}

.toast {
  pointer-events: auto; /* clickable */
  background: rgba(32,32,32,0.96);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 210px;
  max-width: min(360px, 85vw);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(16px);
  opacity: 0;
  animation: toast-in 180ms ease-out forwards;
}

.toast.hide {
  animation: toast-out 160ms ease-in forwards;
}

.toast .toast-icon {
  flex: 0 0 auto;
  font-size: 18px;
}

.toast .toast-text {
  flex: 1 1 auto;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.toast .toast-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

@keyframes toast-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(16px); opacity: 0; }
}

@media (max-width: 480px) {
  #toast-stack {
    bottom: 12px;
    right: 12px;
    gap: 6px;
  }
  .toast {
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 14px; /* 기본 포인트(브라우저 기본 글꼴 크기) */
  }
}