/**
 * [review_list] 리뷰 카드 리스트
 */

.rv-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.rv-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

.rv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rv-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #18181b;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.rv-card-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

.rv-card-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.rv-card-star {
    display: block;
}

.rv-card-star.is-on {
    fill: #facc15;
}

.rv-card-star.is-off {
    fill: #e5e7eb;
}

.rv-card-content {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.65;
    color: #27272a;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.rv-card-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.2s ease;
}

a.rv-card-product:hover,
a.rv-card-product:focus,
a.rv-card-product:active {
    background: #f4f4f5 !important;
    text-decoration: none !important;
    color: inherit !important;
}

.rv-card-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f5;
    flex-shrink: 0;
}

.rv-card-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rv-card-product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d8;
}

.rv-card-product-info {
    flex: 1;
    min-width: 0;
}

.rv-card-product-name {
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
    line-height: 1.35;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-card-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rv-card-discount {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
}

.rv-card-regular {
    font-size: 13px;
    color: #a1a1aa;
    text-decoration: line-through;
}

.rv-card-sale {
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
}

.rv-card-product-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a1a1aa;
}

@media (max-width: 768px) {
    .rv-card {
        padding: 16px;
        border-radius: 14px;
    }

    .rv-card-header {
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 4px;
        text-align: left !important;
    }

    .rv-card-name {
        text-align: left !important;
        align-self: flex-start !important;
        width: auto !important;
    }

    .rv-card-date {
        text-align: left !important;
        align-self: flex-start !important;
        white-space: normal;
    }

    .rv-card-stars {
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    .rv-card-content {
        font-size: 14px;
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .rv-card-name {
        font-size: 15px;
    }

    .rv-card-product-thumb {
        width: 48px;
        height: 48px;
    }
}
