/**
 * 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-comment-modal.show {
  opacity: 1;
}

.product-comment-modal.show .modal-dialog {
  transform: none;
}

.modal-backdrop.show {
  opacity: .5;
}

.product-comment-modal .material-icons[data-icon]:before,
.product-comments-additional-info .material-icons[data-icon]:before,
#product-comments-list-footer .material-icons[data-icon]:before,
#product-comments-global-rating .material-icons[data-icon]:before {
  content: attr(data-icon);
  font-family: 'Material Icons' !important;
}

.btn-comment,
.btn-comment-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-comment .material-icons,
.btn-comment-inverse .material-icons {
  font-size: 20px;
  line-height: 1;
  margin-right: 7px;
  display: inline-flex;
  align-items: center;
}

#product-comments-container .btn-comment,
#product-comments-container .btn-comment-inverse,
.product-comment-modal .btn-comment,
.product-comment-modal .btn-comment-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000;
  border: 1px solid #000;
  color: #ffffff;
}

#product-comments-container .btn-comment:hover,
#product-comments-container .btn-comment-inverse:hover,
.product-comment-modal .btn-comment:hover,
.product-comment-modal .btn-comment-inverse:hover {
  background-color: transparent;
  border-color: #000;
  color: #000;
}

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

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

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

.product-comments-additional-info .comments-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 30px;
  margin-bottom: 20px;
  text-decoration: none;
}

.product-comments-additional-info .comments-note-count {
  color: #6b868f;
  line-height: 20px;
}

.product-comments-additional-info .comments-note:hover .comments-note-count {
  text-decoration: underline;
}

.product-comment-modal-banner {
  background-color: #000;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 15px 30px;
}

.product-comment-modal .modal-header {
  border: none;
  padding: 20px 30px 15px;
  justify-content: center;
}

.product-comment-modal .modal-body {
  padding: 15px 30px 30px;
}

.product-comment-modal .modal-header .h2 {
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-comment-modal-overall-rating {
  margin: 8px 0 20px;
}

.product-comment-modal-overall-rating .grade-stars {
  transform: scale(1.3);
  transform-origin: left center;
}

.product-comment-modal .modal-dialog {
  width: calc(100% - 30px);
  max-width: 700px;
  display: flex;
  align-items: center;
  min-height: calc(100% - 60px);
}

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

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

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

.product-comment-gdpr-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.product-comment-gdpr-consent input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
}

.product-comment-gdpr-consent label {
  margin: 0;
  font-size: 14px;
}

.product-comment-moderation-notice {
  font-size: 14px;
  color: #6b868f;
  margin-top: 15px;
}

.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: center;
  gap: 15px;
}

#product-comment-posted-modal .post-comment-buttons,
#product-comment-post-error .post-comment-buttons {
  margin-top: 30px;
}

#product-comment-posted-modal .modal-body,
#product-comment-post-error .modal-body {
  text-align: center;
}

.product-comment-modal .modal-header .material-icons {
  color: #40a85f;
  font-size: 30px;
  line-height: 25px;
}

.product-comment-modal .modal-header .material-icons.error {
  color: #a94442;
}

.product-comment-modal .modal-header .material-icons.feedback {
  color: #f39d72;
}

.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(../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;
}

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

.comments-note .grade-stars .star-content {
  top: 0;
}

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

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

#ratingNotChosen {
  font-size: smaller;
  color: #ab4746;
  text-align: right;
}

#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-container {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

#product-comments-global-rating {
  display: flex;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 35px 0;
}

.global-rating-title {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  color: #232323;
  text-align: center;
}

.global-rating-score {
  text-align: center;
}

.global-rating-score-value {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  color: #232323;
  line-height: 1;
}

.global-rating-score-value span {
  font-size: 22px;
  font-weight: 400;
  color: #6b868f;
}

.global-rating-score .grade-stars {
  margin: 10px auto;
  transform: scale(1.3);
}

.global-rating-score-caption {
  margin: 0;
  font-size: 15px;
  color: #6b868f;
}

.product-comments-toolbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.product-comments-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.product-comments-sort label {
  color: #6b868f;
  margin: 0;
  white-space: nowrap;
}

.product-comments-sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfbfbf;
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 14px;
  color: #363a41;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color .15s ease;
}

.product-comments-sort-btn .material-icons {
  font-size: 18px;
  transition: transform .15s ease;
}

.product-comments-sort-btn:hover,
.product-comments-sort.open .product-comments-sort-btn {
  border-color: #000;
}

.product-comments-sort.open .product-comments-sort-btn .material-icons {
  transform: rotate(180deg);
}

.product-comments-sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background-color: #fff;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
  padding: 6px;
  z-index: 20;
  display: none;
}

.product-comments-sort.open .product-comments-sort-dropdown {
  display: block;
}

.product-comments-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #363a41;
  cursor: pointer;
}

.product-comments-sort-option + .product-comments-sort-option {
  margin-top: 2px;
}

.product-comments-sort-option:hover {
  background-color: #f5f5f5;
}

.product-comments-sort-option .material-icons {
  font-size: 18px;
  visibility: hidden;
}

.product-comments-sort-option.selected {
  font-weight: 600;
}

.product-comments-sort-option.selected .material-icons {
  visibility: visible;
}

.product-comment-list-item {
  padding: 20px 0;
  margin: 0 0 20px;
  background-color: #ffffff;
  text-align: left;
  border-bottom: 1px solid #dddddd;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "infos"
    "badge"
    "content";
  row-gap: 8px;
}

.product-comment-list-item:last-child {
  border-bottom: none;
}

#empty-product-comment {
  text-align: center;
}

.product-comment-list-item .comment-infos {
  grid-area: infos;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.product-comment-list-item .comment-content {
  grid-area: content;
}

.product-comment-list-item .comment-author {
  font-weight: 600;
  color: #363a41;
  font-size: 14px;
}

.product-comment-list-item .comment-date {
  color: #6b868f;
  font-size: 13px;
  letter-spacing: -0.28px;
  word-spacing: 3px;
  white-space: nowrap;
}

.product-comment-list-item .comment-content .grade-stars {
  margin-bottom: 8px;
}

.product-comment-list-item .comment-content .h4 {
  color: #363a41;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  line-height: 22px;
  margin: 0 0 6px;
}

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

.comment-merchant-reply {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid #e5e5e5;
  background-color: #f9f9f9;
}

.comment-merchant-reply-title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 13px;
  color: #363a41;
}

.comment-badges {
  grid-area: badge;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 4px;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  border: 1px solid;
}

.comment-source-badge .material-icons {
  font-size: 13px;
}

.comment-source-badge--guaranteed {
  color: #2c519c;
  border-color: #2c519c;
}

.comment-source-badge--spontaneous {
  color: #6b868f;
  border-color: #6b868f;
}

.comment-source-badge--verified {
  color: #e8a33d;
  border-color: #e8a33d;
}

.product-list-reviews--empty {
  visibility: hidden;
}

.product-list-reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  margin: 6px 0 0;
  text-decoration: none;
}

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

.product-list-reviews .comments-nb {
  font-size: 13px;
  color: #6b868f;
}

#product-comments-list-footer {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 80px;
}

.comment-skeleton {
  padding: 20px 0;
  margin: 0 0 20px;
  border-bottom: 1px solid #dddddd;
}

.comment-skeleton:last-child {
  border-bottom: none;
}

.comment-skeleton__line {
  height: 14px;
  margin-bottom: 12px;
  border-radius: 6px;
  background-color: #ebebeb;
  background-image: linear-gradient(90deg, #ebebeb 0px, #f8f8f8 40%, #ebebeb 80%);
  background-size: 800px 100%;
  animation: comment-skeleton-shimmer 1.4s ease-in-out infinite;
}

.comment-skeleton__line--short {
  width: 30%;
}

.comment-skeleton__line--medium {
  width: 60%;
}

@keyframes comment-skeleton-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.mcb-footer-reviews {
  padding: 50px 0;
}

.mcb-reviews__title {
  position: relative;
  text-align: center !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  margin: 0 0 20px !important;
  padding-top: 26px;
}

.mcb-reviews__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background-color: #FFD4A9;
}

.mcb-reviews {
  padding: 30px 0;
}

.mcb-reviews-widget {
  display: flex;
  align-items: center;
  gap: 59px;
}

.mcb-reviews-widget__summary {
  margin-left: 90px;
  flex: 0 0 280px;
  /* margin: 50px; */
  text-align: center;
}

.mcb-reviews-widget__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mcb-reviews-widget__brand {
  display: block;
  width: 110px;
  flex-shrink: 0;
}

.mcb-reviews-widget__info {
  text-align: left;
}

.mcb-reviews-widget__score {
  color: #4a4a4a;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.mcb-reviews-widget__score span {
  font-size: 16px;
  font-weight: 400;
  color: #6b868f;
}

.mcb-reviews-widget__info .grade-stars {
  margin: 4px 0;
}

.mcb-reviews-widget__total,
.mcb-reviews-widget__total:hover,
.mcb-reviews-widget__total:focus,
.mcb-reviews-widget__total:active,
.mcb-reviews-widget__total:visited {
  text-decoration: none !important;
  color: #363a41;
}

.mcb-reviews-widget__total {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  margin: 6px 0 0;
}

.mcb-reviews-widget__total .material-icons {
  font-size: 17px;
}

.mcb-reviews-widget__caption {
  color: #6b868f;
  font-size: 12px;
  line-height: 1.2;
  margin: 4px 0 0;
  white-space: nowrap;
}

.mcb-reviews-widget__cards {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 10px 0;
}

.mcb-reviews-widget__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform .5s ease;
}

.mcb-review-card[aria-hidden="true"] {
  pointer-events: none;
}

.mcb-review-card,
.mcb-review-card:hover,
.mcb-review-card:focus,
.mcb-review-card:active,
.mcb-review-card:visited {
  text-decoration: none !important;
  color: inherit;
}

.mcb-review-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  width: 300px;
  height: 240px;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 1px solid #efefef;
  background-color: #fff;
  border-radius: 8px;
  text-align: left;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}

.mcb-review-card:hover {
  transform: scale(1.05);
  position: relative;
  z-index: 1;
  border-color: #d8d8d8;
}

.mcb-review-card .grade-stars {
  margin: 5px 0 5px;
}

.mcb-review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}

.mcb-review-card__verified {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #40a85f;
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
}

.mcb-review-card__verified .material-icons {
  font-size: 13px;
  line-height: 1;
}

.mcb-review-card__date {
  font-size: 11px;
  color: #a0acb3;
  white-space: nowrap;
}

.mcb-review-card__content {
  font-size: 15px;
  color: #363a41;
  margin: 10px 3px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mcb-review-card__bottom {
  margin-top: auto;
}

.mcb-review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #363a41;
  font-weight: 400;
  margin: 0;
}

.mcb-review-card__author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcb-review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #FFD4A9;
  color: #363a41;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.mcb-review-card__order-date {
  font-size: 11px;
  font-weight: 400;
  color: #6b868f;
  margin: 2px 0 0;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .mcb-reviews-widget {
    flex-direction: column;
  }

  .mcb-reviews-widget__summary {
    flex: 0 0 auto;
    width: 100%;
    margin: 15px 0;
    text-align: center;
  }

  .mcb-reviews__title {
    text-align: center !important;
  }

  .mcb-reviews-widget__top {
    justify-content: center;
  }

  .mcb-reviews-widget__cards {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
  }

  .mcb-review-card {
    flex: 0 0 100%;
    width: 100%;
  }
}
