body {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  color: #111 !important;
}

.reviews-section {
  padding: 10px 10px 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reviews-header {
  text-align: center;
}
.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#review-avg-score {
  font-size: 28px;
  font-weight: 800;
  color: #000;
}
.stars-row {
  color: #389692;
  font-size: 24px;
  letter-spacing: 2px;
}
.review-count-text {
  font-size: 14px;
  color: #666;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #444;
}
.star-label {
  display: flex;
  align-items: center;
  width: 20px;
}
.star-label::after {
  content: "★";
  color: #389692;
  margin-left: 2px;
}
.bar-track {
  flex: 1;
  height: 10px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #389692;
  border-radius: 10px;
}
.bar-percent {
  width: 30px;
  text-align: right;
  font-weight: 600;
}

.write-review-btn {
  width: 100%;
  background: #389692;
  color: #fff;
  border: none;
  padding: 20px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.review-filter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-filter-title {
  font-weight: 700;
  color: #333;
}
.review-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.review-filter-pill {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  color: black;
}
.review-filter-pill.active {
  background: #389692;
  color: #fff;
  border-color: #389692;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 15px;
}
.review-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  background: #fff;
}
.review-stars {
  color: #389692;
  font-size: 18px;
  margin-bottom: 5px;
}
.review-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.review-user-name {
  font-weight: 700;
  font-size: 13px;
  font-family: "poppins-semibold";
}
.verified-badge {
  background: #389692;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.review-text {
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}

.view-more-btn {
  display: none;
  background: #389692;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
}

/* Errors & Validation */
.field-error {
  color: #d32f2f;
  font-size: 11px;
  display: none;
  font-weight: 600;
  margin-left: 10px;
}
.field-error.active {
  display: block;
}
.input-error {
  border-color: #d32f2f !important;
  background: #fff8f8;
}

/* Review Sheet Extras */
.review-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}
.review-sheet-overlay.show {
  display: block;
}
.review-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.review-sheet.open {
  transform: translateY(0);
}
.review-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px;
}
.review-sheet-header > h3 {
  margin: 0;
}
#closeReviewSheet {
  border-radius: 30px;
  border: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
}

.review-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}
.review-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.review-star-select {
  font-size: 40px;
  cursor: pointer;
  text-align: center;
  user-select: none;
  padding: 5px 0 10px;
}
.review-star-select span {
  color: #e0e0e0;
  transition: color 0.1s ease;
}
.review-star-select span.filled {
  color: #f5b400;
}

.media-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fdfdfd;
  border: 1px dashed #7a4aa3;
  border-radius: 30px;
  font-size: 13px;
  color: #7a4aa3;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  justify-content: center;
}
.media-upload-label:hover {
  background: #f9f0ff;
  transform: translateY(-1px);
}

.media-preview-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow: hidden;
  justify-content: flex-start;
}
.preview-img-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 0.2s;
}
.preview-remove-btn:hover {
  background: #ff4444;
}
.preview-img-wrapper.uploading .preview-img {
  opacity: 0.5;
}

.submit-review-btn {
  background: #7a4aa3;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
.review-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #7a4aa3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 2;
}

.review-date {
  display: none !important;
}
