/**
 * ZAIZENS — React toast & alert overlays (works without Tailwind bundle)
 * Layer sits above modals (2000), Odoo overlays (2500), Bootstrap (1055), wallet (10050).
 */
#hms-notify-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50000;
}

.hms-notify-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50000;
}

.hms-notify-toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.hms-notify-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 12px 28px rgba(15, 23, 42, 0.12);
  animation: hmsNotifyToastIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top right;
}

.hms-notify-toast.is-leaving {
  animation: hmsNotifyToastOut 0.2s ease-in forwards;
}

.hms-notify-toast__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.hms-notify-toast--success .hms-notify-toast__icon {
  background: #ecfdf5;
  color: #059669;
}

.hms-notify-toast--error .hms-notify-toast__icon {
  background: #fef2f2;
  color: #dc2626;
}

.hms-notify-toast--warning .hms-notify-toast__icon {
  background: #fffbeb;
  color: #d97706;
}

.hms-notify-toast--info .hms-notify-toast__icon {
  background: #eff6ff;
  color: #2563eb;
}

.hms-notify-toast__body {
  flex: 1;
  min-width: 0;
}

.hms-notify-toast__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.hms-notify-toast__msg {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.hms-notify-toast__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  line-height: 1;
}

.hms-notify-toast__close:hover {
  color: #475569;
  background: #f1f5f9;
}

.hms-notify-alert-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50002;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: hmsNotifyFadeIn 0.2s ease-out;
}

.hms-notify-alert {
  pointer-events: auto;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  animation: hmsNotifySlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.hms-notify-alert__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 0;
}

.hms-notify-alert__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hms-notify-alert--error .hms-notify-alert__icon {
  background: #fef2f2;
  color: #dc2626;
}

.hms-notify-alert--warning .hms-notify-alert__icon {
  background: #fffbeb;
  color: #d97706;
}

.hms-notify-alert--success .hms-notify-alert__icon {
  background: #ecfdf5;
  color: #059669;
}

.hms-notify-alert--info .hms-notify-alert__icon {
  background: #eff6ff;
  color: #2563eb;
}

.hms-notify-alert__text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.hms-notify-alert__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.hms-notify-alert__msg {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  white-space: pre-wrap;
}

.hms-notify-alert__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px 22px;
}

.hms-notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.hms-notify-btn--primary {
  background: #0f4c5c;
  color: #fff;
}

.hms-notify-btn--primary:hover {
  background: #0a3d4a;
}

.hms-notify-btn--ghost {
  background: #f1f5f9;
  color: #334155;
}

.hms-notify-btn--ghost:hover {
  background: #e2e8f0;
}

.hms-notify-btn--danger {
  background: #dc2626;
  color: #fff;
}

.hms-notify-btn--danger:hover {
  background: #b91c1c;
}

@keyframes hmsNotifyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hmsNotifySlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hmsNotifyToastIn {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes hmsNotifyToastOut {
  to {
    opacity: 0;
    transform: translateX(12px) scale(0.96);
  }
}
