/* DealerPro — SweetAlert2 bottom-right toasts */
:root {
  --swal2-z-index: 20000;
}

.swal2-container,
.swal2-container.swal2-bottom-end,
.dp-toast-wrap.swal2-container {
  z-index: 20000 !important;
}

.dp-notify-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20001;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(22.5rem, calc(100vw - 1.5rem));
}

.dp-fallback-toast {
  pointer-events: auto;
  background: #fff;
  color: #0f172a;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.dp-toast.swal2-popup.swal2-toast {
  background: #fff;
  color: #0f172a;
  border-radius: 14px;
  padding: 0.85rem 1rem !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  max-width: min(22.5rem, calc(100vw - 1.5rem));
  align-items: flex-start;
}

.dp-toast .swal2-icon {
  margin: 0 0.7rem 0 0 !important;
  width: 1.7rem !important;
  height: 1.7rem !important;
  min-width: 1.7rem;
  border-width: 2px !important;
}

.dp-toast .swal2-icon .swal2-icon-content {
  font-size: 1.05rem !important;
}

.dp-toast-title {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  margin: 0 !important;
  padding: 0.1rem 0.35rem 0 0 !important;
  text-align: left !important;
}

.dp-toast-text {
  margin: 0.15rem 0 0 !important;
  padding: 0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
  text-align: left !important;
}

.dp-toast-bar {
  background: #0d9488 !important;
}

.dp-toast--success { border-left: 4px solid #059669; }
.dp-toast--error { border-left: 4px solid #dc2626; }
.dp-toast--warning { border-left: 4px solid #d97706; }
.dp-toast--info,
.dp-toast--confirm { border-left: 4px solid #0d9488; }

.dp-toast--error .dp-toast-bar { background: #dc2626 !important; }
.dp-toast--warning .dp-toast-bar { background: #d97706 !important; }

.dp-toast-actions {
  margin: 0.65rem 0 0 !important;
  width: 100%;
  justify-content: flex-end !important;
  gap: 0.4rem;
}

.dp-toast-btn {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.dp-toast-btn--ok {
  background: #0f766e;
  color: #fff;
}

.dp-toast-btn--ok:hover { background: #0d9488; }

.dp-toast-btn--cancel {
  background: #f1f5f9;
  color: #334155;
}

.dp-toast-btn--cancel:hover { background: #e2e8f0; }

.swal2-container.swal2-bottom-end {
  padding: 0 1rem 1rem 0 !important;
  align-items: flex-end !important;
}

body.lang-bn .dp-toast-title,
body.lang-bn .dp-toast-btn {
  font-family: 'Noto Sans Bengali', Inter, sans-serif;
}
