/* Main Wrapper */
.edenred-testimonial-card-wrapper {
    width: 100%;
}

/* Card Styling */
.edenred-testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 44px 48px !important;
    /* Force padding */
    /* Matches SCSS */
    box-shadow: 5px 5px 40px rgba(0, 0, 0, 0.1);
    /* Matches SCSS */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.testimonial-card-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    /* Push to bottom if text doesn't fill space, though text has flex-grow so it acts similarly */
}

/* Quote Icon */
.testimonial-quote-icon {
    margin-bottom: 30px !important;
    /* Force spacing */
    /* Matches SCSS */
}

.testimonial-quote-icon svg {
    display: block;
    width: 40px;
    /* Scaled down slightly or kept as SVG default */
    height: auto;
    margin: 0 !important;
    /* Reset any theme margin on SVG itself */
}

/* Content */
.testimonial-content-text {
    font-size: 20px !important;
    line-height: 1.6;
    color: #0F172A !important;
    /* Default text color */
    font-style: italic;
    /* Matches SCSS */
    margin-bottom: 30px !important;
    flex-grow: 1;
}

.testimonial-content-text p {
    margin: 0 !important;
    text-align: center;
}

/* Ensure no CSS separator is added by theme styles */
.testimonial-content .name::before,
.testimonial-name::before {
    display: none !important;
    content: none !important;
}

/* Separator */
.testimonial-separator {
    margin-bottom: 20px !important;
    /* Reduced to bring logo closer */
    line-height: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.testimonial-separator svg {
    display: block;
    margin: 0 !important;
    /* Reset theme margin */
}

/* Logo */
.testimonial-logo {
    margin-bottom: 15px !important;
    /* Reduced to bring text closer */
}

/* 
   We include a high-specificity selector to override the aggressive 
   .edenred-mobile-carousel.carousel-initialized .swiper-slide img 
   rules that force height: auto !important.
*/
.edenred-mobile-carousel.carousel-initialized .swiper-slide .edenred-testimonial-card .testimonial-logo img,
.edenred-testimonial-card .testimonial-logo img,
.testimonial-logo img {
    max-width: 100% !important;
    width: auto !important;
    /* Allow width to adjust to maintain aspect ratio with fixed height */
    height: 70px !important;
    /* Force height */
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Author */
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-name {
    font-weight: 700;
    font-size: 20px;
    /* Matches SCSS */
    line-height: 32px;
    color: #000;
    margin: 0 0 5px;
}

.testimonial-company {
    font-size: 14px;
    color: #94A3B8;
    /* Matches SCSS */
    margin: 0;
    font-style: normal !important;
}

/* Responsive */
@media (max-width: 768px) {
    .edenred-testimonial-card {
        padding: 30px 20px;
    }

    .swiper-testimonial-carousel .swiper-slide {
        width: 100% !important;
        /* Force single column on mobile if needed, but JS controls slidesPerView */
    }
}