/* Popup overlay and box */
.review-popup-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 150ms ease;
}

.review-popup{
  background: #FFFEEE;
  color: #000 !important;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.popup-close{
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  color: #F0841A;
  font-size: 30px;
  cursor: pointer;
}

.popup-title { 
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 8px; 
    color: #5e5757; 
  }
  

.popup-rating { 
	margin: 6px 0; 
   }

.popup-text { 
	color: #000000; 
	line-height: 1.6; 
	margin-top: 12px; 
  }

.popup-reviewer-info { 
	display:flex; 
	align-items:center; 
	gap:10px; 
	margin-top:18px; 
   }

.popup-profile-picture { 
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important; 
  object-fit: cover !important;
  border: 2px solid #EE7600 !important;
}

.popup-name { 
  color: #fff; 
  font-weight: 600; 
  }


/* small: review card and reviewer */
.reviews-grid { 
  display:grid !important; 
  grid-template-columns: repeat(3,1fr) !important; 
  gap:20px; 
  margin-bottom:20px !important; 
  padding: 20px 120px 20px 120px !important;
}
 
.review {
    border: 1px solid #EE7600;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: left;
}

.review h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.review p {
    margin: 5px 0;
    font-size: 1rem;
    color: #555;
}

.reviewer-info {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 15px; /* Space between the profile picture and name */
    font-size: 1rem;
    color: #555;
    margin-top: 30px !important;
}

button.show-more-btn {
    background: none;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

.profile-picture { 
width:50px; 
height:50px; 
border-radius:50%; 
object-fit:cover; 
border:2px solid #EE7600; 
}

/* Responsive adjustments */
@media (max-width: 768px) { 
.reviews-grid { 
  grid-template-columns: repeat(2,1fr) !important;
  display: grid !important;
  gap: 20px !important;
  padding: 10px 20px 10px 20px !important;
  } 
}

@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 20px !important;
    padding: 10px 20px 10px 20px !important;
  }
}

@media (max-width: 915px) { 
.reviews-grid { 
  grid-template-columns: 1fr !important;
  display: grid !important;
  gap: 20px !important;
  padding: 10px 20px 10px 20px !important;
  } 
}


/* (Review) Style the Star icon in Form */
.custom-star-rating {
    display: flex;
    gap: 5px;
    font-size: 28px;
    cursor: pointer;
		align-items: flex-end;
	margin-top: 20px;
	margin-bottom: 10px;
}

.custom-star {
    color: #ccc;
    transition: color 0.2s ease;
}

.custom-star:hover,
.custom-star.selected {
    color: #EE7600 !important;
}


/* Pagination Style */

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #EE7600;
    color: #fff;
    border-color: #EE7600;
}

.pagination .current {
    background-color: #EE7600;
    color: #fff;
    border-color: #EE7600;
}

