:root {
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --msger-bg: #fff;
  --border: 2px solid #ddd;
  --left-msg-bg: #ececec;
  --right-msg-bg: #579ffb;
}

/*html {
  box-sizing: border-box;
}*/

/**,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}*/

/*body {*/
  /*display: flex;*/
  /*justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: var(--body-bg);
  font-family: Helvetica, sans-serif;
}*/

.open-button {
    background-color: #555;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 30px;
    right: 28px;
    width: 90px;
    border-radius: 50px;
}

.chat-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    z-index: 9;
}


.msger {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    width: 100%;
    /*max-width: 300px;*/
    max-width: 500px;
    margin: 25px 0px;
    height: calc(100% - 50px);
    border: var(--border);
    border-radius: 5px;
    background: var(--msger-bg);
    box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
}

.msger-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: var(--border);
  background: #eee;
  color: #666;
}

.msger-chat {
    flex: 1;
    overflow-y: auto;
    padding: 10px;

    overflow-x: hidden;
    min-height: 250px;
    max-height: 300px;
}

.msger-chat::-webkit-scrollbar {
  width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}
.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}
.msg:last-of-type {
  margin: 0;
}
/*.msg-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}*/
.msg-img {
    min-width: 30px;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}
.msg-bubble {
  max-width: 450px;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}
.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}
.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  color: #fff;
  border-bottom-right-radius: 0;
}
.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputarea {
  display: flex;
  padding: 10px;
  border-top: var(--border);
  background: #eee;
}
.msger-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
}
.msger-input {
  flex: 1;
  background: #ddd;
}
.msger-send-btn {
  margin-left: 10px;
  background: rgb(0, 196, 65);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
}
.msger-send-btn:hover {
  background: rgb(0, 180, 50);
}
.msger-chat {
  background-color: #fcfcfe;
}
/*Progress bar css start*/
.chat-bubble {
    background-color: #ddd;
    padding: 16px 28px;
    -webkit-border-radius: 20px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius: 20px;
    -moz-border-radius-bottomleft: 2px;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    display: inline-block;
}

.typing {
    align-items: center;
    display: flex;
    height: 17px;
}

    .typing .dot {
        animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
        background-color: #579ffb;
        //rgba(20,105,69,.7);
        border-radius: 50%;
        height: 7px;
        margin-right: 4px;
        vertical-align: middle;
        width: 7px;
        display: inline-block;
    }

        .typing .dot:nth-child(1) {
            animation-delay: 200ms;
        }

        .typing .dot:nth-child(2) {
            animation-delay: 300ms;
        }

        .typing .dot:nth-child(3) {
            animation-delay: 400ms;
        }

        .typing .dot:last-child {
            margin-right: 0;
        }

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color: #6CAD96;
        // rgba(20,105,69,.7);
    }

    28% {
        transform: translateY(-7px);
        background-color: #9ECAB9;
        //rgba(20,105,69,.4);
    }

    44% {
        transform: translateY(0px);
        background-color: #B5D9CB;
        //rgba(20,105,69,.2);
    }
}

/*Like button css start*/
.likebtn {
    display: flex;
    margin-top: 10px;
    justify-content: space-evenly;
}

.chatBotlikeBtn {
    cursor: pointer;
    outline: 0;
    color: #AAA;
    border: 1px solid transparent;
    padding: 1px 6px;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color .15s
}

    .chatBotlikeBtn:focus {
        outline: none;
        border-color: #9ecaed;
        box-shadow: 0 0 10px #9ecaed;
    }
/* Progress bar css end */

/* conversation to human CSS start */
#rb_yes_no {
    font-size: small;
    padding-top: 10px;
}

#email_submit {
    font-size: small;
}

#email_sbmt_btn {
    margin-top: 6px;
}