/*!*******************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./blocks/testimonial-block/frontend.css ***!
  \*******************************************************************************************************************************************************************************************/
/**
 * Testimonial Lightbox Styles
 */

/* Lightbox Container */
.testimonial-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.testimonial-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.testimonial-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

/* Content */
.testimonial-lightbox .lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.testimonial-lightbox-inner {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.testimonial-lightbox-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}

.testimonial-lightbox-stars img {
    flex-shrink: 0;
}

.testimonial-lightbox-quote {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 24px 0;
    font-style: italic;
}

.testimonial-lightbox-author {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    font-style: normal;
    margin-top: 16px;
}

/* Close Button */
.testimonial-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-lightbox .lightbox-close:hover,
.testimonial-lightbox .lightbox-close:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    outline: none;
}

.testimonial-lightbox .lightbox-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Navigation Buttons */
.testimonial-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-lightbox .lightbox-prev {
    left: 20px;
}

.testimonial-lightbox .lightbox-next {
    right: 20px;
}

.testimonial-lightbox .lightbox-nav:hover,
.testimonial-lightbox .lightbox-nav:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.testimonial-lightbox .lightbox-nav:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.testimonial-lightbox .lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Counter */
.testimonial-lightbox .lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonial-lightbox .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .testimonial-lightbox .lightbox-prev {
        left: 10px;
    }

    .testimonial-lightbox .lightbox-next {
        right: 10px;
    }

    .testimonial-lightbox .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .testimonial-lightbox-inner {
        padding: 24px;
    }

    .testimonial-lightbox-quote {
        font-size: 1.25rem;
    }

    .testimonial-lightbox-author {
        font-size: 1.125rem;
    }
}

/**
 * Testimonial Carousel Styles
 */

/* Simple CSS-only fade animation */
.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Ensure first slide is visible on initial load (before JS runs) */
.testimonial-slide:first-child.active,
.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.testimonial-carousel {
    outline: none;
}

.testimonial-carousel:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.testimonial-nav-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.testimonial-nav-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.testimonial-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fixed height for testimonial content area */
.testimonial-figure {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* Quote area is always the same height (4 lines) */
.testimonial-quote-wrap {
    position: relative;
    min-height: 6em;
    /* 4 lines * 1.5 line-height = 6em for consistent height */
    height: 6em;
    /* Fixed height to ensure same height regardless of content */
    display: block;
    overflow: visible;
    /* Changed from hidden to visible so button isn't clipped */
    margin: 0;
}

/* Limit text to 4 lines.
 * Full text remains in HTML for SEO, but CSS hides overflow after 4 lines.
 */
.testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    word-break: break-word;
    margin: 0;
    padding-right: 0;
    /* Ensure no padding that would push button */
}

/* "Read all" (lightbulb trigger) only shows when JS detects truncation */
.testimonial-readall {
    display: none !important;
    /* Hidden by default */
    position: absolute;
    right: 0;
    bottom: 8;
    padding: 0.5rem 0.5rem;
    background: var(--wp--preset--color--accent, transparent);
    color: var(--wp--preset--color--primary, currentColor);
    font-weight: 500;
    text-decoration: underline;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    z-index: 10;
    /* Ensure it's above the text */
    white-space: nowrap;
}

/* Show button when slide is marked as truncated by JavaScript */
.testimonial-slide.is-truncated .testimonial-readall {
    display: inline-block !important;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Hide navigation buttons when only one testimonial */
.testimonial-lightbox .lightbox-nav.hidden {
    display: none;
}

/*# sourceMappingURL=frontend.css.map*/