/* ═══════════════════════════════════════════════════════════════
   Reviews section dentro de cada bloco de categoria
   ═══════════════════════════════════════════════════════════════ */

.czup-reviews-card { padding: 16px 20px; }

.czup-reviews-header h3 { margin: 0 0 12px; font-size: 1.1rem; }

/* Owner note */
.czup-review-owner-note {
    padding: 12px;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9em;
}

/* Login prompt */
.czup-review-login-prompt {
    padding: 16px;
    text-align: center;
    background: rgba(21,101,192,0.06);
    border-radius: 10px;
    margin-bottom: 16px;
}
.czup-review-login-prompt p { margin: 0 0 10px; }

/* Form */
.czup-review-form {
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 16px;
}
.czup-review-form label { display: block; margin-bottom: 12px; }
.czup-review-form label > span { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9em; }
.czup-review-form textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}
.czup-review-atend-field {
    border: 0;
    padding: 0;
    margin: 0 0 12px;
}
.czup-review-atend-field legend { font-weight: 600; font-size: 0.9em; margin-bottom: 6px; }
.czup-review-atend-option { display: block; margin: 4px 0; cursor: pointer; }
.czup-review-atend-option input { margin-right: 6px; }
.czup-review-feedback {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
}
.czup-review-feedback.is-ok  { background: #d4edda; color: #155724; }
.czup-review-feedback.is-err { background: #f8d7da; color: #721c24; }

/* Empty state */
.czup-reviews-empty {
    padding: 24px;
    text-align: center;
    color: rgba(0,0,0,0.5);
}
.czup-reviews-empty p { margin: 0 0 6px; }

/* Card de review */
.czup-review-card {
    padding: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 0;
}
.czup-review-card:first-child { border-top: 0; }
.czup-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.czup-review-head img.avatar { border-radius: 50%; flex-shrink: 0; }
.czup-review-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.czup-review-author { font-size: 1em; }
.czup-review-atend-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    background: rgba(46,125,50,0.12);
    border: 1px solid rgba(46,125,50,0.25);
    border-radius: 999px;
    font-size: 0.78em;
    color: #2e7d32;
    font-weight: 600;
}
.czup-review-date { font-size: 0.8em; color: rgba(0,0,0,0.5); }
.czup-review-text { font-size: 0.95em; line-height: 1.5; margin: 8px 0; }
.czup-review-text p { margin: 0 0 8px; }
.czup-review-text p:last-child { margin-bottom: 0; }

/* Actions */
.czup-review-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.czup-review-actions button {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.15s;
}
.czup-review-actions button:hover:not(:disabled) {
    background: rgba(0,0,0,0.05);
}
.czup-review-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Upvote button */
.czup-review-upvote {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.czup-review-upvote.is-voted {
    background: #1565c0 !important;
    color: #fff !important;
    border-color: #1565c0 !important;
}
.czup-upvote-count { font-weight: 600; }

/* Delete button — destrutivo */
.czup-review-delete:hover:not(:disabled) {
    background: rgba(198,40,40,0.08) !important;
    border-color: #c62828 !important;
    color: #c62828 !important;
}

/* Replies aninhadas */
.czup-review-replies {
    margin-top: 12px;
    margin-left: 24px;
    padding-left: 12px;
    border-left: 3px solid rgba(21,101,192,0.2);
}
.czup-review-reply {
    padding: 10px;
    background: rgba(21,101,192,0.04);
    border-radius: 8px;
    margin-bottom: 8px;
}
.czup-review-reply-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.czup-badge-owner {
    display: inline-block;
    padding: 2px 8px;
    background: #1565c0;
    color: #fff;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
}
.czup-review-reply-text { font-size: 0.92em; line-height: 1.45; }
.czup-review-reply-text p { margin: 0; }

/* Mobile */
@media (max-width: 768px) {
    .czup-reviews-card { padding: 12px; }
    .czup-review-replies { margin-left: 8px; padding-left: 8px; }
}
