﻿@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Open+Sans:wght@300;700&display=swap");

.ngage_chat_frame_widget {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    bottom: 15px;
    right: 15px;
    top: calc(100% - max(60%, 500px) - 85px);
    left: calc(100% - max(20%, 450px) - 15px);
    padding: 0;
    transition-property: top, left, bottom, right;
    transition-duration: .75s;
    color: black;
    z-index: 2147483647;
}

.ngage_chat_frame_container_wrapper {
    display: flex;
    flex-grow: 1;
    width: 100%;
    flex-wrap: wrap-reverse;
}

.ngage_chat_frame_container {
    box-shadow: 7px 17px 30px 3px rgb(0 0 0 / 20%);
    margin-bottom: 15px;
    border-radius: 15px 15px 15px 15px;
    z-index: 100000;
    flex-flow: column;
    width: 100%;
    transition-property: height, visibility;
    transition-duration: .3s;
    transition-timing-function: linear;
    display: flex;
    height: 30%;
    visibility: hidden;
    min-height: 200px;
}

.ngage_chat_frame_container:after {
    content: "";
    position: absolute;
    bottom: 64px;
    right: 60px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 20px solid transparent;
    border-top: 22px solid white;
    transform: skew(43deg);
}

.ngage_chat_frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 0 15px 15px;
}

.ngage_chat_invite {
    position: fixed;
    bottom: 20px;
    height: 100px;
    width: 100px;
}

.ngage_chat_frame_header {
    color: #ffffff;
    background-color: #383838;
    background-image: linear-gradient(to top, rgba(4, 8, 0, 0.34) 0%, #383838 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
    width: auto;
}

.ngage_chat_frame_body {
    width: 100%;
    height: 100%;
    border-top: 0;
    border-radius: 0 0 15px 15px;
}

.ngage_chat_title {
    display: flex;
}

.ngage_chat_agent {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
    line-height: 24px;
    -webkit-text-size-adjust: 100%;
}

.ngage_chat_avatar {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    margin: 0 10px 0 0;
    object-fit: cover;
    object-position: center center;
}

.ngage_chat_frame_footer {
    color: #ffffff;
    background-color: #383838;
    background-image: linear-gradient(to top, rgba(4, 8, 0, 0.34) 0%, #383838 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.ngage_chat_button_container {
    width: 70px;
    height: 70px;
    cursor: pointer;
    align-self: flex-end;
    margin-top: auto;
}

.ngage_chat_button_unread {
    color: #000;
    background-color: #fff;
    height: 20px;
    width: 20px;
    z-index: 100010;
    border-radius: 50%;
    font-size: .7em;
    font-weight: bold;
    font-family: "Proxima Nova Rg Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
    align-content: center;
    line-height: 20px;
    text-align: center;
    position: absolute;
    right: 0;
    border: 1px solid #000;
    display: none;
}

.ngage_chat_button {
    width: 70px;
    height: 70px;
    background-image: url("/Images/chat-icon-white.png");
    background-repeat: no-repeat;
    background-position: center;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background-color: #383838;
    box-shadow: 0 5px 17px 5px rgb(0 0 0 / 20%);
    z-index: 100000;
    cursor: pointer;
}

.ngage_chat_frame_controls {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
}

.ngage_chat_header_button {
    height: 25px;
    width: 25px;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    align-content: center;
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
}

.ngage_chat_popout {
    background-image: url("/Images/icon-popup-white.png");
}

.ngage_chat_min {
    background-image: url("/Images/icon-minimize-white.png");
}

.ngage_chat_close {
    background-image: url("/Images/icon-close-white.png");
}

.ngage_chat_frame_widget[data-side=left] {
    bottom: 15px;
    left: 15px;
    top: calc(100% - max(60%, 500px) - 85px);
    right: calc(100% - max(20%, 450px) - 15px);
}

.ngage_chat_frame_widget[data-side=left] .ngage_chat_button_container {
    align-self: flex-start;
}

.ngage_chat_frame_widget[data-side=left] .ngage_chat_frame_container:after {
    left: 60px;
    right: auto;
    transform: skew(346deg);
}

@keyframes ngage_chat_button_wiggle {
    0% { transform: rotate(0deg); }
    80% { transform: rotate(0deg); }
    85% { transform: rotate(10deg); }
    95% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes ngage_chat_frame_animation {
    from {
        visibility: hidden;
        height: 30%;
    }

    to {
        visibility: visible;
        height: 100%;
    }
}

@media (max-width: 850px) {
    .ngage_chat_frame_widget, .ngage_chat_frame_widget[data-side=left] {
        bottom: 15px;
        right: 15px;
        top: 15px;
        left: 15px;
    }

    .ngage_chat_frame_container {
        margin-bottom: 0;
    }

    .ngage_chat_frame_container:after {
        display: none;
    }

    .ngage_chat_button_container {
        position: fixed;
        bottom: 15px;
        right: 15px;
    }

    .ngage_chat_frame_widget[data-side=left] .ngage_chat_button_container {
        left: 15px;
        right: auto;
    }
}