.crm-toast-root{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.crm-toast{
  pointer-events: auto;
  width: 360px;
  max-width: calc(100vw - 36px);
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.crm-toast--show{
  opacity: 1;
  transform: translateY(0);
}

.crm-toast__row{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px 10px 12px;
}

.crm-toast__ico{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 auto;
}

.crm-toast__body{
  flex: 1 1 auto;
  min-width: 0;
}

.crm-toast__title{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  margin: 0 0 4px 0;
  color: #0f172a;
}

.crm-toast__msg{
  font-size: 13px;
  line-height: 1.35;
  color: #334155;
  word-break: break-word;
}

.crm-toast__close{
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}

.crm-toast__close:hover{
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.crm-toast__bar{
  height: 3px;
  background: rgba(15, 23, 42, 0.08);
}

.crm-toast__bar > span{
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: crmToastBar linear forwards;
}

@keyframes crmToastBar{
  from{ transform: scaleX(1); }
  to{ transform: scaleX(0); }
}

.crm-toast--success .crm-toast__ico{ background: #16a34a; }
.crm-toast--success .crm-toast__bar > span{ background: #16a34a; }

.crm-toast--info .crm-toast__ico{ background: #2563eb; }
.crm-toast--info .crm-toast__bar > span{ background: #2563eb; }

.crm-toast--warning .crm-toast__ico{ background: #f59e0b; }
.crm-toast--warning .crm-toast__bar > span{ background: #f59e0b; }

.crm-toast--error .crm-toast__ico{ background: #dc2626; }
.crm-toast--error .crm-toast__bar > span{ background: #dc2626; }
