@import url("all.min.css");

/*
 * @author: Open Reply srl
 * @version   v20180928
*/


@keyframes msg_dissolve_animation {
    0% {
        opacity: 1;
    }

    20%,
    50% {
        opacity: 0;
        transform: translate(15px);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes msg_dissolve_animation_reverse {
    0% {
        opacity: 0;
    }

    20%,
    50% {
        opacity: 1;
        transform: translate(-15px);
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes icon_dissolve_animation {
    0% {
        opacity: 1;
    }

    20%,
    50% {
        opacity: 0;
        transform: translate(-15px);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes icon_dissolve_animation_reverse {
    0% {
        opacity: 0;
    }

    20%,
    50% {
        opacity: 1;
        transform: translate(15px);
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

#cb_div_button {
    width: auto;
    height: 100px;
    position: fixed;
    z-index: 3;
    color: white;
    bottom: 0px;
    right: 74px;
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
    line-height: 0;
    display: none;
}

#chatbotBalloonContainer {
    display: none;
    width: auto;
    max-width: 18em;
    height: auto;
    position: fixed;
    z-index: 3;
    background: #DFE4E7;
    bottom: 75px;
    right: 70px;
    min-height: 2em;
    min-width: 7.5em;
    border-radius: 20px;
    border: 2px solid #597DDA;
    cursor: pointer;
}


#chatbotBalloonContainer:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 30%;
    width: 29px;
    height: 18.5px;
    margin-left: -0.562em;
    margin-bottom: -1.125em;
    background-image: url(../images/triangle_balloon2.svg);
    background-size: contain;
    margin-right: 15px;
    background-repeat: no-repeat;
}

.cb_balloonText {
    margin: 1.5em 3em 1em 1em;
    color: rgb(39, 39, 39);
    font-family: "Open Sans","Arial",sans-serif;
    font-weight: bold;
    font-size: 14px;
}

.cb_balloon {}
#cb_closeBalloon-button_close {
    background: none;
    outline: none;
    position: absolute;
    right: 8px;
    top: 0px;
    opacity: 0.5;
}

#cb_closeBalloon-button_close:hover {
    opacity: 1;
}

/* #cb_closeBalloon-button_close::before {
    font-size: 1.2em;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    content: "\f00d";
    color: rgb(112, 112, 112);
}*/
#cb_closeBalloon-button_close::before, #cb_closeBalloon-button_close::after {
    position: absolute;
    content: ' ';
    height: 12px;
    width: 1.5px;
    background-color: rgb(0, 0, 0);
}

#cb_closeBalloon-button_close::before {
    transform: rotate(45deg);
}

#cb_closeBalloon-button_close::after {
    transform: rotate(-45deg);
}

.balloon_button_box {
    align-self: center;
}

.cb_closeBalloon-button {
    border-radius: 15px;
    width: 6%;
    height: 25px;
    border: none;
    background-color: #597DDA;
    color: white;
    margin: 0px 5px 0px 0px;
    cursor: pointer;
    text-align: center;
    align-items: center;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 15px;
}

.cb_closeBalloon-button:hover {
    background-color: rgb(199, 199, 199);
}

.mask {
    height: 55px;
    width: 190px;
    border: 1px solid #333333;

    background-color: #F9F9F9;
    box-shadow: 0 -8px 7px 0 rgba(0, 0, 0, 0.08);
}

.cb_button {
    width: 190px;
    background-color: #DFE4E7;
    cursor: pointer;
    border: 1px solid #FFFFFF;
    box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.18);
    -webkit-border-top-left-radius: 20px;
    -webkit-border-top-right-radius: 20px;
    -moz-border-radius-topleft: 20px;
    -moz-border-radius-topright: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: #FFFFFF;
    box-shadow: 10px 10px 20px rgba(164, 164, 164, 0.25);
    border-radius: 35px;
}

#.cb_button:hover {
#    background-color: #F3F9FC;
#}

.cb_iconOpen {
    background-image: url(../images/ariston.svg);
    background-repeat: no-repeat;
    height: 50px;
    width: 35px;
    background-position: center;
    background-size: contain;
    margin-left: 10px;
    float: left;
}

.cb_button_text {
    height: 100%;
    float: right;
    font-weight: 700;
    color: #333333;
    text-align: center;
    line-height: 14px;
    font-size: 13px;
    vertical-align: middle;
    margin-top: 21px;
    margin-bottom: 20px;
    margin-right: 24px;
    /* font-family: Proxima Nova; */
}

.cb_notify_text {
    height: 100%;
    float: right;
    font-weight: bold;
    color: #333333;
    text-align: center;
    line-height: 14px;
    font-size: 14px;
    font-family: Open Sans;
    vertical-align: middle;
    margin-top: 7px;
    /* margin-bottom: 20px; */
    margin-right: 35px;
    opacity: 0;
    position: absolute;
    right: -7px;
    line-height: 150%;
}

.cb_notify_icon {
    background-image: url(../images/chatbot_allert.svg);
    background-repeat: no-repeat;
    height: 55px;
    width: 38px;
    background-position: center;
    background-size: contain;
    margin-left: 11px;
    float: left;
    position: absolute;
    left: -7px;
    opacity: 0;
}

.msg_animated_element {
    animation-name: msg_dissolve_animation;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

.msg_animated_element_reverse {
    animation-name: msg_dissolve_animation_reverse;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}


.icon_animated_element {
    animation-name: icon_dissolve_animation;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

.icon_animated_element_reverse {
    animation-name: icon_dissolve_animation_reverse;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

#cb_notify {
    float: right;
    background: #dfdfdf;
    text-align: center;
    position: absolute;
    top: 15px;
    left: calc(100% - 25px);
    /* display: none; */
}

.cb_unread {
    float: right;
    margin: -27px -22px -50px 1px;
    line-height: 30px;
    padding: 0 10px;
    border-radius: 30px;
    /* border: 2px solid #fff; */
    -moz-border-radius: 30px;
    -webkit-border-radius: 305px;
    /* background: red; */
    background: url(../images/Oval_number_messagge_red.svg);
    background-repeat: no-repeat;
    background-position: -7px -5px;
    color: #fff;
    text-align: center;
    font-family: "Open Sans", "Arial", sans-serif;
}

#cb_div_chatbot_frame {
    position: absolute;
    display: none;
    /* right: 50px; */
    top: 50%;
    left: 50%;
    /* border: 0px; */
    width: 100%;
    transform: translate(-50%, -50%);
    height: 90%;
    /* max-height: 90%; */
    /* bottom: 34px; */
    z-index: 4;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.4);
    border-radius: 30px 30px 30px 30px;
    border: 0px;
    /* width: 951px; */
    max-width: 75%;
}

#cb_chatbot_frame {
    /* height: 648px; */
    border: 0px;
    bottom: 0px;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Small Devices, Tablets */
@media only screen and (max-width: 768px) {
    #cb_div_button {
        box-shadow: none;
        background: none;
        right: -130px;
        bottom: 70px;
    }

    .cb_button {
        border-top-left-radius: 20px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 20px;

    }

    #cb_div_button:hover {
        right: 0px;
    }

    .cb_button:hover {
        background-color: #DBDBDB;
    }

    #cb_div_chatbot_frame {
        /* background: #282828; */
        /* width: 100%; */
        overflow: hidden;
        max-width: 100%;
        height: 100%;
        /* max-height: 100%; */
        /* left: 0; */
        /* top: 0; */
        /* box-shadow: none; */
        border-radius: 0px 0px 0px 0px;
    }

    #chatbotBalloonContainer {
        max-width: 18em;
        bottom: 150px;
        right: 15px;
    }

    #chatbotBalloonContainer:after {
        left: 80%;
    }

    #cb_notify {
        left: -7px;
        top: 14px;
    }

}