.safir-faq-wrapper {
    width: 100%;
    direction: rtl;
    font-family: inherit;
}

.safir-faq-item {
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.safir-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.safir-faq-question-text {
    flex: 1;
    line-height: 1.6;
}

/* آیکون پلاس / ضربدر */
.safir-faq-icon {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.safir-faq-icon-plus::before,
.safir-faq-icon-plus::after {
    content: "";
    position: absolute;
    background: currentColor;
    transition: transform 0.3s ease;
}

.safir-faq-icon-plus::before {
    width: 45%;
    height: 2px;
}

.safir-faq-icon-plus::after {
    width: 2px;
    height: 45%;
}

.safir-faq-item.active .safir-faq-icon-plus::after {
    transform: rotate(90deg) scaleX(0);
}

/* آیکون شورون */
.safir-faq-icon-chevron::before {
    content: "";
    width: 40%;
    height: 40%;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-15%);
    transition: transform 0.3s ease;
}

.safir-faq-item.active .safir-faq-icon-chevron::before {
    transform: rotate(-135deg) translateY(0%);
}

/* انیمیشن باز و بسته شدن پاسخ به روش grid-template-rows (بدون نیاز به محاسبه ارتفاع در JS) */
.safir-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.safir-faq-item.active .safir-faq-answer {
    grid-template-rows: 1fr;
}

.safir-faq-answer-inner {
    overflow: hidden;
    min-height: 0;
    line-height: 1.9;
    font-size: 14.5px;
}

.safir-faq-answer-inner p:first-child {
    margin-top: 0;
}

.safir-faq-answer-inner p:last-child {
    margin-bottom: 0;
}
