﻿.custom-cta-build:not(.active) {
    display: none;
}

.custom-cta__close button {
    appearance: none;
    padding: 0;
    border: none;
    outline: none;
    background-color: transparent;
    position: absolute;
    z-index: 99;
    top: 10px;
    right: 10px;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.custom-cta {
    background-size: cover;
    background-repeat: no-repeat;
}

    .custom-cta:not([data-type*='announcement']) .custom-cta__close button {
        top: 30px;
        right: 30px;
    }

.custom-cta__close button svg {
    width: 1rem;
    height: 1rem;
}

[data-type='popup'] {
    max-height: 80vh !important;
    max-width: 80vw;
    overflow: scroll;
    background-color: var(--light-color);
    padding: 60px;
    position: relative;
}

.custom-cta .custom-cta__image {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 70%;
    margin: 0 auto;
}

.custom-cta__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-cta:not([data-type='popup']) {
    position: fixed;
    transition: all .5s ease-in-out;
    z-index: 99999;
}

.custom-cta.active:not([data-type='popup']) {
    transform: translate(0);
}

.custom-cta[data-type*='slide'],
.custom-cta[data-type='announcement_bottom'] {
    bottom: 0;
}

.custom-cta.background-size--contain .custom-cta__image img {
    object-fit: contain;
}

.custom-cta[data-type*='announcement'] {
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .custom-cta[data-type*='announcement'] .custom-cta__inner {
        left: 0;
        width: 100%;
        margin: 0 auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 30px;
    }

    .custom-cta[data-type*='announcement'] .custom-cta__close svg path {
        fill: white;
    }

    .custom-cta[data-type*='announcement'] .custom-cta__image {
        max-height: 60px;
    }

    .custom-cta[data-type*='announcement'] .custom-cta__content {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        max-width: 1160px;
        margin: 0 auto;
        padding: 0 30px;
    }

        .custom-cta[data-type*='announcement'] .custom-cta__content * {
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            color: white;
        }

            .custom-cta[data-type*='announcement'] .custom-cta__content *:nth-child(2) {
                font-size: 1rem;
            }

            .custom-cta[data-type*='announcement'] .custom-cta__content *:first-child {
                font-size: 1.2em;
                margin-right: 1rem;
            }

.custom-cta[data-type='announcement_bottom'] {
    transform: translateY(100%);
}

.custom-cta[data-type='announcement_top'] {
    top: 100px;
    transform: translateY(-350%);
}

.custom-cta[data-type='slide_in_left'] {
    left: 0;
    transform: translateX(-100%);
}

.custom-cta[data-type='slide_in_right'] {
    right: 0;
    transform: translateX(100%);
}

.custom-cta.cta--centered .custom-cta__inner {
    padding: 140px 30px 30px 30px;
}

.custom-cta.cta--centered .custom-cta__content * {
    display: block;
    text-align: center;
}

    .custom-cta.cta--centered .custom-cta__content *:first-child {
        font-size: 1.3rem;
        font-weight: bold;
    }

    .custom-cta.cta--centered .custom-cta__content *:last-child {
        font-size: 1rem;
        margin-bottom: 30px;
    }

.custom-cta.cta--centered {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    max-width: 600px !important;
    width: 100% !important;
}

    .custom-cta.cta--centered .hs-cta-wrapper a {
        display: block;
        text-align: center;
    }

@media screen and (max-width: 767px) {
    [data-type='popup'] {
        padding: 30px;
    }
}

body > [aria-describedby="signup_form"] {
    z-index: 2;
}