/*  Section: popup size, design----------------------------------------------------------------  */

#chatPopup {
    position: fixed;
    bottom: 0px;
    right: 30px;
    border: 0px;
    z-index: 1000017;
    /* background-color: blue; */
    /* SHORT SHADOW */
    filter: drop-shadow(0px 2px 5px rgba(39, 64, 56, 0.1));
    border-radius: 33px;
    width: 390px;
    height: 90%;
}
#chatPopup>iframe, #chatPopup>embed {
    width: 100%;
    height: 100%;
    z-index: 1000018;
    background: #FFFFFF;
}

@media screen and (min-width: 1171px) {
    #chatPopup {
        border: 14px solid rgba(22, 82, 64, 0.2) !important;
        border-radius: 34px 34px 18px 34px !important;
        width: 390px;
        height: 90%;
        bottom: 2.5rem !important;
        right: 2.5rem !important;
        max-height: calc(100vh - 5rem);
    }
    #chatPopup>iframe, #chatPopup>embed {
        border: 0px none rgba(22, 82, 64, 0.2);
        border-radius: 20px 20px 4px 20px;
    }
}
@media screen and (max-width: 1170px){
    #chatPopup {
        border: 0 !important;
        border-radius: 8px 8px 0px 0px !important;
        width: 390px;
        height: 90%;
    }
    #chatPopup>iframe, #chatPopup>embed {
        border: 0;
        border-radius: 8px 8px 0px 0px;
    }
}

@media screen and (max-width: 480px){
    #chatPopup {
        bottom: 0px !important;
        right: 0px;
        left: 0px;
        z-index: 1000017;
        width: 100%;
        height: 100% !important;
    }
}

@media screen and (max-height: 900px) and (min-height: 800px){
    #chatPopup {
        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>html, #chatPopup>embed>html {
    width:fit-content;
}

#chatPopup>button,
#chatPopup>i {
    position: absolute;
    float: right;
    right: 2px;
    top: 16px;
    padding: 0px;
    z-index: 1000019;
    border: 0px;
    background-color: rgba(255, 255, 255, 0.0);
    color: white;
    width: 24px;
    height: 24px;
    text-align: center;
    /* border-radius: 10px;*/
    -webkit-box-shadow: 0 6px 14px 0 rgba(0,0,0,0);
    box-shadow: 0 6px 14px 0 rgba(0,0,0,0);
    cursor: pointer;
}

/*  Section: Buttons----------------------------------------------------------------  */

#chatBotButton {
    background-color: #00A181;
    color: white;
    padding: 10px !important;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 60px;
    height: 60px;
    z-index: 1000000;
    border-radius: 3px;
}
#chatBotButton:hover {
    opacity: 1;
}

#closeChatBotButton {
    right: 32px !important;
}
.fa-window-minimize{
    content: url("/wp/cm/img/CLOSE.svg");
    background-color: rgba(255, 255, 255, 0.0);
    height: 100%;
}
#refreshChatBotButton {
    /*right: 32px !important;*/
    display: none;
}
#minimizeChatBotButton {
    /*right: 62px !important;*/
    right: 32px !important;
}
@media screen and (max-width: 576px){
    #chatBotButton {
        right: 28px;
        padding: 5px !important;
        width: 42px;
        height: 42px;
    }
    #chatBotButton .fa-3x{
        font-size: 2em;
    }
}

#outerButtons {
    z-index: 10000110;
    position: absolute;
    background-color: #00A181;
    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(255, 255, 255, 0.3);
  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);
}

/*  Section: body, animation----------------------------------------------------------------  */

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;
    }
}

/* Section: live agent bubble----------------------------------------------------------------  */

.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:#00A181; /* 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:#00A181 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){
    #liveAgentImage {
        right: 45px;
        bottom: 108px;
    }
    .liveAgentBubble.fade {
        bottom: 88px;
    }
}

/*  ----------------------------------------------------------------  */
