/* Base Container */
.song4-trustpilot-reviews-container {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 20px;
}

/* --- Pure Carousel Layout --- */

.song4-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 50px; /* Space for shadows and arrows */
    box-sizing: border-box;
}

.song4-pure-carousel {
    display: flex;
    gap: 20px; /* Fixed gap */
    transition: transform 0.5s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.song4-carousel-item {
    /* 
       Calculation for 3 items visible:
       Total width = 100%
       Gaps visible = 2 (between 3 items)
       Available for items = 100% - (2 * 20px) = 100% - 40px
       Item width = (100% - 40px) / 3
    */
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    box-sizing: border-box;
    height: auto;
    display: flex; /* To make card fill height */
}

/* Mobile: 1 item visible */
@media (max-width: 768px) {
    .song4-carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Navigation Buttons */
.song4-carousel-prev, .song4-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    /* Default styles - overridden by Elementor controls */
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 18px;
    line-height: 1;
    color: #2c2c2c;
    transition: opacity 0.2s;
}

.song4-carousel-prev:hover, .song4-carousel-next:hover {
    opacity: 0.8;
}

.song4-carousel-prev {
    left: 5px;
}

.song4-carousel-next {
    right: 5px;
}

/* --- Card Styling (Preserved) --- */

.song4-tp-review-card {
    background: #fff;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #2c2c2c;
    display: flex;
    flex-direction: column;
    width: 100%; /* Fill the item container */
    height: 100%; /* Fill height */
}

/* --- Internal Elements Styling --- */

.song4-tp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.song4-tp-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: #fff5cc; /* Light yellow */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #2c2c2c;
    letter-spacing: 0.5px;
}

.song4-tp-user-info {
    display: flex;
    flex-direction: column;
}

.song4-tp-name {
    font-weight: 700;
    font-size: 14px;
    color: #2c2c2c;
    margin-bottom: 2px;
}

.song4-tp-meta {
    font-size: 12px;
    color: #737373;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.song4-tp-location {
    display: flex;
    align-items: center;
    gap: 2px;
}

.song4-tp-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 0 0 16px 0;
    display: none; 
}

.song4-tp-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.song4-tp-stars {
    display: flex;
}

.song4-tp-star-box {
    background-color: #00b67a; /* Trustpilot Green */
    color: white;
    padding: 0 6px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 2px;
}

.song4-tp-date {
    font-size: 12px;
    color: #737373;
}

.song4-tp-title {
    font-size: 16px!important;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #2c2c2c;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .song4-tp-title {
        font-size: 11px;
    }
}

.song4-tp-content {
    font-size: 14px;
    line-height: 1.5;
    color: #2c2c2c;
    margin-bottom: 16px;
    flex-grow: 1; /* Push footer down if height is fixed */
}

.song4-tp-experience-date {
    font-size: 12px;
    color: #2c2c2c;
    margin-top: auto; /* Align to bottom */
}

.song4-tp-experience-date strong {
    font-weight: 700;
}
