.pw-spqa-main-body{
	border-top: 1px solid #e0e0e2;
	padding: 1rem 0;
}
.pw-sp-question-body .pw-spq-text {
    font-weight: bold;
    color: #212121;
    font-size: 1rem;
    line-height: 28px;
    margin-bottom: 1.5rem;
}
.pw-sp-answers-container{
	margin-bottom:1rem;
}
.pw-sp-answers-container .pw-sp-answers-body{
	margin-bottom:2rem;
}
.pw-sp-answers-body .pw-spa-avatar{
    width: 40px;
    height: 40px;
    border-radius: 20px;
}
.pw-sp-answers-body .pw-spa-avatar img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 20px;
}
.pw-sp-answers-body .pw-spa-userinfo {
    color: #424242;
    font-weight: 700;
    font-size: 0.75rem;
}
.pw-sp-answers-body .pw-spa-text{
	color: #5c5c5c;
    font-size: 1rem;
    font-weight: 400;
	line-height: 28px;
}
.pw-sp-answers-body .pw-spa-date{
    color: #94969c;
    font-size: 0.85rem;
}
.pw-spqa-main-body .pw-answer-btn {
    color: #1672dd;
    font-weight: bold;
    font-size: 0.8rem;
}
.pw-all-questions-answers-btn {
    background-color: #f2f2f2;
    color: #424750;
    border-radius: 16px;
    font-size: 0.8rem;
    padding: 4px 10px;
}

/* ============================================
   پرسش و پاسخ - استایل‌های اضافی
   ============================================ */

/* Character Counter */
.pw-char-counter {
    font-size: 12px;
    color: #6c757d;
    text-align: left;
    margin-top: 4px;
    direction: ltr;
}

/* Badges for user roles */
.pw-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    vertical-align: middle;
}

.pw-badge-seller {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.pw-badge-buyer {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

/* Question and Answer items */
.pw-spqa-main-body {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 0;
    transition: background-color 0.3s ease;
}

.pw-spqa-main-body:last-child {
    border-bottom: none;
}

.pw-spqa-main-body:hover {
    background-color: #f8f9fa;
}

.pw-sp-question-body {
    margin-bottom: 12px;
}

.pw-spq-text {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    line-height: 1.6;
}
/*
.pw-sp-answers-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}
*/
.pw-sp-answers-body {
    padding: 8px 0;
}

.pw-sp-answers-body:not(:last-child) {
    border-bottom: 1px dashed #dee2e6;
    margin-bottom: 8px;
}

.pw-spa-avatar img {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pw-spa-userinfo {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.pw-spa-text {
    font-size: 14px;
    color: #212529;
    line-height: 1.6;
}

.pw-spa-date {
    font-size: 12px;
    color: #868e96;
}

.pw-answer-btn-wrapper {
    margin-top: 8px;
}

.pw-answer-btn {
    color: #dc3545;
    font-size: 13px;
    padding: 4px 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.pw-answer-btn:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Load More Buttons */
.pw-load-more-answers-wrapper {
    margin-top: 8px;
}

.pw-load-more-answers-btn {
    color: #6c757d;
    font-size: 13px;
    border: 1px dashed #dee2e6;
    border-radius: 6px;
    padding: 6px 16px;
    background: transparent;
    transition: all 0.3s ease;
}

.pw-load-more-answers-btn:hover {
    color: #dc3545;
    border-color: #dc3545;
    background-color: #fff;
}

.pw-more-answers-container {
    margin-top: 8px;
}

.pw-load-more-questions-wrapper {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

#pw-load-more-questions {
    border-radius: 24px;
    padding: 10px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#pw-load-more-questions:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Empty states */
.pw-no-questions,
.pw-no-answers {
    text-align: center;
    padding: 24px;
    color: #868e96;
    font-size: 14px;
}

/* Modal Enhancements */
#pw-modal-question-display {
    border-radius: 8px;
    font-size: 14px;
    background-color: #e7f3ff;
    border-color: #b6d4fe;
    color: #084298;
}

#pw-modal-question-text {
    font-weight: normal;
}

/* Sticky summary on desktop */
.pw-spqa-summary {
    top: 20px;
    padding: 20px 0;
    text-align: center;
}

.pw-caption {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 767px) {
    .pw-sp-answers-container {
        padding: 8px;
    }
    
    .pw-spqa-main-body {
        padding: 12px 0;
    }
    
    .pw-spq-text {
        font-size: 14px;
    }
    
    .pw-spa-text {
        font-size: 13px;
    }
}

/* Animation for loading */
@keyframes pw-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pw-spqa-main-body.new-item {
    animation: pw-fadeIn 0.3s ease-out;
}

/* Mobile sticky add question button */
.pw-mobile-add-question {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

@media (min-width: 768px) {
    .pw-mobile-add-question {
        display: none;
    }
}
