/* =========================================
   LOTTIE LIVE PREVIEW SECTION
========================================= */

/* INNER LAYOUT */
.weblodge-lottie-preview-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

/* =========================================
   LEFT
========================================= */

.weblodge-lottie-preview-left {
    width: 50%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Layout only - heading style from global .wla-big-text
   (the span keeps its cyan from the global file) */
.weblodge-lottie-preview-left h2 {
    margin: 0 0 20px;
    text-align: center;
}

/* Layout only - text style from global .wla-description-text */
.weblodge-lottie-preview-left p {
    text-align: center;
    margin: 0 0 30px;
}

.weblodge-lottie-preview-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

/* Layout only - chip text style from global .wla-card-description-text */
.weblodge-lottie-preview-item {
    padding: 14px 18px;
    border-radius: 14px !important;
    box-sizing: border-box;
    text-align: center;
}

/* =========================================
   RIGHT
========================================= */

.weblodge-lottie-preview-right {
    width: 50%;
    position: relative;
    z-index: 2;
}

.weblodge-lottie-preview-card {
    width: 100%;
    height: 520px;
    position: relative;
    box-sizing: border-box;
}

/* =========================================
   UPLOAD AREA
========================================= */

.weblodge-lottie-upload-area {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
}

.weblodge-lottie-upload-area input {
    display: none;
}

.weblodge-lottie-upload-content {
    text-align: center;
    padding: 30px;
}

.weblodge-lottie-upload-icon {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.weblodge-lottie-upload-icon dotlottie-wc {
    width: 80px;
    height: 80px;
    display: block;
}

/* Layout only - title style from global .wla-subtittle-text */
.weblodge-lottie-upload-content h3 {
    margin: 0 0 10px;
}

/* Layout only - text style from global .wla-description-text */
.weblodge-lottie-upload-content p {
    margin: 0;
}

/* =========================================
   PLAYER
========================================= */

.weblodge-lottie-player-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 95px);
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    transition: background 0.3s ease;
}

.weblodge-lottie-player-wrap canvas,
.weblodge-lottie-player-wrap dotlottie-player {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* =========================================
   BOTTOM BAR
========================================= */

.weblodge-bottom-bar {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.weblodge-bottom-bar.active {
    opacity: 1;
    pointer-events: auto;
}

/* CONTROLS */
.weblodge-lottie-controls {
    width: auto;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 12px;
    border-radius: 18px !important;
    box-sizing: border-box;
}

/* BUTTONS */
.weblodge-lottie-controls button {
    height: 40px;
    outline: none;
    border-radius: 12px !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.weblodge-lottie-controls button:hover,
.weblodge-upload-new-btn:hover {
    color: #fff;
    transform: none;
}

.weblodge-play-pause-btn,
.weblodge-speed-btn {
    width: 90px !important;
    height: 40px;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.weblodge-theme-btn {
    width: 110px !important;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* The theme button's text now comes from global .wla-card-description-text;
   Upload new keeps its own size here */
.weblodge-upload-new-btn {
    outline: none;
    border-radius: 12px !important;
    color: #fff;
    cursor: pointer;
    width: 110px !important;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 400;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .weblodge-lottie-preview-inner {
        gap: 40px;
    }

    /* Heading and text sizes now come from the global file */

    .weblodge-lottie-preview-item {
        padding: 14px 10px;
    }

    .weblodge-lottie-preview-card {
        height: 420px;
    }

    /* Upload title and text sizes now come from the global file */

    .weblodge-speed-btn,
    .weblodge-play-pause-btn {
        width: 70px !important;
        font-size: 15px;
    }

    .weblodge-theme-btn {
        width: 100px !important;
    }

    .weblodge-upload-new-btn {
        width: 100px !important;
        font-size: 15px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .weblodge-lottie-preview-inner {
        flex-direction: column;
        gap: 30px;
    }

    .weblodge-lottie-preview-left,
    .weblodge-lottie-preview-right {
        width: 100%;
    }

    /* Heading and text sizes now come from the global file */

    .weblodge-lottie-preview-item {
        padding: 14px 2px;
    }

    .weblodge-lottie-preview-card {
        height: 320px;
    }

    /* Upload title and text sizes now come from the global file */

    .weblodge-bottom-bar {
        width: calc(100% - 16px);
    }

    .weblodge-lottie-controls {
        gap: 8px;
        padding: 0 10px;
        height: 52px;
    }

    .weblodge-speed-btn,
    .weblodge-play-pause-btn {
        width: 60px !important;
        font-size: 14px;
    }

    .weblodge-theme-btn {
        width: 90px !important;
    }

    .weblodge-upload-new-btn {
        width: 90px !important;
        font-size: 14px;
    }

}