/**
 * 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-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 {
  margin: 20px 0;
  font-weight: 300;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
}
.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: 30px;
  margin-bottom: 20px;
}

/**
 *  Post comment modal
 */
.product-comment-modal .modal-header {
  border: none;
  padding: 30px 30px 15px;
}
.product-comment-modal .modal-body {
  padding: 15px 30px 30px;
}
.product-comment-modal .modal-header h2 {
  float: left;
  font-size: 20px;
}
.product-comment-modal .modal-dialog {
  width: calc(100% - 30px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  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 .confirm-button {
  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: #40a85f;
  font-size: 30px;
  line-height: 25px;
}
.modal-header .material-icons.error {
  color: #a94442;
}
.modal-header .material-icons.feedback {
  color: #f39d72;
}

/**
 *  Star component
 */

.star-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-left: -5px;
}
.star-content div.star,
.star-content div.star-on,
.star-content div.star-hover {
  display: block;
  width: 19px;
  height: 19px;
  background: transparent url('../img/iconstars_off_1.png') no-repeat center;
  background-size: 100%;
  flex: auto;
  margin-left: 3px;
}
.star-content div.star.star-hidden {
    overflow: hidden;
}

/*.small-stars .star-content div.star,*/
.star-content.star-full div.star-on,
.star-content.star-full div.star-hover {
  background: transparent url('../img/iconstars.png') no-repeat center;
  background-size: 100%;
}
.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: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  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-end;
}
#post-product-comment-modal .criterion-rating label {
  color: #363a41;
  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 {
  padding: 20px 15px;
  color: #232323;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  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 auto;
  display: block;
}
@keyframes product_comment_list_item {
  0% {
    opacity: 0;
    top: -5px;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    top: 0;
  }
}
.product-comment-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.product-comment-list-item {
  padding: 3.15em 5.25em;
  background-color: #f1f1f1;
  text-align: left;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 2.75em;
  position: relative;
  animation: product_comment_list_item 0.8s;
  margin-left: 0;
  margin-right: 0;
}
#empty-product-comment {
  text-align: center;
  font-size: 1.25em;
  color: #000000;
  margin-bottom: 2.3em;
  padding: 3em 3.8em;
}
.product-comment-list-item .grade-stars .star-content {
  margin: 0 0 0.85em;
}
.product-comment-list-item .comment-infos {
  color: #6b868f;
  line-height: 1.2;
  width: 8em;
  margin-right: 2.15em;
  max-width: none;
}
.product-comment-list-item .comment-infos .grade-stars {
  margin-bottom: 20px;
}
.product-comment-list-item .comment-content {
  flex: auto;
  width: auto;
  max-width: none;
}
.product-comment-list-item .product-comment-container h4 {
  height: 22px;
  color: #363a41;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  line-height: 22px;
}
.product-comment-list-item .product-comment-container p {
  color: #363a42;
  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 19px;
  word-break: break-word;
  white-space: pre-wrap;
}
.product-comment-list-item .product-comment-container .comment-buttons a {
  color: #6b868f;
  font-size: 1.25em;
  line-height: 1.2;
  margin-right: 1em;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.product-comment-list-item .product-comment-container .comment-buttons a:nth-last-child(1) {
  margin-right: 0;
}
.product-comment-list-item .product-comment-container .comment-buttons a:hover {
  color: #008ad2;
}
.product-comment-list-item .product-comment-container .comment-buttons a .material-icons {
  font-size: 1.2em;
  cursor: pointer;
  margin-right: 0.45em;
}
.comment-content-block_bottom {
  width: 100%;
  padding-left: 10.2em;
}

/*
** 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 .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 .comments-nb {
  margin-left: 5px;
  font-size: 13px;
}
.product-list-reviews .grade-info_text.grade-info_text--load-text:before {
  content: attr(data-text-two);
}
.product-list-reviews .grade-info_text.grade-info_text--one:before {
  content: attr(data-text-one);
}
.product-list-reviews .grade-info_text.grade-info_text--two:before {
  content: attr(data-text-two);
}

@media (min-width: 768px) {
  #product-comments-list-footer {
    position: relative;
  }

  #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-comments-list-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#product-comments-list-pagination {
  position: relative;
}
#product-comments-list-pagination ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 3.5em;
}
#product-comments-list-pagination ul li span {
  height: 1.85em;
  width: auto;
  min-width: 1.4em;
  margin: 0 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.4em;
  line-height: 1.2;
  color: #000000;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}
#product-comments-list-pagination ul li:not(.disabled) span:hover,
#product-comments-list-pagination ul li:not(.active) span:hover {
  color: #008ad2;
}
#product-comments-list-pagination ul li i {
  font-size: 22px;
}
#product-comments-list-pagination ul li.disabled span {
  opacity: 0.3;
  cursor: not-allowed;
}
#product-comments-list-pagination ul li.active span {
  cursor: not-allowed;
  font-weight: 600;
}


.product-comment-container .comment-date {
  font-size: 1.12em;
  margin-bottom: 0.85em;
  color: #bababa;
  font-family: 'Gotham Pro', serif;
}
.product-comment-container .comment-author {
  font-size: 1.32em;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.55em;
  line-height: 1.2;
}
.product-comment-container .grade-stars {
  margin-bottom: 1em;
  display: block;
  margin-left: -0.5em;
}
.product-comment-container .star-content div.star,
.product-comment-container .star-content div.star-on,
.product-comment-container .star-content div.star-hover {
  width: 1.65em;
  height: 1.65em;
  margin-left: 0.25em;
}
.product-comment-container .comment-comment {
  margin-top: 1.1em;
  margin-bottom: 1.65em;
  display: block;
  font-size: 1.25em;
  color: #000000;
  line-height: 1.2;
}
.product-comment-container .comment-buttons {
  margin-top: 0.4em;
}


.form-post-comment {
  background-color: #f1f1f1;
  overflow: hidden;
  border-radius: 16px;
  padding: 4.2em 4.5em;
}
.form-post-comment_title {
  color: #000000;
  font-size: 2.15em;
  font-weight: 500;
  display: inline-block;
  line-height: 1.2;
  margin-bottom: 1.35em;
  font-family: 'Gotham Pro', serif;
}
.form-post-comment_inputs {
  margin-bottom: 4em;
}
.form-post-comment_left-inputs {
  padding-right: 20px;
}
.form-post-comment_i-line {
  margin-bottom: 2.1em;
}
.form-post-comment_i-line:nth-last-child(1) {
  margin-bottom: 0;
}
.form-post-comment_input {
  border-radius: 5px;
  border: 1px solid #dfdfdf;
  padding: 0.2em 1.25em;
  min-height: 3em;
  font-size: 1.3em;
  text-align: center;
  width: 100%;
  -webkit-transition: border 0.3s, background 0.3s;
  -moz-transition: border 0.3s, background 0.3s;
  -o-transition: border 0.3s, background 0.3s;
  transition: border 0.3s, background 0.3s;
}
#post-product-comment-form input.error:focus,
.form-post-comment_input:focus {
  border: 1px solid #008ad2;
  background-color: #ffffff;
}
.form-post-comment_textarea {
  border-radius: 5px;
  border: 1px solid #dfdfdf;
  padding: 1em 1.25em;
  font-size: 1.3em;
  width: 100%;
  min-height: 3em;
  height: 100%;
  resize: none;
  -webkit-transition: border 0.3s, background 0.3s;
  -moz-transition: border 0.3s, background 0.3s;
  -o-transition: border 0.3s, background 0.3s;
  transition: border 0.3s, background 0.3s;
}
#post-product-comment-form textarea.error:focus,
.form-post-comment_textarea:focus {
  border: 1px solid #008ad2;
  background-color: #ffffff;
}
.form-post-comment_rating {
  margin-bottom: 1.9em;
}
.form-post-comment_title-rating {
  font-size: 1.25em;
  color: #000000;
  margin-bottom: 0.9em;
}
.form-post-comment_block-rating {
  position: relative;
}
.form-post-comment_block-rating .grade-stars .star-content {
  position: static;
  transform: none;
}
.form-post-comment_btn-post {
  font-size: 1.25em;
  min-height: 3.2em;
  padding: 0.3em 2.1em;
  font-weight: 500;
}
.comment-content_block-logo {
  width: 100%;
  max-width: 97px;
  margin-top: -10px;
  margin-left: -10px;
}
.comment-content_logo {
  position: relative;
  padding-bottom: 100%;
}
.comment-content_logo-image {
  position: absolute;
  background: url('../img/user_2.png') no-repeat center;
  background-size: 60%;
  box-shadow: 0 0 7px -5px rgba(0, 0, 0, 0.73), 0 0 0 3px inset #ffffff;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 100%;
}

.form-post-comment_block-allowed {
  background-color: #f1f1f1;
  overflow: hidden;
  border-radius: 16px;
  padding: 35px 55px;
}
.form-post-comment_allowed {
  display: flex;
  justify-content: center;
}
.form-post-comment_allowed_btn {
  font-size: 1.25em;
  min-height: 3.2em;
  padding: 0.3em 2.1em;
  font-weight: 500;
}

#product-comment-posted-modal-message,
#product-comment-post-error-message,
#update-comment-usefulness-post-error-message,
#report-comment-confirmation-message {
  font-size: 16px;
  color: #000000;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.5;
}
.product-comment-modal .modal-header h2 {
  display: flex;
}
.product-comment-modal .modal-header .material-icons {
  margin-right: 20px;
}
.form-post-comment_text-allowed {
  font-size: 16px;
  color: #000000;
}
.product-reviews {
  margin-bottom: 25px;
}


@media(max-width: 1200px) {
  .product-reviews {
    font-size: 0.9em;
  }
}

@media(max-width: 992px) {
  .product-reviews {
    font-size: 1.1em;
  }
  .form-post-comment {
    padding: 2.5em 2.1em;
    padding-bottom: 3.5em;
  }
  .product-comment-list-item {
    padding: 3.15em 3.8em;
  }
  .form-post-comment_left-inputs {
    flex: auto;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
  }
  .form-post-comment_right-inputs {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .form-post-comment_title {
    margin-bottom: 0.9em;
  }
  .form-post-comment_rating {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 2.3em;
  }
  .form-post-comment_title-rating {
    margin-bottom: 1.7em;
  }
  .form-post-comment_i-line--name,
  .form-post-comment_i-line--city {
    flex: auto;
    width: 50%;
    padding-left: 15px;
    padding-right: 15px;
  }
  .comment-content-block_bottom {
    min-width: calc(100% + 4.2em);
    width: auto;
    padding-left: 0;
    margin-left: -2.1em;
    margin-right: -2.1em;
  }
  .product-comment-container .comment-comment {
    margin-top: 1.65em;
    margin-bottom: 1.3em;
  }
  .form-post-comment_btn-post {
    font-size: 1.2em;
  }
  #product-comments-list-pagination ul {
    margin-bottom: 1.8em
  }
  #empty-product-comment {
    padding: 2em 15px;
  }
}

@media(max-width: 768px) {
  .product-comment-list-item {
    padding: 30px 15px;
    padding-bottom: 10px;
  }
  .product-comment-list-item .comment-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .product-comment-container .comment-author {
    width: 100%;
    margin-bottom: 0.45em;
  }
  .product-comment-container .comment-date {
    order: 1;
    margin-bottom: 1em;
    padding-top: 0.15em;
  }
  .product-comment-list-item .comment-infos {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.3em;
  }
  .product-comment-container .grade-stars {
    flex: auto;
  }
  .comment-content-block_bottom {
    min-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .product-comment-container .comment-comment {
    margin-top: 0.8em;
  }
  .product-comment-container .comment-buttons {
    justify-content: center;
    width: 100%;
    margin-bottom: 1.9em;
  }
  .comment-content-block {
    width: 100%;
    text-align: center;
  }
  .comment-content_block-logo {
    margin-left: 0;
  }
  .form-post-comment {
    padding: 40px 10px;
  }
  .form-post-comment_inputs {
    margin-bottom: 2.1em;
  }
  .form-post-comment_title-rating {
    margin-bottom: 0.8em;
  }
  .form-post-comment_i-line--name,
  .form-post-comment_i-line--city {
    width: 100%;
  }
  .form-post-comment_i-line:nth-last-child(1) {
    margin-bottom: 2.1em;
  }
  .form-post-comment_input,
  .form-post-comment_textarea {
    font-size: 16px;
  }
  .form-post-comment_btn-post {
    font-size: 1.12em;
  }
}