/*
 *	@Release    1.0.1
 *	@subject		Refactor, compatibility and maintains externals modules for SWMasterTheme
 *	@copyright  	Copyright (c) 2023-2024 Sora Websoft SARL (https://www.sora-websoft.com/)
 *	@author     	Jimmy Buathier (@jimmybuathier)
 *	@license    	Commercial license or Free license according to the original developer
 *	Support by mail: support@sora-websoft.com
 */
/**
 *  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 .material-icons,
.btn-comment-inverse .material-icons {
  font-size: 20px;
  margin-right: 7px;
}

.link-comment {
  color: var(--color-txt);
}

/**
 * Additional product infos
 */
.product-comments-additional-info {
  margin: 20px 0;
  font-weight: 300;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 0.875rem;
}

.product-comments-additional-info .link-comment.post-product-comment {
  padding-left: 12px;
  margin-left: 12px;
}

.product-comments-additional-info .comments-note {
  margin-right: 30px;
  margin-bottom: 20px;
}

h3 {
  font-size: 1rem;
}

/**
 *  Post comment modal
 */
@media (min-width: 768px) {
  #product .modal-dialog {
    max-width: 770px;
  }
}

.product-comment-modal .modal-dialog {
  width: calc(40% + 20vw);
  max-width: 770px;
  margin: 20px auto;
}
@media (max-width: 991.98px) {
  .product-comment-modal .modal-dialog {
    width: calc(100% - 10vw);
  }
}

#criterions_list {
  padding: 15px 0;
}

.product-comment-modal .modal-dialog .product-flag {
  display: none;
}

.product-comment-modal .modal-dialog .product-cover {
  border-radius: var(--global-radius-small);
  overflow: hidden;
  width: 100px;
  height: auto;
  min-height: 50px;
}
.product-comment-modal .modal-dialog img {
  max-width: 100%;
  height: auto;
}

.product-comment-modal .modal-dialog .product-cover {
  border-radius: var(--global-radius-small);
  overflow: hidden;
}

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

.product-comment-modal input {
  width: 100%;
  height: 44px;
  padding: 0 10px;
}

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

.product-comment-modal .required {
  font-size: 12px;
  margin-top: 15px;
  margin-left: 5px;
}

.product-comment-modal .post-comment-buttons {
  padding-top: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          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 .material-icons {
  color: #28a745;
  font-size: 30px;
  line-height: 25px;
}

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

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

/**
 *  Star component
 */
.star-content {
  margin: 0 0 0 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      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;
  -webkit-box-flex: 1;
      -ms-flex: auto;
          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;
}

.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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

#post-product-comment-modal .criterion-rating label {
  font-size: 0.875rem;
  font-weight: var(--font1-weight2);
}

#post-product-comment-form input.error,
#post-product-comment-form textarea.error {
  border: solid 1px #dc3545;
}

#post-product-comment-form input.valid,
#post-product-comment-form textarea.valid {
  border: solid 1px #28a745;
}

/**
 *  Product comments list
 */
#product-comments-list-header {
  padding: 20px 15px;
  margin-top: 20px;
  color: var(--color-txt);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

#product-comments-list-header .comments-nb {
  padding-left: 0;
  padding-top: 3px;
}

#product-comments-list-header .comments-nb .material-icons {
  margin-right: 3px;
}

#product-comments-list .btn-comment {
  margin: 0;
  display: block;
  width: auto;
}

.product-comment-list-item {
  padding: 26px 0;
  background-color: var(--bodybg);
  text-align: left;
}

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

.product-comment-list-item .grade-stars .star-content {
  margin: 0 0 6px;
}
.product-comment-list-item .comment-date {
  font-size: 0.8125rem;
  color: var(--grey);
}
.product-comment-list-item .comment-author {
  font-size: 0.875rem;
  color: var(--grey);
}
.product-comment-list-item .comment-infos .grade-stars {
  margin-bottom: 20px;
}
.product-comment-list-item .comment-content h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.32px;
  line-height: 22px;
}
.product-comment-list-item .comment-content p {
  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 1.2;
  word-break: break-word;
  white-space: pre-wrap;
}
.product-comment-list-item .comment-content .comment-buttons {
  display: block;
  margin-top: 10px;
}
.product-comment-list-item .comment-content .comment-buttons .psreviewjslink {
  color: var(--primary-color);
  font-size: 0.875rem;
  line-height: 1.1;
  margin-right: 8px;
  cursor: pointer;
}
.product-comment-list-item .comment-content .comment-buttons .psreviewjslink .material-icons {
  font-size: 1.125rem;
}

/*
** Quickview style
*/
.product-quickview-review {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          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.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-comments-list-footer .post-product-comment {
  width: auto;
  margin-bottom: 15px;
}

.product-list-reviews {
  position: absolute;
  top: -26px;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          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;
}

#product-comments-list-pagination {
  height: 32px;
}
#product-comments-list-pagination ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
}
#product-comments-list-pagination li span {
  height: 32px;
  width: 24px;
  margin: 0 5px;
  cursor: pointer;
  display: block;
  text-align: center;
  font-size: 20px;
  line-height: 32px;
}
#product-comments-list-pagination li.active span,
#product-comments-list-pagination li span.next i,
#product-comments-list-pagination li span.prev i {
  font-weight: bold;
}
#product-comments-list-pagination li.disabled span {
  opacity: 0.3;
  cursor: not-allowed;
}
#product-comments-list-pagination li .active span {
  cursor: not-allowed;
}

@media (min-width: 768px) {
  #product-comments-list-footer {
    position: relative;
    min-height: 45px;
  }
  #product-comments-list-footer .post-product-comment {
    display: block;
  }
  #product-comments-list-pagination {
    position: absolute;
    right: 0;
    top: 5px;
  }
}
@media (max-width: 768px) {
  #product-comments-list-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}
@media (max-width: 576px) {
  #product-comments-list-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  #product-comments-list-pagination {
    margin-bottom: 10px;
  }
}