/* Minimal structural styles only. Existing site styles can continue to target the old testimonial classes. */

.lb-testimonials-widget {
    position: relative;
}

.lb-testimonials-widget .testimonial-popup-source {
    display: none !important;
}

body.testimonial-popup-open {
    overflow: hidden;
}

.lb-testimonials-widget .testimonial-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.lb-testimonials-widget .testimonial-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lb-testimonials-widget .testimonial-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.lb-testimonials-widget .testimonial-popup-dialog {
    position: relative;
    z-index: 2;
    width: min(1000px, calc(100% - 48px));
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #fff;
    padding: 32px;
    transform: translateY(24px);
    transition: transform .3s ease;
}

.lb-testimonials-widget .testimonial-popup.is-open .testimonial-popup-dialog {
    transform: translateY(0);
}

.lb-testimonials-widget .testimonial-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
	z-index: 9;
}

.lb-testimonials-widget .testimonial-popup-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
}

.lb-testimonials-widget .testimonial-popup-customer .customer-logo {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .lb-testimonials-widget .testimonial-popup-dialog {
        width: calc(100% - 30px);
        max-height: calc(100vh - 30px);
        padding: 52px 24px 30px;
    }

    .lb-testimonials-widget .testimonial-popup-customer {
        align-items: flex-start;
        flex-direction: column;
    }
}
