/* Product comments modal */
.product-comment-modal .modal-content {
  border: 0;
  border-radius: var(--pixel-border-radius, 10px);
  box-shadow: 0 20px 60px rgba(38, 34, 33, 0.18);
}

.product-comment-modal .modal-header {
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 0;
}

.product-comment-modal .modal-title {
  margin: 0;
  color: var(--pixel-black, #262221);
  font-family: var(--font-heading, Poppins, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-comment-modal .btn-close {
  width: 2rem;
  height: 2rem;
  opacity: 0.6;
}

.product-comment-modal .modal-body {
  padding: 0 1.5rem 1.25rem;
}

.product-comment-modal .product-cover img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.product-comment-modal__product-summary .h5 {
  margin-bottom: 0;
  color: var(--pixel-gray-dark, #656069);
  font-family: var(--font-body, Poppins, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.product-comment-modal #criterions_list {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.product-comment-modal .star-rating-group {
  margin: 0;
}

.product-comment-modal .star-rating-group .form-label {
  margin-bottom: 0.5rem;
  color: var(--pixel-black, #262221);
  font-family: var(--font-body, Poppins, sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
}

.product-comment-modal .stars-selector {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.product-comment-modal .stars-selector__input-label {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-comment-modal .stars-selector__input-label::before {
  content: "star";
  color: #d7d7d7;
  font-family: "Material Icons";
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.product-comment-modal .stars-selector__input-label:hover::before,
.product-comment-modal .stars-selector__input:focus-visible + .stars-selector__input-label::before {
  color: var(--pixel-yellow, #cea800);
  transform: scale(1.06);
}

.product-comment-modal .stars-selector:has(.stars-selector__input-label:nth-of-type(1):hover) .stars-selector__input-label:nth-of-type(-n+1)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input-label:nth-of-type(2):hover) .stars-selector__input-label:nth-of-type(-n+2)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input-label:nth-of-type(3):hover) .stars-selector__input-label:nth-of-type(-n+3)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input-label:nth-of-type(4):hover) .stars-selector__input-label:nth-of-type(-n+4)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input-label:nth-of-type(5):hover) .stars-selector__input-label:nth-of-type(-n+5)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input:nth-of-type(1):checked) .stars-selector__input-label:nth-of-type(-n+1)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input:nth-of-type(2):checked) .stars-selector__input-label:nth-of-type(-n+2)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input:nth-of-type(3):checked) .stars-selector__input-label:nth-of-type(-n+3)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input:nth-of-type(4):checked) .stars-selector__input-label:nth-of-type(-n+4)::before,
.product-comment-modal .stars-selector:has(.stars-selector__input:nth-of-type(5):checked) .stars-selector__input-label:nth-of-type(-n+5)::before {
  color: var(--pixel-yellow, #cea800);
}

.product-comment-modal .form-control {
  min-height: 3.75rem;
  border-color: #dfe1e5;
  border-radius: 8px;
}

.product-comment-modal textarea.form-control {
  min-height: 7.5rem;
}

.product-comment-modal .modal-footer {
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 0;
}

.product-comment-modal .modal-footer .required {
  margin: 0 auto 0 0;
  color: var(--pixel-gray-dark, #656069);
}

.product-comment-modal .post-comment-buttons {
  width: auto !important;
}

.product-comment-modal .pixel-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--pixel-green, #02816f);
  border-radius: 4px;
  color: var(--pixel-black, #262221);
  font-family: var(--font-body, Poppins, sans-serif);
  font-weight: 500;
  line-height: 1.2;
}

.product-comment-modal .pixel-button-outline:hover {
  background: var(--pixel-green, #02816f);
  color: #fff;
  text-decoration: none;
}

.product-comment-modal .post-comment-buttons .pixel-button,
.product-comment-modal .post-comment-buttons .pixel-button-outline {
  display: inline-flex !important;
  width: auto !important;
  min-height: 2.5rem;
  padding-inline: 1rem;
  white-space: nowrap;
}
