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

.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 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: 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: 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 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;
}

.product-comment-list-item {
  padding: 26px 0;
  margin: 0 0 20px;
  background-color: #ffffff;
  text-align: left;
}

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

.product-comment-list-item .grade-stars .star-content {
  margin: 0 0 10px;
}

.product-comment-list-item .comment-infos {
  height: 19px;
  color: #6b868f;
  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 19px;
  min-height: 100px;
}

.product-comment-list-item .comment-infos .grade-stars {
  margin-bottom: 20px;
}

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

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

.product-comment-list-item .comment-content .comment-buttons a {
  color: #6b868f;
  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 19px;
  margin-right: 8px;
}

.product-comment-list-item .comment-content .comment-buttons a .material-icons {
  font-size: 18px;
  cursor: pointer;
}

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

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

  #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: 960px) {
  #product-comments-list-footer {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  #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-pagination {
  height: 32px;
}

#product-comments-list-pagination ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#product-comments-list-pagination ul li span {
  height: 32px;
  width: 24px;
  margin: 0 5px;
  cursor: pointer;
  display: block;
  text-align: center;
  font-size: 20px;
  line-height: 32px;
  color: #6b868f;
}

#product-comments-list-pagination ul li.active span,
#product-comments-list-pagination ul li span.next i,
#product-comments-list-pagination ul li span.prev i {
  font-weight: bold;
}

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

#product-comments-list-pagination ul li.hidden {
  display: none;
}

/* Allevet review experience */
.allevet-product-reviews {
  clear: both;
  margin: 48px 0;
  padding: 30px;
  border: 1px solid #d8e5de;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 71, 51, 0.08);
}

.allevet-product-reviews .review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce8e2;
}

.allevet-product-reviews .review-kicker {
  display: block;
  margin-bottom: 6px;
  color: #16804f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.allevet-product-reviews h2 {
  margin: 0;
  color: #20362d;
  font-size: 28px;
  font-weight: 700;
}

.allevet-product-reviews .comments-nb {
  margin: 7px 0 0;
  color: #708078;
}

.allevet-product-reviews .review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  min-width: 170px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f1f8f4;
}

.allevet-product-reviews .review-summary > strong {
  grid-row: span 2;
  color: #157c4a;
  font-size: 30px;
  line-height: 1;
}

.allevet-product-reviews .review-summary > span {
  color: #708078;
  font-size: 12px;
}

.allevet-product-reviews .btn-comment {
  border: 0;
  border-radius: 8px;
  background: #16804f;
  box-shadow: none;
  font-weight: 700;
}

.allevet-product-reviews .btn-comment:hover {
  background: #0f673f;
}

.allevet-product-reviews .product-comment-list-item {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 28px;
  margin: 20px 0 0;
  padding: 24px;
  border: 1px solid #e0ebe5;
  border-radius: 14px;
  background: #fff;
}

.allevet-product-reviews .product-comment-list-item .comment-content .h4 {
  margin: 0 0 8px;
  color: #20362d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.allevet-product-reviews .review-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  color: #65776d;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.5;
}

.allevet-product-reviews .review-card-rating {
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5eee9;
}

.allevet-product-reviews .review-card-rating-label,
.allevet-product-reviews .review-card-author > span {
  display: block;
  margin-bottom: 5px;
  color: #73837b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.allevet-product-reviews .review-card-rating .grade-stars,
.allevet-product-reviews .review-card-rating .grade-stars .star-content {
  margin: 0;
}

.allevet-product-reviews .review-card-author {
  margin-top: 16px;
}

.allevet-product-reviews .review-card-author strong {
  display: block;
  color: #284137;
  font-size: 15px;
  font-weight: 700;
}

.allevet-product-reviews .review-card-meta .comment-date {
  margin-top: 8px;
  color: #82918a;
  font-size: 12px;
}

.allevet-product-reviews .review-card-content {
  min-width: 0;
}

.review-empty-state {
  display: grid;
  grid-template-columns: 64px minmax(0, 520px);
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto !important;
  padding: 30px 34px !important;
  border: 1px solid #d8e8df !important;
  border-radius: 14px;
  background: #fbfdfb;
  color: #607168;
  text-align: left !important;
}

.review-empty-state h3 {
  margin: 3px 0 6px;
  color: #20362d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.review-empty-state p {
  margin: 0 0 16px;
  color: #6c7f75;
  font-size: 14px;
  line-height: 1.65;
}

.review-empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-self: start center;
  place-items: center;
  border: 1px solid #cce5d7;
  border-radius: 16px;
  background: #edf7f1;
  color: #157747;
}

.review-empty-icon .material-icons {
  font-size: 30px;
  line-height: 1;
}

.review-empty-copy {
  min-width: 0;
}

.review-empty-kicker {
  display: block;
  color: #277a52;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.review-empty-login {
  display: block;
  color: #607168;
  font-size: 14px;
  line-height: 1.5;
}

/* Two-column review experience: concise, measurable, and easy to scan. */
.allevet-product-reviews .review-heading {
  display: block;
}

.allevet-product-reviews .review-layout {
  display: grid;
  grid-template-columns: minmax(255px, 320px) minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
}

.allevet-product-reviews .review-overview {
  align-self: start;
  padding: 24px;
  border: 1px solid #e0ebe5;
  border-radius: 14px;
  background: #f9fcfa;
}

.allevet-product-reviews .review-overview-product,
.allevet-product-reviews .review-list-title {
  margin: 0;
  color: #20362d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.allevet-product-reviews .review-overview-rating {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.allevet-product-reviews .review-overview-rating > strong {
  color: #20362d;
  font-size: 24px;
  line-height: 1;
}

.allevet-product-reviews .review-overview-stars {
  position: relative;
  display: inline-block;
  width: 116px;
  height: 24px;
  color: #d5e1db;
  font-family: Arial, sans-serif;
  font-size: 25px;
  letter-spacing: 1px;
  line-height: 24px;
}

.allevet-product-reviews .review-overview-stars-base,
.allevet-product-reviews .review-overview-stars-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
}

.allevet-product-reviews .review-overview-stars-fill {
  width: calc((var(--rating) / 5) * 100%);
  color: #f4a261;
}

.allevet-product-reviews .review-overview-count {
  margin: 12px 0 20px;
  color: #687b71;
  font-size: 14px;
}

.allevet-product-reviews .review-distribution {
  display: grid;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid #e0ebe5;
}

.allevet-product-reviews .review-distribution-row {
  display: grid;
  grid-template-columns: 12px 14px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
  color: #63776d;
  font-size: 13px;
  line-height: 1;
}

.allevet-product-reviews .review-distribution-star {
  color: #f4a261;
}

.allevet-product-reviews .review-distribution-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e1eae5;
}

.allevet-product-reviews .review-distribution-bar > span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: #2c7d56;
}

.allevet-product-reviews .review-distribution-count {
  text-align: right;
  font-weight: 700;
}

.allevet-product-reviews .review-overview .btn-comment {
  width: 100%;
  margin-top: 24px;
}

.allevet-product-reviews .review-list-column {
  min-width: 0;
}

.allevet-product-reviews .review-list-title {
  margin-bottom: 4px;
}

.allevet-product-reviews #product-comments-list-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  margin-top: 20px;
}

.allevet-product-reviews #product-comments-load-more,
.allevet-product-reviews #product-comments-previous {
  min-width: 200px;
  padding: 13px 22px;
}

.allevet-product-reviews #product-comments-load-more.is-loading {
  cursor: wait;
  opacity: .7;
}

.allevet-product-reviews #product-comments-previous.is-loading {
  cursor: wait;
  opacity: .7;
}

@media (max-width: 767px) {
  .allevet-product-reviews #product-comments-list-footer {
    gap: 8px;
  }

  .allevet-product-reviews #product-comments-load-more,
  .allevet-product-reviews #product-comments-previous {
    min-width: 0;
    flex: 1 1 0;
    padding: 12px 8px;
    font-size: 13px;
  }

  .allevet-product-reviews .review-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .allevet-product-reviews .review-overview {
    padding: 20px;
  }
}

.review-image-upload {
  margin: 18px 0;
  padding: 14px;
  border: 1px dashed #9bcab3;
  border-radius: 10px;
  background: #f8fcf9;
}

.product-comment-modal .review-image-upload .form-label {
  margin-top: 0;
  font-weight: 700;
}

.review-image-upload .form-label span,
.review-image-upload small {
  color: #74837b;
  font-size: 12px;
  font-weight: 400;
}

.product-comment-modal .review-image-upload input[type=file] {
  height: auto;
  padding: 8px 0;
  border: 0;
  background: transparent;
}

.review-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
}

.review-photo-grid:empty {
  display: none;
}

.review-photo-grid a {
  display: block;
  overflow: hidden;
  width: 92px;
  height: 92px;
  border: 1px solid #d8e5de;
  border-radius: 8px;
  background: #f8fbf9;
}

.review-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.review-photo-grid a:hover img {
  transform: scale(1.05);
}

.allevet-product-reviews .review-card-copy {
  max-width: 780px;
  margin: 0;
  color: #45574d;
  font-size: 15px;
  line-height: 1.7;
}

.allevet-product-reviews .review-store-reply {
  max-width: 780px;
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid #d8e8de;
  border-left: 3px solid #16804f;
  border-radius: 0 10px 10px 0;
  background: #f5faf7;
}

.allevet-product-reviews .review-store-reply-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.allevet-product-reviews .review-store-reply-heading strong {
  color: #1f4634;
  font-size: 14px;
  font-weight: 700;
}

.allevet-product-reviews .review-store-reply-heading span {
  color: #7d8e85;
  font-size: 12px;
  white-space: nowrap;
}

.allevet-product-reviews .review-store-reply p {
  margin: 0;
  color: #496056;
  font-size: 14px;
  line-height: 1.65;
}

.allevet-product-reviews .comment-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.allevet-product-reviews .review-helpful-label {
  margin-right: 4px;
  color: #718078;
  font-size: 13px;
}

.allevet-product-reviews .comment-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #d5e4dc;
  border-radius: 8px;
  background: #fff;
  color: #527166;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.allevet-product-reviews .comment-buttons button:hover,
.allevet-product-reviews .comment-buttons button:focus-visible {
  border-color: #16804f;
  background: #eef8f2;
  color: #0f673f;
  outline: 0;
}

.allevet-product-reviews .comment-buttons button .material-icons {
  margin: 0;
  font-size: 18px;
}

.allevet-product-reviews .comment-buttons button span {
  margin-left: 5px;
  font-size: 13px;
  font-weight: 700;
}

.allevet-product-reviews .comment-buttons .report-abuse {
  margin-left: auto;
  border-color: transparent;
  color: #84928b;
}

@media (max-width: 767px) {
  .allevet-product-reviews .product-comment-list-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .allevet-product-reviews .review-card-meta {
    display: block;
    height: auto;
    min-height: 0;
  }

  .allevet-product-reviews .review-card-rating {
    margin-bottom: 14px;
  }

  .allevet-product-reviews .review-card-author {
    margin-top: 0;
  }

  .allevet-product-reviews .review-card-meta .comment-date {
    display: block;
    margin-top: 6px;
  }

  .allevet-product-reviews .product-comment-list-item .comment-content .h4 {
    height: auto;
    min-height: 0;
  }

  .allevet-product-reviews .comment-buttons {
    flex-wrap: wrap;
  }

  .allevet-product-reviews .review-helpful-label {
    width: 100%;
  }
}

/* Professional review form modal */
.product-comment-modal .modal-dialog {
  width: calc(100% - 32px);
  max-width: 820px;
  margin: 32px auto;
}

.product-comment-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(19, 49, 37, 0.22);
}

.product-comment-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  margin: 0;
  padding: 22px 30px;
  border-bottom: 1px solid #dce8e2;
}

.product-comment-modal .modal-header .h2 {
  float: none;
  margin: 0;
  color: #20362d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.product-comment-modal .modal-header .close {
  width: 40px;
  height: 40px;
  margin: -6px -8px -6px 16px;
  border-radius: 8px;
  color: #42564d;
  font-size: 30px;
  font-weight: 400;
  line-height: 34px;
  opacity: 1;
}

.product-comment-modal .modal-header .close:hover,
.product-comment-modal .modal-header .close:focus {
  background: #edf5f0;
  color: #157c4a;
  outline: 2px solid #157c4a;
  outline-offset: 2px;
}

.product-comment-modal .modal-body {
  max-height: calc(100vh - 140px);
  padding: 24px 30px 28px;
  overflow-y: auto;
}

.review-product-context {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #d8e5de;
  border-radius: 12px;
  background: #f7fbf8;
}

.review-product-context .product-flags {
  display: none;
}

.review-product-thumbnail .product-cover,
.review-product-thumbnail .product-cover img {
  display: block;
  width: 92px !important;
  height: 92px !important;
}

.review-product-thumbnail .product-cover {
  overflow: hidden;
  border: 1px solid #dce8e2;
  border-radius: 10px;
  background: #fff;
}

.review-product-thumbnail .product-cover img {
  object-fit: contain;
  padding: 7px;
}

.review-product-label,
.review-rating-label {
  margin: 0 0 5px;
  color: #6b7e74;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.review-product-name {
  margin: 0;
  color: #20362d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.review-product-reference {
  margin: 7px 0 0;
  color: #6b7e74;
  font-size: 13px;
}

.review-rating-panel {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid #d8e5de;
}

.review-rating-panel #criterions_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-comment-modal .review-rating-panel .criterion-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-rating-panel .criterion-rating label {
  margin: 0;
  color: #344a40;
  font-size: 14px;
  font-weight: 600;
}

.review-rating-panel .grade-stars {
  flex: 0 0 120px;
}

.product-comment-modal .review-form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr);
  gap: 16px;
}

.product-comment-modal .review-form-fields--single {
  grid-template-columns: 1fr;
}

.product-comment-modal .review-form-field {
  margin: 0 0 18px;
}

.product-comment-modal .review-form-field--content {
  margin-bottom: 0;
}

.product-comment-modal label.form-label {
  display: block;
  margin: 0 0 8px;
  color: #344a40;
  font-size: 14px;
  font-weight: 700;
  text-align: left !important;
}

.product-comment-modal input[type='text'],
.product-comment-modal textarea {
  width: 100%;
  border: 1px solid #b9ccc1;
  border-radius: 8px;
  background: #fff;
  color: #20362d;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.product-comment-modal input[type='text'] {
  height: 46px;
  padding: 0 13px;
}

.product-comment-modal textarea {
  min-height: 118px;
  margin: 0;
  padding: 12px 13px;
  resize: vertical;
}

.product-comment-modal input[type='text']:focus,
.product-comment-modal textarea:focus {
  border-color: #16804f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 128, 79, 0.14);
}

.product-comment-modal .review-image-upload {
  margin: 20px 0;
  padding: 16px;
  border-color: #9bcab3;
  border-radius: 10px;
  background: #f7fbf8;
}

.product-comment-modal .review-image-upload .form-label {
  margin-bottom: 4px;
}

.product-comment-modal .review-form-field > .form-label,
.product-comment-modal .review-image-upload > .form-label {
  width: 100%;
  text-align: left !important;
}

.product-comment-modal .review-image-upload input[type='file'] {
  display: block;
  width: 100%;
  margin: 4px 0 7px;
  color: #42564d;
}

.product-comment-modal .review-image-upload small {
  display: block;
  line-height: 1.45;
}

.product-comment-modal .review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #dce8e2;
}

.product-comment-modal .review-form-footer .required {
  margin: 0;
  color: #718178;
  font-size: 12px;
}

.product-comment-modal .post-comment-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.product-comment-modal .post-comment-buttons .btn-comment,
.product-comment-modal .post-comment-buttons .btn-comment-inverse {
  min-width: 108px;
  height: 46px;
  margin: 0;
  padding: 0 18px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 46px;
}

.product-comment-modal .post-comment-buttons .btn-comment {
  background: #16804f;
}

.product-comment-modal .post-comment-buttons .btn-comment:hover,
.product-comment-modal .post-comment-buttons .btn-comment:focus {
  background: #0f673f;
}

.product-comment-modal .post-comment-buttons .btn-comment-inverse {
  border-color: #9cb6a8;
  background: #fff;
  color: #345044;
}

.product-comment-modal .post-comment-buttons .btn-comment-inverse:hover,
.product-comment-modal .post-comment-buttons .btn-comment-inverse:focus {
  border-color: #16804f;
  background: #edf5f0;
  color: #0f673f;
}

@media (max-width: 767px) {
  .allevet-product-reviews {
    margin: 32px 0;
    padding: 20px;
    border-radius: 12px;
  }

  .allevet-product-reviews .review-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .allevet-product-reviews h2 {
    font-size: 23px;
  }

  .review-empty-state {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 24px !important;
    text-align: center !important;
  }

  .review-empty-icon {
    place-self: center;
  }

  .review-empty-copy {
    text-align: center;
  }

  .product-comment-modal .modal-dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
  }

  .product-comment-modal .modal-header {
    min-height: 64px;
    padding: 16px 18px;
  }

  .product-comment-modal .modal-header .h2 {
    font-size: 19px;
  }

  .product-comment-modal .modal-body {
    max-height: calc(100vh - 92px);
    padding: 18px;
  }

  .review-product-context {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .review-product-thumbnail .product-cover,
  .review-product-thumbnail .product-cover img {
    width: 72px !important;
    height: 72px !important;
  }

  .review-rating-panel {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid #d8e5de;
    border-left: 0;
  }

  .product-comment-modal .review-form-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-comment-modal .review-form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .product-comment-modal .post-comment-buttons {
    width: 100%;
  }

  .product-comment-modal .post-comment-buttons .btn-comment,
  .product-comment-modal .post-comment-buttons .btn-comment-inverse {
    width: 50%;
    min-width: 0;
  }
}
}
