.overlay {

    /* Скрываем подложку  */
    opacity: 0;
    visibility: hidden;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 20;
    transition: .3s all;
}


/* Стили для модальных окон */

.modal {
    /* Скрываем окна  */
    opacity: 0;
    visibility: hidden;

    /*  Установаем ширину окна  */
    width: 80%;
    /*max-width: 500px;*/
    height: 70%;

    /*  Центрируем и задаем z-index */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30; /* Должен быть выше чем у подложки*/
    overflow: auto;

    /*  Побочные стили   */
    /*box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2);*/
    background-color: var(--bg-card-modal);
    text-align: center;
    padding: 30px;
    padding-top: 20px;
    transition: 0.3s all;
    border-radius: 15px;
}

/* Стили для кнопки закрытия */

.modal__cross {
    width: 15px;
    height: 15px;
    position: absolute;
    top: 20px;
    right: 20px;
    fill: #444;
    cursor: pointer;
}

.modal.active,
.overlay.active{
    opacity: 1;
    visibility: visible;
}

.modal-close {
    display: flex;
    justify-content: flex-end;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

.modal-list-center {
    text-align: center;
}

.modal-list-item {
    cursor: pointer;
}

.modal-action {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-action-container-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.modal-action-btn {
    border-radius: 100px;
    width: 120px;
    height: calc(40px * 1.33);
    background-color: var(--text-color);
    color: var(--background-color);
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.modal-action-btn-general {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.modal-update-list {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    width: 100%;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}