/**
 * استایل‌های مخصوص نظرات محصولات سفارشی
 */

/* استایل کلی فرم نظر */
.product-review-form {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.product-review-form .form-submit {
  margin-top: 20px;
}

/* استایل فیلدهای فرم */
.product-review-form input[type="text"],
.product-review-form input[type="email"],
.product-review-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 5px;
  font-family: inherit;
}

.product-review-form textarea {
  width: 100%;
  padding: 10px;
  height: 200px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 5px;
  font-family: inherit;
}

.product-review-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.product-review-form .required {
  color: #c91016;
}

/* استایل فیلد آپلود تصویر */
.comment-form-image {
  margin-bottom: 15px;
}

.comment-form-image input[type="file"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  background-color: #fff;
}

.comment-form-image small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

/* استایل پیش‌نمایش تصویر */
.image-preview {
  margin: 10px 0 20px;
  position: relative;
  display: inline-block;
}

.image-preview img {
  max-width: 200px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.remove-preview {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #c91016;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* استایل پیام‌های خطا */
.review-error-messages {
  background-color: #ffecec;
  color: #c91016;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #f5aca6;
}

.review-error-messages ul {
  margin: 5px 20px;
  padding: 0;
}

.review-error-messages li {
  margin-bottom: 5px;
}

/* استایل فیلدهای نام و نام خانوادگی */
.comment-form-first-name,
.comment-form-last-name {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

.comment-form-first-name {
  margin-left: 2%;
}

/* استایل تصویر نظر */
.review-image-container {
  margin-top: 15px;
  margin-bottom: 15px;
}

.review-image {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* استایل‌های نظرات در داشبورد */
.my-product-reviews {
  margin-top: 30px;
}

.my-product-reviews h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background-color: #fafafa;
}

.product-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.product-info a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.product-info img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-left: 10px;
  border-radius: 5px;
}

.product-title {
  font-size: 16px;
  font-weight: 500;
}

.review-content {
  display: flex;
  flex-direction: column;
}

.review-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-content .review-image {
  max-width: 200px;
  align-self: flex-start;
  margin-top: 10px;
}

/* استایل برای داشبورد مشتری */
#Reviews-tempalte .my-product-reviews {
  margin-top: 0;
}

#Reviews-tempalte .reviews-container {
  padding: 15px 0;
}

#Reviews-tempalte .review-item {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#Reviews-tempalte .review-item:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#Reviews-tempalte .product-info {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

#Reviews-tempalte .product-info a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

#Reviews-tempalte .product-image {
  margin-right: 0.75rem;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 0.375rem;
}

#Reviews-tempalte .product-title {
  font-size: 1.125rem;
  font-weight: 500;
}

#Reviews-tempalte .review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

#Reviews-tempalte .reviewer-name {
  font-weight: 500;
}

#Reviews-tempalte .review-date {
  font-size: 0.875rem;
  color: #6b7280;
}

#Reviews-tempalte .review-text {
  margin-bottom: 0.75rem;
}

#Reviews-tempalte .review-image-container {
  max-width: 200px;
  align-self: flex-start;
  margin-top: 10px;
}

#Reviews-tempalte .review-image {
  border-radius: 0.375rem;
  max-width: 100%;
  height: auto;
}

/* استایل برای حالت خالی بودن نظرات */
#Reviews-tempalte .my-product-reviews p.text-center {
  padding: 1rem 0;
  color: #6b7280;
}

#Reviews-tempalte .my-product-reviews .text-center a {
  display: inline-block;
  background-color: #f5e7d3;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

#Reviews-tempalte .my-product-reviews .text-center a:hover {
  background-color: #f0d9b8;
}

/* استایل برای هدر بخش نظرات */
#Reviews-tempalte .customer-reviews-container {
  background-color: #fff;
  border-radius: 0.625rem;
  border: 1px solid #d9d9d9;
  padding: 1rem;
  overflow: hidden;
}

#Reviews-tempalte #title-name {
  font-size: 1.5rem;
  color: #000;
}

#Reviews-tempalte .bg-cream-light {
  background-color: #f5e7d3;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: background-color 0.3s;
}

#Reviews-tempalte .bg-cream-light:hover {
  background-color: #f0d9b8;
}

/* استایل واکنش‌گرایی */
@media screen and (max-width: 768px) {
  #Reviews-tempalte .review-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  #Reviews-tempalte .review-date {
    margin-top: 0.25rem;
  }

  #Reviews-tempalte .product-info a {
    flex-direction: column;
    align-items: flex-start;
  }

  #Reviews-tempalte .product-image {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

/* استایل برای نمایش تصویر بزرگ */
.review-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.review-image-large-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.review-image-large {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 5px;
}

.review-image-close {
  position: absolute;
  top: -20px;
  right: -20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* استایل برای تصویر نظر در لیست نظرات */
#Reviews-tempalte .review-image {
  cursor: pointer;
  transition: opacity 0.3s;
}

#Reviews-tempalte .review-image:hover {
  opacity: 0.8;
}

/* Styles for product reviews */

/* Review form styling */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input fields styling */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: "peyda", sans-serif;
}

/* Star rating styling */
.comment-form-rating {
  margin-bottom: 1rem;
}

.comment-form-rating .stars {
  display: inline-block;
  direction: rtl;
}

.comment-form-rating .stars a {
  display: inline-block;
  font-weight: 600;
  margin: 0 0.2rem;
  text-indent: -9999px;
  position: relative;
  width: 1.618em;
  font-size: 1.5rem;
  color: #ddd;
}

.comment-form-rating .stars a:before {
  content: "★";
  top: 0;
  right: 0;
  position: absolute;
  text-indent: 0;
}

.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active,
.comment-form-rating .stars a:hover ~ a,
.comment-form-rating .stars a.active ~ a {
  color: #f5a623;
}

.comment-form-rating select {
  display: none;
}

/* Review image upload styling */
.comment-form-image {
  margin-bottom: 1rem;
}

.comment-form-image label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.comment-form-image input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.image-preview-container {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.remove-preview {
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #e53e3e;
  color: white;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
}

/* Reviews list styling */
.product-reviews-list {
  max-height: 600px;
  overflow-y: auto;
}

.review-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.reviewer-name {
  font-weight: 500;
}

.review-date {
  font-size: 0.875rem;
  color: #718096;
}

.review-rating {
  margin-bottom: 0.5rem;
}

.star {
  color: #f5a623;
  font-size: 1.25rem;
}

.star-empty {
  color: #cbd5e0;
}

.review-text {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.review-image-container {
  margin-top: 0.75rem;
}

.review-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: opacity 0.2s;
  max-height: 200px;
}

.review-image:hover {
  opacity: 0.8;
}

/* Review image overlay */
.review-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.review-image-overlay.active {
  opacity: 1;
  visibility: visible;
}

.review-image-large-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.review-image-large {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.review-image-close {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Error messages */
.review-error-messages {
  color: #e53e3e;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #fff5f5;
  border-radius: 0.25rem;
  border-left: 3px solid #e53e3e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-reviews-list {
    max-height: 400px;
  }

  .review-image {
    max-height: 150px;
  }

  .comment-form-rating .stars a {
    font-size: 1.25rem;
  }
}

/* Custom styling for the WooCommerce reviews section */
#reviews .woocommerce-Reviews {
  width: 100%;
}

/* Styling for existing ratings in reviews */
.review-rating {
  display: flex;
  align-items: center;
}

.rating-value {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
}

/* Styling for required fields */
.required {
  color: #e53e3e;
}

/* Estilos para múltiples imágenes en revisiones */
.review-images-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.review-image-item {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 0.375rem;
}

.review-image-item .review-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.review-image-item:hover .review-image {
  transform: scale(1.05);
}

.review-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Estilos responsive para múltiples imágenes */
@media (max-width: 640px) {
  .review-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mejoras para la carga de múltiples imágenes */
#image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.preview-wrapper {
  width: 6rem;
  height: 6rem;
  position: relative;
  border-radius: 0.375rem;
  overflow: hidden;
}

.preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-preview {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: rgba(239, 68, 68, 0.8);
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  z-index: 10;
}

/* Mejora para el overlay de imágenes */
.review-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.review-image-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Estilos específicos para la visualización de comentarios según el diseño solicitado */
#reviews {
  font-family: "peyda", sans-serif;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Estilo para cada comentario individual */
.review-item {
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  background-color: #fff;
  min-width: 400px;
}

@media (max-width: 640px) {
  .review-item {
    min-width: auto;
  }
}

/* Cabecera del comentario con nombre de usuario y fecha */
.review-item .flex.justify-between {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-base .font-semibold {
  font-size: 1rem;
  font-weight: 600;
}

.text-[13px] {
  font-size: 0.8125rem;
  color: #666;
}

/* Estrellas y puntuación */
.review-item .flex.justify-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.text-base .text-red-m {
  font-size: 1rem;
  color: #e53935;
}

/* Texto del comentario */
.review-item p.text-sm {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: #333;
}

/* Cuadrícula de imágenes */
.grid.grid-cols-10 {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 1.25rem;
  place-content: start;
  place-items: center;
  width: 100%;
}

.grid.grid-cols-10 img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.grid.grid-cols-10 img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

/* Overlay para ver imágenes en tamaño completo */
.review-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-image-overlay.active {
  opacity: 1;
  visibility: visible;
}

.review-image-large-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.review-image-large {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 5px;
}

.review-image-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: #e53935;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* Adaptación responsive */
@media (max-width: 768px) {
  .grid.grid-cols-10 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .review-item {
    padding: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .grid.grid-cols-10 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .text-base .font-semibold,
  .text-base .text-red-m {
    font-size: 0.875rem;
  }

  .text-[13px] {
    font-size: 0.75rem;
  }
}

/* Estilos para vista en scroll horizontal en móvil */
@media (max-width: 768px) {
  .w-full.rounded-xl.flex.flex-row.md\:flex-col {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .w-full.rounded-xl.flex.flex-row.md\:flex-col::-webkit-scrollbar {
    height: 6px;
  }

  .w-full.rounded-xl.flex.flex-row.md\:flex-col::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .w-full.rounded-xl.flex.flex-row.md\:flex-col::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }
}

/* Vista previa de imágenes en el formulario */
#image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preview-wrapper {
  position: relative;
  width: 6rem;
  height: 6rem;
}

.preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid #e5e5e5;
}

.remove-preview {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #e53935;
  color: white;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  z-index: 5;
}

/* Estilos para el sistema de calificación por estrellas */
.rating-stars {
  display: flex;
  direction: ltr; /* Asegurar que las estrellas se muestren de izquierda a derecha */
  font-size: 1.75rem;
  line-height: 1;
}

.rating-stars .star {
  color: #ddd;
  cursor: pointer;
  margin: 0 2px;
  transition: color 0.2s ease-in-out;
}

.rating-stars .star:hover,
.rating-stars .star.star-filled {
  color: #e53935; /* Color rojo para las estrellas seleccionadas */
}

.rating-stars .star.star-empty {
  color: #ddd;
}

/* Para mostrar correctamente las estrellas en los comentarios */
.review-rating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.review-rating .star {
  font-size: 16px;
  margin-right: 2px;
}

.review-rating .star-filled {
  color: #e53935;
}

.review-rating .star-empty {
  color: #ddd;
}

.review-rating .rating-value {
  font-size: 14px;
  color: #666;
  margin-left: 5px;
}

/* Estilos para la visualización de estrellas en los comentarios */
.rating-display {
  display: flex;
  align-items: center;
  direction: ltr; /* Asegurar dirección de izquierda a derecha para las estrellas */
}

.rating-display .star {
  font-size: 18px;
  margin-right: 1px;
  line-height: 1;
}

.rating-display .star-filled {
  color: #e53935; /* Rojo para estrellas llenas */
}

.rating-display .star-empty {
  color: #ddd; /* Gris claro para estrellas vacías */
}

/* استایل‌های مربوط به تصاویر نظرات */
.grid img.cursor-pointer {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid img.cursor-pointer:hover {
  transform: scale(1.05);
}

/* استایل‌های مربوط به نمایش تصویر بزرگ */
.review-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-image-overlay.active {
  opacity: 1;
}

.review-image-large-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.review-image-large {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.review-image-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* استایل‌های مربوط به پیش‌نمایش تصاویر انتخاب شده */
.preview-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.remove-preview {
  cursor: pointer;
  z-index: 2;
}

/* استایل‌های مربوط به لودینگ */
.loading-indicator {
  display: none;
  text-align: center;
  padding: 10px;
}

.loading-indicator.visible {
  display: block;
}

/* برای راست چین کردن متن‌ها در فرم */
#review-form input,
#review-form textarea {
  text-align: right;
}

/* برای نمایش درست دکمه آپلود */
label[for="file-upload"] {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* مشخص کردن فیلدهای اجباری */
.required {
  color: #e02b27;
}

/* استایل‌های مربوط به نظرات محصول */
.rating-stars .star {
  cursor: pointer;
  font-size: 22px;
  color: #ccc;
  transition: color 0.3s ease;
}

.rating-stars .star-filled,
.rating-display .star-filled {
  color: #c91016;
}

.rating-stars .star-empty,
.rating-display .star-empty {
  color: #ccc;
}

.rating-display {
  direction: ltr;
}

/* استایل‌های مربوط به تصاویر نظرات */
.grid img.cursor-pointer {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid img.cursor-pointer:hover {
  transform: scale(1.05);
}

/* استایل‌های مربوط به نمایش تصویر بزرگ */
.review-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-image-overlay.active {
  opacity: 1;
}

.review-image-large-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.review-image-large {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.review-image-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* استایل‌های مربوط به پیش‌نمایش تصاویر انتخاب شده */
.preview-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.remove-preview {
  cursor: pointer;
  z-index: 2;
}

/* استایل‌های مربوط به لودینگ */
.loading-indicator {
  display: none;
  text-align: center;
  padding: 10px;
}

.loading-indicator.visible {
  display: block;
}

/* برای راست چین کردن متن‌ها در فرم */
#review-form input,
#review-form textarea {
  text-align: right;
}

/* برای نمایش درست دکمه آپلود */
label[for="file-upload"] {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* مشخص کردن فیلدهای اجباری */
.required {
  color: #e02b27;
}
