/* 2023 Ayon 4 improved  */

/**
* Additional product infos
*/

.product-comments-additional-info {
    margin: 0 0 14px;
    font-weight: 300;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}

.product-comments-additional-info .link-comment.post-product-comment {
    border-left: 1px solid #979797;
    padding-left: 12px;
    margin-left: 12px;
}

.product-comments-additional-info .comments-note {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

/**
*  Post comment modal
*/
#product-comment-posted-modal-message {
    font-size: 16px;
}
.product-comment-modal .modal-header {
    border: none;
    padding: 30px 30px 15px;
}

.product-comment-modal .modal-body {
    padding: 15px 30px 30px;
}

.product-comment-modal .modal-header h2 {
    float: left;
    font-size: 20px;
}

.product-comment-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 480px;
}

.product-comment-modal .modal-dialog h3 {
    font-size: 14px;    
    line-height: 1.2;
    margin-right: 16px;
}

.product-comment-modal .modal-dialog .product-flag {
    display: none;
}

.product-comment-modal .modal-dialog .product-cover {
    margin-right: 1rem;
    border-radius: var(--b-r-ayon);
    overflow: hidden;
}
.product-comment-modal .modal-dialog .product-cover img {
    max-width: 90px;
}

.product-comment-modal label.form-label {
    font-size: 16px;
    margin: 10px 0 3px;
}

.product-comment-modal input {
    width: 100%;
}

.product-comment-modal textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
}

.product-comment-modal .required {
    font-size: 12px;
    margin-left: 5px;
}

.product-comment-modal .post-comment-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.product-comment-modal .post-comment-buttons > .btn {
    width: 50%;
}

.product-comment-modal .post-comment-buttons .btn-comment {
    margin-left: 15px;
    min-width: 30%;
}

#product-comment-posted-modal .post-comment-buttons,
#product-comment-post-error .post-comment-buttons,
#update-comment-usefulness-post-error .post-comment-buttons {
    margin-top: 30px;
}

.modal-header .material-icons {
    color: #40a85f;
    font-size: 30px;
    line-height: 25px;
}

.modal-header .material-icons.error {
    color: #a94442;
}

.modal-header .material-icons.feedback {
    color: #f39d72;
}
#post-product-comment-form label {
    display: block;
    font-size: 14px;
    text-align: left;
}

#post-product-comment-form p {
    font-size: 14px;
    line-height: 1.2;
}

#product-comments-list-header .comments-note span, 
.col-content-inside .product-comments-additional-info .comments-note span {
    display: none;
}

#product-comments-list-header .header-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--b-width-ayon) solid var(--b-color-ayon);
    padding: 10px 16px;
    border-radius: var(--b-r-ayon);
}
#product-comments-list-header .header-comments .comments-note {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;

}
#product-comments-list-header .comments-note span.data-grade {
    display: flex;
    margin-right: 0.5rem;
}

/**
*  Star component
*/

.star-content div.star {
    -webkit-mask: url(../img/rt_star-off.svg) no-repeat 50% 50%;
    mask: url(../img/rt_star-off.svg) no-repeat 50% 50%;
    background-color: #cccccc;
}
.star-content div.star-on,
.star-content div.star-hover {
    -webkit-mask: url(../img/rt_star-on.svg) no-repeat 50% 50%;
    mask: url(../img/rt_star-on.svg) no-repeat 50% 50%;
    background-color: #ffd800;
}

/* 2022 fix half unification */
.star-content.star-empty div.star {
    mask-size: cover;
    -webkit-mask-size: cover;
    mask-position: 100% 50%;
    -webkit-mask-position: 100% 50%;
}
.star-content.star-full div.star-on {
    mask-size: cover;
    -webkit-mask-size: cover;
    mask-position: 0 50%;
    -webkit-mask-position: 0 50%;
}
/* ! 2022 fix half unification */

.star-content {
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.star-content div.star,
.star-content div.star-on,
.star-content div.star-hover {
    display: block;
    width: 20px;
    height: 20px;
    flex: auto;
}
.star-content div.star-on,
.star-content div.star-hover {
    background-position: -24px 0;
}

.small-stars .star-content div.star,
.small-stars .star-content div.star-on,
.small-stars .star-content div.star-hover {
    width: 16px;
    height: 16px;
}

.small-stars .star-content div.star-on,
.small-stars .star-content div.star-hover {
    background-position: -19px 0;
}

.star-content div.star-hover {
    cursor: pointer;
}

.grade-stars {
    position: relative;
    height: 20px;
    min-width: 100px;
    display: inline-block;
}

.grade-stars.small-stars {
    min-width: 80px;
}

.grade-stars .star-content {
    position: absolute;
    top: 0;
    left: 0;
}

.criterion-rating .grade-stars .star-content {
    top: 0;
}

#post-product-comment-modal button.close {
    top: 28px;
    right: 28px
}
#post-product-comment-modal .star-content div.star a {
    display: block;
    position: absolute;
    text-indent: -5000px;
}
#post-product-comment-modal .criterion-rating {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

#post-product-comment-modal .criterion-rating label {
    font-size: 14px;
    font-weight: 600;
    margin: 0 .5rem 0 0;
}
#post-product-comment-modal .product-block {
    display: flex;
    align-items: center;
    border: var(--b-width-ayon) solid var(--b-color-ayon);
    border-radius: var(--b-r-ayon);
    margin-bottom: .5rem;
}

#post-product-comment-form input.error,
#post-product-comment-form textarea.error {
    background-color: #f2dede;
    border: solid 1px #ebcccc;
}

#post-product-comment-form input.valid,
#post-product-comment-form textarea.valid {
    border: solid 1px #d0e9c6;
}

/**
*  Product comments list
*/

#product-comments-list-header {
    padding: 20px 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}
.reviews-list-title {
    display: flex;
    justify-content: center;
}
.reviews-list-title h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0px;
    text-transform: none;
    line-height: 1.1;
    text-align: center;
    position: relative;
}
.reviews-list-title h3:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.36, 0.76, 0, 0.88);
    width: 100%;
    height: 2px;
    background-color: #323232;
}

#product-comments-list-header .comments-nb {
    padding-left: 0;
    display: flex;
    align-items: center;
}
#product-comments-list-header .comments-nb i {
    font-size: 18px;
    margin-right: 4px;
}


#empty-product-comment .btn-comment, 
#product-comments-list-header .btn-comment {
    padding: 16px 20px;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-comment i {
    font-size: 20px;
    margin-right: 8px;
}

#empty-product-comment .btn-comment {
    margin:0 auto;
}

.product-comment-list-item {
    margin-bottom: 28px;
    padding: 10px 0 24px;
    border-bottom: var(--b-width-ayon) solid var(--b-color-ayon)
}

.product-comment-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#empty-product-comment {
    text-align: center;
}

.product-comment-list-item .grade-stars .star-content {
    margin: 0 0 10px;
}

.product-comment-list-item .comment-infos {
    font-size: 12px;
    letter-spacing: -0.28px;
    line-height: 19px;
    min-height: 100px;
}

.product-comment-list-item .comment-infos .grade-stars {
    margin-bottom: 10px;
    margin-left: -2px;
}

.product-comment-list-item .comment-content h4 {
    font-size: 16px;
    padding-bottom: 4px;
    font-weight: 600;
}
.comment-author {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 8px;
}
.comment-date {
    opacity: 0.5;
}

.product-comment-list-item .comment-content .comment-buttons {
    display: flex;
    align-items: center;
}

.product-comment-list-item .comment-content .comment-buttons a {
    font-size: 14px;
    line-height: 1;
    margin-right: 8px;
    transition: 0.12s linear;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.product-comment-list-item .comment-content .comment-buttons a i {
    opacity: 0.4;
    transition: 0.12s linear;
    font-size: 18px;
    margin-right: 4px;
}

.product-comment-list-item .comment-content .comment-buttons a:hover i {
    opacity: 1;
}


/*
** Quickview style
*/
.product-quickview-review {
    display: flex;
    flex-direction: row;
}
.product-quickview-review .grade-stars .star-content {
    margin: 0;
    top: 0;
}

/*
** Product list override
*/
.product-list-reviews {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    padding: 4px 0;
}
.mini .product-list-reviews {
    padding-top: 0;
    justify-content: flex-start;
    margin-left: -2px;
    margin-top: -3px;
}

.product-list-reviews .grade-stars .star-content {
    top: 1px;
}

.product-list-reviews .comments-nb {
    margin-left: 5px;
    font-size: 13px;
    display: none;
}

#product-comments-list-footer .post-product-comment {
    display: flex;
    align-items: center;
    line-height: 1;
    margin-bottom: 48px;
}
#product-comments-list-footer .post-product-comment i {
    font-size: 22px;
    margin-right: 8px;
}

@media (min-width: 768px) {
    #product-comments-list-footer {
        position: relative;
        min-height: 45px;
    }

    #product-comments-list-footer .post-product-comment {
        margin: 0 auto 48px;
    }

    #product-comments-list-pagination {
        position: absolute;
        right: 0;
        top: 5px;
    }
}

@media (max-width: 767px) {
    #product-comments-list-header {
        flex-direction: column;
    }
    #product-comments-list-header .btn-comment {
        margin: .75rem 0 0 0;
    }
    .product-comment-modal .modal-dialog .product-cover {
        display: flex;
    }
    .product-comment-modal .modal-dialog h3 {
        margin: 6px 6px 6px 0;
    }
    .product-comment-modal #criterions_list {
        margin-top: .75rem;
    }
    #product-comments-list-footer {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .product-reviews-bottom > .container {
        padding: 0;
    }
}

@media (max-width: 576px) {
    #product-comments-list-footer {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }

    #product-comments-list-pagination {
        margin-bottom: 10px;
    }
}

#product-comments-list-pagination {
    height: 32px;
}

#product-comments-list-pagination ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

#product-comments-list-pagination ul li span {
    height: 32px;
    width: 24px;
    margin: 0 5px;
    cursor: pointer;
    display: block;
    text-align: center;
    font-size: 20px;
    line-height: 32px;
    color: #6b868f;
}

#product-comments-list-pagination ul li.active span,
#product-comments-list-pagination ul li span.next i,
#product-comments-list-pagination ul li span.prev i {
    font-weight: bold;
}

#product-comments-list-pagination ul li.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}

#product-comments-list-pagination ul li.active span {
    cursor: not-allowed;
}

.comments_note {
    margin: 12px 0 0;
}

/* pop-in add grade/advice ********************************************************************* */
#fancybox-wrap {
    width: 585px;
}

#fancybox-content {
    width: 585px;
    border-width: 0;
}

#criterions_list {
    list-style-type: none;
    margin-bottom: 24px;
    border: var(--b-width-ayon) solid var(--b-color-ayon);
    border-radius: var(--b-r-ayon);
    padding: 10px 16px;
}

#criterions_list li {
    display: flex;
    align-items: center;
    justify-content: center;
}


.col-content-inside .comments_note {
    width: auto;
    margin: 1rem 0 2rem;
}
.col-content-inside .comments_note .star_content {
    display: flex;
    align-items: center;
}
.col-content-inside .comments_note .star_content div.star {
    width: 20px;
    height: 20px;
}
.col-content-inside .comments_note .star_content .nb-comments {
    margin-left: 14px;
    margin-top: 2px;
    font-size: 13px;
    line-height: 13px;
}

.comments_note div.star,
#productCommentsBlock div.star {
    display: inline-block;
    float: left;
    width: 16px;
    height: 16px;
}

.star_content div.star,
.comments_note div.star,
#productCommentsBlock div.star,
#new_comment_form div.star {
    -webkit-mask: url(img/rt_star-off.svg) no-repeat 50% 50%;
    mask: url(img/rt_star-off.svg) no-repeat 50% 50%;
}
.star_content div.star.star_on,
.star_content div.star_hover,
.comments_note div.star.star_on,
#productCommentsBlock div.star_hover,
#productCommentsBlock div.star.star_on,
#new_comment_form div.star_hover,
#new_comment_form div.star_on {
    -webkit-mask: url(img/rt_star-on.svg) no-repeat 50% 50%;
    mask: url(img/rt_star-on.svg) no-repeat 50% 50%;
}

#new_comment_form div.star {
    display: inline-block;
    float: left;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#new_comment_form_footer {
    margin-top: 20px;
    font-size: 12px;
}

#new_comment_form div.star a,
#productCommentsBlock .star a {
    display: none;
}

/* TAB COMMENTS ******************************************************************************** */
#product_comments_block_tab {
    margin: 40px 0 20px 0;
}

#product_comments_block_tab div.comment {
    margin: 0 0 32px 0;
    padding: 10px 0 32px;
    border-bottom: 2px dotted;
}

#product_comments_block_tab div.comment div.comment_author {
    float: left;
    padding-right: 30px;
    width: 200px;
    line-height: 18px;
}

#product_comments_block_tab .comment_author span {
    margin-top: 6px;
}

#product_comments_block_tab div.comment div.comment_author span {
    font-weight: bold;
}

#product_comments_block_tab div.comment div.comment_author span,
#product_comments_block_tab div.comment .star_content {
    float: left;
}

#product_comments_block_tab div.comment .star_content {
    margin: 0;
}

#product_comments_block_tab .comment_author_infos {
    clear: both;
    padding-top: 20px;
}

#product_comments_block_tab .comment_author_infos em {
    font-style: normal;
    margin-top: 10px;
    display: inline-block;
    font-size: 13px;
    opacity: 0.5;
}

#product_comments_block_tab div.comment div.comment_details {
    float: left;
    overflow: hidden;
    width: calc(100% - 200px);
    padding-top: 2px;
}

#product_comments_block_tab div.comment_details .title_block,
#product_comments_block_tab div.comment_details h4 {
    padding-bottom: 10px;
    font-weight: 500;
}

#product_comments_block_tab div.comment_details p {
    padding-bottom: 10px;
}

#product_comments_block_tab div.comment_details ul {
    list-style-type: none;
    margin: 0;
    opacity: 0.2;
    display: flex;
    float: right;
    align-items: center;
    -webkit-transition: all 0.22s cubic-bezier(0.07, 0.74, 0.56, 0.89);
    transition: all 0.22s cubic-bezier(0.07, 0.74, 0.56, 0.89);
}
#product_comments_block_tab div.comment:hover div.comment_details ul {
    opacity: 1;
}

#product_comments_block_tab div.comment_details li {
    padding: 2px 0 2px 12px;
}

#product_comments_block_tab a {
    text-decoration: none;
}

#product_comments_block_tab a:hover {
    text-decoration: underline;
}

#product_comments_block_tab button.usefulness_btn {
    cursor: pointer;
    margin: 0;
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid #f2f2f2;
    border-radius: 3px;
    font-weight: 500;
    background: none;
}

#product_comments_block_tab button.usefulness_btn:first-of-type {
    margin-left: 12px;
}
#product_comments_block_tab .comment_details ul li:nth-of-type(2) {
    display: none;
}

#product_comments_block_tab button.usefulness_btn:hover {
    background-position: left -50px;
}

#product_comments_block_tab button.usefulness_btn:active {
    background-position: left -100px;
}

#product_comments_block_tab span.report_btn {
    cursor: pointer;
    display: none;
}

#product_comments_block_tab span.report_btn:hover {
    text-decoration: underline;
}

.fl {
    float: left;
}

.fr {
    float: right;
}
.fr > a {
    margin-left: 10px;
}

#productCommentsBlock .newcom {
    text-align: center;
}
#productCommentsBlock .open-comment-form.btn {
    margin: 0 auto 20px;
    padding-left: 70px;
    padding-right: 70px;
}

#newCommentForm {
    display: none;
    background: #fff;
}

#product_comments_block_tab .comment_details ul li {
    font-size: 12px;
    float: right;
}

#new_comment_form #content {
    width: 100% !important;
    max-width: 100% !important;
}

#new_comment_form_ok {
    overflow: hidden;
    clear: both;
}

@media (max-width: 991px) {
    #product_comments_block_tab div.comment_details ul {
        display: none;
    }
    #new_comment_form {
        width: auto;
    }    
    .product-comment-list-item {
        margin-bottom: 12px;
    }

}
@media (max-width: 479px) {
    #product_comments_block_tab div.comment div.comment_details {
        width: 100%;
        display: block;
    }
}

/* GDPR */
#post-product-comment-form label.psgdpr_consent_message {
    line-height: 1.28; 
    margin-bottom: 20px;
    display: flex;
}
#post-product-comment-form label.psgdpr_consent_message > span:last-child {
    padding-left: 10px;
}