/**
 * Customers Say (Review Topics) Styles
 *
 * Amazon-style summary paragraph + clickable topic chip row. Chips are a
 * data-filter="topic_id" control in the shared review filter mechanism
 * (see assets/js/frontend/review-filters.js) - clicking one filters the
 * reviews list below, same as the Sort/Time/Length/Show only filters.
 */

.yayrev-customers-say {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* Applied by review-filters.js when the active filters leave a chip (or the
   whole box) with no matching reviews. */
.yayrev-customers-say.is-hidden,
.yayrev-customers-say__chip.is-hidden {
    display: none;
}

.yayrev-customers-say__summary {
    margin-bottom: 1rem;
}

.yayrev-customers-say__text {
    margin: 0 0 0.375rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #1e293b;
}

.yayrev-customers-say__disclosure {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Chips */
.yayrev-customers-say__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.yayrev-customers-say__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.yayrev-customers-say__chip:hover {
    background: #f1f5f9;
}

.yayrev-customers-say__chip.is-active {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}

.yayrev-customers-say__chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0 0.375rem;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.yayrev-customers-say__chip.is-active .yayrev-customers-say__chip-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .yayrev-customers-say {
        padding: 1rem;
    }
}
