/* jivosite button substyle */

@media screen and (max-width: 512px) {
    .jivosite_custom_button {
        bottom: 14rem!important;
    }
}

.banner-wrap {
    position: fixed;
    bottom: 0;
    height: 12rem;
    width: 100%;
    z-index: -999;
    display: none;
    right: 0;
    overflow: visible;
    max-width: 25rem;
    transition: .3s;
    transform: translateY(18rem);
    overflow: hidden;
}
.banner-wrap.--disable {
    transform: translateY(18rem);
    display: none;
}
.banner-wrap.--active {
    display: none;
    transform: translateY(0);
}
.banner-picture, .banner-picture .main-layer picture {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
}
.banner-picture .main-layer, .banner-picture .main-layer picture, .banner-picture .main-layer picture img {
    display: flex;
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
}
.banner-picture .main-layer {
    max-width: 18rem;
    margin-bottom: -2rem;
}

.banner.canvas {
    display: flex;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    overflow: visible;
    max-width: 34rem;
    /*animation: canvas-slide-top .5s ease;*/
}
.banner.canvas a {
    display: flex;
    height: 4rem;
    width: 100%;
    position: absolute;
    right: 0;
    cursor: pointer;
    bottom: 0;
    z-index: 1;
}
.banner.canvas a:hover + .button-layer span {
    background: #4ab3ff;
}
jdiv {z-index: -1!important; opacity: 0}


@keyframes banner-pulse {
    0% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    65% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}


.button-layer {
    position: absolute;
    right: 12.9rem;
    bottom: 1rem;
    animation: opacity-btn 3.25s ease;
}
.button-layer span {
    display: flex;
    background: #008cff;
    padding: .75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: .15s;
    /*animation: banner-pulse 2s ease infinite;*/
}
.button-layer span:hover {
    background: #4ab3ff;
    color: white;
}

.banner-wrap button.close {
    position: absolute;
    z-index: 2;
    background: white;
    border: .2rem solid #008cff;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    top: 0;
    right: 1rem;
    border-radius: 1rem;
    padding: 0;
    animation: opacity-btn 3.25s ease;
    transition: .15s;
    opacity: 0;
}
.banner-wrap button.close:hover {
    background: #008cff;
}
.banner-wrap button.close:before, .banner-wrap button.close:after {
    content: "";
    position: absolute;
    top: .2rem;
    left: .75rem;
    height: 1.25rem;
    background-color: #008cff;
    width: .2rem;
    border-radius: .5rem;
}
.banner-wrap button.close:before {
    transform: rotate(45deg);
}
.banner-wrap button.close:after {
    transform: rotate(135deg);
}
.banner-wrap button.close:hover:before,
.banner-wrap button.close:hover:after {
    background: white;
}

@media screen and (max-width: 512px) {
    .banner-wrap.--active {
        max-width: none;
    }
    .banner-wrap {
        bottom: 52px;
        height: 8rem; 
    }
    .banner-picture, banner-picture .main-layer picture {
        max-height: 100%;
    }
    .banner-picture .main-layer {
        max-width: 10rem;
        margin-bottom: -1.2rem;
    }
    .banner.canvas a {
        max-width: none;
        width: 100%;
        height: 3rem;
    }
    .banner-wrap button.close {
        top: 0;
        width: 1.5rem;
        height: 1.5rem;
        right: .5rem;
        left: auto;
        border: .15rem solid #008cff;
    }
    .banner-wrap button.close:before, .banner-wrap button.close:after {
        top: .13rem;
        left: 0.55rem;
        height: 1rem;
        width: .15rem;
    }
    .button-layer span {
        padding: .35rem .7rem;
        font-size: .8rem;
    }
    .button-layer {
        right: 9rem;
        bottom: 1rem;
    }
    .banner-layer {
        right: 8rem;
        width: 11rem;
    }
}