/**
 * 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-comments-additional-info .comments-font-body {
  font-weight: bold;
  margin-right: 0.25rem;
}
.product-comment-modal .modal-header {
  padding: 48px 60px 20px;
}
.product-comment-modal .modal-header .close {
  background-color: #000;
  color: #fff;
  border-radius: 100%;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 1;
  padding: 0;
}
.product-comment-modal .modal-header .close:hover {
  opacity: 1;
}
.product-comment-modal .modal-body {
  padding: 0 60px 60px;
}
.product-comment-modal .modal-body .form-group {
  margin-bottom: 20px;
}
.product-comment-modal .modal-body .h4 {
  font-size: 14px;
}
.product-comment-modal .modal-footer,
.product-comment-modal .modal-header {
  justify-content: space-between;
  border: none;
}
.product-comment-modal .modal-footer:before,
.product-comment-modal .modal-footer:after {
  display: none;
}
.product-criterion {
  align-items: center;
}
.product-comment-modal input,
.product-comment-modal textarea {
  width: 100%;
  height: 16px;
  border: 1px solid #bfbfbf;
  padding: 0 10px;
  z-index: 999;
}
.product-comment-modal textarea {
  height: auto;
  padding: 16px 10px;
  border-color: #e6e6e6;
  box-shadow: none;
  font-size: 14px !important;
}

/** Stars **/
.star-content {
  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: 16px;
  height: 16px;
  background: url(../img/stars.png) no-repeat 0 0 transparent;
  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 {
  background: url(../img/small_stars.png) no-repeat 0 0 transparent;
  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: 82px;
  display: inline-block;
}

.average-stars {
  margin-left: 0.5rem;
}

.average-stars .star {
  color: #CC7063;
  width: 16px;
  height: 22px;
}

.average-stars .star i {
  font-size: 20px;
  height: 16px;
  width: 16px;
}

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

.grade-stars .star-content {
  position: absolute;
  top: 0;
  left: 0;
}
.comments__header {
  display: block;
}
.comment__title {
  font-weight: 600;
}
.star-content div.star,
.star-content div.star-on,
.star-content div.star-hover {
  height: 16px;
  width: 16px;
}
.star-content div.star-on,
.star-content div.star-hover {
  background-position: -19px 0;
}
.comments-note {
  margin: 0;
}
.comments-note span {
  display: none;
}
.comments-font-body {
  font-style: 14px;
}
/** Single Comment **/
.comments__header .products-section-title {
  font-family: 'FuturaBook';
}

.product-comment-list-item {
  padding: 20px 0;
  margin: 0;
}
.product-comments-list-footer {
  padding: 20px 0 50px;
}
.product-comments-list-footer .post-product-comment {
  color: #000;
  text-decoration: underline;
  padding: 0;
  text-transform: initial;
  font-family: 'FuturaBook';
  font-size: 14px;
}
.product-comments__pagination li.active span {
  color: #000;
  background-color: transparent;
}
.product-comments__pagination .next i:before {
  content: "\e908";
  font-family: 'ujaicons';
  font-size: 14px;
}
.product-comments__pagination .prev i:before {
  content: "\e905";
  font-family: 'ujaicons';
  font-size: 14px;
}
.product--description .product-list-reviews,
.product-miniature .product-list-reviews {
  display: none;
}
.product--description div[itemprop="aggregateRating"],
.product-miniature div[itemprop="aggregateRating"] {
  display: none;
}
@media (min-width: 992px) {
  .product-comment-modal .modal-dialog {
      max-width: 1140px;
  }
}
@media (max-width: 767.98px) {
  .product-criterion {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-top: 20px;
  }
  .product-criterion__name {
    width: 100%;
    font-size: 12px;
    margin-bottom: 5px;
  }
  .modal-footer .post-comment-buttons {
    width: 100%;
  }
  .modal-footer .post-comment-buttons .btn {
    display: block !important;
    width: 100% !important;
  }
  .product-comment-modal {
    top: 60px;
  }
  .product-comment-modal .modal-body {
    padding: 15px;
  }
  .product-comment-modal .modal-header {
    flex-direction: column-reverse;
    align-items: center;
    padding: 30px 30px 0;
  }
  .product-comment-modal .modal-header .close {
    font-size: 8px;
    height: 20px;
    width: 20px;
  }
  .product-comment-modal .modal-header .h1 {
    margin-top: 20px;
  }
  .product-comment-modal .modal-body .h4 {
    font-size: 12px;
  }
  .product-comment-modal .modal-footer {
    display: block;
  }
  .product-comment-list-item {
    padding: 15px 0;
  }
  .product-comment-list-item .comment__title {
    font-weight: 600;
  }
  .product-comments__pagination .product-comments__pagination ul li {
    padding-right: 30px;
  }
  .product-comments-list-footer {
    padding: 15px 0 30px;
  }
  .product-comments__pagination ul li {
    padding: 0 23px;
  }
  .product-comments__pagination ul li:first-child,
  .product-comments__pagination ul li:last-child {
    padding: 0;
  }
}

.product-comments-list-pagination li:not(.disabled) {
  cursor: pointer;
}

.product-comments-list-pagination .current {
  font-weight: bold;
}

.criterion-rating {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.criterion-rating label {
  font-family: "Poppins";
  font-size: 13px;
  font-weight: 600;
  margin-right: .5rem;
  margin-bottom: 0;
}

.product-comment-modal .required,
#ratingNotChosen {
  color: #cc7063;
}
#ratingNotChosen {
  text-align: right;
}
.post-comment-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.comment-infos .comment-author {
  font-weight: 400;
}