#tree-modal-message.tree-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background: rgba(0, 0, 0, 0.60);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
#tree-modal-message .tree-modal-message__body {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    max-width: 660px;
    /* max-height: 300px; */
    background: #FAFAFA;
    border-radius: 15px;
    padding: 34px 68px;
}
.tree-modal-message__close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50px;

    -webkit-box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);

    cursor: pointer;
}
.tree-modal-message__close i {
    width: 30px;
    height: 30px;
}
.tree-modal-message__close i::before {
    background-color: #B7BDCE;
}
.tree-modal-message__title {
    color: var(--Black, #444);
    font-family: "Source Serif Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
#tree-modal-message  .tree-modal-message__text {
    margin: 35px 0 45px;
    color: var(--Black, #444);
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: "Source Serif Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
}
.nd-button.tree-modal-message__button {
    margin-top: auto;
    max-width: 190px;
}



.control-pannel .tree-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    /* background: rgba(0, 0, 0, 0.60); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.control-pannel .tree-modal-message__body {
    position: absolute;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    max-width: 225px;
    /* max-height: 300px; */
    background: #FAFAFA;
    border-radius: 15px;
    padding: 0;
    z-index: 55;
    -webkit-box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
}

.control-pannel .tree-modal-message__text {
    /* margin: 35px 0 45px; */
    display: flex;
    gap: 10px;
    padding: 16px;
    color:#326E5B;
    /* color: var(--Black, #444); */
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 25px;
}
.control-pannel .tree-modal-message__text svg{
    width: 24px;
    height: 24px;
}





.first_tree_helper .is_first_person_tree::before {
    display: block;
}

.first_tree_helper .is_first_person_tree::after {
    display: block;
    content: "Добавить ещё одну персону";
    width: 215px;
    right: -95px;
}





.tree-modal-message__buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.tree-modal__remove .tree-modal-message__title {
    max-width: 260px;
}
.tree-modal__remove .tree-modal-message__button--done {
    background: #e24242;
    border-color: #e24242;
}
.tree-modal__remove .tree-modal-message__button--done:hover {
    background: #E14E4E;
    border-color: #E14E4E;
}

.first_tree_helper .is_first_person_tree::after {
    display: block;
    content: "Добавить ещё одну персону";
    width: 215px;
    right: -95px;
}





.modal-tree-setting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 505;
    padding: clamp(5%, 100%, 5%) 0;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}
.modal-tree-setting.modal-tree-setting--show {
    visibility: unset;
    opacity: 1;
    transition: opacity .2s ease-in;
}

.modal-tree-setting .modal-ts__inner{
    display: flex;
    flex-direction: column;
    background: #fff;
    max-width: 525px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}
.modal-tree-setting .modal-ts__top {
position: relative;
display: flex;
justify-content: center;
align-items: center;
background: var(--beige, #F5F2F3);
}
.modal-tree-setting .modal-ts__top p {
margin: 22px 0 ;
color: var(--Black, #444);
font-family: "Source Serif Pro";
font-size: 24px;
font-style: normal;
font-weight: 600;
line-height: normal;
}

.modal-tree-setting .modal-ts__top .modal-ts__close{
    position: absolute;
    right: 30px;
    padding: 4px;
}
.modal-tree-setting .modal-ts__top .modal-ts__close:hover {
    background: var(--gray, #B7BDCE);
    border-radius: 100%;
    cursor: pointer;
}

.modal-tree-setting .modal-ts__top i {
    width: 32px;
    height: 32px;
    display: block;
}
.modal-tree-setting .modal-ts__top .modal-ts__close i::before {
background-color: #B7BDCE;
}
.modal-tree-setting .modal-ts__top .modal-ts__close:hover i::before {
background-color: #444444;
}
.modal-tree-setting .modal-ts__top .modal-ts__close :active i::before {
background-color: #946F9C;
}
.modal-tree-setting .modal-ts__top .modal-ts__close:active {
background: none;
}


.modal-ts__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 40px 70px 35px 70px;
    /* max-height: 100svh; */
    overflow-y: auto;
}


.modal-ts__content .modal-ts__desc{
    margin: 0;
    color: var(--Black, #444);
    font-family: "Source Serif Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
}

.modal-ts__content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-ts__content .nd-checkboxes {

    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-ts__content .nd-checkboxes .nd-check-wrap{
    display: flex;
    align-items: center;
}
.modal-ts__content .nd-checkboxes label{
    color: var(--Black, #444);
    font-feature-settings: 'clig' off, 'liga' off;
    /* longread */
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
}

.nd-button.save-tree-setting {
    width: max-content;
    padding: 0 50px;
    margin: 0 auto;
    margin-top: 33px;
}

@media screen and (max-width: 768px) {
    .control-pannel .tree-modal-message__body {
        position: fixed;
        top: unset;
        right: unset;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: unset;
        z-index: 500;
        padding: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        overflow: hidden;
        height: max-content;
        max-height: unset;
    }
    .control-pannel .tree-modal-message__text {
        margin: 10px 26px 10px;
        text-align: center;
        justify-content: center;
    }
    .control-pannel .tree-modal-message__text svg {
        flex: 0 0 auto !important;
    }


    .tree-modal-message__title {
        background: var(--beige, #F5F2F3);
        text-align: center;
        padding: 15px 45px;
    }
    .tree-modal-message__close {
        top: 2px;
        right: 10px;
        -webkit-box-shadow: unset;
        -moz-box-shadow: unset;
        box-shadow: unset;
    }

    #tree-modal-message.tree-modal {
        align-items: flex-end;
        padding: unset;
        border-radius: 15px 15px 0px 0px;
    }
    #tree-modal-message .tree-modal-message__body {
        height: auto;
        padding: 0;
        border-radius: 15px 15px 0px 0px;
        overflow: hidden;
        max-height: none;
    }
    .tree-modal__remove .tree-modal-message__title {
        width: 100%;
        max-width: 100%;
    }
    #tree-modal-message .tree-modal-message__text {
        padding: 0 25px;
        color: var(--Black, var(--black, #444));
        font-feature-settings: 'clig' off, 'liga' off;
        /* H4 reg */
        font-family: "Source Serif Pro";
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 25px; /* 125% */
    }
    .tree-modal-message__buttons {
        flex-direction: column-reverse;
        padding: 0 25px 25px;
    }

    .nd-button.tree-modal-message__button {
        width: 100%;
        padding: 0;
        max-width: 100%;
        margin: 0 auto;
    }



    .modal-tree-setting {
        align-items: flex-end;
        padding: unset;
        border-radius: 15px 15px 0px 0px;

    }

    .center-modal-notifications .modal-notifications__close {
        right: 15px;
      }
    .center-modal-notifications .modal-notifications__inner {
        border-radius: 15px 15px 0 0;
        max-height: calc(100svh - 65px);
        height: auto;
    }
    .modal-tree-setting .modal-ts__inner {
        border-radius: 15px 15px 0 0;
    }

    .modal-tree-setting .modal-ts__top p {
        font-size: 20px;
        padding: 0 70px;
        text-align: center;
        font-weight: 700;
    }
    .modal-ts__content {
        padding: 40px 25px 40px 25px;
    }

}