/**
 *  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);
}

/*.btn-comment,*/
/*.btn-comment-inverse {*/
/*  height: 36px;*/
/*  border-radius: 2px;*/
/*  background-color: #6b868f;*/
/*  color: #ffffff;*/
/*  font-size: 14px;*/
/*  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);*/
/*  padding: 8px;*/
/*}*/
/*.btn-comment .material-icons,*/
/*.btn-comment-inverse .material-icons {*/
/*  font-size: 20px;*/
/*  margin-right: 7px;*/
/*}*/

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

/**
 * Additional product infos
 */

.product-comments-additional-info {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.product-comments-additional-info .product-comments-additional-info__reviews {
  color: #717680;
}

/**
 *  Post comment modal
 */
.modal-header .header-icon {
  color: #039855;
}

.modal-header .material-icons.error {
  color: #d92d20;
}

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

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

.product-comment-modal .criterion-list {
  margin-bottom: 1.5rem;
}

.product-comment-modal .criterion-list .criterion-rating {
  display: flex;
  flex-direction: row;
  gap: .5rem;
  flex-wrap: wrap;
}

.product-comment-modal .criterion-list .criterion-rating .grade-stars .star-content {
  top: 0;
  margin: 0;
}

.product-comment-modal .criterion-list .criterion-rating .grade-stars .star-content div.star a {
  display: block;
  position: absolute;
  text-indent: -5000px;
}

/**
 *  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(../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: 110px;
  display: inline-block;
}

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

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

/*
  Grade number
*/

.grade {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.grade .grade__icon {
  color: #23397E;
}

.grade .grade__text {
    white-space: nowrap;
}

.grade .grade__text .grade__number {
    color: #535862;
}

.grade.grade--empty .grade__icon {
  color: #D5D7DA;
}

.grade.grade--empty .grade__text {
  color:#535862;
}

/**
 *  Product comments list
 */

.product-comments-list {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid #d5d7da;
}

.product-comments-list__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-comments-list__header .product-comments-list__header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem 0;
}

.product-comments-list__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-comment-list-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  border-bottom: 1px solid #d5d7da;
  padding-bottom: 1.5rem;
}

.product-comment-list-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.product-comment-list-item .product-comment-list-item__header {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.product-comment-list-item .product-comment-list-item__header-row {
  display: flex;
  align-items: center;
  gap: .5rem;

  color: #535862;
}

.product-comment-list-item .product-comment-list-item__grade {
  min-width: 90px;
}

.product-comment-list-item .product-comment-list-item__grade .star-content {
  top: 0;
  margin: 0;
}

.product-comments-list .product-comments-list__footer {
  display: flex;
  justify-content: center;
}

.product-comments-list .product-comments-list__pagination {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;

  margin: 0;
}

.product-comments-list .product-comments-list__pagination-chevron {
  display: block;

  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;

  cursor: pointer;
}

.product-comments-list .disabled .product-comments-list__pagination-chevron {
  color: #A4A7AE;
  cursor: default;
}

.product-comments-list .hidden .product-comments-list__pagination-chevron {
  display: none;
}

.product-comments-list .product-comments-list__pagination-item {
  display: block;

  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;

  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.product-comments-list .active .product-comments-list__pagination-item {
  border-radius: 0.5rem;
  background-color: #23397E;
  color: #FFFFFF;
  cursor: default;
}

.product-comments-list .hidden .product-comments-list__pagination-item {
  display: none;
}

@media (min-width: 1280px) {
  .product-comments-list {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    gap: 2rem;
  }

  .product-comments-list__header {
    gap: 2rem;
  }
}

/*
** 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 {
  position: absolute;
  top: -26px;
  left: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 0;
  visibility: hidden;
}

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

.product-list-reviews .comments-nb {
  margin-left: 5px;
  font-size: 13px;
}
