.comments_note { margin-bottom: 5px }

#new_comment_form .modal-dialog {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
    margin: 40px auto;
}

#new_comment_form .modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    background: #fff;
}

#new_comment_form .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 30px 20px;
    border-bottom: 1px solid #eceff3;
    background:
        radial-gradient(circle at top right, rgba(22, 150, 239, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

#new_comment_form .modal-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

#new_comment_form .modal-header .close {
    top: 10px;
    right: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #131414;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

#new_comment_form .modal-header .close i.fa.fa-close {
    color: black;
}

#new_comment_form .modal-header .close:hover {
    background: #f3f4f6;
    color: #111827;
    transform: rotate(90deg);
}

#new_comment_form .modal-body {
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

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

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

#new_comment_form ul.grade_content { list-style-type: none }

#new_comment_form .grade_content li { width: 50% }

#new_comment_form .product {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin: 0;
    padding: 28px 30px 0;
}

#new_comment_form .product img {
    float: none;
    display: block;
    width: 100%;
    max-width: 190px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

#new_comment_form .product .product_desc {
    float: none;
    margin-left: 0;
    width: auto;
    line-height: 1.55;
    color: #4b5563;
    flex: 1 1 auto;
    padding: 8px 0 4px;
}

#new_comment_form .product .product_desc .product_name {
    padding-bottom: 8px;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}

#new_comment_form .grade_content { margin: 0 0 20px 0 }

#new_comment_form .grade_content span,
#new_comment_form .grade_content span {
    display: inline-block;
    padding: 0 10px;
    width: 150px; /* 160 */
    font-weight: bold
}

#new_comment_form .grade_content .cancel { margin-right: 5px }

.new_comment_form_content {
    padding: 28px 30px 30px;
    background: transparent;
}

.new_comment_form_content .intro_form {
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 12px
}

#new_comment_form label {
    display: block;
    margin: 0 0 8px 0;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #111827;
}

#new_comment_form input {
    padding: 0 14px;
    height: 48px;
    width: 100%;
    border: 1px solid #d9dee7;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#new_comment_form textarea {
    padding: 14px;
    height: 132px;
    width: 100%;
    border: 1px solid #d9dee7;
    border-radius: 16px;
    background: #fff;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#new_comment_form input:focus,
#new_comment_form textarea:focus {
    border-color: #1696ef;
    box-shadow: 0 0 0 4px rgba(22, 150, 239, 0.12);
    outline: none;
}

#new_comment_form .submit {
    margin-top: 20px;
    padding: 0;
    font-size: 13px;
    text-align: right
}

#new_comment_form #criterions_list {
    margin: 0 0 26px 0;
    padding: 22px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    list-style-type: none;
}

#new_comment_form #criterions_list li {
    margin-bottom: 0;
}

#new_comment_form #criterions_list label {
    display: inline-flex;
    align-items: center;
    float: none;
    margin: 0 18px 0 0;
    text-align: left;
    min-width: 120px;
}



.comments_note div.star.star_on:after, #productCommentsBlock div.star.star_hover:after, #productCommentsBlock div.star.star_on:after {
    content: "\f005";
    color: #ef8743;
}

.comments_note div.star:after, #productCommentsBlock div.star:after, #productCommentsBlock div.star:after {
    content: "\f006";
    font-family: "FontAwesome";
    display: inline-block;
    color: #777676;
}

.comments_note--open-modal {
    cursor: pointer;
}

#new_comment_form div.star {
    display: inline-block;
    float: left;
    width: 34px;
    height: 34px;
    align-content: center;
}

#new_comment_form div.star.star_hover:after, #new_comment_form div.star.star_on:after {
    content: "\f005";
    color: #1696ef;
}

#new_comment_form div.star:after{
    content: "\f006";
    font-family: "FontAwesome";
    color: #cbd5e1;
}

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

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

#product_comments_block_tab .review-cta {
    clear: both;
    margin: 0 0 18px;
    text-align: left;
}

#product_comments_block_tab .reviews-scroll {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 24, 39, 0.28) transparent;
    box-shadow: 0 12px 24px rgba(29, 20, 12, 0.1);
    padding: 20px;
    border-radius: 10px;    
    background: #a4aca517;
}

#product_comments_block_tab .reviews-scroll::-webkit-scrollbar {
    width: 8px;
}

#product_comments_block_tab .reviews-scroll::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, 0.28);
    border-radius: 999px;
}

#product_comments_block_tab .reviews-scroll::-webkit-scrollbar-track {
    background: transparent;
}

#product_comments_block_tab .review-cta .open-comment-form,
#product_comments_block_tab #new_comment_tab_btn.open-comment-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid #111827;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

#product_comments_block_tab .review-cta .open-comment-form:hover,
#product_comments_block_tab #new_comment_tab_btn.open-comment-form:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
    transform: translateY(-1px);
}

#product_comments_block_tab .review-cta .open-comment-form:focus,
#product_comments_block_tab #new_comment_tab_btn.open-comment-form:focus {
    color: #fff;
    text-decoration: none;
    outline: none;
    box-shadow:
        0 0 0 4px rgba(22, 150, 239, 0.16),
        0 12px 28px rgba(17, 24, 39, 0.12);
}

#product_comments_block_tab div.comment {
    margin: 0 0 10px 0;
    padding: 5px 0 14px;
    border-bottom: 1px dotted #ccc
}

#product_comments_block_tab div.comment div.comment_author {
    float: left;
    padding-right: 25px;
    width: 260px;
    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 {
    padding-top: 2px;
}

#product_comments_block_tab .comment_author_infos em { color: #999 }

#product_comments_block_tab .comment_author_head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

#product_comments_block_tab .comment_author_head strong {
    font-size: 15px;
    line-height: 1.2;
    color: #111827;
}

#product_comments_block_tab .comment_author_head .star_content {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    float: none;
    margin: 0;
}

#product_comments_block_tab .comment_author_head .star {
    float: none;
}

#product_comments_block_tab .comment_author_infos em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #6b7280;
}

#product_comments_block_tab div.comment div.comment_details {
    float: left;
    overflow: hidden;
    max-width: 800px
}

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

#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
}

#product_comments_block_tab div.comment_details li {
    padding: 2px 0 2px 12px;
    background: url(img/bg_li.png) no-repeat 1px 45% #fff
}

#product_comments_block_tab a {
    text-decoration: none;
    font-weight: bold
}

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

#product_comments_block_tab button.usefulness_btn {
    cursor: pointer;
    margin: 0 0 0 5px;
    display: inline-block;
    padding: 0 2px;
    border: 1px solid #c0c0c0;
    border-radius: 3px 3px 3px 3px;
    color: #000;
    font-weight: bold;
}

#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 }

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

.fl { float: left; }

.fr { float: right; }

.open-comment-form {
    margin-bottom: 20px;
}

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

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

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

#new_comment_form .form-group {
    margin-bottom: 18px;
}

#new_comment_form .form-group.row {
    display: flex;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
}

#new_comment_form .form-group.row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

#new_comment_form .form-group .col-md-3 {
    flex: 0 0 168px;
    max-width: 168px;
    padding-right: 18px;
}

#new_comment_form .form-group .col-md-9 {
    flex: 1 1 auto;
    max-width: none;
}

#gdpr_checkbox {
    height: auto!important;
    width:auto!important;
    margin-right: 8px;
}

.gdpr_disabled {
    opacity: .5;
    background: silver!important;
    cursor: not-allowed!important;
}

#submitNewMessage {
    margin-left: 15px;
    min-width: 152px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: #111827;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#submitNewMessage:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.22);
    transform: translateY(-1px);
}

#new_comment_form_footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eceff3;
}

#new_comment_form_footer .required {
    margin: 0 0 14px;
    font-size: 12px;
    color: #6b7280;
}

#new_comment_form_footer .btn:not(#submitNewMessage) {
    background: transparent;
    border: 0;
    color: #6b7280;
    font-weight: 600;
}

#new_comment_form_footer .btn:not(#submitNewMessage):hover {
    color: #111827;
}

#new_comment_form_error {
    margin-bottom: 18px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    color: #991b1b;
}

#new_comment_form_error ul {
    margin: 0;
    padding-left: 18px;
}

#new_comment_form .description_popup_reviews {
    color: #6b7280;
}

#new_comment_form .description_popup_reviews {
    position: relative;
    overflow: hidden;
    max-height: 84px;
    transition: max-height .28s ease;
}

#new_comment_form .description_popup_reviews.is-expanded {
    max-height: 320px;
}

#new_comment_form .description_popup_reviews.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fafbfc 92%);
    pointer-events: none;
}

#new_comment_form .description_popup_reviews__inner > *:last-child {
    margin-bottom: 0;
}

#new_comment_form .description_popup_reviews__toggle {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#new_comment_form .description_popup_reviews__toggle:hover {
    color: #1696ef;
}

.modal .description_popup_reviews ul li {
    padding-left: 0 !important;
}

#new_comment_form .product {
    padding: 15px 0!important;
}

@media (max-width: 767px) {
    #new_comment_form .modal-dialog {
        width: calc(100vw - 18px);
        margin: 12px auto;
    }

    #new_comment_form .modal-header,
    #new_comment_form .new_comment_form_content {
        padding-left: 18px;
        padding-right: 18px;
    }

    #new_comment_form .modal-title {
        font-size: 24px;
    }

    #new_comment_form .product {
        display: block;
        padding: 18px 18px 0;
    }

    #new_comment_form .product img {
        max-width: 100%;
        margin-bottom: 14px;
    }

    #new_comment_form .product .product_desc .product_name {
        font-size: 22px;
    }

    #new_comment_form #criterions_list {
        padding: 18px;
    }

    #new_comment_form #criterions_list label {
        display: block;
        margin: 0 0 10px;
        min-width: 0;
    }

    #new_comment_form .form-group.row {
        display: block;
    }

    #new_comment_form .form-group .col-md-3,
    #new_comment_form .form-group .col-md-9 {
        max-width: none;
        flex: none;
        padding-right: 0;
    }

    #new_comment_form_footer .fr {
        float: none;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    #submitNewMessage {
        margin-left: 0;
    }
}


/* popup */

#new_comment_form_ok.PopupModalSuccess {
    margin: 0;
    position: fixed;
    width: 360px;
    z-index: 9999999;
    right: 15px;
    top: 15px;
}
#new_comment_form_ok .PopupModalSuccessInner {
    background: #fff none repeat scroll 0 0;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    padding: 20px 20px 18px;
    border-left: 4px solid #1696ef;
}
#new_comment_form_ok .PopupModalSuccessInner > h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin: 0 48px 10px 0;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
}
#new_comment_form_ok .noty_text_body {
    padding-left: 54px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}
#new_comment_form_ok .noty_text_body .thumbnail {
    display: inline-block;
    flex: 0 0 auto;
    height: 72px;
    margin-bottom: 0;
    margin-right: 24px;
    width: auto;
}
#new_comment_form_ok .noty_text_body > p {
    flex: 1 1 0;
    overflow: hidden;
}
#new_comment_form_ok .close-popupsuccess {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #9ca3af;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

#new_comment_form_ok .close-popupsuccess:hover {
    background: rgba(15, 23, 42, 0.12);
    color: #111827;
}

#new_comment_form_ok .close-popupsuccess span {
    font-size: 22px;
    line-height: 1;
}

#new_comment_form_ok .popup-feedback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(22, 150, 239, 0.12);
    color: #1696ef;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 42px;
}
#new_comment_form_ok .noty_text_body strong {
    color: #1696ef;
}

#new_comment_form_ok.PopupModalSuccess--error .PopupModalSuccessInner {
    border-left: 4px solid #dc2626;
}

#new_comment_form_ok.PopupModalSuccess--error .popup-feedback-icon,
#new_comment_form_ok.PopupModalSuccess--error .noty_text_body strong {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}
