/* Toastr v2.1.3 — кастомный стиль под общий UI проекта */

/* Базовая типографика внутри тоста */
.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
}
.toast-message {
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
}
.toast-message a,
.toast-message label {
  color: #2563eb;
}
.toast-message a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* Кнопка закрытия */
.toast-close-button {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #9ca3af;
  text-shadow: none;
  opacity: 0.8;
  line-height: 1;
}
.toast-close-button:hover,
.toast-close-button:focus {
  color: #4b5563;
  cursor: pointer;
  opacity: 1;
}
.rtl .toast-close-button {
  left: 10px;
  right: auto;
}
button.toast-close-button {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

/* Позиции контейнера */
.toast-top-center {
  top: 16px;
  right: 0;
  width: 100%;
}
.toast-bottom-center {
  bottom: 16px;
  right: 0;
  width: 100%;
}
.toast-top-full-width {
  top: 0;
  right: 0;
  width: 100%;
}
.toast-bottom-full-width {
  bottom: 0;
  right: 0;
  width: 100%;
}
.toast-top-left {
  top: 16px;
  left: 16px;
}
.toast-top-right {
  top: 16px;
  right: 16px;
}
.toast-bottom-right {
  right: 16px;
  bottom: 16px;
}
.toast-bottom-left {
  bottom: 16px;
  left: 16px;
}

/* Контейнер */
#toast-container {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
}
#toast-container * {
  box-sizing: border-box;
}

/* Карточка тоста */
#toast-container > div {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  margin: 0 0 8px;
  padding: 10px 36px 10px 14px;
  width: 320px;
  border-radius: 12px;
  background-color: #ffffff;
  background-image: none !important;
  background-repeat: no-repeat;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  color: #111827;
  opacity: 0.98;
  border-left: 3px solid transparent;
}
#toast-container > div.rtl {
  direction: rtl;
  padding: 10px 14px 10px 36px;
}

/* Ховер — чуть сильнее тень */
#toast-container > div:hover {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  opacity: 1;
  cursor: pointer;
}

/* Типы уведомлений — цветной левый бордер */
.toast {
  background-color: #ffffff;
}
.toast-success {
  border-left-color: #22c55e;
}
.toast-error {
  border-left-color: #ef4444;
}
.toast-info {
  border-left-color: #0ea5e9;
}
.toast-warning {
  border-left-color: #f97316;
}

/* Прогресс-бар внизу */
.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background-color: #111827;
  opacity: 0.12;
}

/* Адаптивность */
@media all and (max-width: 480px) {
  #toast-container > div {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }
}
@media all and (min-width: 481px) and (max-width: 768px) {
  #toast-container > div {
    width: 360px;
  }
}
