/* Product FAQ Addon — Frontend Styles
 * Цвета берутся из Plugin Contract темы (--rj-*).
 * Fallback-значения обеспечивают работу без RockyJam-Theme.
 */

.rj-faq-section {
    padding: 48px 0;
    border-top: 1px solid var(--rj-border, #ddd);
}

.rj-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--rj-text, #1a1a1a);
}

.rj-faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rj-faq-item {
    border: 1px solid var(--rj-border, #ddd);
    border-radius: var(--rj-radius, 4px);
    overflow: hidden;
    transition: border-color var(--rj-transition, 0.3s ease);
}

.rj-faq-item.active {
    border-color: var(--rj-accent, #c41e2e);
}

.rj-faq-question {
    background: var(--rj-surface, #f5f5f5);
    padding: 16px 24px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--rj-text, #1a1a1a);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--rj-transition, 0.3s ease);
    user-select: none;
    margin: 0;
    line-height: 1.5;
}

.rj-faq-question:hover {
    background: var(--rj-border, #ddd);
}

.rj-faq-question::after {
    content: "+";
    font-size: 18px;
    font-weight: 700;
    color: var(--rj-accent, #c41e2e);
    flex-shrink: 0;
    margin-left: 12px;
}

.rj-faq-item.active .rj-faq-question::after {
    content: "\2212"; /* − минус */
}

.rj-faq-answer {
    /* Фон чуть светлее surface — берётся из контракта темы */
    background: var(--rj-surface-2, #fff);
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--rj-transition, 0.3s ease);
}

.rj-faq-answer-content {
    padding: 24px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--rj-text-muted, #666);
}
