/*
#chatBotButton {
    background-color: #52AE30;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 80px;
    height: 80px;
    z-index: 1000012;
}
#chatBotButton:hover {
    opacity: 1;
}
*/

#chatBotButton {
    width: 50px!important;
    height: 50px!important;
    right: 20px!important;
    bottom: 20px!important;
    background: url('Chat-icon.png') no-repeat center center!important;
    position: fixed;
    background-size: cover!important;
    opacity: 1!important;
    cursor: pointer;
    z-index: 1000012;
    border: none;
}
#chatBotButton i {
    display: none!important;
}
#chatBotButton:hover {
    background: url('Chat-icon-hover.png') no-repeat center center!important;
    background-size: cover!important;
}
body[data-localeid='en-EN'] #chatBotButton:hover {
    background: url('chat-icon-hover-en.png') no-repeat center center!important;
    background-size: cover!important;
}

#chatPopup {
    overflow: hidden!important;
    border-top-left-radius: 24px!important;
    border-top-right-radius: 24px!important;
    color: #fff!important;
    right: 0!important;
    bottom: 10px!important;
    background: white!important;
    position: fixed;
    border: 0px;
    z-index: 1000017;
    width: 390px;
    height: 90%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#chatPopup.expanded {
    min-width: 390px;
    width: 50%!important;
    min-height: 90%;
    bottom: 10px!important;
    top: auto!important;
    left: auto!important;
    right: 0px!important;
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, .2);
    max-width: 768px; /* max-width so that buttons are not displayed */
}

/* chatPopup responsive size */
@media screen and (max-height: 900px){
    #chatPopup {
        transition: height 1s;
    }
}
@media screen and (max-height: 900px) and (min-height: 800px){
    #chatPopup {
        height: 630px;
        bottom: 0px
    }
}
@media screen and (max-height: 800px) and (min-height: 400px){
    #chatPopup {
        height: 90%;
        bottom: 0px
    }
}
@media screen and (max-height: 400px){
    #chatPopup {
        height: 100%;
        bottom: 0px
    }
}

#chatPopup>iframe, #chatPopup>embed {
    /* position: inherit; */
    width: calc(100% - 1px);
    height: calc(100% - 58px);
    /* max-height: calc(100% - 59px); */
    z-index: 1000018;
}
#chatPopup>iframe>html, #chatPopup>embed>html {
    width:fit-content;
}

#outerButtons {
    z-index: 10000110;
    position: absolute;
    background-color: #52AE30;
    height: 58px;
    width: auto;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 5px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
#outerButtons>.btn {
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    background-color: rgba(255, 255, 255, 0.0);
    color: white;
    width: 50px;
    height: 50px;
    position: relative;
    font-size: 14px;
}
#outerButtons>.btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.btn > .tooltip {
  visibility: hidden;
  width: 100px;
  background-color: rgba(240, 86, 137, 0.7);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  text-transform: uppercase;
  padding: 5px 0;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 100001000;
  bottom: 80%;
  left: 50%;
  margin-left: -100%;
}
.btn:hover > .tooltip {
  visibility: visible;
  opacity: 0.7;
}
.btn:hover:disabled > .tooltip {
  visibility: hidden;
}

#outerButtons>button:disabled {
    background-color: rgba(200, 200, 200, 0.5);
}

#chatPopup>button,
#chatPopup>i {
    position: absolute;
    float: right;
    right: 2px;
    top: 2px;
    margin: 2px;
    padding: 2px;
    z-index: 1000019;
    border: 0px;
    background-color: #52ae30;
    color: white;
    width: 25px;
    height: 25px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
}
.chat-box-controls {
    position: absolute;
    float: right;
    right: 2px;
    top: 2px;
    margin: 2px;
    padding: 2px;
    z-index: 1000019;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}
.chat-box-controls>button,
.chat-box-controls>i{
    z-index: 1000019;
    border: 0px;
    background-color: #52ae30;
    color: white;
    width: 25px;
    height: 25px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;    
}

.chat-box-controls>button:hover, .chat-box-controls>i:hover,
#chatPopup>button:hover, #chatPopup>i:hover {
    background-color: #86c66f;
    color: white;
}

#closeChatBotButton {
    top: 11px!important;
    right: 2px!important;
    height: 25px;
    width: 25px;
    background-repeat: no-repeat;
    background-image: url('close.svg');
    background-position: center center;
    background-size: 20px;
}
#closeChatBotButton i {
    display: none!important;
}

#refreshChatBotButton {
    top: 11px!important;
    right: 60px!important;
    display: inline-block!important;
    height: 25px;
    width: 25px;
    background-repeat: no-repeat;
    background-image: url('reset.svg');
    background-position: center center;
    background-size: 18px;
}
#refreshChatBotButton i {
    display: none!important;
}

#minimizeChatBotButton {
    top: 11px!important;
    right: 32px!important;
    height: 25px;
    width: 25px;
    background-repeat: no-repeat;
    background-image: url('minus.svg');
    background-position: center center;
    background-size: 20px;
}
#minimizeChatBotButton i {
    display: none!important;
}
#minimizeChatBotButton .fa-window-minimize {
    margin-top: -6px;
    display: block;
}

#expandChatBotButton i {
    display: none!important;
}
#expandChatBotButton {
    height: 25px;
    width: 25px;
    background-repeat: no-repeat;
    background-image: url('fullscreen.svg');
    background-position: center center;
    background-size: 20px;
}


#chatpopup.expanded #expandChatBotButton {
    background-image: url('fullscreen_exit.svg');
}



#chatBotIframe {
    outline: none!important;
    border-bottom-left-radius: 0!important;
    border-bottom-right-radius: 0!important;
}

/*Animation fade-in*/
@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-moz-keyframes fadein {
    /* Firefox */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-webkit-keyframes fadein {
    /* Safari and Chrome */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-o-keyframes fadein {
    /* Opera */
    from {
        opacity:0;
    }
    to {
        opacity: 1;
    }
}

.liveAgentBubble {
    position: fixed;
    right: 100px;
    bottom: 260px;
    padding: 10px;
    margin: 1em 0 3em;
    color:#fff;
    font-family: 'Arial';
    font-weight: 700;
    font-size: 12;
    background:#52AE30; /* default background for browsers without gradient support */
    /* css3 */
    -webkit-border-radius:10px;
    -moz-border-radius:10px;
    border-radius:10px;
    pointer-events: none;
    transition: all 1s;
    /* Animation: fadein */
    animation: fadein 1s;
    -moz-animation: fadein 1s;
    /* Firefox */
    -webkit-animation: fadein 1s;
    /* Safari and Chrome */
    -o-animation: fadein 1s;
    /* Opera */
}
.liveAgentBubble:after {
    content:"";
    position:absolute;
    bottom:-9px; /* value = - border-top-width - border-bottom-width */
    right:15px; /* controls horizontal position */
    border-width:10px 0 0 10px; /* vary these values to change the angle of the vertex */
    border-style:solid;
    border-color:#52AE30 transparent;
    /* reduce the damage in FF3.0 */
    display:block;
    pointer-events: none;
    width:0;
    /* Animation: fadein */
    animation: fadein 2s;
    -moz-animation: fadein 2s;
    /* Firefox */
    -webkit-animation: fadein 2s;
    /* Safari and Chrome */
    -o-animation: fadein 2s;
    /* Opera */
}
.liveAgentBubble.fade {
    bottom: 111px;
    right: 200px;
    opacity: 0.25;
}

#liveAgentImage {
    height: 200px;
    position: fixed;
    right: 45px;
    bottom: 130px;
    /* -webkit-transform: scaleX(-1); */
    /* transform: scaleX(-1); */
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s;
    /* Animation: fadein */
    animation: fadein 1s;
    -moz-animation: fadein 1s;
    /* Firefox */
    -webkit-animation: fadein 1s;
    /* Safari and Chrome */
    -o-animation: fadein 1s;
    /* Opera */
}
#liveAgentImage.fade {
  opacity: 0;
}

@media screen and (max-width: 480px){
    #chatPopup {
        position: fixed;
        bottom: 0px;
        right: 0px;
        border: 0px;
        z-index: 1000017;
        width: 100%;
        height: 100%;
    }

    #chatPopup>iframe, #chatPopup>embed {
        width: 100%;
        height: calc(100vh - 58x);
    }

    #liveAgentImage {
        right: 45px;
        bottom: 108px;
    }
    .liveAgentBubble.fade {
        bottom: 88px;
    }
}

body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) input:focus,
body:not(.user-is-tabbing) select:focus,
body:not(.user-is-tabbing) textarea:focus {
  outline: none;
}
