.pq-wrap {
    margin: 0;
    font-family: inherit;
    overflow: hidden;
}
.pq-title {
    font-size: 20px;
    margin-bottom: 16px;
}
.pq-count {
    color: #999;
    font-weight: normal;
    font-size: 16px;
}
.pq-sort {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}
.pq-sort-btn {
    color: #666;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
}
.pq-sort-btn.active {
    color: #333;
    background: #f0f0f0;
    font-weight: 600;
}
.pq-item {
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}
.pq-question {
    margin-bottom: 8px;
}
.pq-author {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.pq-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.pq-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.pq-question .pq-text {
    font-size: 18px;
    font-weight: 600;
}
.pq-actions {
    display: flex;
    gap: 12px;
}
.pq-wrap .pq-like-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: none !important;
    border: 1px solid #ddd !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    line-height: 1 !important;
    color: #666 !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
}
.pq-wrap .pq-like-btn:hover {
    border-color: #4a90d9;
    color: #4a90d9;
}
.pq-wrap .pq-like-btn.liked {
    border-color: #4a90d9 !important;
    color: #4a90d9 !important;
    background: #f0f6ff !important;
}
.pq-answers {
    margin-left: 32px;
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid #e0e0e0;
}
.pq-answer {
    padding: 10px 12px;
    border-radius: 6px;
    background: #f9f9f9;
    margin-bottom: 8px;
}
.pq-answer:last-child {
    margin-bottom: 0;
}
.pq-admin-answer {
    background: #f2faf2;
    border-left: 3px solid #4caf50;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
}
.pq-verified-answer {
    background: #f0f6ff;
    border-left: 3px solid #4a90d9;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
}
.pq-badge {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: normal;
}
.pq-verified-badge {
    display: inline-block;
    background: #4a90d9;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: normal;
}
.pq-answer-toggle {
    margin-top: 8px;
    text-align: right;
}
.pq-answer-toggle-btn {
    color: #4a90d9;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.pq-answer-toggle-btn:hover {
    text-decoration: underline;
}
.pq-answer-form-wrap {
    margin-top: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}
.pq-answer-form-wrap textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}
.pq-empty {
    color: #999;
    padding: 20px 0;
}
.pq-load-more {
    text-align: center;
    padding: 16px 0;
}
.pq-load-more-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}
.pq-load-more-btn:hover {
    background: #eee;
}
.pq-form-wrap {
    margin-top: 24px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}
.pq-form-wrap h3 {
    margin: 0 0 8px;
    font-size: 16px;
}
.pq-form-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}
.pq-field {
    margin-bottom: 12px;
}
.pq-field input[type="text"],
.pq-field input[type="email"],
.pq-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.pq-field textarea {
    resize: vertical;
}
.pq-wrap .pq-submit-btn {
    display: inline-block !important;
    background: #4a90d9 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
}
.pq-wrap .pq-submit-btn:hover {
    background: #3a7bc8;
}
.pq-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}
.pq-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}
.pq-message.error {
    background: #fce4ec;
    color: #c62828;
}
.pq-login-hint {
    color: #999;
    font-style: italic;
}

/* Подсветка нового вопроса/ответа */
@keyframes pq-highlight {
    0%   { background-color: #fff9c4; }
    100% { background-color: transparent; }
}
.pq-item.pq-highlighted {
    animation: pq-highlight 2.5s ease-out forwards;
    border-radius: 8px;
}
.pq-answer.pq-highlighted {
    animation: pq-highlight 2.5s ease-out forwards;
}

/* Метка «На модерации» */
.pq-pending-badge {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: normal;
    border: 1px solid #ffcc80;
}

/* Pending-вопрос — полупрозрачный */
.pq-item.pq-pending {
    opacity: 0.75;
}

/* Pending-ответ — стиль как обычный, но с оранжевой левой границей */
.pq-answer.pq-pending-answer {
    background: #fff9f0;
    border-left: 3px solid #ffb74d;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
    opacity: 0.75;
}

/* Мобильная адаптация — 760px (основной брейкпоинт темы) */
@media (max-width: 760px) {
    .pq-wrap {
        margin: 0;
    }
    .pq-title {
        font-size: 18px;
    }
    .pq-answers {
        margin-left: 16px;
        padding-left: 10px;
    }
    .pq-form-wrap {
        padding: 14px;
    }
    .pq-answer-form-wrap {
        padding: 10px;
    }
}

/* Мобильная адаптация — 500px */
@media (max-width: 500px) {
    .pq-answer-toggle-btn {
        font-size: 11px;
    }
    .pq-form-hint {
        font-size: 12px;
    }
    .pq-answers {
        margin-left: 8px;
        padding-left: 8px;
    }
    .pq-author {
        font-size: 13px;
    }
    .pq-badge,
    .pq-verified-badge,
    .pq-pending-badge {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        width: fit-content;
    }
    .pq-wrap .pq-submit-btn {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .pq-form-wrap {
        padding: 12px;
    }
    .pq-answer-form-wrap {
        padding: 8px;
    }
    .pq-sort {
        gap: 8px;
    }
}
