/**
 * Toast moderno GF — painel admin (independente do CSS da loja)
 * Admin Tabler: .theme-dark no html/body
 */
.gf-toast-host {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 10900; /* acima de modal Bootstrap/Tabler */
  width: min(calc(100% - 1.5rem), 420px);
  pointer-events: none;
}

.gf-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #1a1822;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  color: #f4f2f8;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.gf-toast.is-visible {
  opacity: 1;
  transform: none;
}

.gf-toast__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gf-toast__icon svg {
  display: block;
}

.gf-toast__icon--ok {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.gf-toast__icon--err {
  color: #f87171;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.gf-toast__icon--warn {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.gf-toast__icon--info {
  color: #f472b6;
  background: rgba(225, 48, 108, 0.16);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.gf-toast__text {
  margin: 0;
  flex: 1;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  color: inherit;
  padding-top: 0.2rem;
  word-break: break-word;
}

.gf-toast__close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.gf-toast__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

html:not(.theme-dark) .gf-toast,
body:not(.theme-dark) .gf-toast {
  background: #fff;
  border-color: rgba(24, 12, 36, 0.1);
  box-shadow: 0 16px 40px rgba(24, 12, 36, 0.14);
  color: #1e1a2e;
}

html:not(.theme-dark) .gf-toast__close {
  color: rgba(30, 26, 46, 0.45);
}

html:not(.theme-dark) .gf-toast__close:hover {
  color: #1e1a2e;
  background: rgba(24, 12, 36, 0.06);
}

.ajax-alert-message:empty,
.ajax-alert-message.d-none {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .gf-toast {
    transition: none;
  }
}
