.rvm {
    --rvm-bg: rgba(0, 149, 212, 0.05);
    --rvm-brand: #EF1A65;
    --rvm-bar-empty: #eaeaea;
    --rvm-border: #eaeaea;
    --rvm-text: #333333;
    --rvm-blue: #0095d4;
    --rvm-gap: 20px;

    max-width: 1200px;
    margin: auto;
    font-family: "Nunito Sans", sans-serif;
    color: var(--rvm-text);
}

.rvm__heading {
    font-size: 45px;
    font-weight: 900;
    font-family: "Nunito", sans-serif;
    margin-bottom: 20px;
    text-align: left;
    color: #0095D4;
}

/* --- New Summary Box Section --- */
.rvm__summary-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 80px;
    padding: 40px;
    background-color: var(--rvm-bg);
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 0 #00000021;
}

.rvm__distribution {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 300px;
}

.rvm__rating-row {
    display: grid;
    grid-template-columns: 35px 1fr 30px;
    align-items: center;
    gap: 12px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    color: inherit;
}

.rvm__row-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--rvm-blue);
}

.rvm__bar {
    height: 4px;
    background: var(--rvm-bar-empty);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.rvm__bar span {
    display: block;
    height: 100%;
    background: var(--rvm-blue);
    border-radius: 4px;
}

.rvm__row-count {
    font-size: 14px;
    color: var(--rvm-blue);
    text-align: right;
}

.rvm__average-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rvm__average-score {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    color: var(--rvm-blue);
}

.rvm__average-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rvm__stars-container {
    display: flex;
    gap: 2px;
}

.rvm__average-text {
    font-size: 13px;
    color: #666;
}

/* --- New Controls Section --- */
.rvm__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    font-size: 14px;
}

.rvm__controls-left,
.rvm__controls-right {
    display: flex;
    gap: 15px;
}

.rvm__controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.rvm__controls select {
    padding: 6px 12px;
    border: 1px solid var(--rvm-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    padding: 14px 14px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.rvm__status {
    min-height: 1.5em;
}

/* --- Grid & Card Section --- */
.rvm__grid {
    columns: 3 280px;
    column-gap: var(--rvm-gap);
}

.rvm-card {
    break-inside: avoid;
    background-color: white;
    border: none;
    border-radius: 4px;
    padding: 24px;
    margin: 0 0 var(--rvm-gap);
    display: inline-block;
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid #0082b9;
    box-shadow: 2.66px 5.32px 5.32px 0px #00000040;
    box-sizing: border-box;
    transition: .4s ease-in-out all;
}

.rvm-card:hover {
    transform: translateY(-12px);
}

.rvm__load:hover {
    background-color: white;
    color: #EF1A65 !important;
}

.rvm__load_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rvm-card__product {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 13px;
}

.rvm-card__product a {
    color: var(--rvm-blue);
    text-decoration: none;
}

.rvm-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rvm-card__stars {
    display: flex;
    gap: 2px;
}

.rvm-card__meta time {
    font-size: medium;
    color: #777;
}

.rvm-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    color: var(--rvm-text);
}

.rvm-card__content {
    margin-bottom: 16px;
}

.rvm-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--rvm-text);
    max-height: 8.4em;
    overflow: hidden;
}

.rvm-card__text p {
    margin: 0 0 10px;
}

.rvm-card__text p:last-child {
    margin-bottom: 0;
}

.rvm-card__text.is-open {
    max-height: none;
}

.rvm-card__more {
    display: inline-block;
    padding: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--rvm-blue);
    cursor: pointer;
}

.rvm-card__more:hover{
    color: unset;
}

.rvm-card__media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 12px 0;
}

.rvm-card__media img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.rvm-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.rvm-card__separator {
    color: #999;
    font-size: 12px;
}

.rvm-card__author-name {
    font-weight: 600;
}

.rvm-card__verified {
    display: flex;
    align-items: center;
    color: var(--rvm-text);
    font-size: 12px;
}

.rvm-card__helpful {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 12px;
    color: #777;
}

.rvm-card__helpful-text {
    font-size: medium; 
}

.rvm-card__helpful-votes {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.rvm-card__vote {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.rvm-card__divider {
    border: none;
    border-top: 2px solid rgba(0, 149, 212, 0.05); 
    margin: 16px 0 0 0;
    width: 100%;
}

/* --- Mobile Breakpoints --- */
@media(max-width:650px) {
    .rvm__summary-box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }

    .rvm__grid {
        columns: 1;
    }

    .rvm__controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rvm__controls-left,
    .rvm__controls-right {
        width: 100%;
        justify-content: space-between;
    }

    .rvm__controls label {
        justify-content: space-between;
        width: 100%;
    }
}