﻿.toast__container {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Расстояние между уведомлениями */
    z-index: 1000; /* Чтобы уведомления были выше другого контента */
}

.toast__cell {
    display: inline-block;
}

.add-margin {
    margin-top: 20px;
}

.toast__svg {
    fill: #fff;
}

.toast {
    text-align: left;
    padding: 21px 0;
    background-color: #fff;
    border-radius: 4px;
    max-width: 500px;
    top: 0px;
    position: relative;
    box-shadow: 1px 7px 14px -5px rgba(0,0,0,0.2);
}


    .toast:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

.toast__icon {
    position: absolute;
    top: 40%;
    left: 22px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    padding: 7px;
    border-radius: 50%;
    display: inline-block;
}

.toast__type {
    color: #3e3e3e;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.toast__message {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 0;
    color: #878787;
}

.toast__content {
    padding-left: 70px;
    padding-right: 60px;
}

.toast__close {
    position: absolute;
    right: 22px;
    top: 50%;
    width: 14px;
    cursor: pointer;
    height: 14px;
    fill: #878787;
    transform: translateY(-50%);
}

.toast--green:before {
    background-color: #2BDE3F;
}

.toast--blue:before {
    background-color: #1D72F3;
}

.toast--yellow:before {
    background-color: #FFC007;
}

.toast--red:before {
    background-color: #DC143C;
}


/* Общий стиль для модального окна */
.custom-confirmation-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.34217436974789917) 0%, rgba(255,255,255,0) 100%);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-modal-content {
    background-color: white;
    border-radius: 4px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-modal-header h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: black;
}

.custom-modal-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.custom-modal-button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.confirm-button {
    background-color: #4CAF50; /* Зеленый для подтверждения */
    color: white;
}

.cancel-button {
    background-color: #f44336; /* Красный для отмены */
    color: white;
}


    custom-modal-button:hover {
        background-color: #ddd;
    }

/* Стиль для разных типов сообщений */
.custom-confirmation-modal.custom-success .custom-modal-content {
    border-top: 5px solid #2BDE3F;
}

.custom-confirmation-modal.custom-info .custom-modal-content {
    border-top: 5px solid #1D72F3;
}

.custom-confirmation-modal.custom-warning .custom-modal-content {
    border-top: 5px solid #FFC007;
}

.custom-confirmation-modal.custom-danger .custom-modal-content {
    border-top: 5px solid #FF3B30;
}