﻿.chatButton {
    position: relative;
    margin-bottom: 1em;
    margin-right: 1em;
    /*padding: 1em;*/
    padding: 10px 10px 5px 10px;
    border: 0;
    border-radius: 50%;
    box-shadow: 3px 6px 13px -6px;
    cursor: pointer;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

    .chatButton:hover {
        box-shadow: 6px 12px 26px -6px;
        filter: opacity(0.9);
    }

.chatButtonOpen {
    -webkit-animation: scale-down-right 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: scale-down-right 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    opacity: 1;
    display: none;
}

.chatButtonClose {
    -webkit-animation: scale-up-right 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: scale-up-right 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    opacity: 1;
}

.pendingMessageBadge {
    position: absolute;
    right: -10px;
    top: 0px;
    background: #c51919;
    text-align: center;
    border-radius: 30px 30px 30px 30px;
    color: white;
    padding: 5px 10px;
    font-size: 20px;
}

.pendingMessageBadgeHide {
    display: none;
}

.webChatFrameStyle {
    /*height: 40rem;

        width: 538px;
    */
    width: 0px;
    box-shadow: 3px 6px 13px -6px;
    border-radius: 6px;
    border: 0;
    margin: 0.5em;
    display: block;
    opacity: 0;
}




@media only screen and (max-height: 870px) {
    .webChatFrameStyle {
        height: 98vh;
    }

    .chatButton {
        padding: 0.8em;
    }

    .webChatButtonIcon {
        width: 1.5em;
    }
}





.hideWebChatFrame {
    -webkit-animation: scale-down-right 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: scale-down-right 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    opacity: 1;
}

.displayWebChatFrame {
    width: 538px;
    -webkit-animation: scale-up-right 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: scale-up-right 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    opacity: 1;
    height: 60vh;
}


.displayWebChatFrameLoad {
    width: 538px;
    opacity: 1;
    height: 60vh;
}



.reloaded {
    opacity: 1;
}

.webChatContainer {
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex;
    align-Items: end;
    z-index: 5000;
    height: 0em;
}

.webChatButtonIcon {
    filter: invert(0.8);
}

@-webkit-keyframes scale-down-right {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }

    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }
}

@keyframes scale-down-right {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }

    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }
}

@-webkit-keyframes scale-up-right {
    0% {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }
}

@keyframes scale-up-right {
    0% {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: 90% 100%;
        transform-origin: 90% 100%;
    }
}

@media only screen and (max-width: 580px) {
    .webChatFrameStyle {
        width: 410px;
    }
}


@media only screen and (max-width: 390px) {
    .webChatFrameStyle {
        width: 375px;
    }
}

@media only screen and (max-width: 376px) {
    .webChatFrameStyle {
        width: 100vw;
    }
}

@media only screen and (max-height: 580px) {

    .chatButton {
        padding: 0.5em;
    }

    .webChatButtonIcon {
        width: 1em;
    }
}

@media only screen and (max-height:720px) {
    .webChatFrameStyle {
        height: 80vh;
        margin: 0em;
        width: 100vw;
    }
}

.keyboardActive {
    height: 111vi !important;
}

.hideWebChatFrameLoad {
    opacity: 0;
    width: 0 !important;
}
