/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * 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 https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/**
 *  Product comments CSS
 */

.product-comment-modal .material-icons[data-icon]:before,
.product-comment-list-item .material-icons[data-icon]:before,
.product-comments-additional-info .material-icons[data-icon]:before,
#product-comments-list-header .material-icons[data-icon]:before,
#product-comments-list-footer .material-icons[data-icon]:before {
  content: attr(data-icon);
}
.comments-note {
  display: flex;
  align-items: center;
  gap: 13px;
}
.average-star-grade {
  font-size: 64px;
  line-height: 70px;
  color: var(--theme-custom-color);
  font-weight: 500;
  max-width: 90px;
  overflow: hidden;
  text-align: center;
  margin: 0;
}
.total-stars h3 {
  font-size: 13px;
  line-height: 22px;
  font-weight: 400;
  color: #545454;
  margin: 0;
}
.total-stars h3 span {
  font-weight: 600;
}
.btn-comment-inverse {
    height: 36px;
    background-color: #6b868f;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
}
.btn-comment {
  background-color: transparent;
  color: #666;
  text-decoration: underline;
  font-size: 14px;
  padding: 0;
}
.btn-comment-inverse .material-icons {
  font-size: 20px;
  margin-right: 7px;
}
.btn-comment .material-icons {
  font-size: 20px;
  margin-right: 0;
}
.btn-comment:hover {
  color: #000;
  text-decoration: underline;
}
.post-comment-buttons .btn-comment-inverse {
  background: #102F49;
  color: #fff;
  background-size: 200% auto;
  transition: all 0.3s ease-in-out;
}
.post-comment-buttons .btn-comment-inverse:hover {
    background: #333;
}
.btn-comment-big.post-product-comment {
  padding: 13px 16px;
  height: 45px;
}
.btn-comment-huge {
  padding: 13px 28px;
  height: 45px;
}
.link-comment {
  color: #666;
  text-decoration: underline;
}
.link-comment:hover,
.link-comment:active {
  text-decoration: underline;
  color: #232323;
}
/**
 * Additional product infos
 */
.product-comments-additional-info {
  font-weight: 300;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
}
.product-comments-additional-info .additional-links:first-child{
  padding: 0;
}
.product-comments-additional-info .comments-note {
  display: none;
}
/*.product-comments-additional-info .post-product-comment,
.product-comments-additional-info .link-comment.post-product-comment {
  border-left: 1px solid #666;
  padding-left: 12px;
  margin-left: 12px;
}*/
.product-comments-additional-info .additional-links .link-comment {
  border-right: 1px solid #666;
  padding-right: 12px;
  margin-right: 12px;
}
.product-comments-additional-info .link-comment.post-product-comment{
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.product-comments-additional-info .comments-note {
  margin-right: 30px;
  margin-bottom: 20px;
}
@media (max-width: 540px) {
  .product-comments-additional-info .post-product-comment,
  .product-comments-additional-info .link-comment,
  .product-comments-additional-info .link-comment.post-product-comment,
  .badproduct-content-butn {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    display: block;
    padding-top: 10px;
  }
  .product-comments-additional-info .additional-links .link-comment {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
}
/**
 *  Post comment modal
 */
.product-comment-modal .modal-body {
  padding: 15px 30px 30px;
  margin-bottom: 0;
  max-height: 60vh;
  overflow: auto;
}
#report-comment-confirmation-message {
  margin-bottom: 15px;
}
.product-comment-modal .modal-header h2 {
  font-size: 18px;
  margin: 0;
  color: #fff;
  text-transform: capitalize;
  font-weight: 600;
}

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

.product-comment-modal .modal-dialog h3 {
  font-size: 16px;
  color: #000;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding-bottom: 15px;
}
.prodcuts-comment-box {
  padding: 0 15px;
}
.product-comment-modal .modal-dialog .product-flag {
  display: none;
}
.product-comment-modal label.form-label {
  font-size: 16px;
  margin: 10px 0;
}

.product-comment-modal input {
  width: 100%;
  height: 44px;
  border: 1px solid #bfbfbf;
  padding: 0 10px;
}

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

.product-comment-modal .btn-comment,
.product-comment-modal .btn-comment-inverse {
  font-size: 16px;
  line-height: 16px;
  font-weight: bold;
}
.additional-links i {
  font-size: 18px;
}
.product-comment-modal .required {
  font-size: 12px;
}
.product-comment-modal p {
  color: var(--theme-custom-color);
  font-size: 15px !important;
  line-height: 18px;
}
.product-comment-modal .post-comment-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
#product-comment-posted-modal-message{
  text-align: center;
}

.product-comment-modal .post-comment-buttons .btn-comment {
    margin-left: 15px;
    background: #102F49;
    color: #fff;
    border: none;
    text-decoration: none;
    background-size: 200% auto;
    transition: all 0.3s ease-in-out;
    padding: 8px 15px;
    border-radius: 5px;
}
.product-comment-modal .post-comment-buttons .btn-comment:hover {
  background: #333;
}

#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: var(--theme-custom-color);
}

/**
 *  Star component
 */

.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: 17px;
  height: 17px;
  background: url(../img/stars.png) no-repeat 0 0 transparent;
  flex: auto;
  background-size: cover;
}
.star-content div.star-on,
.star-content div.star-hover {
  background-position: -20px 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: 17px;
  min-width: 120px;
  display: inline-block;
}

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

.grade-stars .star-content {
  position: absolute;
  top: 3px;
  left: 0;
}
.comments-nb{
  color: #686E86;
}
.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 label {
  color: #363a41;
  font-size: 14px;
  font-weight: bold;
}
#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;
}
.products-comment-block-inner .row {
  margin: 0;
}
/**
 *  Product comments list
 */

#product-comments-list-header {
  color: #000;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
#product-comments-list-header .comments-nb{
  padding-left: 0; 
  padding-top: 3px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}
#product-comments-list-header .comments-nb .material-icons {
  margin-right: 3px;
}
#product-comments-list-footer .post-product-comment,
#product-comments-list .btn-comment {
  display: block;
  background: #102F49;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 400;
  background-size: 200% auto;
  transition: all 0.3s ease-in-out;
}
#product-comments-list .btn-comment:hover,
#product-comments-list-footer .post-product-comment:hover {
  background-position: 90% center;
}
#product-comments-list {
    padding: 0;
    margin: 20px 0;
}
.products-comment-block {
  padding: 0;
}
.products-comment-block-inner {
  border: 1px solid #d1d8db;
  border-radius: 10px;
  padding: 30px;
}
.product-comment-list-item {
    margin: 0 0 20px 0 !important;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e0e0;
}
.product-comment-list-item:last-child{
  margin: 0 !important;
  padding-bottom: 0;
  border-bottom: none;
}
.product-comment-list-item .comment-author {
  font-size: 16px;
  line-height: 22px;
  color: #243238;
  font-weight: bold;
  text-transform: capitalize;
  margin-bottom: 5px;
}
.product-comment-list-item .comment-date {
  font-size: 14px;
  line-height: 22px;
  color: #243238;
  font-weight: 500;
  margin: 5px 0;
}
.cus-comment {
  font-size: 14px;
  line-height: 22px;
  color: #6c6f70;
  margin: 0;
}
#empty-product-comment {
  border: none;
  margin-bottom: 0;
}
#empty-product-comment {
  text-align: center;
  margin: 0;
  padding: 0;
}
.product-comment-list-item .grade-stars .star-content {
  margin: 0 0 10px;
}

.product-comment-list-item .comment-infos {
  color: #000;
  font-size: 15px;
  line-height: 25px;
  min-height: 100px;
  font-weight: 500;
  padding: 0;
}
.product-comment-list-item .comment-content h4 {
  height: 22px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.product-comment-list-item .comment-content p {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  word-break: break-word;
  white-space: pre-wrap;
}

.product-comment-list-item .comment-content .comment-buttons a {
  color: #000;
  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;
}

.comment-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.useful-review,
.not-useful-review {
  display: flex;
  background-color: #e5e9ec;
  padding: 0 10px;
  border-radius: 50px;
  height: 26px;
  cursor: pointer;
}
.useful-review .useful-review-yes,
.not-useful-review .useful-review-no {
  margin-right: 5px;
}
.useful-review-yes,
.useful-review-no {
  font-size: 12px;
  line-height: 26px;
  color: #243238;
  font-weight: bold;
}
.useful-review-value,
.not-useful-review-value {
  font-size: 12px;
  line-height: 26px;
  color: #243238;
  font-weight: bold;
}
@media (max-width: 991px) {
  #product-comments-list{
    margin: 20px 0;
  }
  .product-comment-list-item {
    margin: 0 0 30px 0 !important;
  }
  .average-star-grade {
    font-size: 54px;
    line-height: 64px;
    width: 78px;
  }
}
@media (max-width: 767px) {
  .btn-comment-big.post-product-comment {
    padding: 10px;
    height: 40px;
  }
  .btn-comment .material-icons {
    font-size: 16px;
  }
}
@media (max-width: 575px) {
  .product-comment-modal .modal-body {
    padding: 15px 20px 30px;
  }
  .products-comment-block-inner {
    padding: 15px;
  }
  .product-comment-list-item {
    margin: 0 0 20px 0 !important;
  }
  .star-content div.star,
  .star-content div.star-on,
  .star-content div.star-hover {
    width: 16px;
    height: 16px;
  }
  .average-star-grade {
    font-size: 40px;
    line-height: 50px;
    width: 58px;
  }
}
@media (max-width: 420px) {
  #product-comments-list .btn-comment {
    font-size: 11px;
  }
  .btn-comment-big.post-product-comment {
    padding: 10px;
    height: 35px;
  }
}
/*
** 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
*/

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

.product-list-reviews {
  position: static;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  background: transparent;
}
#products.list-1 .product-list-reviews,
#products.list-2 .product-list-reviews,
.badside-product-wrapper .product-list-reviews,
.badspecial-product-list-wrapper .product-list-reviews {
  justify-content: flex-start;
}
.product-list-reviews .grade-stars .star-content {
  top: 1px;
}

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

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

#product-comments-list-pagination ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
}
#product-comments-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
#product-comments-list-pagination ul li span {
  height: 32px;
  width: 24px;
  margin: 0 4px;
  cursor: pointer;
  display: block;
  text-align: center;
  font-size: 17px;
  line-height: 32px;
  color: #000;
}
#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: 360px) {
  .wishlist-products-container .sort-by-row {
    min-width: 17.6875rem;
  }
}
