/**
 * Shop product reviews
 *
 * @author    businesstech.fr <modules@businesstech.fr> - https://www.businesstech.fr/
 * @copyright Business Tech - https://www.businesstech.fr/
 * @license   see file: LICENSE.txt
 *
 *           ____    _______
 *          |  _ \  |__   __|
 *          | |_) |    | |
 *          |  _ <     | |
 *          | |_) |    | |
 *          |____/     |_|
 */

/* --- Layout utilitaires formulaire --- */
#spr .pull-center {
  text-align: center;
}
#spr .pull-left {
  text-align: left;
}
#spr .pull-right {
  text-align: right;
}

/* --- Sélecteur d'étoiles (radio inputs) --- */
#spr div.stars {
  display: inline-block;
  height: 50px;
  margin-top: 10px;
}
#spr div.stars-criteria {
  display: inline-block;
  height: 35px;
}
#spr input.star {
  display: none;
}
#spr label.star {
  float: right;
  padding: 5px;
  font-size: 30px;
  color: #d3d3d3;
  cursor: pointer;
  transition: color 0.2s;
}
#spr label.star:before {
  content: "\2605";
}
#spr input.star:checked ~ label.star:before {
  color: #232323;
}
#spr .stars:hover label.star:hover,
#spr .stars:hover label.star:hover ~ label.star,
#spr .stars-criteria:hover label.star:hover,
#spr .stars-criteria:hover label.star:hover ~ label.star {
  color: #232323;
}
#spr label.star:hover {
  transform: scale(1.2);
  color: #232323;
}

/* --- Critères --- */
#spr .label-criteria {
  height: 35px;
  padding-top: 5px;
}

/* --- Formulaire global --- */
#spr .spr_product_review_form {
  margin-bottom: 16px;
}
#spr .spr_product_review_form .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
#spr .spr_product_review_form .form-group label.control-label {
  font-weight: 600;
  padding-top: 8px;
  min-width: 150px;
}
#spr .spr_product_review_form .form-group .col-sm-10 {
  flex: 1;
  min-width: 0;
}
#spr .spr_product_review_form .form-control {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
#spr .spr_product_review_form .form-control:focus {
  border-color: #232323;
  outline: none;
  box-shadow: 0 0 0 2px rgba(35, 35, 35, 0.1);
}
#spr .spr_product_review_form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Boutons d'action --- */
#spr .spr_product_review_form .btn_register {
  background-color: #232323;
  border-color: #232323;
  color: #fff;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
}
#spr .spr_product_review_form .btn_register:hover {
  background-color: #444;
  border-color: #444;
}

/* --- Image produit dans le formulaire --- */
#spr .spr_product_review_form img {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  #spr .spr_product_review_form .form-group {
    flex-direction: column;
  }
  #spr .spr_product_review_form .form-group label.control-label {
    min-width: auto;
  }
  #spr .spr_product_review_form .form-group .col-sm-10 {
    width: 100%;
  }
}
