/* Khu vực Feedback khách hàng (masonry, tự cuộn). Dữ liệu: window.profileData.feedbacks hoặc mẫu bên dưới trong feedback.js */
/* ===== Feedback khách hàng ===== */
:root {
  --fb-blue: #003DA4;
  --fb-link: #3470FF;
  --fb-ice: #D9EDFE;
  --fb-bg: #F5F9FF;
  --fb-line: #E5E7EB;
  --fb-gray: #6B7280;
  --fb-star: #F5A623;
  --fb-star-empty: #D1D5DB;
}
.fb, .fb *, .fb *::before, .fb *::after { box-sizing: border-box; }

.fb { background: var(--fb-bg); padding: 28px 16px; margin-top: 18px; border-radius: 14px; color: #1f2937; font-family: inherit; }
.fb-inner { max-width: none; margin: 0 auto; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fb-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--fb-blue); }
.fb-btn { font: inherit; font-size: 14px; font-weight: 500; color: var(--fb-blue); background: transparent; border: 1px solid var(--fb-link); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.fb-btn:hover { background: var(--fb-ice); }
.fb-btn:focus-visible, .fb-more:focus-visible, .fb-scroll:focus-visible { outline: 3px solid var(--fb-link); outline-offset: 2px; }
.fb-btn[hidden] { display: none; }

/* Khung cuộn: cao 460px, thanh cuộn mảnh. Không chặn cuộn, tới cuối thì trang cuộn tiếp. */
.fb-scroll { height: 460px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #B8C4D6 transparent; border-radius: 12px; }
.fb-scroll::-webkit-scrollbar { width: 6px; }
.fb-scroll::-webkit-scrollbar-thumb { background: #B8C4D6; border-radius: 6px; }
.fb-scroll::-webkit-scrollbar-track { background: transparent; }

/* Lưới so le: mỗi cột là một dải dọc, khoảng cách 12px */
.fb-grid { display: flex; gap: 12px; align-items: flex-start; padding-right: 2px; }
.fb-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.fb-card { background: #fff; border: 1px solid var(--fb-line); border-radius: 12px; padding: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.fb-top { display: flex; align-items: center; gap: 10px; }
.fb-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--fb-ice); color: var(--fb-blue); display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.fb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-who { min-width: 0; }
.fb-name { color: var(--fb-blue); font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.fb-time { display: block; color: var(--fb-gray); font-size: 12px; line-height: 1.4; }
.fb-stars { display: flex; gap: 2px; margin-top: 10px; }
.fb-stars svg { width: 16px; height: 16px; display: block; }
.fb-star-empty { fill: none; stroke: var(--fb-star-empty); stroke-width: 1.6; stroke-linejoin: round; }
.fb-star-full { fill: var(--fb-star); }
.fb-role { margin-top: 8px; font-size: 12.5px; color: var(--fb-gray); }
.fb-text { margin: 8px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.fb-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.fb-more { font: inherit; font-size: 13px; font-weight: 500; color: var(--fb-link); background: none; border: 0; padding: 4px 0 0; cursor: pointer; }
.fb-more[hidden] { display: none; }
.fb-photo { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin-top: 10px; }

.fb-chat-label { margin-top: 10px; font-size: 11.5px; font-weight: 500; color: var(--fb-gray); text-transform: uppercase; letter-spacing: .04em; }
.fb-chat { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.fb-bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.fb-bubble.in { align-self: flex-start; background: #F1F3F5; color: #1f2937; border-bottom-left-radius: 4px; }
.fb-bubble.out { align-self: flex-end; background: var(--fb-ice); color: var(--fb-blue); border-bottom-right-radius: 4px; }
.fb[hidden] { display: none; }
