/* ===================================================
   Blue Ocean — Reviews Section
   Layout inspired by orvakes.com product review design
   =================================================== */

.bo-reviews-section {
  background: #f3f4f6;
  padding: 1.5rem 16px 2rem;
}

.bo-reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== INNER: sidebar + main ===== */
.bo-reviews-inner {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.bo-reviews-sidebar {
  width: 270px;
  max-width: 270px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 130px;
  align-self: flex-start;
}

.bo-reviews-sidebar__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
}

/* Score line */
.bo-reviews-score-wrap {
  margin-bottom: 20px;
}

.bo-reviews-score-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 6px;
}

.bo-score-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.bo-score-sep {
  color: #9ca3af;
}

.bo-reviewer-count {
  font-weight: 600;
  color: #111827;
}

.bo-score-label {
  color: #6b7280;
}

/* Summary stars row */
.bo-score-stars-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 20px;
}

.bo-star-svg {
  width: 20px;
  height: 20px;
}

/* Recommend row */
.bo-reviews-recommend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.bo-recommend-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.bo-recommend-icon {
  width: 20px;
  height: 20px;
  color: #374151;
}

.bo-recommend-label {
  font-size: 0.875rem;
  color: #374151;
}

/* Progress bar */
.bo-reviews-progress-bar {
  height: 8px;
  width: 100%;
  border-radius: 999px;
  background: #111827;
  margin-bottom: 0;
}

/* ===== SIDEBAR CTA ===== */
.bo-reviews-cta {
  margin-top: 20px;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}

.bo-reviews-cta__text {
  font-size: 0.875rem;
  color: #374151;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.bo-write-review-btn {
  padding: 10px 20px;
  background: var(--color-primary, #4B8A7C);
  color: #fff;
  border: 1px solid var(--color-primary, #4B8A7C);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  white-space: nowrap;
  width: 100%;
  outline: none;
  text-align: center;
}

.bo-write-review-btn:hover:not(:disabled),
.bo-write-review-btn:focus:not(:disabled) {
  background: var(--color-primary-dark, #3a6e62);
  border-color: var(--color-primary-dark, #3a6e62);
  color: #fff;
  box-shadow: 0 0 0 0.2rem var(--color-primary-dark, #3a6e62);
}

.bo-write-review-btn.is-disabled,
.bo-write-review-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bo-review-submitted-note {
  display: none;
  font-size: 0.8125rem;
  color: #16a34a;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

.bo-review-submitted-note.is-visible {
  display: block;
}

/* ===== MAIN AREA ===== */
.bo-reviews-main {
  flex: 1;
  min-width: 0;
}

/* ===== COLLAPSIBLE FORM ===== */
.bo-review-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

/* ===== REVIEWS LIST (vertical) ===== */
.bo-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== REVIEW CARD ===== */
.bo-review-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
}

@media (min-width: 768px) {
  .bo-review-card {
    border-radius: 16px;
    padding: 20px;
  }
}

/* ===== HEADER ROW ===== */
.bo-review-header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

/* ===== AVATAR ===== */
.bo-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  border: 1px solid #e5e7eb;
}

/* ===== META ===== */
.bo-review-meta {
  flex: 1;
  min-width: 0;
}

.bo-review-name-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 768px) {
  .bo-review-name-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

.bo-reviewer-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  text-transform: capitalize;
}

.bo-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bo-verified-icon {
  width: 16px;
  height: 16px;
  color: #16a34a;
  flex-shrink: 0;
}

.bo-verified span {
  font-size: 0.75rem;
  color: #374151;
}

.bo-review-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 4px 0 0 0;
}

@media (min-width: 768px) {
  .bo-review-date {
    font-size: 0.875rem;
    margin-top: 0;
    padding-top: 2px;
  }
}

/* ===== CARD STARS ===== */
.bo-card-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

/* ===== REVIEW TITLE ===== */
.bo-review-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 12px 0 0 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .bo-review-title {
    font-size: 1.125rem;
  }
}

/* ===== REVIEW CONTENT ===== */
.bo-review-content {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.65;
  margin: 4px 0 0 0;
  word-break: break-word;
}

@media (min-width: 768px) {
  .bo-review-content {
    font-size: 1rem;
  }
}

/* ===== REVIEW IMAGES ===== */
.bo-review-media {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.bo-review-img {
  max-width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  flex: 1;
  min-width: 100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .bo-reviews-section {
    padding: 1rem 12px 1.5rem;
  }

  .bo-reviews-inner {
    flex-direction: column;
  }

  .bo-reviews-sidebar {
    width: 100%;
    max-width: 100%;
    position: static;
    border-radius: 12px;
  }

  .bo-reviews-sidebar__title {
    font-size: 1.125rem;
  }
}

/* ===== 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;
}

/* ===== USER REVIEW BADGE ===== */
.bo-review-card--mine {
  border: 2px solid var(--color-primary, #4B8A7C);
  position: relative;
}

.bo-user-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary, #4B8A7C);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

/* ===== PAGINATION ===== */
.bo-reviews-pagination {
  margin-top: 24px;
}

.bo-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bo-pagination-pages {
  display: flex;
  gap: 4px;
}

.bo-pagination-btn {
  padding: 7px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.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.4;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .bo-pagination-wrap {
    gap: 6px;
  }

  .bo-pagination-btn {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }
}
