.mrm-reviews-container.template5 {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: rgba(0, 0, 0, 0.87);
    background-color: #fafafa;
}

.template5 .mrm-reviews-header {
    background: linear-gradient(135deg, var(--mrm-primary-color), var(--mrm-secondary-color));
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    color: white;
}

.template5 .mrm-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.template5 .mrm-rating-summary {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.template5 .mrm-rating-score {
    text-align: center;
    min-width: 200px;
}

.template5 .mrm-score-number {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.template5 .mrm-rating-stars {
    margin: 0.5rem 0;
}

.template5 .mrm-rating-stars .star {
    color: rgba(255,255,255,0.3);
    font-size: 1.5rem;
}

.template5 .mrm-rating-stars .star.filled {
    color: #ffd700;
}

.template5 .mrm-total-reviews {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #fff;
}

.template5 .mrm-rating-distribution {
    flex-grow: 1;
}

.template5 .mrm-rating-row {
    display: flex;
    align-items: center;
    margin: 0.3rem 0;
}

.template5 .mrm-stars {
    width: 40px;
    text-align: right;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.template5 .mrm-bar-container {
    flex-grow: 1;
    background: rgba(255,255,255,0.2);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.template5 .mrm-bar {
    height: 100%;
    background: #ffd700;
    transition: width 0.3s ease;
}

.template5 .mrm-count {
    width: 40px;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.template5 .mrm-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .template5 .mrm-reviews-grid {
        grid-template-columns: repeat(var(--mrm-columns, 3), 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .template5 .mrm-reviews-grid {
        grid-template-columns: repeat(min(var(--mrm-columns, 3), 3), 1fr);
    }
}

@media (max-width: 768px) {
    .template5 .mrm-reviews-grid {
        grid-template-columns: repeat(min(var(--mrm-columns, 1), 1), 1fr);
    }
}

.template5 .mrm-review-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.template5 .mrm-review-card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.template5 .mrm-review-header {
    display: flex;
    justify-content: start;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.template5 .mrm-reviewer-info {
    display: flex;
    align-items: center;
}

.template5 .mrm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    margin-right: 1rem;
}

.template5 .mrm-reviewer-details {
    display: flex;
    flex-direction: column;
}

.template5 .mrm-reviewer-name {
    font-weight: 500;
    color: rgba(0,0,0,0.87);
}

.template5 .mrm-review-date {
    font-size: 0.8rem;
    color: rgba(0,0,0,0.54);
}

.template5 .mrm-review-rating .star {
    color: rgba(0,0,0,0.12);
    font-size: 1.2rem;
}

.template5 .mrm-review-rating .star.filled {
    color: #ffd700;
}

.template5 .mrm-review-content {
    color: rgba(0,0,0,0.87);
    line-height: 1.6;
    margin: 1rem 0;
}

.template5 .mrm-review-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.template5 .mrm-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.template5 .mrm-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template5 .mrm-image-wrapper:hover img {
    transform: scale(1.05);
}

.template5 .mrm-review-reply {
    margin-top: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
}

.template5 .mrm-reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.template5 .mrm-reply-icon {
    margin-right: 0.5rem;
    color: #1a73e8;
}

.template5 .mrm-reply-title {
    color: #1a73e8;
    font-weight: 500;
}

.template5 .mrm-reply-content {
    color: rgba(0,0,0,0.87);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .template5 .mrm-rating-summary {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .template5 .mrm-rating-score {
        min-width: auto;
    }
    
    .template5 .mrm-rating-row {
        justify-content: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template5 .mrm-review-card {
    animation: fadeIn 0.3s ease-out forwards;
}

.template5 .mrm-review-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    background-color: var(--mrm-primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.template5 .mrm-review-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.template5 .mrm-review-category i {
    font-size: 0.9em;
} 