* {
  box-sizing: border-box;
  font-family: Avenir-Roman !important;
  font-size: 14px;
}

input,textarea {
    font-family: Avenir-Roman !important;
}

#input-field {
    font-size: 16px;
    max-height: 200px;
    overflow: auto;
    line-height: 23px;
    padding-top: 12px;
    padding-left: 15px;
    padding-right: 37%;
    font-family: Avenir-Roman;
    z-index: 0;
    margin-bottom: 0;
    min-height: 48px !important;
    width: 100%
}

#input-field::placeholder {
    font-size: 16px!important
    line-height: 34px;
}

#attachFile {
    display: inline;
    vertical-align: middle;
    position: static;
    font-size: 29px;
    color: #999999;
}

#input-button {
    display: inline;
    position: static;
    /*top: 20px;
    right: 16px;*/
    width: 75px !important;
    height: 36px !important;
    font-size: 16px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    margin-bottom: 0;
    -webkit-appearance:none;
}

.input-chat {
  background-color: #ebebeb;
  padding: 8px;
}

#input-div{
    min-height: 65px;
    padding-bottom: 0;
}

.input-chat-controls {
    position: absolute;
    bottom: 17px;
    right: 24px;
}

@keyframes dot-one {
  0%{
    opacity: 0;
  }
  24% {
    opacity: 100;
    color: #53284F;
  }
  25% {
    opacity: 100;
    color: rgba(96, 0, 87, 0.4);
  }
  100% {
    opacity: 100;
    color: rgba(96, 0, 87, 0.2);
  }
}

@keyframes dot-two {
  0% {
      opacity: 0;
  }
  49% {
      opacity: 100;
      color: #53284F;
    }
  50% {
        opacity: 100;
        color: rgba(96, 0, 87, 0.4);
    }
  100% {
        opacity: 100;
        color: rgba(96, 0, 87, 0.2);
    }
}

@keyframes dot-three {
  0% {
      opacity: 0;
  }
  74% {
      opacity: 100;
      color: #53284F;
    }
  75% {
      opacity: 100;
      color: rgba(96, 0, 87, 0.4);
    }
  100% {
      opacity: 100;
      color: rgba(96, 0, 87, 0.2);
    }
}

.dots {
    font-family: monospace !important;
    position: absolute;
}

.dot-one {
    animation: dot-one 750ms linear infinite 250ms;
    left: 0;
}

.dot-two{
    animation: dot-two 750ms linear infinite 250ms;
    left: 15px;
}

.dot-three {
    animation: dot-three 750ms linear infinite 250ms;
    left: 30px;
}

#servicepattern-chat #agent-typing {
    background: inherit;
    bottom: -13px;
}

#servicepattern-chat #agent-typing .agent-typing-wrapper {
    font-size: 46px;
    position: absolute;
    left: -4px;
}

.new-msg-body.blue.agentMessage, .new-msg-body.clientMessage {
    min-width: 32px;
    line-height: 1.38;
}

#servicepattern-chat #messages-div .new-msg-container.clientMessage {
    margin-right: 0;
    color: #000000;
    text-align: left;
}

#servicepattern-chat #messages-div .new-msg-container.clientMessage .pip {
    right: -4px;
}

#servicepattern-chat #messages-div .new-msg-container {
    max-width: 500px;
    border-radius: 18.5px;
}

.new-msg-container.systemMessage.new-msg-animate {
    margin-bottom: 20px !important;
}

.new-msg-container .agentMessage, .new-msg-container .clientMessage, .new-msg-container .systemMessage {
    padding: 10px 12px;
}

#servicepattern-chat #messages-div .new-msg-container .new-msg-text {
    max-width: 208px;
    line-height: 19px;
}

#servicepattern-chat #messages-div .new-msg-container.agentMessage {
    margin-left: 0;
}

#servicepattern-chat #messages-div .new-msg-container.agentMessage .pip {
    left: -2px;
    bottom: -3px;
}

#header-avatar {
    display: none;
}

#inner-chat.mobile-version #offline-form, #inner-chat.mobile-version #chat-body {
    top: 0;
    box-shadow: 0 -1px #cccccc;
}

#servicepattern_action {
    display: none;
}

#question {
    padding: 0;
    width: 100%;
}

#servicepattern-chat #messages-div .new-msg-container.systemMessage, #servicepattern-chat #messages-div .new-msg-container.introduceMessage, #servicepattern-chat #messages-div .new-msg-container.receiveFile {
    max-width: 92%;
}

#servicepattern-chat #messages-div .new-msg-container {
    max-width: 100%;
}

#servicepattern-chat #messages-div .new-msg-container.clientMessage .new-time {
    top: inherit;
    left: 6px;
    bottom: -14px;
    font-size: 14px;
}

#servicepattern-chat #messages-div .new-msg-container.agentMessage .new-time {
    top: inherit;
    right: 9px;
    bottom: -12px;
    font-size: 14px;
}

.new-msg-container.clientMessage.new-msg-animate {
    left: -5px !important;
}

#servicepattern-chat #messages-div .new-msg-container.clientMessage.new-msg-animate, #servicepattern-chat #messages-div .new-msg-container.agentMessage.new-msg-animate, #servicepattern-chat #messages-div .new-msg-container.agentHighlight.new-msg-animate {
    margin-bottom: 33px;
}

.btns {
  clear: both;
  padding: 10px 0;
  text-align: center;
}

.submit-btn {
  -webkit-appearance: none;
  background-color: #53284F;
  border-radius: 0;
  bottom: 5%;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  height: 44px;
  left: 5%;
  width: 90%;
}
.left-btn {
  float: left;
}
.right-btn {
  float: right;
}

#servicepattern_close_button {
    display: none;
}

.field-wrapper.message {
    width: 100%;
}

#question {
  height: 95px;
  margin-top: 10px;
  overflow-y: auto;
  padding: 6px 10px 6px 10px;
  width: 100%;
}

#offline-form {
  position: initial;
  padding-left: 10px;
  padding-right: 10px;
}


#questionForm .new-msg-container {
    border-radius: 18.5px;
    border-top-left-radius: 18.5px;
    border-top-right-radius: 18.5px;
    border-bottom-right-radius: 18.5px;
    border-bottom-left-radius: 18.5px;
    margin-bottom: 15px;
}

#questionForm .new-msg-container.agentMessage.blue {
    position: relative;
    background: #3e8cd5;
    background-image: initial;
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat-x: initial;
    background-repeat-y: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: rgb(62, 140, 213);
}

#questionForm .new-msg-container.agentMessage {
    float: left;
    color: #fff;
    width: 100%;
}

#questionForm .new-msg-container .pip {
    position: absolute;
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
}


#questionForm .new-msg-container.agentMessage .pip {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAjklEQVQoz2NgQAN2PVf5gfg/EJ8EYgkGQgCoSAiqAYQfArE2IQ0aSBpA+AMQu+HT4IKmAYR/A3EGLg2ZWDTAcB82DYvwaHiPrpgFiJ/j0XAAXUMwHsUg7IesmAuIb+BRPAVZMSMQr8Ch8DMQ5yMrZgbiuVgU3gLiciAWQ3d3MRAfBuKNoGAD4nggVsIVTwDS09R7fmxVHwAAAABJRU5ErkJggg==);
    background-position: 100% 100%;
    background-repeat: no-repeat;
    left: -5px;
    right: -4px;
    bottom: 3px;
}

#questionForm .new-msg-text-inner {
    font-size: 16px;
    padding: 17px 65px;
}


#offline-form .description.small {
    font-size: 16px;
    color: #000000;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 25px;
    letter-spacing: 0.3px;
    margin-bottom: 30px;
}

#offline-form .transcript {
    position: relative;
    margin-bottom: 88px;
}
#transcript {
    position: absolute;
    top: 3px;
    font-size: 16px;
}

#offline-form  #transcript-label {
    position: absolute;
    left: 23px;
    font-size: 14px;
    font-size: 14px;
    line-height: 1.57;
    letter-spacing: 0.5px;
}

#transcriptEmail {
    font-size: 16px;
    max-height: 200px;
    overflow: auto;
    line-height: 21px;
    z-index: 0;
    margin-bottom: 0;
    min-width: 95%;

    padding: 3px 0px 0px 15px;

}

#transcriptEmail::placeholder {
    font-size: 16px!important
}

.input-field {
    height: 35px;
    margin-bottom: 7px;
    font-size: 16px;
}

.field-wrapper.message {
    padding: 0 0;
}



@media only screen and (max-width: 375px) {
    #input-field {
        padding-right: 42%;
    }

    #questionForm .new-msg-text-inner {
        font-size: 16px;
        padding: 10px 25px;
    }
}

@media only screen and (max-width: 325px) {
    #input-field {
        padding-right: 42%;
    }

    #questionForm .new-msg-text-inner {
        font-size: 16px;
        padding: 5px 15px;
    }
}

@media only screen and (min-width: 375px) {
    #input-field {
        padding-right: 36%;
    }
}
