/**
* 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
 */

.btn-comment,
.btn-comment-inverse {
  background-color: #232323;
  box-shadow: 0 8px 16px 0 rgba(35,35,35, 0.4);
  color: #FFFFFF;
  font-size: 14px;
  height: 36px;
  padding: 8px;
}

.btn-comment .feather,
.btn-comment-inverse .feather {
  height: 1rem;
  margin-right: 7px;
  width: 1rem;
}

.btn-comment:hover {
  background-color: #000000;
}

.btn-comment-inverse {
  background-color: #FFFFFF;
  box-shadow: none;
  color: #232323;
}
.btn-comment-inverse:hover {
  background-color: #f7f7f7;
}

.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;
}

.link-comment .feather {
  height: 1rem;
  margin-right: 7px;
  width: 1rem;
}

.link-comment .tag {
    vertical-align: middle;
}

/**
 * Additional product infos
 */

.product-comments-additional-info {
  margin: 0px 20px;
  font-weight: 300;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  line-height: normal;
}

.product-informations-wrapper .product-header-wrapper .product-header .product-header-top {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

@media (max-width: 768px) {
  .product-informations-wrapper .product-header-wrapper .product-header .product-header-top {
    flex-direction: column;
  }
  .product-comments-additional-info {
    margin: 5px 0px 0px;
  }
}

.product-comments-additional-info .additional-links a{
  margin-left: 10px;
  color: #9c9cac;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.product-comments-additional-info .cn-review-widget .cn-review-average-stars{
  font-size: 1rem;
  margin-top: 0;
}

.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: 5px;
}

/**
 *  Post comment modal
 */
.product-comment-modal .modal-header {
  border: none;
  padding: 30px;
}

.product-comment-modal .modal-body {
  padding: 15px 30px 30px;
}

.product-information .product-comments-additional-info {
  display: none;
}

.product-comment-modal .modal-header .h2 {
  float: left;
  font-size: 20px;
  margin-bottom: 0px;
}

.product-comment-modal .modal-dialog {
  width: calc(100% - 30px);
  max-width: 774px;
}

.product-comment-modal .modal-dialog .h3 {
  font-size: 14px;
}

.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: 99px;
}

/* .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;
}

.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;
}

#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 .feather {
  color: #4cbb6c;
  font-size: 30px;
  line-height: 25px;
}

.modal-header .feather.feather-x {
  color: #ff4f40;
}

.modal-header .feather.feather-alert-triangle {
  color: #ff9a52;
}

/**
 *  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: 20px;
  height: 20px;
  background: url(../../../../assets/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(../../../../assets/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: 90px;
}

.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-start;
}

#post-product-comment-modal .criterion-rating label {
  color: #232323;
  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;
}

/**
 *  Product comments list
 */
#product-comments-list-header {
  color: #232323;
}

#product-comments-list-header .comments-nb {
  margin-top: 1.875rem;
}

#product-comments-list-header .comments-nb  .feather {
  margin-right: 3px;
}

#product-comments-list .btn-comment {
  margin: 0 auto;
  display: block;
}

.avis .cn-review-widget .cn-review-average {
  margin-top: inherit;
}

.product-comment-list-item .cn-review-widget .cn-review-excerpt {
  margin-top: inherit;
  margin-right: inherit;
}

#product-comments-list-header .avis.empty {
  background-color: #f9f9ff;
  text-align: center;
  padding: 25px;
}

.product-comment-list-item .grade-stars .star-content {
  margin: 0 0 10px;
}

.product-comment-list-item .comment-infos,
.product-comment-list-item .comment-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.product-comment-list-item .comment-infos {
  border-top: 1px solid #f7f7f7;
  color: #777777;
  font-size: 14px;
  line-height: 19px;
  min-height: 100px;
}

/* .product-comment-list-item .comment-content {
  background-color: #f7f7f7;
} */

.product-comment-list-item .comment-infos .grade-stars {
  margin-bottom: 20px;
}

.product-comment-list-item .comment-content h4 {
  height: 22px;
  color: #232323;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  line-height: 22px;
}

.product-comment-list-item .comment-content p {
  color: #232323;
  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 19px;
  word-break: break-word;
}

.product-comment-list-item .comment-content .comment-buttons {
    display: block;
    text-align: right;
}

.product-comment-list-item .comment-content .comment-buttons a {
  color: #777777;
  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 19px;
  margin-right: 8px;
}

.product-comment-list-item .comment-content .comment-buttons a .feather {
  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
*/

#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;
}


.product-list-reviews {
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  visibility: hidden;
  min-height: 20px;
}

.product-list-reviews .grade-stars .star-content {
  margin-left: 0;
}

.product-list-reviews .comments-nb {
  margin-left: 5px;
  font-size: 13px;
  line-height: 1;
  color: #9c9cac;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

#product-comments-list-footer {
  margin: 15px 0 0;
}

#comments-list .ShowMore {
  text-align: center;
  width: 100%;
  background: none;
  border: none;
  color: #3244f2;
  font-weight: 600;
}

#comments-list .ShowMore:after {
  content: "\f078";
  display: inline-block;
  font-family: "Font Awesome\ 6 Pro";
  line-height: 1;
  margin-left: 0.4rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#comments-list .link-more .ShowLess:after {
  content: "\f077";
  display: inline-block;
  font-family: "Font Awesome\ 6 Pro";
  line-height: 1;
  margin-left: 0.4rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  #product-comments-list-footer {
    position: relative;
    min-height: 45px;
  }

  #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;
  }
}

@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-list-reviews {
    margin-top: 0.625rem;
  } */
}

#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 {
  border-radius: 15px;
  color: #777777;
  cursor: pointer;
  display: block;
  font-size: 20px;
  height: 30px;
  line-height: 30px;
  margin: 0 2px;
  text-align: center;
  width: 30px;
}

#product-comments-list-pagination ul li.active span {
  background-color: #232323;
  color: #fff;
  cursor: default;
}

#product-comments-list-pagination ul li.disabled span {
  opacity: 0.3;
  cursor: not-allowed;
}
