#chatBotButton {
    background-color: #3790CC;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 80px;
    height: 80px;
    z-index: 1000012;
}

[data-badge] {
    position:relative;
}
[data-badge]:after {
    position:absolute;
    right:-10px;
    top:-10px;
    min-width:10px;
    min-height:10px;
    line-height:10px;
    padding:5px;
    color:#fff;
    background-color:#bf1f1f;
    font-size:10px;
    border-radius:20px;
    content:attr(data-badge);
    border:solid 1px #c93a3a;
}
[data-badge="0"]:after {
    display:none;
}

#chatBotButton:hover {
    opacity: 1;
}

.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;
}

#chatPopup {
    position: fixed;
    bottom: 23px;
    right: 28px;
    border: 0px;
    z-index: 1000017;
    width: 450px;
    height: 70vh;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
                              
}

#chatPopup>iframe {
    /* position: inherit; */
    width: 100%;
    height: calc(100% - 58px);
    z-index: 100008;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
#chatPopup>iframe>html {
    width:fit-content;
}

#outerButtons {
    z-index: 10000110;
    position: absolute;
    background-color: #06B6E7;
    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:hover,
#chatPopup>i:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.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:#06B6E7; /* 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:#06B6E7 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 {
        width: 100%;
        height: calc(100% - 58px);
    }

    #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;
}

/*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;
    }
}

.chat-box-controls {
    width: auto;
    display: block;
    position: absolute;
    left: auto;
    right: 5px;
    text-align: right;
    float: right;
    padding-top: 0;
    color: var(--sdk-chat-widow-primary-font-color);
    margin-top: 0px;
}

.chat-box-controls button {
    cursor: pointer;
    background: none;
    border: none;
    opacity: 1;
    outline: none;
    font-size: 30px;
    vertical-align: top;
    height: 50px;
    line-height: inherit;
    margin: 0;
    padding: 0 6px;
}


#chatPopup>button,
#chatPopup>i {
    position: absolute;
    float: right;
    right: 2px;
    top: 2px;
    margin: 2px;
    padding: 2px;
    z-index: 1000019;
    border: 0px;
    background-color: rgba(255, 255, 255, 0.0);
    color: white;
    width: 25px;
    height: 25px;
    text-align: center;
    font-size: 14px;
    /* border-radius: 10px;*/
}

#closeChatBotButton {
    right: 2px !important;
}
#refreshChatBotButton {
    right: 32px !important;
}
#minimizeChatBotButton {
    right: 62px !important;
}
#expandChatBotButton {
    right: 92px !important;
}

.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;
    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 {
    color: white;
}

#chatPopup.expanded {
    min-width: 330px;
    width: 50%!important;
    min-height: 90%;
    bottom: 10px!important;
    top: auto!important;
    left: auto!important;
    right: 10px!important;
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, .2);
}
