.comments {
    max-width: 780px;
    width: 100%;
    margin: 50px auto 100px;
}

.comments__title {
    font-family: 'Tahoma', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    margin-top: 50px;
}

.comments__title img {
    margin-left: 10px;
}

.comment-wrap {
    position: relative;
    width: 100%;
}

.answer-inc .comment:not(.comment--answer):before {
    content: "";
    position: absolute;
    height: calc(100% + 40px);
    border-left: 1px dashed rgba(61, 61, 61, 0.29);
    width: calc(100% - 100px);
    border-radius: 26px;
    left: 25px;
    z-index: -1;
    transform: scale(1);
    opacity: 1;
    transform-origin: top;
    transition: 0.7s;
}

.comment__wrap {
    min-width: 230px;
}

.comment--answer:not(:last-child):before {
    content: "";
    position: absolute;
    height: calc(100% + 40px);
    border-left: 1px dashed rgba(61, 61, 61, 0.29);
    width: 100%;
    border-radius: 0;
    left: 14px;
    z-index: -1;
    transform: scale(1);
    opacity: 1;
    transform-origin: top;
    transition: 0.7s;
}

.answer-inc .comment:not(.comment--answer):after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 53px;
    width: 53px;
    background: transparent;
    z-index: 1;
}

.comment {
    font-family: 'Tahoma', sans-serif;
    display: flex;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.comment__author-pic {
    display: flex;
}

.comment__author-pic,
.comment-create__avatar {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 11px;
    z-index: 2;
}

.comment__author-pic img,
.comment-create__avatar img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.comment__body {
    padding: 15px;
    max-width: 100%;
    background: #F7F7F7;
    border-radius: 20px;
    transition: 0.3s;
}

.comment__author-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    margin: 15px 0;
}

.comment--answer .comment__author-name {
    margin-top: 7px;
}

.comment__text {
    font-size: 16px;
    line-height: 24px;
}

/*.comment__text img {*/
/*    display: block;*/
/*    margin-top: 8px;*/
/*    max-width: 340px;*/
/*    width: 100%;*/
/*}*/

.comment__footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.comment__ui {
    display: flex;
    padding-left: 19px;
}

.comment__ui-item {
    font-size: 12px;
    line-height: 16px;
    text-decoration: none;
    color: #000;
    color: rgba(0, 0, 0, 0.5);
}

.comment__ui-item:first-child {
    margin-right: 0.9em;
}

.comment__ui-item:nth-child(2):after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 2px;
    background: #0A78C2;
    border-radius: 50%;
    margin: 0 5px;
    transform: translateY(-3px);
}

.comment__ui-item:nth-child(2),
.comment__ui-item:nth-child(3) {
    color: #0A78C2;
}

.comment__img {
    max-width: 320px;
    width: 100%;
    margin-top: 10px;
    display: block;
    margin-bottom: 0;
}

.emoji-box {
    display: flex;
    align-items: center;
    height: 20px;
    background: #F2F2F2;
    border-radius: 10px;
    margin-right: 0;
}

.emoji-box.hide {
    background: none !important;
}


.emoji-box__emoji-wrap {
    display: flex;
    transition: 0.3s;
}

.emoji-box__ico {
    width: 20px;
    height: 20px;
    margin-left: -8px;
    position: relative;
}

.emoji-box__ico img {
    width: 100%;
}

.emoji-box__ico:first-child {
    z-index: 3;
}

.emoji-box__ico:nth-child(2) {
    z-index: 2;
}

.emoji-box__ico:last-child {
    z-index: 1;
}

.emoji-box__like-count {
    text-align: center;
    font-weight: 400;
    font-size: 12px;
    min-width: 30px;
    line-height: 16px;
    text-align: center;
}

.comment--answer {
    margin-left: 62px;
}

.comment--answer .comment__author-pic {
    min-width: 32px;
    width: 32px !important;
    height: 32px;
    display: flex;
}

/*.comment--answer .comment__author-pic {*/
/*    min-width: 25px;*/
/*    width: 25px;*/
/*    height: 25px;*/
/*    margin-right: 8px;*/
/*}*/
.comment--answer .comment__body {
    max-width: 459px;
    min-width: 229px;
}

/*.comment--answer .emoji-box {*/
/*    transform: translateY(0);*/
/*    margin-right: -10px;*/
/*}*/
.comment--answer .emoji-box__ico {
    width: 19px;
    height: 19px;
    margin-left: -5px;
}


.comment__img-wrap {
    position: relative;

}

.comment__img {
    max-width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 0;
    cursor: pointer;
    margin-top: 0;
    transition: 0.3s;
}

.comment__img:hover {
    opacity: .7;
}

.crop-img {
    position: absolute;
    right: 10px;
    bottom: 20px;
    border: none;
    background: none;
    pointer-events: none;
}


.modal-wrap {
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    box-sizing: border-box;
}

.modal-wrap.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    max-height: calc(100% - 200px);
    width: fit-content;
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
    position: relative;
}

.modal__close {
    position: absolute;
    filter: invert(1);
    background: none;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    top: -48px;
    right: 0px;
    cursor: pointer;
}

.modal__close img {
    width: 100%;
    pointer-events: none;
}

.modal__cropped-image {
    max-width: 100%;
    max-height: 92vh;
    object-fit: cover;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@media only screen and (max-width: 700px) {
    .modal {
        width: 100%;
    }
}


@media screen and (max-width: 980px) {

    .comments {
        max-width: 680px;
        margin: 40px auto;
    }

}

@media screen and (max-width: 767px) {
    .comments .emoji-box {
        transform: translateY(0);
        margin-right: 2px;
    }

    /*.comments .emoji-box__ico {*/
    /*    width: 19px;*/
    /*    height: 19px;*/
    /*    margin-left: -5px;*/
    /*!*}*!*/
    /*.comments .emoji-box__like-count {*/
    /*    font-size: 14px;*/
    /*    line-height: 21px;*/
    /*}*/
}

@media screen and (max-width: 440px) {
    .comment--answer {
        margin-left: 30px;
    }
}

@media screen and (max-width: 410px) {

    .comment__author-pic,
    .comment-create__avatar {
        margin-right: 4px;
    }
}

@media screen and (max-width: 380px) {
    .comments {
        overflow: hidden;
    }
}

/*@media screen and (min-width: 360px) {*/
/*    .comment--answer .comment__body {*/
/*        min-width: 279px;*/
/*    }*/
/*}*/
@media screen and (max-width: 410px) {
    .comment__ui {
        padding-left: 4px;
    }

    .comment__ui-item {
        font-size: 12px;
    }

    .comment__ui-item:not(:last-child):after {
        width: 4px;
        height: 4px;
        margin: 0 5px;
    }
}

@keyframes emoji-appear {
    0% {
        display: none;
        transform: scale(0);
    }

    1% {
        display: block;
        transform: scale(0);
    }

    65% {
        transform: scale(1);
    }

    85% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.emoji-box .emoji-box__ico {
    display: none;
}

.emoji-box .emoji-box__ico.active {
    display: block;
}


.emoji-box.active .emoji-box__ico {
    transform: scale(0);
    display: none;
    transition: 0s;
}

.emoji-box.active .emoji-box__ico.active {
    display: block;
    transform: scale(1);
    animation: emoji-appear 0.5s linear forwards;
}


.comment-create {
    display: flex;
    margin-bottom: 60px;
}

.comment-create__avatar {}

.comment-create__body {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.comment-create__name-field {
    background: #F7F7F7;
    border-radius: 20px;
    font-family: 'Tahoma', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    border: none;
    padding: 14px;
    margin-bottom: 10px;
    outline: none;
    box-sizing: border-box;
}

.comment-create__name-field::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.comment-create__textarea-wrap {
    position: relative;
}

.comment-create__text-field {
    font-family: 'Tahoma', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;

}

.comment-create__text-field::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/*.comment-create__text*/

.comment-create__subtitle {
    padding: 10px 10px 10px 15px;
    font-family: 'Tahoma', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 1140px) {
    .comment-create__subtitle {
        display: none;
    }

}

@media screen and (max-width: 700px) {
    .comment-create__name-field {
        width: 100%;
    }
}

@media screen and (max-width: 520px) {
    .comment-create {
        padding-left: 0;
    }
}



/*GRADIENT COMMENTS STYLE*/

.comments.gradient .comment__body {
    background: linear-gradient(180deg, #BA08FD 0%, #348FFB 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: bottom;
    position: relative;
    color: #fff !important;
    border: none;
}




.comment-with-image {
    padding: 0;
    overflow: hidden;
    max-width: 420px;
}

.comment-with-image .comment__inner-text {
    padding: 10px 15px;
}










.comment-create__row {
    display: flex;
    justify-content: flex-start;
}

.user-picture-to-load {
    width: 50px;
    min-width: 50px;
    height: 50px;
    overflow: hidden;
    margin-right: 11px;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}

.modal-wrap {
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    box-sizing: border-box;
}

.modal-wrap.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    max-height: calc(100% - 200px);
    width: fit-content;
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
    position: relative;
}

.modal__close {
    position: absolute;
    filter: invert(1);
    background: none;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    top: -48px;
    right: 0px;
    cursor: pointer;
}

.modal__close img {
    width: 100%;
    pointer-events: none;
}

.modal__cropped-image {
    max-width: 100%;
    max-height: 92vh;
    object-fit: cover;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@media only screen and (max-width: 700px) {
    .modal {
        width: 100%;
    }
}



/*.comment__text img {*/
/*    display: block;*/
/*    margin-top: 8px;*/
/*    max-width: 340px;*/
/*    width: 100%;*/
/*}*/
/*.emoji-box__ico:nth-child(2)  {*/
/*    z-index: 3;*/
/*}*/
/*.emoji-box__ico:nth-child(2) {*/
/*    z-index: 2;*/
/*}*/
/*.emoji-box__ico:last-child {*/
/*    z-index: 1;*/
/*}*/
/*.comment--answer .comment__author-pic {*/
/*    min-width: 25px;*/
/*    width: 25px;*/
/*    height: 25px;*/
/*    margin-right: 8px;*/
/*}*/
/*.comment--answer .emoji-box {*/
/*    transform: translateY(0);*/
/*    margin-right: -10px;*/
/*}*/


.comment-create {
    display: flex;
    margin-bottom: 40px;
}

.comment-create__body {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.comment-create__name-field {
    padding: 10px 12px;
    background: #F0F2F5;
    border-radius: 7px;
    font-weight: 400;
    font-size: 14px;
    border: none;
    margin-bottom: 10px;
    outline: none;
}

.comment-create__textarea-wrap {
    position: relative;
}

.comment-create__text-field {
    width: 100%;
    background: #F0F2F5;
    border-radius: 7px;
    font-weight: 400;
    font-size: 14px;
    height: 86px;
    border: none;
    padding: 8px 12px;
    outline: none;
    resize: none;
    box-sizing: border-box;
}

/*.comment-create__text*/

.comment-create__create-btn {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
}

@media screen and (max-width: 1140px) {
    .comment-create__create-btn {
        display: block;
    }

}

@media screen and (max-width: 700px) {
    .comment-create__name-field {
        width: 100%;
    }
}

@media screen and (max-width: 520px) {
    .comment-create {
        padding-left: 0;
    }
}



/*GRADIENT COMMENTS STYLE*/


.comment-create__row {
    display: flex;
    justify-content: flex-start;
}

.user-picture-to-load {
    width: 50px;
    min-width: 50px;
    height: 50px;
    overflow: hidden;
    margin-right: 11px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}

.comment-img {
    border-radius: 20px;
    margin-top: 15px;
    max-width: 250px;
    width: 100%;
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

