/* Existing portal toast treatment, shared by admin and customer views. */
.admin-toast {
  box-sizing: border-box;
  position: fixed;
  z-index: 1200;
  inset: auto;
  margin: 0;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(520px, calc(100vw - 32px));
  min-height: 52px;
  padding: 10px 10px 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #303030;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(48, 32, 26, 0.22), 0 2px 8px rgba(48, 32, 26, 0.18);
  transform: translate(-50%, 14px);
  opacity: 0;
  animation: admin-toast-in 180ms ease-out forwards;
}
.admin-toast[hidden] { display: none; }
.admin-toast.is-error { background: #7d2d20; }

.admin-toast-icon {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #29845a;
}
.admin-toast-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.admin-toast.is-error .admin-toast-icon {
  background: rgba(255, 255, 255, 0.22);
}
.admin-toast.is-error .admin-toast-icon::before,
.admin-toast.is-error .admin-toast-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 2px;
  height: 10px;
  border: 0;
  background: #fff;
}
.admin-toast.is-error .admin-toast-icon::before { transform: rotate(-45deg); }
.admin-toast.is-error .admin-toast-icon::after { transform: rotate(45deg); }

.admin-toast-message {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-toast-close {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.admin-toast-close::before,
.admin-toast-close::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  width: 2px;
  height: 16px;
  border-radius: 1px;
  background: currentColor;
}
.admin-toast-close::before { transform: rotate(45deg); }
.admin-toast-close::after { transform: rotate(-45deg); }

@keyframes admin-toast-in {
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-toast {
    transform: translate(-50%, 0);
    animation: none;
    opacity: 1;
  }
}

