/*
 * review-card.css - one review card for the whole customer side (Deepak, 18 Nov 2026): service page, all-reviews
 * page, product page and the app's service / product details. Built by sfReviewCardHtml() (PHP) and
 * window.sfReviewCardHtml() (assets/review-card.js), so every place looks the same.
 * Loaded by sfThemeHeadHtml(). Dark mode comes from assets/dark-customer.css (dev/tools/build_dark_css.py reads this file).
 */
.sfrv-list { display: flex; flex-direction: column; gap: 12px; }
.sfrv { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: var(--sf-radius, 4px); padding: 16px; text-align: left; }
.sfrv-head { display: flex; align-items: center; gap: 12px; }
.sfrv-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.sfrv-av.c0 { background: #FDE7DA; color: #9A3412; }
.sfrv-av.c1 { background: #DBEAFE; color: #1E40AF; }
.sfrv-av.c2 { background: #DCFCE7; color: #166534; }
.sfrv-av.c3 { background: #F3E8FF; color: #6B21A8; }
.sfrv-av.c4 { background: #FEF3C7; color: #92400E; }
.sfrv-av.c5 { background: #E0F2FE; color: #075985; }
.sfrv-who { min-width: 0; flex: 1 1 auto; }
.sfrv-nm { font-size: 14px; font-weight: 700; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfrv-dt { font-size: 12px; font-weight: 500; color: #6B7280; margin-top: 2px; }
.sfrv-stars { display: flex; gap: 3px; margin-top: 12px; }
.sfrv-stars i { width: 20px; height: 20px; border-radius: 0; display: flex; align-items: center; justify-content: center;
    background: #E5E7EB; color: #FFFFFF; font-style: normal; font-size: 12px; line-height: 1; }
.sfrv-stars i.on { background: var(--color-warning, #F59E0B); }
.sfrv-text { font-size: 14px; line-height: 1.6; font-weight: 400; color: #374151; margin: 10px 0 0; white-space: pre-line;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-word; }
.sfrv-text.open { display: block; -webkit-line-clamp: unset; }
.sfrv-more { display: block; margin: 2px auto 0 0; text-align: left; padding: 0; border: 0; background: transparent; font-size: 13px; font-weight: 700;
    color: #111827; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sfrv-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sfrv-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: #F3F4F6; color: #4B5563;
    font-size: 12px; font-weight: 600; border-radius: var(--sf-radius, 4px); }
.sfrv-tag i { font-size: 11px; color: var(--color-success, #16A34A); }
.sfrv-word { font-size: 14px; font-weight: 700; color: #111827; margin-top: 2px; }

/* Slider (18 Nov 2026): reviews side by side, swipe sideways, the next card peeks in. "See all N reviews" under it. */
.sfrv-wrap { position: relative; }
.sfrv-slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.sfrv-slider::-webkit-scrollbar { display: none; }
.sfrv-slider > .sfrv { flex: 0 0 min(85%, 340px); scroll-snap-align: start; display: flex; flex-direction: column; }
.sfrv-slider > .sfrv .sfrv-foot { margin-top: auto; padding-top: 12px; }
.sfrv-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #E5E7EB; background: #FFFFFF; color: #111827; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / .12); z-index: 2; font-size: 14px; }
.sfrv-nav.prev { left: -10px; } .sfrv-nav.next { right: -10px; }
.sfrv-nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 768px) { .sfrv-nav { display: flex; } }
.sfrv-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; min-height: 46px; padding: 10px 14px;
    border: 1.5px solid var(--color-primary, #0E7C86); border-radius: var(--sf-radius, 4px); background: transparent;
    color: var(--color-primary-text, var(--color-primary, #0E7C86)); font-size: 14px; font-weight: 700; text-decoration: none; }

/* Full text, no "See more" (the All Reviews page, 18 Nov 2026). */
.sfrv-full .sfrv-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.sfrv-full .sfrv-more { display: none; }

/* Star tiles everywhere (18 Nov 2026): every row of 5 stars, filled or empty, sits on square boxes. */
.sf-stars { display: inline-flex; gap: 3px; vertical-align: middle; line-height: 1; }
.sf-st { --s: 16px; width: var(--s); height: var(--s); flex: 0 0 var(--s); display: inline-flex; align-items: center; justify-content: center;
    background: #E5E7EB; color: #FFFFFF; font-style: normal; font-size: calc(var(--s) * .64); line-height: 1; border-radius: 0; border: 0; padding: 0; }
.sf-st.on { background: var(--color-warning, #F59E0B); }
.sf-st.half { background: linear-gradient(90deg, var(--color-warning, #F59E0B) 50%, #E5E7EB 50%); }
button.sf-st, .sf-st[onclick] { cursor: pointer; }

/* Rating summary: a clear gap and a line between the bars and the review slider. */
.sfrv-sep { margin-top: 18px; padding-top: 18px; border-top: 1px solid #E5E7EB; }
