.feedback-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* ระยะห่างระหว่างรูป */
  margin-top: 8px;
}

.feedback-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  /* กันรูปยืดเบี้ยว */
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
}

#img-preview-modal-feedback {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  align-content: center;
}

.img-preview-content {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.img-preview-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.feedback-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  /* เล็กลง */
  font-weight: 500;
  /* ไม่หนาเกิน */
  line-height: 1.2;
  opacity: 0.78;
  /* จางลงนิด */
}

.feedback-meta {
  margin: 0 0 8px 0;
  font-size: 12px;
  opacity: 0.75;
}

.feedback-user {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.feedback-date {
  white-space: nowrap;
}

.feedback-comment {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
}

/* ถ้า theme เป็นดำ/ขาวไม่แน่ใจ ใช้ inherit ก็ได้ */
.feedback-link,
.feedback-link:hover,
.feedback-link:focus,
.feedback-link:active,
.feedback-link:visited {
  color: inherit;
  text-decoration: none;
}

/* สำคัญสุด: ทำให้ flex item ย่อได้ */
.feedback-body {
  min-width: 0;
}

/* ตัดชื่อสินค้า 1 บรรทัด */
.feedback-title-ellipsis {
  display: block;
  /* สำคัญใน flex */
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-coin-reward {
  color: #b8860b;
}

#feedback-tab.tab-content {
  padding: 0px !important;
  padding-top: 30px !important;
}

@media (max-width: 768px) {
  #feedback-tab.tab-content {
    padding-top: 15px !important;
  }
}

@media (max-width: 376px) {
  .feedback-img {
    width: 120px;
    height: 120px;
  }
}

/* ===== Feedback Page (Shop) ===== */
.feedback-card .card-body {
  position: relative;
}

.feedback-hero {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.015)
  );
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 14px;
}

.feedback-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.feedback-score-number {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.feedback-score-sub {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 4px;
}

.feedback-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.fb-5 {
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.02);
}

.fb-4 {
  opacity: 0.95;
}

.fb-3 {
  opacity: 0.92;
}

.feedback-tabs .feedback-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding-bottom: 6px;
}

.feedback-tabs .feedback-nav::-webkit-scrollbar {
  height: 6px;
}

.feedback-tabs .feedback-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.feedback-tabs .nav-link {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.75);
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.feedback-tabs .nav-link.active {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.9);
}

.pill-count {
  margin-left: 8px;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .feedback-hero {
    padding: 12px;
  }

  .feedback-score-number {
    font-size: 32px;
  }
}

.feedback-filterbar {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  padding: 10px 12px;
}

.ff-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.ff-check input {
  width: 16px;
  height: 16px;
  transform: translateY(1px);
}

.ff-seg {
  display: inline-flex;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}

.ff-seg-btn {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  white-space: nowrap;
}

.ff-seg-btn.active {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.95);
  font-weight: 700;
}

.ff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.ff-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 12px;
}
.ff-chip i {
  opacity: 0.8;
}
.btn-bidsoft {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.86);
  border-radius: 999px;
  padding: 7px 12px 7px 12px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* ทำให้ before อยู่เป็นจุดนำหน้า */
.btn-bidsoft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-bidsoft:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-bidsoft:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-bidsoft:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08);
}

.ff-choice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ff-pill {
  margin: 0;
  cursor: pointer;
}
.ff-pill input {
  display: none;
}
.ff-pill span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
}
.ff-pill.active span {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.92);
  font-weight: 800;
}

#feedback-user-5,
#feedback-user-4,
#feedback-user-3,
#feedback-user-2,
#feedback-user-1 {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
