/* ===== Shopee-like card feel ===== */
.rc-review-form .rc-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ===== BUYER REVIEWS LIST CARD ===== */
.rc-review-card {
    background: #fff;
    border: 1px solid var(--rc-border, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
}

.rc-review-card:hover {
    border-color: var(--rc-primary, #1b3c53);
    box-shadow: 0 4px 12px rgba(27, 60, 83, 0.1);
    transform: translateY(-2px);
}

.rc-review-card:active {
    transform: translateY(0);
}

/* Left thumbnail */
.rc-review-card__left {
    flex-shrink: 0;
}

.rc-review-card__left img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
}

/* Body content */
.rc-review-card__body {
    flex: 1;
    min-width: 0;
}

.rc-review-card__body strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rc-review-card__meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.rc-review-card__meta b {
    color: #333;
    font-weight: 700;
}

/* Action button */
.rc-review-card__action {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .rc-review-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .rc-review-card__left {
        align-self: flex-start;
    }

    .rc-review-card__left img {
        width: 60px;
        height: 60px;
    }

    .rc-review-card__action {
        align-self: flex-end;
    }
}

.rc-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-title {
    font-size: 15px;
    line-height: 1.25;
}

/* Bundle breakdown - SCOPED hanya untuk review form */
.rc-review-form .bundle-breakdown {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 90px;
    overflow: auto;
    padding-right: 4px;
    width: 100%;
    overflow-wrap: break-word;
}

.rc-review-form .bundle-breakdown li {
    font-size: 12.5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
    background: #fcfcfc;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rc-review-form .bundle-breakdown li span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .rc-review-form .bundle-breakdown li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .rc-review-form .bundle-breakdown li span:first-child {
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
    }

    .rc-review-form .bundle-breakdown li span.text-muted {
        align-self: flex-end;
        font-size: 11px;
    }
}

/* ===== Star rating (Shopee-ish) ===== */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    /* penting buat selector ~ */
    gap: 6px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #dcdcdc;
    /* default abu */
    transition:
        transform 0.12s ease,
        color 0.12s ease;
    user-select: none;
}

/* hover fill */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffb300;
    transform: translateY(-1px);
}

/* checked fill */
.star-rating input:checked ~ label {
    color: #ffb300;
}

.rc-textarea {
    border-radius: 12px;
    resize: vertical;
    min-height: 110px;
}

.rc-btn-submit {
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

/* Anonymous checkbox - better mobile spacing */
.rc-anonymous-check {
    gap: 12px;
    padding: 8px 0;
}

.rc-anonymous-check .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    margin-top: 0;
    margin-left: 0 !important;
}

.rc-anonymous-check .form-check-label {
    font-size: 14px;
    line-height: 1.5;
    padding-left: 10px;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

@media (max-width: 576px) {
    .rc-anonymous-check {
        padding: 14px 16px;
        background: #fafafa;
        border-radius: 10px;
        border: 1px solid #eee;
        gap: 14px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .rc-anonymous-check .form-check-input {
        width: 1.4rem;
        height: 1.4rem;
        margin-left: 0 !important;
        flex-shrink: 0;
    }

    .rc-anonymous-check .form-check-label {
        font-size: 15px;
        padding-left: 12px;
        width: 100%;
    }
}

/* Desktop refinement */
@media (min-width: 992px) {
    .rc-thumb {
        width: 84px;
        height: 84px;
    }

    .rc-title {
        font-size: 16px;
    }

    .star-rating label {
        font-size: 30px;
    }
}
.rc-review-card {
    cursor: pointer;
}

.rc-review-card:focus {
    outline: none;
    border-color: var(--rc-primary, #1b3c53);
    box-shadow: 0 0 0 3px rgba(27, 60, 83, 0.15);
}
/* =========================================================
   RC BADGE (Tailwind-like) - Scoped untuk halaman review
   ========================================================= */
.rc-review-card .rc-badge,
.rc-review-form .rc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Neutral / Gray */
.rc-review-card .rc-badge--gray,
.rc-review-form .rc-badge--gray {
    background: #f9fafb;
    color: #4b5563;
    border-color: rgba(75, 85, 99, 0.15);
}

/* Red */
.rc-review-card .rc-badge--red,
.rc-review-form .rc-badge--red {
    background: #fef2f2;
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.2);
}

/* Yellow */
.rc-review-card .rc-badge--yellow,
.rc-review-form .rc-badge--yellow {
    background: #fffbeb;
    color: #92400e;
    border-color: rgba(146, 64, 14, 0.25);
}

/* Green */
.rc-review-card .rc-badge--green,
.rc-review-form .rc-badge--green {
    background: #f0fdf4;
    color: #15803d;
    border-color: rgba(21, 128, 61, 0.25);
}

/* Blue */
.rc-review-card .rc-badge--blue,
.rc-review-form .rc-badge--blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.25);
}

/* Indigo */
.rc-review-card .rc-badge--indigo,
.rc-review-form .rc-badge--indigo {
    background: #eef2ff;
    color: #4338ca;
    border-color: rgba(67, 56, 202, 0.25);
}

/* Purple */
.rc-review-card .rc-badge--purple,
.rc-review-form .rc-badge--purple {
    background: #faf5ff;
    color: #6b21a8;
    border-color: rgba(107, 33, 168, 0.25);
}

/* Pink */
.rc-review-card .rc-badge--pink,
.rc-review-form .rc-badge--pink {
    background: #fdf2f8;
    color: #9d174d;
    border-color: rgba(157, 23, 77, 0.25);
}

.rc-review-card .rc-badge--sub,
.rc-review-form .rc-badge--sub {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    opacity: 0.9;
}
/* =========================================================
   Review Action Button (Minimal)
   ========================================================= */
.rc-review-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.15s ease;
}

/* Write review */
.rc-review-action--write {
    color: var(--rc-primary, #1b3c53);
    background: rgba(27, 60, 83, 0.06);
    border: 1px solid rgba(27, 60, 83, 0.18);
}

.rc-review-action--write:hover {
    background: rgba(27, 60, 83, 0.12);
    border-color: rgba(27, 60, 83, 0.35);
    transform: translateY(-1px);
}

/* Done */
.rc-review-action--done {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid rgba(21, 128, 61, 0.25);
    cursor: default;
}

.rc-review-action i {
    font-size: 16px;
}
