#star-rating.star-rating {
    display: flex !important; /* Ensures stars align horizontally */
    font-size: 1.3rem;
    gap: 5px; /* Adds spacing between stars */
	width: 130px !important;
	margin-bottom: 19px;
}

#star-rating .star {
  all: unset; /* resets all inherited styles */
}

.star {
    color: lightgray;
    cursor: pointer !important;
    transition: color 0.2s;
    z-index: 1;
}
.star.active,
.star:hover {
    color: gold !important;
}

.custom-review-avatar img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
}

/* Override WooCommerce's default star rating (applies to product reviews) */
.woocommerce .star-rating {
  display: none !important;
}

/* Or reset the WooCommerce stars if they're being inherited */
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
  content: none !important;
}

.media-buttons label {
    border: 1px solid red;
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
    color: red;
    display: inline-block;
}

textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px !important;
    height: 60px;
}

.top_comment {
	display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 5px;
    gap: 24px;
}

.comment_attch {
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
	margin-bottom:20px;
	margin-top: 10px
}

.comment_attch img, .comment_attch video {
	height: 200px !important;
    object-fit: cover !important;
}

.custom-review {
	margin-top: 20px
}

.custom-review p {
	margin-bottom: 5px;
}

.comment-data p {
	margin-bottom: 0 !Important;
}

#uploadLimitModal.popup-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

#uploadLimitModal .popup-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px
}

#uploadLimitModal #closePopup {
  margin-top: 15px;
  padding: 8px 20px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.review-attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.review-attachments-grid .attachment-item {
    max-width: 200px;
}

.swiper-button-prev, .swiper-button-next {
	background: rgba(255, 255, 255, 0.6);
    width: 60px !important;
	height: 100% !important;;
	top: 16px !important;;
}

.swiper-button-prev{
    left: 0 !important;;
}

.swiper-button-next {
	right: 0 !important;;
}
   
.custom-review-pagination {
	text-align: center;
    padding-top: 20px;
}

.custom-review-pagination a  {
	padding: 10px 17px;
}

.custom-review-pagination a.active {
    background: #000;
    color: #fff;
}

.video-overlay-wrapper {
    position: relative;
    display: inline-block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.video-play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 10px;
}

.preview-grid .preview-item {
    position: relative;
    display: inline-block;
	width: 150px;
}

.preview-grid img,
.preview-grid video {
    max-width: 120px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.preview-grid .remove-preview {
    position: absolute;
    top: -22px;
    right: -19px;
    background: transparent;
    color: red;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
}

