/* ===================================================
   Blue Ocean — Reviews Section
   Layout inspired by hugglely.com review design
   =================================================== */

/* ===== SECTION ===== */
.bo-reviews-section {
  background: #fff;
  padding: 40px 16px 48px;
}

.bo-reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.bo-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 32px;
}

.bo-reviews-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bo-reviews-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* reviewer count */
.bo-reviewer-count {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.bo-reviews-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

/* summary stars */
.bo-score-stars-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bo-star-svg {
  width: 20px;
  height: 20px;
}

/* ===== WRITE REVIEW BUTTON ===== */
.bo-write-review-btn {
  padding: 10px 20px;
  background: var(--color-primary, #4B8A7C);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  white-space: nowrap;
  outline: none;
}

.bo-write-review-btn:hover:not(:disabled) {
  opacity: 0.85;
}

.bo-write-review-btn.is-disabled,
.bo-write-review-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bo-review-submitted-note {
  display: none;
  font-size: 0.8125rem;
  color: #16a34a;
  margin: 0;
  line-height: 1.4;
}

.bo-review-submitted-note.is-visible {
  display: block;
}

/* ===== REVIEWS LIST ===== */
.bo-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== REVIEW CARD ===== */
.bo-review-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bo-review-card--mine {
  border-left: 3px solid var(--color-primary, #4B8A7C);
  padding-left: 16px;
}

/* ===== REVIEWER NAME ===== */
.bo-reviewer-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== VERIFIED ===== */
.bo-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.bo-verified-icon {
  width: 15px;
  height: 15px;
  color: #16a34a;
  flex-shrink: 0;
}

.bo-verified span {
  font-size: 0.8125rem;
  color: #16a34a;
}

/* ===== CARD STARS ===== */
.bo-card-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

/* ===== REVIEW TITLE ===== */
.bo-review-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* ===== REVIEW CONTENT ===== */
.bo-review-content {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.65;
  margin: 4px 0 0 0;
  word-break: break-word;
}

/* ===== REVIEW IMAGES ===== */
.bo-review-media {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.bo-review-img {
  max-width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== PAGINATION ===== */
.bo-reviews-pagination {
  margin-top: 24px;
}

.bo-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.bo-pagination-pages {
  display: flex;
  gap: 4px;
}

.bo-pagination-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bo-pagination-prev,
.bo-pagination-next {
  width: auto;
  padding: 0 12px;
  font-size: 0.875rem;
}

.bo-pagination-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.bo-pagination-btn.is-active {
  background: var(--color-primary, #4B8A7C);
  border-color: var(--color-primary, #4B8A7C);
  color: #fff;
}

.bo-pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== MODAL ===== */
.bo-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bo-modal-overlay.is-open {
  display: flex;
}

.bo-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.bo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.bo-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.bo-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.bo-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.bo-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .bo-reviews-section {
    padding: 24px 12px 32px;
  }

  .bo-reviews-header {
    margin-bottom: 20px;
  }

  .bo-reviews-list {
    gap: 28px;
  }
}
