.loom-customer-reviews-section {
    padding: 25px 0 !important;
    background-color: #fff !important;
    border-top: 1px solid #eee !important;
    display: block !important;
    width: 100% !important;
}

.loom-customer-reviews-section *, 
.loom-customer-reviews-section *::before, 
.loom-customer-reviews-section *::after {
    box-sizing: border-box !important;
}

.loom-customer-reviews-section .customer-reviews-header {
    margin-bottom: 25px !important;
    text-align: center !important;
}

.loom-customer-reviews-section .cr-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    display: block !important;
}

.loom-customer-reviews-section .customer-reviews-grid {
    display: block !important; /* Switch to column-count */
    column-count: 4 !important;
    column-gap: 6px !important;
    width: 100% !important;
    padding: 0 6px !important;
}

.loom-customer-reviews-section .cr-card {
    background: #fff !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid #ddd !important;
    display: inline-block !important; /* Required for column masonry */
    width: 100% !important;
    break-inside: avoid !important; /* Prevent card from breaking across columns */
    margin-bottom: 6px !important; /* Space between cards in same column */
    box-sizing: border-box !important;
}

.cr-card-content {
    padding: 2px !important;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.cr-review-image {
    margin-bottom: 2px;
    border-radius: 2px;
    overflow: hidden;
    border: none !important;
}

.cr-review-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cr-stars {
    margin-bottom: 2px;
    display: inline-flex;
    justify-content: center;
    gap: 1px;
}

.cr-stars div {
    width: 18px !important;
    height: 18px !important;
}

.cr-stars div svg {
    width: 10px !important;
    height: 10px !important;
}

.cr-card-text {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
    padding: 0 2px;
}

.cr-card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
}

.cr-name {
    color: #000;
    margin-bottom: 0px;
}

.cr-verified {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.cr-verified svg {
    width: 14px !important;
    height: 14px !important;
}

/* Tablet */
@media (max-width: 991px) {
    .loom-customer-reviews-section .customer-reviews-grid {
        column-count: 2 !important;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .loom-customer-reviews-section {
        padding: 20px 0 10px !important;
    }
    
    .loom-customer-reviews-section .cr-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .loom-customer-reviews-section .customer-reviews-header {
        margin-bottom: 15px !important;
    }

    .loom-customer-reviews-section .customer-reviews-grid {
        column-count: 2 !important;
        gap: 4px !important;
        padding: 0 4px !important;
    }

    .loom-customer-reviews-section .cr-card {
        border-radius: 4px !important;
        margin-bottom: 4px !important;
    }
    
    .loom-customer-reviews-section .cr-card-content {
        padding: 4px !important;
    }
    
    .cr-card-text {
        font-size: 8px !important;
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
        padding: 0 1px !important;
    }
    
    .cr-name, 
    .cr-verified {
        font-size: 7px !important;
    }

    .cr-stars div {
        width: 12px !important;
        height: 12px !important;
    }

    .cr-stars div svg {
        width: 8px !important;
        height: 8px !important;
    }
}
