/* --------------------------------------------------------------------------
 * ShopChill Review Component
 * Shared review card styles (Product Detail / My Reviews)
 * -------------------------------------------------------------------------- */
.sc-review-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    padding: 16px;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.sc-review-card.has-edit-action {
    padding-right: 132px;
}

.sc-review-card * {
    box-sizing: border-box;
}

.sc-review-card:hover {
    border-color: #cfe2ff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
}

.sc-review-product {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sc-review-product-thumb,
.sc-review-user-avatar {
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid #edf0f2;
}

.sc-review-product-thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 14px;
    display: block;
}

.sc-review-product-link,
.sc-review-product-thumb-link {
    color: inherit;
    text-decoration: none !important;
}

.sc-review-product-link:hover .sc-review-product-title {
    color: #0061d9;
}

.sc-review-product-title {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    word-break: break-word;
}

.sc-review-meta,
.sc-review-date {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.sc-review-date {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 8px;
}

.sc-review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sc-review-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    flex: 0 0 42px;
}

.sc-review-user-name {
    color: #111827;
    font-weight: 700;
    line-height: 1.4;
}

.sc-review-anonymous-label {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0061d9;
    border: 1px solid #cfe2ff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}

.sc-review-rating {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 14px;
}

.sc-review-comment {
    color: #374151;
    line-height: 1.65;
    margin-top: 10px;
    white-space: pre-line;
    word-break: break-word;
}

.sc-review-media-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sc-review-media-thumb {
    position: relative;
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    align-items: center;
    justify-content: center;
    color: #0061d9;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.sc-review-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-review-media-thumb:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(17, 24, 39, .10);
}

.sc-review-media-thumb:focus-visible {
    outline: 2px solid #0061d9;
    outline-offset: 2px;
}

.sc-review-video-thumb {
    border-color: #dbeafe;
    background: #eff6ff;
}

.sc-review-video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .075);
}

.sc-review-video-play {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .94);
    color: #0061d9;
    box-shadow: 0 4px 12px rgba(17, 24, 39, .18);
    font-size: 12px;
}

.sc-review-preview {
    display: none;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
    animation: sc-review-fade-in .15s ease;
}

.sc-review-preview.is-visible {
    display: block;
}

.sc-review-preview-image,
.sc-review-preview-video {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #111827;
}

.sc-review-preview-image {
    object-fit: contain;
}

.sc-review-actions {
    position: absolute;
    top: 16px;
    right: 16px;
}

@keyframes sc-review-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .sc-review-product {
        display: block;
    }

    .sc-review-product-thumb {
        margin-bottom: 12px;
    }

    .sc-review-card.has-edit-action {
        padding-right: 16px;
        padding-top: 16px;
    }

    .sc-review-actions {
        top: 14px;
        right: 14px;
    }

    .sc-review-actions .btn {
        padding: 4px 10px;
        font-size: 12px;
        line-height: 1.4;
        border-radius: 999px;
        background: #ffffff;
    }

    .sc-review-card.has-edit-action .sc-review-product-main,
    .sc-review-card.has-edit-action .sc-review-user {
        padding-right: 92px;
    }
}
.sc-review-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.sc-review-reply {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #F6F7F9;
}

.sc-review-reply-avatar {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E8F3FF;
    color: var(--brand-primary, #0061D9);
    font-size: 13px;
}

.sc-review-reply-main {
    flex: 1;
    min-width: 0;
}

.sc-review-reply-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 3px;
}

.sc-review-reply-title {
    color: var(--brand-primary, #0061D9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.sc-review-reply-date {
    color: #9299A3;
    font-size: 11px;
    line-height: 1.4;
}

.sc-review-reply-content {
    color: #555D68;
    font-size: 14px;
    line-height: 1;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

@media (max-width: 575.98px) {
    .sc-review-reply {
        gap: 8px;
        padding: 10px;
        border-radius: 8px;
    }

    .sc-review-reply-avatar {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .sc-review-reply-content {
        font-size: 13px;
        line-height: 1.55;
    }
}

.sc-review-hidden-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 6px;
    background: #fff8e6;
    color: #8a5a00;
    font-size: 12px;
    line-height: 1.4;
}

.sc-review-hidden-notice > i {
    flex: 0 0 auto;
    font-size: 12px;
}

.sc-review-hidden-notice strong {
    font-weight: 600;
}

.sc-review-hidden-reason {
    color: #7a6a4f;
}