/* V8.19.23 - Comentarios en formato conversación / hilo */

/* El contador no aporta valor visual y se elimina de la interfaz */
.comments-count,
.design-comments .comments-count {
    display: none !important;
}

.design-comments-threaded,
.design-comments {
    scroll-margin-top: 120px;
}

.design-comments .comments-header {
    align-items: flex-start !important;
    gap: 14px !important;
}

.design-comments .comments-intro {
    max-width: 720px;
    line-height: 1.55;
}

.design-comments .comments-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

/* Comentario principal */
.design-comments .comments-list > .comment-item:not(.reply-item) {
    background: #FFFDF8 !important;
    border: 1px solid rgba(17, 17, 17, .10) !important;
    border-radius: 18px !important;
    padding: 16px 18px 14px !important;
    box-shadow: 0 10px 24px rgba(17, 17, 17, .045) !important;
}

.comment-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 6px !important;
}

.comment-meta strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.comment-meta span {
    color: #6B7280 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.comment-text {
    white-space: pre-line !important;
    margin: 0 0 8px !important;
    line-height: 1.45 !important;
}

/* Respuestas: quedan justo debajo del comentario respondido, con sangría clara */
.comment-replies {
    margin: 10px 0 8px 28px !important;
    padding-left: 18px !important;
    border-left: 3px solid #E8A93A !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.comment-replies .reply-item,
.reply-item {
    background: #FFF8EA !important;
    border: 1px solid rgba(232, 169, 58, .35) !important;
    border-radius: 14px !important;
    padding: 11px 13px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.reply-item .comment-meta {
    margin-bottom: 4px !important;
}

.reply-item .comment-meta::before {
    content: "↳ Respuesta";
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(232, 169, 58, .20);
    color: #9A6400;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-right: 2px;
}

/* Botón/formulario de responder más discreto */
.reply-details {
    margin-top: 4px !important;
}

.reply-details summary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    color: #B77900 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    padding: 4px 0 !important;
    list-style: none !important;
}

.reply-details summary::-webkit-details-marker {
    display: none !important;
}

.reply-details summary::before {
    content: "↳";
    font-weight: 950;
}

.comment-reply-form {
    margin-top: 8px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: #FAF7F0 !important;
    border: 1px solid rgba(17, 17, 17, .08) !important;
}

.comment-reply-form textarea {
    min-height: 72px !important;
}

.comment-reply-actions {
    gap: 10px !important;
}

/* En móvil, mantener sangría pero no perder ancho */
@media (max-width: 720px) {
    .comment-meta {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .comment-replies {
        margin-left: 12px !important;
        padding-left: 12px !important;
    }
}
