﻿@import "bot-template.css";

#bot-frame {
    width: 400px;
    height: 600px;
}

#teobot-host {
    /* border: solid 1px #000; */
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 999 !important;
    font-size: 13px !important;
    /* width: 401px; */
    /*background: #fff;*/
    z-index: 999999999 !important;
}

#bot-close-button {
    position: absolute;
    right: 0;
    top: 10px;
    width: 25px;
    height: 25px;
    background: url(images/minimize.svg) center center no-repeat;
    background-size: 25px;
    z-index: 999999;
    cursor: pointer;
    margin-right: 10px;
}

.change-language-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 200px;
    height: 50px;
    cursor: pointer;
}

.change-language,
.change-language-active {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 35px;
    min-width: 200px;
}

.change-language-active {
    display: none;
} 

.change-language:hover .language-name{
    text-decoration: underline;
}

.change-language:hover .arrow-down{
   transform: scale(1.2, 1.2);
}

.arrow-down {
   width: 10px;
   height: 10px;
   fill: #fff;
}

.language-name, 
.language-name-active {
    color: #fff;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.bot-change-language-button,
.bot-change-language-button-active,
.options-flag {
    width: 40px;
    height: 30px;
    background-image: url(images/italy.svg);
    background-repeat: no-repeat;
    background-size: 30px;
    margin-left: 10px;
    z-index: 999999;
}

.bot-change-language-button-active {
    background-image: url(images/globe.svg);
}

.language-options {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    width: 100%;
    max-height: 165px;
    overflow-y: scroll;
    background-color: #fff;
    box-shadow: 0px 0px 5px 1px rgba(207,207,207,0.9);
    -webkit-box-shadow: 0px 0px 5px 1px rgba(207,207,207,0.9);
    -moz-box-shadow: 0px 0px 5px 1px rgba(207,207,207,0.9);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 200px;
    padding: 5px 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.options:hover {
    background-color: #000aff;
    color: #fff500;
}

.language-options::-webkit-scrollbar {
    display: none;
}

.options-name {
    color: #000;
    font-size: 16px;
}

.language-options p {
    margin: 0;
    color: #000;
}

.icon-wrapper {
    position: relative;
    width: 100%;
}

#bot-hint {
    position: fixed;
    bottom: 20px;
    right: 55px;
    cursor: pointer;
    width: 100px;
    height: 100px;
    z-index: 9999999 !important;
}

.minimized {
    right: 0 !important;
    bottom: 40px !important;
    width: 40px !important;
    height: 40px !important;
}

.minimize-tooltip {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #000aff;
    color: #fff500;
    border-radius: 3px;
    transition: all ease-in-out .3s;
    z-index: 10;
    overflow: hidden;
    text-align: center;
    width: 0;
    height: 0;
    opacity: 0;
}

.minimize-tooltip.active {
    top: -20px;
    padding: 5px;
    right: 100px;
    width: 105px;
    height: auto;
    opacity: 1;
}

.icon-minimize {
    position: fixed;
    right: 15px;
    bottom: 50px;
    width: 25px;
    height: 25px;
    padding: 5px;
    background: url(images/arrow-right.svg) center center no-repeat;
    background-size: 25px;
    z-index: 99999999;
    cursor: pointer;
}


#bot-hint:hover {
    animation-play-state: paused;
}

#bot-hint .hint-message.active {
    top: -20px;
    border: solid 1px #555555;
    padding: 10px;
    right: 100px;
    /*height: 90px !important;*/
    width: 105px;
    opacity: 1;
}

#bot-hint.minimized .hint-message.active {
    right: 50px;
}

.hint-message {
    position: absolute;
    top: 0;
    right: 0;
    /* padding: 20px 10px; */
    border-radius: 3px;
    transition: all ease-in-out .3s;
    z-index: 10;
    overflow: hidden;
    text-align: center;
    width: 70px;
    opacity: 0;
}

.bounce {
    margin-top: 50px;
    animation: bounce .5s infinite alternate;
    -webkit-animation: bounce .5s infinite alternate;
}

#bot {
    visibility: hidden;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 999 !important;
}

.wc-disclaimer {
    position: absolute;
    top: -21px;
    padding-left: 10px;
    background: #da1e25;
    right: 0;
    left: 0;
    color: #fff;
    font-size: 15px;
}


@keyframes bounce {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-15px);
    }
}

@-webkit-keyframes bounce {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-15px);
    }
}

@media print {
    .icon-wrapper {
        display: none;
    }
}

@media only screen and (max-height: 800px) {
    .wc-chatview-panel {
        height: 500px;
    }
}
@media only screen and (max-height: 700px) {
    #teobot-host {
        height: 80%;
    }

    #bot-frame {
        width: 100%;
        height: 100%;
    }
}
@media only screen and (max-width: 500px) {
    .wc-chatview-panel {
        border: solid 2px #ddd;
        border-radius: 3px;
        overflow: hidden;
        position: absolute;
        right: 0;
        left: 0;
        bottom: 0;
        top: 0;
        background: #fff;
        height: 100%;
        width: 100%;
    }
    .wc-header > span {
        background-size: 125px;
    }

    #bot {
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
     }

    #teobot-host {
        bottom: 0;
        right: 0;
        font-size: 13px !important;
        z-index: 999999999 !important;
        height: 95% !important;
        width: 100% !important;
    }

    #bot-frame {
        width: 100%;
        height: 100%;
    }
    #bot-hint {
        right: 25px;
        width: 100px;
        height: 100px;
    }

    .icon-minimize {
        right: 25px;
    }
}

#bot-hint .onbot-flags {
    position: absolute;
    top: -60px;
    left: 0;
    text-align: center;
    overflow: hidden;
    height: 100px;
}

#bot-hint span.onbot-flag {
    display: block;
    width: 30px;
    height: 20px;
    float: left;
    margin: 2px;
    bottom: -100px;
    position: relative;
    transition: all ease-in-out .3s;
}

    #bot-hint span.onbot-flag:hover {
        transform: scale(1.1, 1.1);
    }

/*#bot-hint span.onbot-flag.it {
background: url(./images/italy.svg) no-repeat center center;
animation: .5s ease-in-out 0s normal forwards 1 fadein;
}

    #bot-hint span.onbot-flag.it {
        background: url(./images/italy.png) no-repeat center center;
        animation: .5s ease-in-out 0s normal forwards 1 fadein;
    }

    #bot-hint span.onbot-flag.en {
        background: url(./images/united-kingdom.png) no-repeat center center;
        animation: .5s ease-in-out .5s normal forwards 1 fadein;
    }

    #bot-hint span.onbot-flag.de {
        background: url(./images/deutchland.png) no-repeat center center;
        animation: .5s ease-in-out .5s normal forwards 1 fadein;
    }*/

    @keyframes fadein {
        0% {
        bottom: -100px;
    }

    66% {
        bottom: -15px;
    }

    100% {
        bottom: -20px;
    }
}
