.commentBox{
    width: 100%;
    direction: rtl;
    background: #fff;
    height: fit-content;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 6px #0002;
}

.commentBox .userData{
    display: grid;
    gap: 4px 16px;
    grid-template: "image name" 24px "image date"24px / 48px 1fr;
}
.commentBox .userImageHolder{
    width: 48px;
    height: 48px;
    background: var(--blueBorder);
    border-radius: 50%;
    grid-area: image;
}
.commentBox .userName{
    grid-area: name;
    font-size: 16px;
}
.commentBox .date{
    grid-area: date;
    font-family:IRANSansWeb_Light;
    font-size: 12px;
}

.wrapRibon{
    max-height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.commentBox .content{
    max-height: 100%;
    overflow:scroll;
    padding-left: 8px;
}

.hiddenCommentAnswers{
    display: none;
}












#OpenCommentScreen{
    width: 100vw;
    height: 100vh;
    background: #8886;
    position: fixed;
    top: 0;
    left : 0;
    right: 0;
    z-index:1000;
    justify-content: center;
    overflow-x: scroll;
    padding :30vh 0;
    display: none;
}
#OpenCommentScreen.open{
    display: flex;

}
#OpenCommentScreen .commentDialogBox{
    width: 700px;
    max-width: 100%;
    height: fit-content;
    min-height: 300px;
    background: #fff;
    margin: auto;
    box-shadow: 0 0 32px #0003;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.close{
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    outline: none;
    position: relative;
    cursor: pointer;
    padding: 0;
}
.close > div{
    width: 100%;
    height: 3px;
    background: red;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(45deg) ;
    transform-origin: center;transform-box: fill-box;
}

.close > div:nth-child(2){
    transform: translate(-50%,-50%) rotate(-45deg);
}
.commentDialogBox > .header{
    display: flex;
    align-items: center;
}
.commentDialogBox > .header .title{
    text-align: center;
flex: 1;
margin: 0;
font-family: IRANSansWeb_Bold;
}

.answerList{
    border-top: 1px solid var(--darkBlue);
    padding:16px 0;
}
.answerList > .title{
    font-family: IRANSansWeb_Bold;
    font-size: 18px;
}
.answerList ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#OpenCommentScreen .commentDialogBox form{
    border-radius: 16px;
    padding: 16px;
}

#OpenCommentScreen .commentDialogBox form textarea{
    padding:8px;
}
#orgComment{
    margin: 8px 0 32px;
}






#commentSection{
    scroll-margin-top: 85px;
    height: fit-content;
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(#fff0,#559DFF66,#fff0) ;
    padding-right: var(--menuPaddingHoriz);
}
#commentSection .title{
    color: var(--darkBlue);
}
.formAndCommentHolder{
    display: grid;
    grid-template-columns: minmax(400px,1fr) 2fr ;
    gap: 32px;
    width: 100%;
    /* overflow: hidden; */
    padding: 32px 0;
}
.formAndCommentHolder form{
    width: 100%;
    /* height: fit-content; */
    height: 100%;
    min-height: 300px;
    background: #fff;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 0 16px #0003;
    /* margin:auto */
}
.formAndCommentHolder form .f1{
    flex: 1;
}

.formAndCommentHolder form textarea,
.formAndCommentHolder form .f1 .col
{
    height: 100%;
}
.commentListHolder{
    overflow: hidden;
}

/* RatingInput */
.ratingInput{
    display: flex;
    /* direction: ltr; */
}
.ratingInput label{
    width: 32px;
    height: 32px;
}
.ratingInput label svg{
    width: 100%;
    height: 100%;
}
.ratingInput #star{
    fill: rgb(255, 226, 35);
}
.ratingInput input:checked ~ label #star{
    fill: #888 !important;
    /* background: red; */
}
.ratingInput input{
    display: none;
}
.flRes{
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width:980px) {
    #commentSection{
        padding: 0 !important;
        height: fit-content;
        scroll-margin-top: 180px !important;
    }
 
    .formAndCommentHolder > form{
        width: calc(100% - var(--menuPaddingHoriz) * 2);
        margin: 0 var(--menuPaddingHoriz);
    }
    .formAndCommentHolder{
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr 1fr;
    }
    .formAndCommentHolder .swiper-slide {
        margin: 0 24px !important;
    }
}