/* review.css - extracted from ui.html */

/* ── Card wrapper ───────────────────────────────────────── */
.review .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 4px rgba(0,0,0,.10);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Section title ──────────────────────────────────────── */
.review .section-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.review .section-bar {
  width: 4px;
  height: 34px;
  background: #009981;
  border-radius: 2px;
  flex-shrink: 0;
}
.review .section-title h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #151515;
}

/* ── Rating overview row ────────────────────────────────── */
.review .rating-overview {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Left: score block */
.review .score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.review .score-number {
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  color: #151515;
  text-align: center;
}
.review .star-row {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.review .star-row img { width: 20px; height: 20px; display: block; }
.review .star-row-sm img { width: 16px; height: 16px; display: block; }
.review .score-sub {
  font-size: 16px;
  line-height: 24px;
  color: #64748b;
  text-align: center;
}
.review .score-sub strong { color: #009981; font-weight: 600; }
.review .btn-green-lg {
  background: #009981;
  color: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Divider vertical */
.review .divider-v {
  width: 1px;
  align-self: stretch;
  background: #eaebf0;
  flex-shrink: 0;
}

/* Progress bars block */
.review .progress-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.review .progress-row {
  display: flex;
  align-items: center;
  gap: 13px;
}
.review .progress-star-label {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 32px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--foreground);
}
.review .progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.review .progress-track {
  flex: 1;
  height: 8px;
  background: #ecf4fc;
  border-radius: 128px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.review .progress-fill {
  height: 8px;
  background: #009981;
  border-radius: 128px;
  position: absolute;
  left: 0;
  top: 0;
}
.review .progress-pct {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #64748b;
  white-space: nowrap;
  width: 35px;
  flex-shrink: 0;
}

/* Customer photos block */
.review .photos-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 356px;
  flex-shrink: 0;
}
.review .photos-block .block-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #64748b;
}
.review .photo-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.review .photo-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.review .photo-more {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.review .photo-more img.thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.review .photo-more .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,.6), #121212);
  border-radius: 8px;
  transform: rotate(180deg);
}
.review .photo-more .overlay-text {
  position: absolute;
  top: 16px;
  left: 4px;
  width: 73px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #fff;
  text-align: center;
}

/* ── Divider horizontal ─────────────────────────────────── */
.review .divider-h {
  width: 100%;
  height: 1px;
  background: #eaebf0;
  flex-shrink: 0;
}

/* ── Comment form ───────────────────────────────────────── */
.review .comment-section { display: flex; flex-direction: column; gap: 20px; }
.review .input-row { display: flex; gap: 12px; align-items: flex-start; }
.review .input-field-wrap { flex: 1; min-width: 0; }
.review .input-box {
  background: #fff;
  border: 1px solid #eaebf0;
  border-radius: 6px;
  height: 52px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  width: 100%;
}
    .review .input-box input {
        width: 100%;
        border: none;
        outline: none;
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 22px;
        padding: 0 16px;
    }
.review .input-box input::placeholder { color: #c8c8c8; }
.review .btn-send {
  background: #5ebfb0;
  color: #fff;
  border-radius: 8px;
  padding: 0 20px;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.review .btn-send img { width: 20px; height: 20px; }

.review .add-media-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.review .add-media-btn img { width: 24px; height: 24px; }
.review .add-media-btn span {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #009981;
}

/* Filter row */
.review .filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review .filter-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #64748b;
  white-space: nowrap;
}
.review .filter-list {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  flex: 1;
}
.review .filter-list::-webkit-scrollbar { display: none; }
.review .pill {
  padding: 8px 12px;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid;
  background: #fff;
  flex-shrink: 0;
}
.review .pill.active   { border-color: #009981; color: #009981; }
.review .pill.inactive { border-color: #eaebf0; color: #64748b; }

/* ── Comment list ───────────────────────────────────────── */
.review .comment-list { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; 
                        margin: 0 !important;
}

.review .comment-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}

.review .comment-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/* Avatar with thread line */
.review .avatar-area {
  position: relative;
  flex-shrink: 0;
}
.review .avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 128px;
  background: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review .avatar-circle span {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.review .avatar-logo {
  width: 48px;
  height: 48px;
  border-radius: 128px;
  object-fit: cover;
  flex-shrink: 0;
}
.review .thread-connector {
  position: absolute;
  top: 56px;
  left: 11px;
  width: 24px;
  height: 32px;
}
.review .thread-connector img { width: 100%; height: 100%; }

/* Comment body */
.review .comment-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review .comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review .comment-author {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #151515;
  white-space: nowrap;
}
.review .qtv-badge {
  background: linear-gradient(to right, #009981, #5ebfb0);
  padding: 2px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #fff;
  white-space: nowrap;
}
.review .comment-time {
  display: flex;
  align-items: center;
  gap: 5px;
}
.review .comment-time img { width: 16px; height: 16px; }
.review .comment-time span {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #64748b;
}
.review .star-row-sm {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}
.review .comment-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #64748b;
  width: 100%;
}
.review .comment-images {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.review .comment-images img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

/* Reply button */
.review .btn-reply {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 60px;
  border: 1px solid #009981;
  background: #fff;
  color: #009981;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
  width: 112px; 
  justify-content: center;
}
.review .btn-reply img { width: 16px; height: 16px; }

/* QTV reply box */
.review .reply-box {
  background: #fafafb;
  border-radius: 8px;
  padding: 12px;
  width: calc(100% - 68px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review .reply-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.review .reply-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review .reply-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #64748b;
}
.review .reply-text p { margin-bottom: 0; }

/* Inline textarea reply */
.review .reply-input-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review .reply-to-label {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: space-between;
}
.review .reply-to-label .left { display: flex; align-items: center; gap: 4px; flex: 1; }
.review .reply-to-label .close-btn { cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }
.review .reply-to-text { font-size: 12px; font-weight: 400; line-height: 16px; color: #64748b; }
.review .reply-to-name { font-size: 14px; font-weight: 600; line-height: 20px; color: #151515; }
.review .textarea-box {
  background: #fff;
  border: 1px solid #eaebf0;
  border-radius: 8px;
  height: 93px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: #c8c8c8;
  resize: none;
  width: 100%;
  outline: none;
}
.review .textarea-box::placeholder { color: #c8c8c8; }
.review .btn-send-sm {
  background: #009981;
  color: #fff;
  border-radius: 60px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 104px;
  justify-content: center;
}
.review .btn-send-sm img { width: 16px; height: 16px; }

/* Expand/collapse replies button */
.review .btn-expand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #151515;
}
.review .btn-expand img { width: 16px; height: 8px; }

/* Load more button */
.review .btn-load-more {
  background: #009981;
  color: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
