﻿.accordion:not(.show) {
    display: none;
}
.hc-faq .hc-faq__accordion.accordion {
    display: block;
}

.hc-faq {
    direction: rtl;
}

/* Category buttons */
.hc-faq__category-buttons {
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hc-faq__cat-btn {
    width: 160px;
    padding: 10px 0;
    border-radius: 8px;
    border: 1px solid #bdbdbd;
    background: #fff;
    color: #bdbdbd;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

    .hc-faq__cat-btn.is-active {
        border-color: var(--main-blue, #2166AE);
        background: var(--main-blue, #2166AE);
        color: #fff;
    }

/* Card */
.hc-faq__item {
    border: 1px solid #eef1f4 !important;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px;
}

/* Button */
.hc-faq__button {
    position: relative;
    background: #fff !important;
    box-shadow: none !important;
    padding: 18px 22px;
    text-align: right;
    font-weight: 600;
    border: 0;
}

    .hc-faq__button::after {
        display: none !important;
    }

/* Question */
.hc-faq__question {
    display: block;
    padding-left: 44px;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 0%;
    color: #1D2433CC;
}

/* Plus / X icon */
.hc-faq__toggle-icon {
    position: absolute;
    left: 16px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #212529;
}

.hc-faq__toggle-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    /* رنگ آیکن */
    background-color: #212529;
    /* تنظیمات mask */
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100% 100%;
}

/* حالت بسته: plus */
.hc-faq__button.collapsed .hc-faq__toggle-icon {
    -webkit-mask-image: url("/site/images/icons/faq-plus.svg");
    mask-image: url("/site/images/icons/faq-plus.svg");
}

/* حالت باز: close (×) */
.hc-faq__button:not(.collapsed) .hc-faq__toggle-icon {
    -webkit-mask-image: url("/site/images/icons/faq-close.svg");
    mask-image: url("/site/images/icons/faq-close.svg");
}

/* Body */
.hc-faq__body {
    padding: 18px 22px 10px 22px;
    line-height: 2.05;
    color: #4F4F4F;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0%;
}

    .hc-faq__body img {
        max-width: 100%;
        height: auto;
    }

/* Footer */
.hc-faq__footer {
    padding: 14px 22px 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #f1f3f5;
}

/* actions */
.hc-faq__actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.hc-faq__icon-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

    .hc-faq__icon-btn img {
        width: 20px;
        height: 20px;
    }

.hc-faq__survey[data-disabled="true"] .toggle-icon {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.hc-faq__login-hint {
    opacity: 0.6;
    font-size: 12px;
    color: #4F4F4F;
}

/* Answer button (optional) */
.hc-faq__answer-btn {
    border: 1px solid #e9ecef;
    background: #fff;
    border-radius: 4px;
    padding: 8px 16px 8px 24px;
    color: #4F4F4F;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
}

    .hc-faq__answer-btn img {
        width: 16px;
        height: 16px;
    }

/* Mobile */
@media (max-width: 576px) {
    .hc-faq__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hc-faq__actions {
        justify-content: flex-end;
    }
}
.hc-faq__survey img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hc-faq__survey[data-disabled="true"] img {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.hc-faq .copy-btn.is-copied {
    transform: scale(1.08);
    transition: transform 0.15s ease;
}
.hc-faq__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px 0;
}

.hc-faq__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #131313;
    font-style: SemiBold;
    leading-trim: NONE;
    line-height: 100%;
}
.hc-faq__headerbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px 0;
}

.hc-faq__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #131313;
}

.hc-faq__view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #2166AE;
    white-space: nowrap;
}

.hc-faq__view-all-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: url("/site/images/icons/arrow-line-left.svg");
    mask-image: url("/site/images/icons/arrow-line-left.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
