/**
 * 2007-2019 PrestaShop SA and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2019 PrestaShop SA and Contributors
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */


/**
 *  Product comments CSS
 */

.btn-comment,
.btn-comment-inverse {
    height: 25px;
    border-radius: 2px;
    background-color: #6B868F;
    color: #FFFFFF;
    font-size: 13px;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
    padding: 3px 8px;
}

.btn-comment .material-icons,
.btn-comment-inverse .material-icons {
    font-size: 14px;
    margin-right: 3px;
}

.btn-comment:hover {
    background-color: #3C4D52;
}

.btn-comment-inverse {
    background-color: #FFFFFF;
    color: #363A41;
    border: 1px solid #979797;
}

.btn-comment-inverse:hover {
    background-color: #6B868F;
    border: 1px solid #6B868F;
    color: #FFFFFF;
}

.btn-comment-big {
    padding: 13px 16px;
    height: 45px;
}

.btn-comment-huge {
    padding: 13px 28px;
    height: 45px;
}

.link-comment {
    color: #232323;
}

.link-comment:hover,
.link-comment:active {
    text-decoration: underline;
    color: #232323;
}

.btn.btn-comment.post-product-comment {
    background-color: transparent;
    box-shadow: none;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    margin-left: 30px;
    padding-top: 0px;
    position: relative;
}
.product-comments-additional-info .btn.btn-comment.post-product-comment::before {
    content: "/";
    position: absolute;
    left: -6px;
    font-size: 16px;
    top: -1px;
}

/**
 * Additional product infos
 */

.product-comments-additional-info {
    margin: 0px 0 9px 0px;
    font-weight: 300;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
    font-size: 14px;
}

#product .btn.btn-comment.post-product-comment:hover,
#product .btn.btn-comment.post-product-comment:hover i::before,
.product-comments-additional-info .additional-links .link-comment.post-product-comment:hover i::before,
.product-comments-additional-info .additional-links .link-comment.post-product-comment:hover {
    color: #52afc6;
}

.product-comments-additional-info .comments-note>span {
    display: none;
}

.product-comments-additional-info .comments-note {
    margin-right: 15px;
    margin-bottom: 0px;
}

.btn.btn-comment.post-product-comment i::before,
.product-comments-additional-info .link-comment i::before {
    font-size: 15px;
}

.product-comments-additional-info .additional-links {
    line-height: 25px;
}


/**
 *  Post comment modal
 */

.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;
    margin-top: 0px;
}

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

.product-comment-modal .modal-dialog h3 {
    font-size: 17px;
    line-height: 22px;
    margin-top: 0px;
}

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

.product-comment-modal .modal-dialog .product-cover,
.product-comment-modal .modal-dialog .product-cover img {
    width: 99px;
    height: auto;
    max-width: 100%;
}

.product-comment-modal #post-product-comment-form .product-flags {
    display: none;
}

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

.product-comment-modal input {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    padding: 0 10px;
    outline: none !important;
}

#post-product-comment-form>.row:first-child .col-md-2.col-sm-2 .product-cover {
    width: 100%;
}

#post-product-comment-form>.row:first-child .col-md-2.col-sm-2 {
    width: 18%;
    padding-right: 5px;
}

#post-product-comment-form>.row:first-child .col-md-4.col-sm-4 {
    width: 50%;
}

#post-product-comment-form>.row:first-child .col-md-6.col-sm-6 {
    width: 32%;
}

.product-comment-modal textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px 10px;
}

#post-product-comment-modal .close {
    position: absolute;
    top: 10px;
    right: 10px;
}

#post-product-comment-modal .close span {
    font-size: 30px;
    font-weight: normal;
    color: #333;
    opacity: 1;
    line-height: 20px;
    display: inline-block;
}

.product-comment-modal .btn-comment,
.product-comment-modal .btn-comment-inverse {
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    box-shadow: none;
    border-color: #eee;
}

.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-comment {
    margin-left: 15px;
    background-color: #52afc6;
}

.product-comment-modal .post-comment-buttons .btn-comment:hover {
    color: #fff;
}

.product-comment-modal .btn-comment-inverse:hover {
    background-color: #ff0000;
    border-color: #ff0000;
}

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


/**
 *  Star component
 */

.star-content {
    margin: 0 0 0 5px;
    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: 18px;
    height: 18px;
    background: url(../img/stars.png) no-repeat 0 0 transparent;
    flex: auto;
    margin-left: 3px;
}

.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 {
    background: url(../img/small_stars.png) no-repeat 0 0 transparent;
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.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: 120px;
    display: inline-block;
}

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

.product-comments-additional-info .grade-stars {
    height: 25px;
}

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

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

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

#post-product-comment-modal .criterion-rating label {
    color: #363A41;
    font-size: 14px;
    font-weight: 500;
}

#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;
    color: #232323;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: #f3f3f3;
}

#product-comments-list-header .comments-nb {
    padding-left: 0;
    padding-top: 3px;
}

#product-comments-list-header .comments-nb .material-icons {
    margin-right: 3px;
}

.product-comments-additional-info .additional-links>.link-comment:first-child {
    display: none;
}

.product-comments-additional-info div[itemprop="aggregateRating"] {
    display: none;
}

#product-comments-list .btn-comment {
    margin: 0 auto;
    display: block;
}

#product-comments-list .btn-comment:hover,
.btn.btn-comment.post-product-comment:hover {
    color: #fff;
}

.product-comment-list-show {
    border: 1px #f3f3f3 solid;
    margin-top: 0px;
}

.product-comment-list-item {
    padding: 26px 0;
    margin: 0 0 20px;
    background-color: #FFFFFF;
    text-align: left;
    position: relative;
}

.product-comment-list-item::before {
    content: "";
    position: absolute;
    background-color: #f1f1f1;
    height: 1px;
    width: 100%;
    bottom: 0;
    left: 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 {
    height: 19px;
    color: #6B868F;
    font-size: 14px;
    letter-spacing: -0.28px;
    line-height: 19px;
    min-height: 100px;
    width: 250px;
}

.product-comment-list-item .comment-content {
    width: calc(100% - 250px);
    position: relative;
    padding-left: 30px;
}

.product-comment-list-item .comment-content::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #ddd;
    top: 0px;
    left: 0px;
}

.product-comment-list-item .comment-infos .comment-date {
    margin-bottom: 7px;
    font-size: 13px;
}

.product-comment-list-item .comment-infos .comment-author {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

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

.product-comment-list-item .comment-content h4 {
    height: auto;
    color: #363A41;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.product-comment-list-item .comment-content p {
    color: #363A42;
    font-size: 14px;
    letter-spacing: -0.28px;
    line-height: 19px;
    word-break: break-word;
}

.product-comment-list-item .comment-content .comment-buttons a {
    color: #6B868F;
    font-size: 14px;
    letter-spacing: -0.28px;
    line-height: 19px;
    margin-right: 8px;
}

.product-comment-list-item .comment-content .comment-buttons a .material-icons {
    font-size: 18px;
    cursor: pointer;
}


/*
** Quickview style
*/

.product-quickview-review {
    display: flex;
    flex-direction: row;
}

.product-quickview-review .grade-stars .star-content {
    margin: 0 0 0 0;
    top: 0;
}


/*
** Product list override
*/
body:not(.dor-list-display) article.product-miniature .product-list-reviews {
    margin-top: 5px;
    position: absolute !important;
    opacity: 0;
    width: 100%;
    top: auto !important;
    bottom: -8px;
    left: 0px;right: 0px;
    transition: all 0.4s ease 0s;
}

body:not(.dor-list-display) article.product-miniature .product-list-reviews.list-reviews-null {
    visibility: visible;
}
body:not(.dor-list-display) article.product-miniature:hover .product-list-reviews{
    opacity: 1 !important;
    bottom: -3px !important;
}
body:not(.dor-list-display) article.product-miniature:hover .product-price-and-shipping{
    opacity: 0 !important;
}
#products .thumbnail-container.has-reviews:hover .highlighted-informations,
#products .thumbnail-container.has-reviews:focus .highlighted-informations,
.featured-products .thumbnail-container.has-reviews:hover .highlighted-informations,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations,
.product-accessories .thumbnail-container.has-reviews:hover .highlighted-informations,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations,
.product-miniature .thumbnail-container.has-reviews:hover .highlighted-informations,
.product-miniature .thumbnail-container.has-reviews:focus .highlighted-informations {
    height: 4.5rem;
}

#products .thumbnail-container.has-reviews:hover .highlighted-informations .variant-links,
#products .thumbnail-container.has-reviews:focus .highlighted-informations .variant-links,
.featured-products .thumbnail-container.has-reviews:hover .highlighted-informations .variant-links,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations .variant-links,
.product-accessories .thumbnail-container.has-reviews:hover .highlighted-informations .variant-links,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations .variant-links,
.product-miniature .thumbnail-container.has-reviews:hover .highlighted-informations .variant-links,
.product-miniature .thumbnail-container.has-reviews:focus .highlighted-informations .variant-links {
    min-height: 3.7rem;
}

#products .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
#products .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants,
.featured-products .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants,
.product-accessories .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants,
.product-miniature .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
.product-miniature .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants {
    height: 4.125rem;
}

#products .product-miniature .thumbnail-container.has-reviews .discount-amount.online-only,
#products .product-miniature .thumbnail-container.has-reviews .discount-percentage.online-only,
#products .product-miniature .thumbnail-container.has-reviews .on-sale.online-only,
#products .product-miniature .thumbnail-container.has-reviews .online-only.online-only,
#products .product-miniature .thumbnail-container.has-reviews .pack.online-only,
#products .product-miniature .thumbnail-container.has-reviews .product-flags .new.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .discount-amount.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .discount-percentage.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .on-sale.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .online-only.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .pack.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .product-flags .new.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .discount-amount.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .discount-percentage.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .on-sale.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .online-only.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .pack.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .product-flags .new.online-only {
    top: 11.5rem;
}

.dor-detail-reviews {
    position: relative;
    clear: both;
}

#product .product-comments-additional-info .star {
    width: auto;
    height: auto;
    margin-left: 3px;
    margin-right: 3px;
}

#product .product-comments-additional-info .star::before {
    font-size: 18px;
}

#product .product-comments-additional-info .grade-stars .star-content {
    margin-left: -5px;
    margin-right: -5px;
    top: 0px;
}

.product-list-reviews {
    position: absolute;
    top: -10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: auto;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 0;
    visibility: hidden;
    left: -7px;
}

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

.product-list-reviews .comments-nb {
    margin-left: 2px;
    font-size: 12px;
    line-height: 20px;
    display: none;
}

#post-product-comment-modal div[itemprop="description"],
#post-product-comment-modal div[itemprop="description"] * {
    font-weight: 300;
    line-height: 22px;
}

#post-product-comment-modal .btn.btn-comment-inverse.btn-comment-big:hover {
    color: #fff;
}

.star-content div.star-on,
.star-content div.star {
    display: inline-block;
}

.product-comments-additional-info .star-content div.star,
.product-comments-additional-info .star-content div.star-on,
.product-comments-additional-info .star-content div.star-hover,
.small-stars .star-content div.star,
.small-stars .star-content div.star-on,
.small-stars .star-content div.star-hover,
.star-content div.star-on,
.star-content div.star-hover,
.star-content div.star {
    background: transparent;
}

.star-content div.star::before,
.star-content div.star-on::before,
.star-content div.star-hover::before,
.product-comments-additional-info .star-content div.star-on::before,
.product-comments-additional-info .star-content div.star::before,
.small-stars .star-content div.star-on::before,
.small-stars .star-content div.star::before {
    font-family: organie-market;
    font-size: 15px;
    font-style: normal;
}

.star-content div.star::before,
.product-comments-additional-info .star-content div.star::before,
.small-stars .star-content div.star::before {
    content: "\f1a6";
    opacity: 0.6;
}

.star-content div.star-on::before,
.star-content div.star-hover::before,
.product-comments-additional-info .star-on::before,
.small-stars .star-content div.star-on::before {
    content: "\f1a7";
    color: #fed700;
}

.product-comments-additional-info .star-content div.star-on::before {
    font-size: 18px;
}

.product-comments-additional-info .star-content div.star-on {
    margin-left: 3px;
    margin-right: 3px;
}
@media (min-width: 768px) {
    #product-comments-list-footer {
        position: relative;
        min-height: 45px;
        margin-bottom: 25px;
    }
    #product-comments-list-footer .post-product-comment {
        margin: 0 auto;
        display: block;
    }
    #product-comments-list-pagination {
        position: absolute;
        right: 0;
        top: 5px;
    }
}

@media (max-width: 768px) {
    #product-comments-list-footer {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .product-comment-list-item .comment-content h4 {
        font-size: 14px;
    }
    .product-comment-list-item {
        display: flex;
    }
}

@media (max-width: 630px) {
    #post-product-comment-form .col-md-2.col-sm-2 {
        padding-right: 0px;
    }
    #post-product-comment-modal .criterion-rating {
        display: block;
    }
    #post-product-comment-modal .grade-stars {
        margin-left: -10px;
    }
}

@media (max-width: 575px) {
    #post-product-comment-form .col-md-2.col-sm-2 {
        padding-right: 15px;
        width: 100%;
    }
    #post-product-comment-form .col-md-4.col-sm-4 {
        width: 100%;
    }
    #post-product-comment-form .col-md-6.col-sm-6 {
        width: 100%;
    }
    .product-comment-modal .modal-body {
        padding: 15px 20px 30px;
    }
    .product-comment-modal .modal-header {
        border: none;
        padding: 30px 20px 15px;
        text-align: center;
    }
    .product-comment-modal .modal-dialog .product-cover,
    .product-comment-modal .modal-dialog .product-cover img {
        margin-left: auto;
        margin-right: auto;
        width: 150px;
    }
    .product-comment-modal .modal-header h2 {
        float: none;
    }
    .product-comment-modal .modal-dialog .modal-content {
        margin-right: -10px;
    }
}

@media (max-width: 530px) {
    .product-comment-list-item .comment-infos {
        width: 100% !important;
        float: none;
    }
    .product-comment-list-item .comment-content {
        width: 100% !important;
        padding-left: 15px;
        float: none;
    }
    .product-comment-list-item {
        display: block;
    }
    .product-comment-list-item .comment-content::before {
        display: none;
    }
}

@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;
}

@media(max-width:767px) {
    #post-product-comment-form > .row:nth-child(3) > div.col-md-8.col-sm-8{
        padding-right: 10px;
    }
    #post-product-comment-form > .row:nth-child(3) > div.col-md-4.col-sm-4{
        padding-left: 5px;
    }
    .product-comment-modal .modal-body {
        padding: 15px 15px 30px;
    }
    #post-product-comment-form > .row:first-child .col-md-6.col-sm-6 {
        width: 26%;
        padding-right: 0px;
    }
    #post-product-comment-form > .row:first-child .col-md-4.col-sm-4 {
        width: 50%;padding-right: 5px;
    }
    #post-product-comment-form > .row:first-child .col-md-2.col-sm-2 {
        width: 24%;
        padding-right: 5px;
    }
}
@media(max-width:575px) {
    #post-product-comment-form > .row:nth-child(2) > div.col-md-8.col-sm-8{
        width: 60%;
        float: left;
        padding-right: 10px;
    }
    #post-product-comment-form > .row:nth-child(2) > div.col-md-4.col-sm-4{
        width: 40%;
        float: left;
        padding-left: 5px;
    }
    #post-product-comment-form > .row:nth-child(3) > div.col-md-8.col-sm-8{
        width: 60%;
        float: left;
    }
    #post-product-comment-form > .row:nth-child(3) > div.col-md-4.col-sm-4{
        width: 40%;
        float: left;
    }
    
    .product-comment-modal .modal-dialog h3 {
        font-size: 15px;
        line-height: 20px;
    }
    #post-product-comment-modal .criterion-rating label{
        font-size: 13px;
    }
    #post-product-comment-modal div[itemprop="description"] * {
        font-weight: 300;
        line-height: 20px;
        font-size: 13px;
    }
    .product-comment-modal label.form-label{
        font-size:14px;
    }
}
@media(max-width:543px) {
    #post-product-comment-form>.row:first-child .col-md-2.col-sm-2,
    #post-product-comment-form>.row:first-child .col-md-4.col-sm-4 {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .product-comment-modal .modal-header {
        padding-top: 20px;
    }
    .product-comment-modal .modal-header h2 {
        margin-bottom: 0px;
    }
    .product-comment-modal .modal-body {
        padding-top: 5px;
    }
}