.cg-trustpilot-slider-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header styles */
.cg-trustpilot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.cg-trustpilot-logo img {
    height: 35px!important;
    width: auto!important;
    filter: brightness(1.03);
}

.cg-trustpilot-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cg-trustpilot-stars {
    display: flex;
    margin-bottom: 6px;
}

.cg-star {
    width: 24px;
    height: 24px;
    margin-right: 3px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.cg-star-filled {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300b67a"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

.cg-star-empty {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e5e5e5"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

.cg-trustpilot-avg {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Slider styles */
.cg-trustpilot-slider {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.cg-trustpilot-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.6s ease-in-out;
}

.cg-trustpilot-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Review card styles */
.cg-trustpilot-review-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cg-trustpilot-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.cg-trustpilot-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cg-trustpilot-reviewer {
    display: flex;
    align-items: center;
}

.cg-reviewer-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cg-reviewer-initials {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b67a, #009f6b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

.cg-reviewer-info {
    display: flex;
    flex-direction: column;
}

.cg-reviewer-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.cg-review-date {
    font-size: 13px;
    color: #888;
}

.cg-trustpilot-review-rating {
    display: flex;
}

.cg-trustpilot-review-content {
    margin-bottom: 18px;
}

.cg-trustpilot-review-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
}

.cg-trustpilot-review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.cg-trustpilot-review-footer {
    font-size: 13px;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* Controls styles */
.cg-trustpilot-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.cg-trustpilot-prev,
.cg-trustpilot-next {
    background-color: #00b67a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    margin: 0 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.3);
}

.cg-trustpilot-prev svg,
.cg-trustpilot-next svg {
    width: 20px;
    height: 20px;
}

.cg-trustpilot-prev:hover,
.cg-trustpilot-next:hover {
    background-color: #009f6b;
    transform: scale(1.05);
}

.cg-trustpilot-dots {
    display: flex;
    align-items: center;
}

.cg-trustpilot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-trustpilot-dot:hover {
    background-color: #bbb;
}

.cg-trustpilot-dot.active {
    background-color: #00b67a;
    transform: scale(1.2);
}

/* Counter styles */
.cg-trustpilot-counter {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cg-current {
    color: #00b67a;
    font-weight: 600;
}

/* Footer styles */
.cg-trustpilot-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
}

.cg-trustpilot-footer a {
    color: #00b67a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cg-trustpilot-footer a:hover {
    color: #009f6b;
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cg-trustpilot-slider-container {
        padding: 20px;
    }
    
    .cg-trustpilot-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cg-trustpilot-rating {
        align-items: flex-start;
        margin-top: 15px;
    }
    
    .cg-trustpilot-review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cg-trustpilot-review-rating {
        margin-top: 12px;
    }
    
    .cg-trustpilot-review-card {
        padding: 20px;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Fix for content cropping on mobile while maintaining slider */
    .cg-trustpilot-slider {
        min-height: 200px; /* Reduced minimum height */
        height: auto !important;
        overflow: hidden !important;
        position: relative;
    }
    
    .cg-trustpilot-slide {
        opacity: 0;
        visibility: hidden;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: auto !important;
        overflow: visible !important;
    }
    
    .cg-trustpilot-slide.active {
        opacity: 1;
        visibility: visible;
        position: relative !important;
        z-index: 5;
        height: auto !important;
        min-height: 100px;
    }
    
    .cg-trustpilot-review-content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 20px !important;
    }
    
    .cg-trustpilot-review-text {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .cg-trustpilot-review-footer {
        position: relative !important;
        bottom: auto !important;
        margin-top: 15px !important;
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    
    .cg-trustpilot-experience {
        display: block !important;
        visibility: visible !important;
    }
}