/* Toast container */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 90%;
  width: auto;
  pointer-events: none;
}

/* Toast styling */
.phone-toast {
  background: #41525a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  line-height: 1.4;
  animation: fadein 0.3s ease, fadeout 0.5s ease 4.5s;
  pointer-events: auto;
  opacity: 1;
}

/* Toast types */
.toast-error { background-color: #e93368; }
.toast-success { background-color: #41525a; }
.toast-warning { background-color: #ffa502; color: #000; }
.toast-info { background-color: #1e90ff; }

/* Icon inside toast */
.toast-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Fade-in animation */
@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade-out animation */
@keyframes fadeout {
  to { opacity: 0; transform: translateY(-10px); }
}

/* Desktop position override */
@media (min-width: 1025px) {
  #toast-container {
    top: auto;
    bottom: 20px;
    left: auto;
    right: 20px;
    transform: none;
    align-items: flex-end;
  }
}
