.spd-qa-wrapper {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.spd-qa-head {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    position: relative;
}

.spd-qa-head h4 {
    font-size: 19px;
    margin: 0 0 5px;
    border-bottom: 2px solid #005e96;
    display: inline-block;
    margin-bottom: -16px;
}

.spd-qa-sub {
    font-size: 12px;
    color: #81858b;
    margin: 10px 0 0;
}

.spd-qa-btn-ask {
    position: absolute;
    left: 0;
    top: 0;
    background: transparent;
    border: 1px solid #005e96;
    color: #005e96;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.spd-qa-btn-ask:hover {
    background: #005e96;
    color: #fff;
}

/* فرم‌ها */
.spd-qa-form-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.spd-qa-form-box textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    min-height: 80px;
    font-family: inherit;
}
.spd-qa-actions { margin-top: 10px; text-align: left; }
.spd-qa-submit {
    background: #005e96;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* لیست */
.spd-qa-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f1;
}
.qa-header { display: flex; gap: 10px; align-items: flex-start; }
.qa-icon-q {
    background: #19bfd3;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    flex-shrink: 0;
}
.qa-text { font-weight: 700; font-size: 15px; color: #3f4064; margin: 0 0 8px; }
.qa-meta { font-size: 12px; color: #a1a3b5; }
.qa-author { margin-right: 10px; position: relative; padding-right: 10px; }
.qa-author::before { content: '•'; position: absolute; right: 0; color: #ddd; }

/* پاسخ‌ها */
.qa-answers-list {
    margin-top: 15px;
    padding-right: 34px; /* ایندنت */
    border-right: 2px solid #f0f0f1;
}
.qa-answer-item { display: flex; gap: 10px; margin-bottom: 12px; }
.qa-icon-a { color: #a1a3b5; font-size: 20px; }
.qa-answer-body p { margin: 0; font-size: 14px; color: #555; line-height: 1.6; }
.qa-answer-meta { font-size: 11px; color: #999; margin-top: 4px; }

.qa-reply-btn {
    background: none;
    border: none;
    color: #19bfd3;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.qa-reply-btn:hover { color: #0c9fb0; }
.qa-reply-btn::before { content: '↩'; }

.spd-qa-load-more {
    background: none;
    border: none;
    color: #19bfd3;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .spd-qa-head { flex-direction: column; align-items: flex-start; }
    .spd-qa-btn-ask { position: static; margin-top: 10px; width: 100%; }
}
/* کانتینر اصلی ردیف پاسخ */
.qa-answer-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
}
.qa-answer-item:last-child {
    border-bottom: none;
}

.qa-icon-a {
    font-size: 20px;
    color: #a1a3b5;
    margin-top: 5px;
}

.qa-content-wrap {
    flex-grow: 1;
}

.qa-answer-body p {
    font-size: 14px;
    line-height: 1.8;
    color: #3f4064;
    margin: 0 0 8px;
}

.qa-answer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #767790;
}

.badge-accepted {
    background-color: #f0f0f1;
    color: #3f4064;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* بخش رای‌گیری */
.spd-votes-container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* دکمه‌ها سمت چپ */
    gap: 15px;
    margin-top: 10px;
}

.qa-helpful-label {
    font-size: 12px;
    color: #767790;
}

.spd-vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #a1a3b5;
    font-size: 14px;
    font-weight: 700; /* فونت ضخیم برای عدد */
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.spd-vote-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* هاور */
.spd-vote-btn:not(.voted-disabled):hover {
    color: #3f4064;
}

/* حالت فعال (سبز برای لایک) */
.spd-like-answer.voted-success {
    color: #00a049;
}
.spd-like-answer.voted-success svg {
    stroke: #00a049;
    fill: #e6ffe6;
}

/* حالت فعال (قرمز برای دیس‌لایک) */
.spd-dislike-answer.voted-success {
    color: #005e96;
}
.spd-dislike-answer.voted-success svg {
    stroke: #005e96;
    fill: #ffe6e6;
}

/* وقتی کاربر رای داده، دکمه‌ها غیرفعال شوند */
.spd-vote-btn.voted-disabled {
    cursor: default;
    opacity: 0.7;
}

