/**
 * Theme Name:     Hello Elementor Child
 * Author:         Elementor Team
 * Template:       hello-elementor
 * Text Domain:	   hello-elementor-child
 * Description:    Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
 */
/* Common popup content */
.acf-elementor-popup-content {
    width: 100%;
}

.acf-elementor-popup-title,
.acf-elementor-popup-description,
.acf-elementor-popup-description .elementor-widget-container {
    margin: 0;
}

/* ================================
   Scroll Popup Content
   ================================ */

.acf-elementor-popup-content--scroll {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    color: #ffffff;
    overflow: hidden;
}

.acf-elementor-popup-content--scroll .acf-elementor-popup-title {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.acf-elementor-popup-content--scroll .acf-elementor-popup-description {
    position: relative;
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #ffffff;
    overflow: hidden;
}

.acf-elementor-popup-content--scroll .acf-elementor-popup-description::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-50%);
    z-index: 2;
}

.acf-elementor-popup-content--scroll .acf-elementor-popup-description .elementor-widget-container {
    margin: 0;
    overflow: hidden;
}

.acf-elementor-popup-content--scroll .acf-popup-marquee {
    width: 100%;
    overflow: hidden;
}

.acf-elementor-popup-content--scroll .acf-popup-marquee__track {
    display: flex;
    width: max-content;
    animation: acf-popup-marquee-scroll 10s linear infinite;
}

.acf-elementor-popup-content--scroll .acf-popup-marquee__item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 100vw;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
}

.acf-elementor-popup-content--scroll .acf-popup-marquee__item p {
    display: inline;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
}

.acf-elementor-popup-content--scroll .acf-popup-marquee__item::after {
    content: "";
    display: inline-block;
    width: calc(100vw + 200px);
}

.acf-elementor-popup-content--scroll .acf-elementor-popup-description:hover .acf-popup-marquee__track {
    animation-play-state: paused;
}

@keyframes acf-popup-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ================================
   Splash Popup Content
   ================================ */

.acf-elementor-popup-content--splash {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acf-elementor-popup-content--splash .acf-elementor-popup-title {
    margin: 0;
}

.acf-elementor-popup-content--splash .acf-elementor-popup-description {
    margin: 0;
}

.acf-elementor-popup-content--splash .acf-elementor-popup-description p {
    margin-bottom: 0;
}

/* Mobile adjustment for scroll popup */
@media (max-width: 767px) {
    .acf-elementor-popup-content--scroll {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .acf-elementor-popup-content--scroll .acf-elementor-popup-title {
        white-space: normal;
    }

    .acf-elementor-popup-content--scroll .acf-elementor-popup-description {
        font-size: 15px;
        gap: 0;
    }

    .acf-elementor-popup-content--scroll .acf-elementor-popup-description::before {
        display: none;
    }
}