:root {
    --person-radius: 10px;
    --person-padding: 15px 9px 7px;
    --person-width: 200px;
    --person-height: 96px;
    --person-border: 2px solid #d1d1d1;
}

/* button {
    background-color: transparent;
} */

/* select:focus-visible {
    outline: none;
} */

.no-desktop {
    display: none;
}

.d-block {
    display: block !important;
}

.form-no-valid {
    font-size: 12px;
    color: #FD2F2F;
    margin-top: 4px;
    display: none;
}

.tree_form_variant {
    position: absolute;
    z-index: 1;
    top: -5px
}
.form-label.tree-input-focus {
    top: -7px;
    left: 10px;
    font-size: 12px;
    color: #B7BDCE;
}



.content-wrapper.fullscreen {
    padding-top: 0;
    margin-left: 0;
    width: 100% !important;
}

.content__tree.fullscreen {
    /* padding-top: 0; */
    margin-left: 0;
    width: 100% !important;

    /* display: flex;
    align-items: center;
    padding: 0; */
}


.wrap-popup {
    display: none;
    width: 100%;
    height: 100%;
    /* background-color: rgba(243, 78, 78, 0.2); */
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;



    top: 0;
    left: 0;
    z-index: 505;
    margin: 0;

    /* display: flex; */
    align-items: center;
    justify-content: center;
}


#tree-app #popup.crab-person-popup {
    background: #F6F6F6;
}

#tree-app #popup.crab-person-popup .popup__close-btn {
    display: none;
}

.control-pannel.fullscreen {
    /* width: 100%; */
}


.tree-setting-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    gap: 15px;
    z-index: 10;
    border-radius: 100px;
    background: #FFF;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.12);
    width: max-content;
    margin-left: auto;
    /* position: absolute;
    right: 30px;
    top: 15px; */
}
.tree-setting:hover {
    cursor: pointer;
}
.tree-setting {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50px;
}
.tree-setting i {
    display: block;
    width: 25px;
    height: 25px;
}

.tree-setting i::before{
    background-color: #B7BDCE;
}
.tree-setting:hover i::before{
    background-color: #444444;
}
.tree-box .main-button-comment{
    box-shadow: unset;
    width: 30px;
    height: 30px;
}

.control-pannel__buttons {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
}

.control-pannel__buttons.fullscreen {
    right: 35px;
}

.control-pannel__zoom-buttons {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}



.control-pannel__zoom-buttons button#zoomInButton,
.control-pannel__zoom-buttons button#zoomOutButton {
    box-shadow: 0 1px 5px rgba(0, 2, 12, 0.65);
}

.control-pannel__zoom-buttons button#zoomInButton {
    border-bottom: 1px solid #c5c5c5;
    border-radius: 4px 4px 0 0;
}

.control-pannel__zoom-buttons button#zoomOutButton {
    border-bottom: 1px solid #c5c5c5;
    border-radius: 0 0 4px 4px;
}

.control-pannel__buttons button:first-child {
    color: #c7c7c7;
}

.control-pannel__buttons button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    background-color: #fff;

}
.control-pannel__buttons button:active,
.control-pannel__buttons button:hover {
    background-color: #326E5B;
}

.control-pannel__buttons button:active {
    background-color: #326E5B;
}

/* .control-pannel__buttons button:focus{
    background-color: #326E5B;
} */
.control-pannel__buttons button:hover * path {
    fill: #fff;
}

.control-pannel__buttons .fullscreen__button {
    border-bottom: 1px solid #c5c5c5;
    border-radius: 4px;
}

/* .control-pannel__buttons button:last-child{
    margin-top: 10px;
} */

.header-comments__img {
    display: flex;
    height: fit-content;
    margin-left: auto;
    cursor: pointer;
}

.fullscreen__button {
    cursor: pointer;
    z-index: 100;
    margin-top: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    border-radius: 4px;
    /* background-color: #fff; */
}




.tree-app {

    /* touch-action: pinch-zoom; */
}


/*chrome */
.tree-app-wrap::-webkit-scrollbar-thumb {
    background-color: #B7BDCE;
    border-radius: 5px;
}

.tree-app-wrap::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8rem;
}

.tree-app-wrap::-webkit-scrollbar-track-piece {
    background: rgb(183, 189, 206, 0.3);
    border-radius: 5px;

}

.tree-app-wrap::-webkit-scrollbar-track {
    -webkit-box-shadow: 0 0 1px rgba(183, 189, 206, 0.3) !important;
    background: rgba(183, 189, 206, 0);
    border-radius: 21rem;
}

.tree-app-wrap.fullscreen {
    /* height: 100%; */
    /*height: 100vh;*/
    margin-left: 0;
    height: 100svh;
}
.page-template-tree .nd-wrap-content .nd-content .content__tree.fullscreen {

    height: 100svh;
}



/*
#tree-app-wrap__child-wrap::-webkit-scrollbar {
    -webkit-appearance: unset !important;
    width: unset !important;
}

#tree-app-wrap__child-wrap::-webkit-scrollbar-thumb {
    background-color: unset !important;
    border-radius: unset !important ;
}
#tree-app-wrap__child-wrap::-webkit-scrollbar-track-piece {
    background: unset !important;
}
#tree-app-wrap__child-wrap::-webkit-scrollbar-track {
    -webkit-box-shadow: unset !important;
    border-radius: unset !important;
} */
/* .tree__counter {
    font-size: 13rem;
    margin-bottom: 10rem;
    display: inline-flex;
    min-width: 200px;
    min-height: 15px;
    background-color: #388677;
    border: 2px solid #388677;
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
} */

.tree__counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    width: max-content;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.50);
    color: #fff;
    font-family: "Proxima Nova";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}



#tree-app {
    display: flex;
    position: relative;
    /* width: max-content; */
    /* height: max-content; */
    /* outline: 1px solid red; */
    /* background-color: azure; */
    /* border: 3px solid yellow; */
}

.tree-app-wrap #tree-app {
    /* position: absolute;
    top: 0;
    left: 0; */

    /* margin-right: 900px;
    margin-left: 900px; */
    /*
    margin-bottom: 400px; */
}

.tree-app-wrap #c1 {
    position: absolute;
    top: 0;
    left: 0;
}

.tree {
    margin-top: 0;
}

.family {
    position: relative;
    display: flex;
    flex-direction: column;
    /*border: 1px solid #ddd;*/
}

.children {
    display: flex;
}

/* .children:has( > .children:nth-child(1) ) {
    display: block;
    background: red;
}
.children:has( > .children:nth-child(2) ) {
    display: block;
    background: yellow;
} */
/* .children:has( > .family:only-child ){
    display: block;
}

.children:has( > .person:only-child ){
    display: flex;
    justify-content: center;
} */


.members {
    display: flex;
    justify-content: center;

    position: relative;
}

/*.members:before{
    content:'';
    width: 50px;
    height: 2px;
    background-color:red;
    position: absolute;
    top: 50%;
}*/




@keyframes fadeIt_M {
    0% {
        background-color: #FFFFFF;
    }

    20% {
        background-color: #E0E4E3;
    }

    100% {
        background-color: #FFFFFF;
    }
}

.backgroundAnimated.M {
    background-image: none !important;
    animation: fadeIt_M 2s ease-out;
}

@keyframes fadeIt_F {
    0% {
        background-color: #FFFFFF;
    }

    20% {
        background-color: #E9E3EB;
    }

    100% {
        background-color: #FFFFFF;
    }
}

.backgroundAnimated.F {
    background-image: none !important;
    animation: fadeIt_F 2s ease-out;
}

.person {
    border: var(--person-border);
    border-radius: var(--person-radius);
    padding: var(--person-padding);
    width: var(--person-width);
    height: var(--person-height);

    margin: 42px 12px;
    display: flex;
    gap: 10px;
    background-color: #fff;
    transition: background-color 0.5s ease;

    position: relative;

    cursor: pointer;
}

/* .person::after {
    position: absolute;
    content: "";
    bottom: -2px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #ffffff;
    height: 3px;
    width: calc(35px - 6px);
} */
.person .person__id {
    display: none;
}

.person.person__fake {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: dashed;
    padding: 7px 9px 7px;

    background-color: #F6F6F6;
    /* background-color: unset !important; */
}

.person.M {
    border-color: #326E5B;
}

.person.F {
    border-color: #643A73;
}

#new-person.M .nd-button.tree_new_person--add {
    border-color: #326E5B;
    background-color: #326E5B;
}
#new-person.F .nd-button.tree_new_person--add {
    border-color: #643A73;
    background-color: #643A73;
}

.person__mustache-help {
    display: none;
    position: absolute;
    top: -85px;
    right: -70px;
    font-size: 13px;
    background-color: #fff;
    color: #5B5B5B;
    text-align: center;
    width: 185px;
    padding: 8px 0;
    border-radius: 5px;
    box-shadow: 0px 1px 7px #ccc;
    z-index: 1;
}

.person__popup-help_mustache {
    top: -70px;
    right: -70px;
}

.person__popup-help_mustache::after,
.person__popup-help_temp::after {
    content: '';
    position: absolute;
    left: 87px;
    bottom: -15px;
    border: 10px solid transparent;
    border-top: 10px solid #fff;
}

.person__popup-help_plus {
    bottom: -59px;
    right: 5px;
}

.person__popup-help_plus::after {
    content: '';
    position: absolute;
    left: 83px;
    top: -15px;
    border: 10px solid transparent;
    border-bottom: 10px solid #fff;
}

.person__popup-help_temp {
    top: -70px;
    left: 24px;
}

.person__mustache-help::after {
    content: '';
    position: absolute;
    /* Абсолютное позиционирование */
    left: 84px;
    bottom: -20px;
    border: 12px solid transparent;
    /* Прозрачные границы */
    border-top: 12px solid #fff;
    /* Добавляем треугольник */
    /* box-shadow: 0px 1px 7px #ccc; */
}

.person__but-wrap {
    position: absolute;
    right: 0;
    top: -17px;
    display: block;
    /* width: 44px;
    height: 14px; */
    color: #000;
    /* background-image: url('/wp-content/themes/nasldnew/assets/img/button_drevo1.svg'); */
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    cursor: pointer;
}

.mustashes-help {
    display: flex;
    align-items: flex-start;
}

.person__but-wrap:hover .mustashes-help {
    opacity: 1;
    visibility: visible !important;
    transition: 0.8s !important;
}

.person__but-wrap .mustashes-help {
    visibility: hidden;
    opacity: 0;
    transition: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(-44%, -70%);
    min-width: 289px;
    font-family: "Proxima Nova";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* box-shadow: 1px 1px 3px 1px #cbcbcb; */
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    text-align: center;
    padding: 6px 14px;
    z-index: 100;
    background-color: #fff;
    COLOR: #5B5B5B;
    cursor: default;
}

.person__but-wrap .mustashes-help.mustashes--active {
    opacity: 1;
    visibility: visible;
    min-width: 320px;
    cursor: default;
}

.mustashes-help__close {
    cursor: pointer;
}

.mustashes-help__close i {
    position: relative;
    display: block;
    width: 25px;
    height: 25px;
    top: -5px;
    left: 5px;
}

.mustashes-help__close i::before {
    background-color: #B7BDCE;
}





@media screen and (max-width: 768px) {
    .person__but-wrap .mustashes-help {
        width: 209px;
    }

    .person__but-wrap:hover .mustashes-help {
        opacity: 0;
        visibility: hidden !important;
        transition: 0.8s !important;
    }
}

.person__but-wrap div::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    transform: translate(-50%, 95%);
    border-top: 10px solid #fff;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 0;
    /* background-color: #c21e1e; */
    right: -7px;
    margin: auto 0;
}



.person__but-add-person {
    /* display: none; */
    /* position: absolute;
    width: 30px;
    height: 17px;
    bottom: -17px;;
    left: 50%;
    transform: translate(-50%, 0);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 60px 60px;
    box-shadow: 0px 2px 3px 0px #cbcbcb; */

    /* display: none; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: absolute;
    width: 40px;
    height: 15px;
    bottom: -15px;
    padding: 0 0 3px 0;
    left: 50%;
    transform: translate(-50%, 0);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 50px 50px;
    box-shadow: 0px 2px 3px 0px #cbcbcb;
    border-left: 2px solid;
    border-right: 2px solid;
    border-bottom: 2px solid;
    z-index: 4;
}

.person__tehwhite {
    position: absolute;
    content: "";
    top: -2px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #ffffff;
    height: 4px;
    width: calc(40px - 6px);
    /* outline: 1px solid red; */
    z-index: 1;
}

.person__but-add-person svg {
    width: 13px;
    height: 13px;
    z-index: 2;
}

.person__but-add-person::after {
    display: none;
    position: absolute;
    content: "Добавить персону";

    font-family: "Montserrat";
    font-weight: 400;
    top: 30px;
    right: -80px;
    font-size: 13px;
    background-color: #fff;
    color: #5B5B5B;
    text-align: center;
    width: 185px;
    padding: 8px 0;
    border-radius: 5px;
    box-shadow: 0px 3px 4px #ccc;
}

.person__but-add-person:hover::after {
    display: block;
}

.person__but-add-person::before {
    content: '';
    display: none;
    position: absolute;
    /* Абсолютное позиционирование */
    left: 5px;
    bottom: -19px;
    border: 10px solid transparent;
    /* Прозрачные границы */
    border-top: 10px solid #fff;
    /* Добавляем треугольник */
    transform: rotate(-180deg);
}

.person__but-add-person:hover::before {
    display: block;
}

.person__but-add-person:hover {
    /* opacity: .95; */
}

.person__but-add-person_M {
    border-color: #326E5B;
}

.person__but-add-person_F {
    border-color: #643A73;
}

.person__but-add-person.person__but-add-person_M svg path {
    fill: #326E5B;
    stroke: #326E5B;
}

.person__but-add-person.person__but-add-person_F svg path {
    fill: #643A73;
    stroke: #643A73;

}



.person.M .person__desc {
    background: #326E5B;
    border-color: #326E5B;
}

.person.F .person__desc {
    background: #643A73;
    border-color: #643A73;
}


.person__desc {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 24px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
}

.person__desc:hover::after, .person__desc.hover::after{
    position: absolute;
    content: 'Нажмите i, чтобы дополнить информацию о персоне';
    width: 200px;
    background-color: #fff;
    font-size: 14px;
    line-height: 20px;
    left: 40px;
    top: -20px;
    padding: 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0px 3px 4px #ccc;
    color: #5B5B5B;
}

.person__desc:hover::before,.person__desc.hover::before{
    content: '';
    position: absolute;
    left: 21px;
    bottom: 5px;
    border: 10px solid transparent;
    border-right: 10px solid #fff;
    z-index: 11;
}


.person__id {
    position: absolute;
    right: 6px;
    top: 3px;
    font-size: 10px;
}

.person__box-img {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-basis: 50px;
    height: max-content;
}
.person__box-img.nd-avatar__death::before{
    content: "";
    background: url('/wp-content/themes/nasldnew/assets/img/new_uikit/nd-avatar__death.svg') no-repeat transparent left bottom;
    background-size: 100%;
    width: 35px;
    height: 35px;
    display: block;
    position: absolute;
    bottom: 0;
    left: -1px;
}


.person__img {
    font-size: 10px;
    border-radius: 50%;
    width: 53px;
    height: 53px;
    object-fit: cover;
    background-size: 100% 100%;
}

.person__data {
    /* background: #eee; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.person__name {
    font-size: 12px;
    margin: 0;
    font-weight: bold;
    color: #424242;

    display: flex;
    flex-direction: column;
    row-gap: 0;
    column-gap: 8px;
    padding-right: 15px;
}
.person__name span:nth-child(3) {
    /* width: 100%; */
}
.person__fake .person__data{
    gap: 0px;
}
.person__fake .person__name {
    color: #444444;
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 15px;
    gap: 0px;
}
.person__fake .person__name span {
    max-width: 100%;
    overflow: unset;
}

.person__fake.first_person_fake .person__name {
    font-size: 20px;
}
.person__fake.first_person_fake .person__name:nth-child(1) {
    padding: 5px 0;
}


.person__fake:hover .person__name {
    color: #424242;
}

.person__name span {
    font-size: unset;
    font-family: unset;
    margin-bottom: unset;
    line-height: unset;
}

.person__name span {
    text-overflow: ellipsis;
    max-width: initial;
    overflow: hidden;
    max-width: 85%;
}

.person__name span:first-child {
    /* display: inline-block; */
    /* background-color: #eee;
    height: 16px; */
    /* width: 105px; максимальная ширина для букв */
}

.person__date {
    color: #424242;
    font-size: 12px;
    display: flex;
    gap: 5px;
}
.person.M.progressbar {
    position: absolute;
    background: #000;
}

.person.F.progressbar {
    position: absolute;
    background: #000;
}

.progressbar-over {
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.person.M.progressbar {
    position: absolute;
    background: #000;
}

.person.F.progressbar {
    position: absolute;
    background: #000;
}

.progressbar-over {
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progressbar-over #progressbar-line {
    width: 80%;
    height: 10%;
  }

.progressbar-over #progressbar-line .ui-progressbar-value {
    background-color: #388677;
  }

#progressbar-percent {
    position: absolute;
    margin-top: 20%;
    left: 10%;
    font-size: 13.5px;
}

.tree_breadcrumbs__mobile--active {
    display: none;
}









.popup {
    background: #FFFFFF;
    border: 1px solid #F0F4F7;
    border-radius: 15px;
    position: relative;
    width: 900px;
    min-height: 480px;
    z-index: 100;
    display: grid;
    grid-template-rows: 2fr 2fr 2fr 2fr;
    grid-template-areas:
        "tl tl tl tr tr tr"
        "cl1 cl1 cc cc cr cr"
        "cl2 cl2 cc cc cr cr"
        "bl bl bl br br br";
}
.popup__canvas {
    width: 100%;
    height: 100%;
}
.open-existing-person {
    padding: 20px !important;
}
.open-existing-person #new-person{
    display: none;
}
.existing-person {
    /* position: absolute; */
    z-index: 7;
    background-color: #fff;
    /* left: 0;
    right: 0;
    top: 0;
    bottom: 0; */
    /* padding: 17px 30px; */
    width: 100%;
    height: 100%;
}

.existing-person__top-block {
    position: relative;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
    padding: 18px 30px;
    border-radius: 15px;
    display: flex;
    margin-bottom: 43px;
}

.existing-person__photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-right: 21px;
    object-fit: cover;
}

.existing-person__fullname {
    font-weight: 600;
    font-size: 24px;
    font-family: 'Source Serif Pro';
    margin-bottom: 20px;
    margin-top: 16px;
}

.existing-person__param {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
}
.existing-person__param div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--Black, #444);
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.existing-person__param div span {
    opacity: 0.7;
}
.existing-person_title {
    font-weight: 400;
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 9px;
}

.existing-person_text {
    font-weight: 400;
    font-size: 16px;
}

.existing-person__bottom-block {
    padding: 0 30px;
    margin-bottom: 43px;
    width: max-content;
}

.existing-person__title-info {
    font-family: 'Source Serif Pro';
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 16px;
}

.existing-person__box-button {
    display: flex;
}
.existing-person__button.nd-button {
    /* position: absolute; */
    /* bottom: 22px; */
    /* right: 60px; */
    /* font-weight: 700;
    font-size: 16px;
    color: #fff;
    padding: 16px 60px;
    border-radius: 100px; */
    width: 200px;
    margin-left: auto;
}

.existing-person__button.F {
    background-color: #643A73;
}

.existing-person__button.M {
    background-color: #326E5B;
}

.popup-body {
    padding: 30px 60px 22px;
    position: relative;
    height: 100%;
}

.popup-top {
    background: #F5F2F3;
    border-bottom: 1px solid #F0F4F7;
    color: #444444;
    border-radius: 15px 15px 0px 0px;
    padding: 1px 0;
}

.popup.parents {
    grid-template-rows: repeat(4, 1fr);
    grid-template-areas:
        "tl tl tl tr tr tr"
        "cl1 cl1 cc cc cr cr"
        "cl2 cl2 cc cc cr cr"
        "bl bl bl br br br";
}

.popup__canvas {
    position: absolute;
    top: 0;
    left: 0;
}


.tree-app-wrap--second .popup {
    background: #F6F6F6;
}



.cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 195px;
    width: 100%;
    height: 90px;
    background-color: #fff;
    position: absolute;
    padding: 0 10px;
    border-radius: 10px;
    border: 2px dashed #2f6e5b;
    cursor: pointer;
}

/* .cart::after {
    display: none;
    position: absolute;
    content: "Эта функция станет доступна в ближайшее время";
    top:-50px;
    right: 0;
    font-size: 13px;
    background-color: #fff;
    color: #5B5B5B;
    text-align: center;
    width: 185px;
    padding: 8px 0;
    border-radius: 5px;
    box-shadow: 0px 1px 7px #ccc
}
.cart:hover::after{
    display: block;
} */

.cart.cart__center {
    /* position: relative; */
}



.cart.cart__center::after {
    position: absolute;
    content: "Нажмите, если хотите отредактировать";
    font-family: "Montserrat";
    font-weight: 400;
    /* top: 30px; */
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    /* right: -80px; */
    font-size: 13px;
    background-color: #fff;
    color: #5B5B5B;
    text-align: center;
    width: 155%;
    padding: 8px 0;
    border-radius: 5px;
    box-shadow: 0px 3px 4px #ccc;
}
.cart.cart__center::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateY(-50%);
    bottom: -18%;
    border: 10px solid transparent;
    border-top: 10px solid #fff;
    transform: translateX(-50%) rotate(-180deg);
}

.tree-app-wrap--second .cart.cart__center::before
.tree-app-wrap--second .cart.cart__center::after {
    display: none;
}


.cart__img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.cart__name {
    font-size: 16px;
}

.popup__close-btn,
.popup-main .modal__btn-close,
.existing-person__close-but {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 30px;
    right: 30px;
    z-index: 110;
    width: 16px;
    height: 16px;
    font-size: 21px;
    line-height: 0;
    cursor: pointer;
    background: url('/wp-content/plugins/nasledie-tree/public/img/popup-close.png') center center no-repeat;
}

.popup-main {
    position: relative;
    height: 100%;
}

.cart__center {
    border: var(--person-border);
    border-radius: var(--person-radius);
    padding: var(--person-padding);
    width: var(--person-width);
    height: var(--person-height);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    background-color: #fff;
    z-index: 1;
}

.cart__center.F {
    border-color: #a485ab;
}

.cart__center.M {
    border-color: #388677;
}

.cart__center.F .person__desc{
    background: #643A73;
    border-color: #643A73;
}

.cart__center.M .person__desc{
    background: #326E5B;
    border-color: #326E5B;
}

.cart__center .person__img {
    margin-right: 10px;
    display: flex;
    flex: 1 0 auto;
}

.edit_album_avatar {
    width: 56px;
    height: 56px;
    border-radius: 30px;
    border: 1px solid #b7bdce;
    position: absolute;
    bottom: -24px;
    left: 52px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.popup__cen_c {
    grid-area: cc;
    position: relative;
    display: flex;
    align-items: center;
}

.popup__top_l {
    grid-area: tl;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-right: 10px;
}

.popup__top_r {
    grid-area: tr;
    display: flex;
    align-items: flex-end;
    padding-left: 10px;
}

.popup__cen_l1 {
    grid-area: cl1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    padding-bottom: 10px;
}

.popup__cen_l2 {
    grid-area: cl2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;

    padding-top: 10px;
}

.popup__cen_r {
    grid-area: cr;
    display: flex;
    align-items: center;
    /* position: relative; */
}

.popup__cen_r .cart {
    height: 96px;
}

.popup__cen_r .cart.F {
    border-color: #388677;
}

.popup__cen_r .cart.M {
    border-color: #a485ab;
}

.popup__bot_l {
    grid-area: bl;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
}

.popup__bot_r {
    grid-area: br;
    display: flex;
    padding-left: 10px;
}

.popup__top_r .cart,
.popup__cen_l1 .cart,
.popup__bot_r .cart,
.popup__cen_r .cart {
    border-color: #a485ab;
}


.popup__title {
    color: #444;
    text-align: center;
    margin-top: 22px;
    margin-bottom: 22px;
    font: 600 24px 'Source';
}

.mobile_rotate {
    display: none;
}

.name-search {
    display: none;
    position: absolute;
    z-index: 99;
    background: #FFFFFF;
    border: 1px solid #F0F4F7;
    box-shadow: 0px 4px 10px rgb(0 0 0 / 25%);
    border-radius: 12px;
    width: 100%;
    top: 55px;
    padding-right: 14px;
    max-height: 172px;
    overflow: hidden;
    overflow-y: auto;
}

.name-search div {
    border-bottom: 1px solid rgba(183, 189, 206, 0.3);
    padding: 20px 20px;
    font-size: 16px;
}

.name-search div:last-child {
    border-bottom: none;
}

.new-person {
    /* color: #fff; */
    color: #444;
    position: relative;
}

.new-person label {
    font-size: 16px;
    color: var(--gray, #B7BDCE);
}

/* .new-person input,
.new-person select,.new-person-flex__item input{
    border: 1px solid rgba(183, 189, 206, 0.3);
    border-radius: 8px;
    max-width: 205px;
    padding: 3px 5px;
} */
div#ui-datepicker-div {
    z-index: 999 !important;
}

.first-person-sex {
    width: 75%;
}

.new-person__text-photo {
    margin-right: 16px;
}

.popup-body input[type="text"]:not(.date) {
    padding: 20px 16px 6px 10px;
    color: var(--Black, #444);
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.new-person input#person-photo {
    max-width: 300px;
    padding-left: 0;
    text-align: right;
    margin-top: -4px;
}

/* .create_first-body input[type="text"]:not(.date) {
    padding: 20px 16px 6px 10px;
    color: var(--Black, #444);
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
} */

.new-person fieldset {
    border: none;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 23px;
}

.new-person__fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.new-person__fieldset_wrap_flex {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.person__fieldset_grid_2-col {
    grid-template-columns: 1fr 2fr;
}

.new-person__box-for-input {
    display: flex;
}

.new-person__box-for-input_column {
    display: flex;
    flex-direction: column;
    width: auto;
}


.new-person__box-image {
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    /* flex: 0 1 auto; */
    position: relative;
}

.select_file_btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background: #fff;
    border-radius: 100px;
}

.new-person__box-image,
.select_file_btn:hover {
    cursor: pointer;
}

.end-date {
    opacity: 0;
}

.form-control {
    width: 140px;
}

.new-person__buttons {
    border: none;
    background-color: #eee;
    color: #000;
    font-weight: 700;
}

.new-person__error {
    position: absolute;
    right: 0;
    bottom: 0;
    color: red;
}

.new-person__buttons.F {
    background: #643A73;
}

.new-person__buttons.M {
    background: #326E5B;
}

.new-person__buttons {
    border-radius: 100px;
    color: #fff;
}

.new-person-flex {
    display: inline-flex;
    width: 47%;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.new-person__select_dropdown {
    width: 47%;
}


.new-person {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-item {
    position: relative;
    color: #7d7d7d;
    width: 100%;
}

input[type='text']:focus,
input[type='number']:focus,
textarea:focus {
    font-size: 16px;
}

.inputfcsname:focus {
    border-color: #326E5B;
    outline: 0;
    outline-offset: 0;
}

.inputfcsname.F:focus {
    border-color: #643A73;
}

.form-input:focus~.form-label,
.form-label.year-lb {
    top: -7px;
    left: 10px;
    font-size: 12px;
    color: #B7BDCE;
}

.form-label {
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 5px;
    white-space: nowrap;
    overflow: hidden;
    color: #444;
    font: 16px/40px 'Proxima Nova';
    opacity: 0.7;
    transition: .2s;
}

.new-person__buttons,
.first-person__submit {
    display: flex;
    border-radius: 100px;
    color: #fff;
    padding: 17px 71px;
    background: #326E5B;
}

.first-person__submit i {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: block;
    background: url(../img/nd-chat-loading.svg) no-repeat transparent left bottom;
    background-size: contain;
    animation: rotation 1s infinite linear;
}
.first-person__submit i::before {
    background: #fff;
}


.F .first-person__submit {
    background: #643A73;
}

.F .inputfcsname:focus {
    border-color: #643A73;
}

/*
.F input[type="radio"]:checked+label::before {
    content: "";
    border: 2px solid #643A73;
    background-color: #643A73;
}*/
.new-person__box-image .edit_album_avatar {
    left: 50%;
    transform: translateX(-50%);
}

.new-person-fio .new-person-fio__input {
    max-width: 100%;
    padding-bottom: 7px;
    padding-top: 21px;
}

.new-person-flex-btn {
    justify-content: end;
    width: 100%;
    margin: 0px 0 0;
}

.first-person-flex-btn {
    margin: 20px 0 0;
}

input[type="radio"].F:checked+label::before {
    content: "";
    border: 2px solid #643A73;
    background-color: #643A73;
}

.new-person-title {
    font: 400 20px 'Source';
    color: #444;
    margin-bottom: 20px;
}

/* input[type="date"] {
    position: relative;
    padding: 13px 14px;
    color: rgba(68, 68, 68, 0.7);
    cursor: pointer;
    font-size: 16px;
    max-width: 100%;
} */

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    z-index: -10;
}

input[type="date"]::-webkit-input-placeholder {
    z-index: 99;
}

input[type="date"]:placeholder {
    z-index: 99;
    font: 16px/16px 'Proxima Nova';
    opacity: 0.7;
    color: #444;
    cursor: pointer;
}

input[type="date"]:invalid:before {
    content: attr(placeholder);
    width: 100%;
    font: 16px/16px 'Proxima Nova';
    opacity: 0.7;
    color: #444;
    cursor: pointer;
}

.new-person-flex__item input[type="date"]:not(:valid):before {
    content: attr(placeholder);
    width: 100%;
    font: 16px/16px 'Proxima Nova';
    opacity: 0.7;
    color: #444;
    cursor: pointer;
}

.new-person-deat, .form_new_person-title--deat {
    display: none;
}

.form-item_hidden,
.new-person-title__dead {
    opacity: 0;
}

.new-person-flex__item {
    position: relative;
    /* width: 100%; */
    margin-bottom: 10px;
}

input.person-divorce[type=checkbox] {
    display: block;
    opacity: 0;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

input.person-divorce[type=checkbox]:checked+label,
input.person-divorce[type=checkbox]:checked+label {
    background: #326E5B;
    border: 2px solid #326E5B;
}

input.person-divorce.F[type=checkbox]:checked+label,
input.person-divorce.F[type=checkbox]:checked+label {
    background: #643A73;
    border: 2px solid #643A73;
}

input.person-divorce[type=checkbox]+label,
input.person-divorce[type=checkbox]+label {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(68, 68, 68, 0.5);
    border-radius: 4px;
    background: #fff;
    padding: 0;
    margin: 0;
    transition: 0.3s;
    cursor: pointer;
}

input.person-divorce:checked+label:after,
input.person-divorce:checked+label:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 7px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

input::-webkit-input-placeholder {
    padding-top: 5px;
}

input:-moz-placeholder {
    padding-top: 5px;
}

input::-moz-placeholder {
    padding-top: 5px;
}

input:-ms-input-placeholder {
    padding-top: 5px;
}

input::-ms-input-placeholder {
    padding-top: 5px;
}

input::placeholder {
    padding-top: 5px;
}


.popup-body input::-webkit-input-placeholder {
    margin-top: 5px;
}

input:-moz-placeholder {
    margin-top: 5px;
}

input::-moz-placeholder {
    margin-top: 5px;
}

input:-ms-input-placeholder {
    margin-top: 5px;
}

input::-ms-input-placeholder {
    margin-top: 5px;
}

input::placeholder {
    margin-top: 5px;
}

.new-person-flex__item input[type="radio"]+label,
.person-spouse {
    font: 400 26rem Source;
}

.new-person label.person-spouse {
    font: 400 26rem Source;
    margin-bottom: 15px;
}

.title-divorce {
    font: 400 18px 'Source Serif Pro';
    color: #444;
    float: right;
    margin: -1px 0 0 10px;
}

.new-person-radio {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 23px;
}

input.new-person-place {
    max-width: 100%;
}

.form-item.new-person-fio {
    position: relative;
    margin-bottom: 10px;
}

.new-person-title-place {
    margin-bottom: 14px;
}

.new-person-flex__item.new-person-deat {
    margin-top: 10px;
}

.new-person-bl {
    padding: 40px 0 0 20px;
    width: 54%;
}

.new-person select {
    max-width: 100%;
    padding: 15px 14px;
    background-color: #fff;
}

.modal,
.modal_message_content {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}
@media screen and (max-width: 890px) {
    .new-person-bl {
        width: 50%;
    }

    .popup-body {
        padding: 30px 30px 22px;
        /* overflow-y: scroll; */
    }
}
@media screen and (max-width: 768px) {

    .d-mobile-none {
        display: none;
    }

    .no-desktop {
        display: inline;
    }

    .new-person-flex {
        width: 100%;
    }

    .new-person-radio {
        justify-content: flex-start;
    }

    input[type="radio"]+label {
        margin-right: 20px;
    }

    .new-person-title {
        font: 400 20px Source;
        margin-top: 33px;
        margin-bottom: 12px;
    }

    .new-person-title-place {
        margin-top: 0px;
    }

    .popup-body input[type="text"] {
        padding: 13px 16px 13px 16px;
    }

    .new-person label.person-spouse {
        font: 400 20px Source;
    }

    .wrap-popup {
        height: 100svh;
        background-color: #fff;
    }

    form.new-person {
        height: 100%;
        overflow-y: scroll;
    }


    .new-person-flex:nth-child(1) {
        /* background-color: red; */
        order: 1;
        margin-bottom: 20px;
    }

    .new-person-flex_order-spouse {
        /* background-color: rgb(235, 134, 19); */
        order: 3;
    }

    .new-person-flex:nth-child(2) {
        /* background-color: orange; */
        order: 3;
        /* margin-bottom: 13px; */
    }

    .new-person-bl {
        order: 4;
    }

    .new-person-flex:nth-child(4) {

        margin-bottom: 0;
    }

    .new-person-flex_margin_b {
        margin-bottom: 60px;
    }

    .new-person-flex:nth-child(3) {
        /* background-color: green; */
        order: 6;
    }

    .new-person__select {
        /* background-color: blue; */
        order: 7;
        width: 100%;
    }

    .new-person__select_dropdown {
        order: 3;
        margin-bottom: 25px;
        width: 100%;
    }

    .new-person-flex-btn {
        /* background-color: purple; */
        order: 10;
    }

    .popup__title {
        font-weight: 700;
        font-size: 20px;
        line-height: 25px;
        padding: 0 30px;
        margin-bottom: 13px;
    }

    .new-person__box-image .person_avatar {
        width: auto;
        height: auto;
    }

    .new-person__box-image,
    .person_avatar__img {
        width: 100px;
        height: 100px;
        /* z-index: 999; */
    }

    .wrap-popup .new-person__box-image .select_file_btn {
        height: 40px;
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .wrap-popup .new-person__box-image .select_file_btn svg {
        width: 25px;
    }

    .create_first-body .new-person__box-image .select_file_btn {
        height: 40px;
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }



    .new-person__box-submit {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .new-person-flex-btn {
        justify-content: center;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: #fff;
        box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.08);
        padding-top: 15px;

        z-index: 9999;
    }

    .new-person-flex__item input[type="radio"]+label,
    .person-spouse {
        font: 400 18px Source;
    }

    .popup-body {
        padding: 25px 16px 190px 25px;
    }

    .form-item.new-person-fio {
        margin-bottom: 13px;
    }

    .new-person-bl {
        padding: 0 !important;
        margin-bottom: 25px !important;
    }

    .new-person__box-submit .new-person__buttons {
        width: 100%;
        margin: 0 16px;
        padding: 18px 30px;
    }

    .person__name {
        font-size: 12px;
        margin: 0;
        font-weight: bold;
        color: #424242;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .person__name span {
        text-align: start;
    }

    .popup {
        border-radius: 0;
        /* height: 100vh; */
        height: 100%;
        grid-template-rows: repeat(5, 1fr);
        grid-template-areas:
            "tl tl tl tr tr tr"
            "cc cc cc bl bl bl"
            "cc cc cc cr cr cr"
            "cc cc cc br br br"
            "cl2 cl2 cl2 cl1 cl1 cl1";
        border: none;
    }

    .popup.parents {
        grid-template-rows: repeat(5, 1fr);
        grid-template-areas:
            "tl tl tl tr tr tr"
            "cc cc cc bl bl bl"
            "cc cc cc cr cr cr"
            "cc cc cc br br br"
            "cl2 cl2 cl2 cl1 cl1 cl1";
    }

    .popup__close-btn {
        top: 2%;
        right: 5%;
        padding: 15px;
    }

    @media (orientation: landscape) {

        .wrap-popup {
            height: 100svh;
            position: fixed;
        }

        .popup {
            position: absolute;
            top: 0;
        }

        .popup.parents {
            overflow-y: auto;
            height: 100%;
            width: 100%;
            grid-gap: 16px;
            grid-template-rows: repeat(6, 1fr);
            grid-template-areas:
                "tl tl tl tr tr tr"
                "cc cc cc bl bl bl"
                "cc cc cc cr cr cr"
                "cc cc cc cr cr cr"
                "cc cc cc br br br"
                "cl2 cl2 cl2 cl1 cl1 cl1";
        }


        .popup__close-btn {
            top: 50%;
            right: 5%;
            padding: 15px;
        }
    }

    .person__box-img {
        /* flex: 0; */
    }

    .popup.parents .cart {}

    .cart__center .person__box-img {
        flex: 0;
    }

    .popup__top_l {}

    .popup__top_r {}

    .popup__cen_c {
        align-items: center;
        justify-content: flex-start;

    }

    .popup__cen_r {
        align-items: center;
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 10px;
    }



    .popup__bot_l {
        align-items: center;
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 10px;
    }

    .popup__bot_r {
        align-items: center;
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 10px;
    }



    .popup__cen_l2 {
        padding-top: 0;
        padding-right: 10px;
        align-items: center;
        justify-content: flex-end;
    }

    .popup__cen_l1 {
        align-items: center;
        justify-content: flex-start;
        padding-left: 10px;
        padding-bottom: 0;
    }

    .cart {
        padding: 0 1px;
        flex-direction: column;
        width: 130px;
        height: 85px;
        padding-top: 12px;
        /* opacity: .3; */
    }

    .cart__center {
        flex-direction: column;
        width: 130px;
        align-items: center;
        /* opacity: .3; */
        height: 130px;
    }

    .cart__center .person__data {
        gap: 10px;
    }

    .crab-person-popup .person__name {
        flex-direction: revert;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        line-height: 13px;
        align-items: center;
        max-width: 100%;
    }
    .crab-person-popup .person__name span {
        max-width: 100%;
    }
    .crab-person-popup .person__date {
        justify-content: center;
    }

    #tree-app #popup.crab-person-popup {
        background: #F6F6F6;
    }

    #tree-app #popup.crab-person-popup .popup__close-btn {
        display: none;
    }







    .popup__cen_r .cart {
        height: 130px;
    }

    .cart__img,
    .popup .person__img {
        margin-right: 0;
        width: 33px;
        height: 33px;
        margin-bottom: 0;
    }

    .person__date .person__spouse {
        display: none;
    }

    .person__data {
        text-align: center;
    }


    .existing-person {
        padding: 15px 8px;
    }

    .existing-person__top-block {
        padding: 20px 16px;
    }

    .existing-person__top-block {
        flex-direction: column;
        margin-bottom: 38px;
    }

    .existing-person__photo {
        width: 100px;
        height: 100px;
    }

    .existing-person__fullname {
        font-weight: 400;
        font-size: 20px;
    }

    .existing-person__title-info {
        font-weight: 400;
        font-size: 20px;
    }

    .existing-person__bottom-block {
        padding: 0 17px;
    }

    .existing-person__box-button {
        margin-top: 21px;
        text-align: center;
    }

    .existing-person__button {
        position: static;
        /* padding: 16px 123px; */
        padding: 16px 34%;
    }


    .new-person-flex__dates-box {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .new-person-flex__dates-box .new-person-flex__item {
        margin: 0;
        /* flex-grow: 1; */
    }

    input[type="radio"]:checked+label::before {
        outline-offset: -6px !important;
        background-color: #326e5b !important;
    }

    input[type="radio"].M:checked+label::before {
        outline-offset: -6px !important;
        background-color: #326e5b !important;
    }

    input[type="radio"].F:checked+label::before {
        outline-offset: -6px !important;
        background-color: #643A73 !important;
    }

    .new-person-bl {
        padding: 40px 0 0 10px;
    }

    .new-person-bl {
        /* width: 56%; */
        width: 100%;
    }

    .tree-app .person {}

}
@media screen and (max-width: 650px) {
    .tree__counter {
        background: none;
        color: var(--black, #444);
        font-family: "Proxima Nova";
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
    }

    .tree-app-wrap::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 4rem;
    }
    .control-pannel__buttons button:hover {
        background-color: #fff;
    }
    .control-pannel__buttons button:active {
        background-color: #326E5B;
    }

    .control-pannel__buttons button:hover * path {
        fill: #444444;
    }
    .control-pannel__buttons button:active * path {
        fill: #fff;
    }
    .person {
        padding: 10px 9px 7px;
    }
    .person .person__name {
        gap: 0;
    }
}

@media screen and (max-width: 480px) {
    .content__tree {
        padding-top: 8px;
        padding-left: 8px;
    }

    .control-pannel {
        width: 100%;
        height: 100%;
        padding: 10px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: normal;
    }
    .popup.parents {
        overflow: auto;
    }
    .content__tree .control-pannel .main-button-comment {
        /* position: relative;
        margin-left: auto;
        right: 10px; */
    }


    .control-pannel__buttons {
        bottom: 45px;
        left: 50%;
        right: unset;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        top: unset;
    }

    .control-pannel__zoom-buttons {
        border-radius: 4px;
        display: flex;
        flex-direction: row;
    }

    .control-pannel__zoom-buttons button#zoomInButton,
    .control-pannel__zoom-buttons button#zoomOutButton,
    .control-pannel__buttons .fullscreen__button {
        box-shadow: none;
        border-radius: 0;
        border-bottom: 0;
    }


    .control-pannel__buttons svg {

        overflow: initial !important;
    }

    .control-pannel__zoom-buttons {
        box-shadow: 0 0 24px -18px rgb(0 2 10);
    }

    .control-pannel__zoom-buttons button#zoomInButton {
        order: 3;
        border-radius: 0 4px 4px 0;
    }

    .control-pannel__buttons .fullscreen__button {
        order: 2;
        margin: 0;
        border-left: 1px solid #B7BDCE;
        border-right: 1px solid #B7BDCE;
    }

    .control-pannel__zoom-buttons button#zoomOutButton {
        order: 1;

        border-radius: 4px 0 0 4px;
    }

    .tree__counter {
        /* display: none; */
    }

    .tree_breadcrumb_list {
        display: flex;
        flex: 0 0 auto;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        background: #B7BDCE;
        border-radius: 50%;
        gap: 5px;
        z-index: 10;
    }

    .tree_breadcrumb_list span {
        display: block;
        width: 5px;
        height: 5px;
        background: #fff;
        border-radius: 50%;
    }

    .crab-person-popup {

        width: 580px;
        min-height: 515px;
    }

    .popup.parents {
        grid-template-rows: repeat(5, 1fr);
        grid-template-areas:
            "tl tr"
            "cc bl"
            "cc cr"
            "cc br"
            "cl2 cl1";
    }

    .tree-app-wrap.tree-app-wrap--second {
        padding: 0;
    }

    .tree-app-wrap--second #tree-app-wrap__child-wrap{
        width: 100%;
        height: 100%;
    }
    .tree-app-wrap--second #tree-app {
        width: 100%;
        height: 100%;
        min-height: 600px;
    }
    .tree-app-wrap--second .crab-person-popup {
        width: 100%;
    }
    /* .tree_breadcrumbs__mobile--active button.selected {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        background: #8DBEAF;
        border: 1px solid #326E5B;
        border-radius: 100px;
        color: #fff;
        height: 100%;
        width: 100%;

    } */


}