/**
 * Chart Info with Animations component styles
 *
 * @package MBM_Theme
 * @since 1.0.0
 */

.chart-info-with-animations {
    position: relative;
    padding: 5rem 0 6.2rem;
    overflow: hidden;
}

.chart-info-with-animations__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 0.95fr) minmax(200px, 0.95fr) minmax(250px, 0.95fr);
    gap: clamp(1.2rem, 3vw, 2.6rem);
    align-items: center;
    /* transform: translateX(-54px); */
}

.chart-info-with-animations.grid-template-1fr-1fr .chart-info-with-animations__layout {
    grid-template-columns: 1fr 1fr;
}

.chart-info-with-animations__left {
    position: relative;
    z-index: 2;
    color: var(--la-white);
}

.chart-info-with-animations__title {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
    font-size: clamp(1.75rem, 2vw, 2rem);
    color: var(--la-gold-40);
}

.chart-info-with-animations__text {
    line-height: 1.45;
}

.chart-info-with-animations__text p {
    margin-top: 0;
}

.chart-info-with-animations__text p:last-child {
    margin-bottom: 0;
}

.chart-info-with-animations__cta {
    margin-top: 1.4rem;
}

.chart-info-with-animations__middle,
.chart-info-with-animations__right {
    position: relative;
    z-index: 3;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-info-with-animations__middle {
    /* mix-blend-mode: screen; */
    transform: translateX(-28px);
}

.chart-info-with-animations__middle:empty {
    display: none;
    min-height: 0;
}

.chart-info-with-animations__slot {
    width: 100%;
    height: 100%;
    min-height: 440px;
}

.chart-info-with-animations__slot--flight-card {
    max-width: 340px;
}

.chart-info-with-animations__slot--globe {
    max-width: none;
    overflow: visible;
}

.chart-info-with-animations__right {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    width: min(64vw, 940px);
    min-height: 560px;
    height: 128%;
    z-index: 1;
    pointer-events: none;
}

.chart-info-with-animations__mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.chart-info-with-animations__mask svg {
    display: block;
    width: 100%;
    height: 86px;
}

.chart-info-with-animations__mask path {
    fill: #f8f8ff;
}


.mas-bg-cream .chart-info-with-animations__mask path {
    fill: #fefdf9;
}

@media (max-width: 991px) {
    .chart-info-with-animations {
        padding: 4rem 0 5.3rem;
    }

    .chart-info-with-animations__layout {
        grid-template-columns: 1fr;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: clamp(3.2rem, 3vw, 2.6rem);
    }

    .chart-info-with-animations.is-without-middle .chart-info-with-animations__layout {
        gap: 1.25rem;
    }

    .chart-info-with-animations__middle,
    .chart-info-with-animations__slot {
        min-height: 320px;
    }

    .chart-info-with-animations__middle {
        transform: none;
    }

    .chart-info-with-animations__middle:empty {
        display: none;
        min-height: 0;
    }

    .chart-info-with-animations__right {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: auto;
        min-height: 320px;
        z-index: 1;

        top: -100px;
        height: 600px;
    }

    .chart-info-with-animations.is-without-middle .chart-info-with-animations__right {
        top: 0;
        height: auto;
        min-height: 0;
    }

    .chart-info-with-animations__slot--globe {
        max-width: 100%;
    }

    .chart-info-with-animations .container {
        padding-left: 0;
        padding-right: 0;
    }

    .chart-info-with-animations {
        padding: 4rem 0 2rem;
    }

    .chart-info-with-animations__left {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
