/* =========================================================
   REVIEWS
   Arquivo: public/assets/cliente/css/reviews.css
   ========================================================= */

/* =========================================================
   PÁGINA
   ========================================================= */
.store-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* =========================================================
   CARD
   ========================================================= */
.store-reviews-card {
    padding: 12px;
}

.store-reviews-card-main {
    display: block;
    min-width: 0;
}

.store-reviews-card-body {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-reviews-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.store-reviews-card-head {
    min-width: 0;
}

.store-reviews-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: #222;
}

.store-reviews-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.store-reviews-card-order {
    color: #444;
    font-weight: 800;
    text-transform: uppercase;
}

.store-reviews-card-date {
    color: #777;
    font-weight: 700;
}

.store-reviews-card-score {
    margin: 0;
    white-space: nowrap;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    color: #df1f26;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    align-self: start;
    justify-self: end;
    text-align: right;
}

.store-reviews-card-score i {
    font-size: 14px;
}

.store-reviews-card-text {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
    white-space: normal;
    display: block;
    overflow: visible;
    min-height: 0;
}

/* =========================================================
   RESPOSTA DA LOJA
   ========================================================= */
.store-review-reply-card {
    margin-top: 2px;
    border: 1px solid #e1e1e1;
    background: #f9f9f9;
    border-radius: 16px;
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-review-reply-card__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.store-review-reply-card__text {
    margin: 0;
    color: #333;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 700;
    white-space: pre-line;
    word-break: break-word;
}

.store-review-reply-card__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2px;
}

.store-review-reply-card__date {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* =========================================================
   PAGINAÇÃO
   ========================================================= */
.store-reviews-pagination {
    margin-top: 16px;
}

.store-reviews-pagination .pagination {
    margin: 0;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 640px) {
    .store-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-reviews-card-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
    }

    .store-reviews-card-title {
        font-size: 15px;
    }

    .store-reviews-card-meta {
        gap: 6px;
        font-size: 11px;
    }

    .store-reviews-card-score {
        font-size: 18px;
        justify-self: end;
        align-self: start;
        text-align: right;
        white-space: nowrap;
    }

    .store-reviews-card-text,
    .store-review-reply-card__text {
        font-size: 12px;
    }

    .store-review-reply-card {
        border-radius: 14px;
        padding: 11px 12px;
    }

    .store-review-reply-card__footer {
        justify-content: flex-end;
    }

    .store-review-reply-card__date {
        text-align: right;
        white-space: nowrap;
    }
}