body {
  background-color: white !important;
}
body[data-smooth-scrolling="0"] {
  overflow: initial !important;
}
.d-none {
display: none !important;
}

.d-inline {
display: inline !important;
}

.d-inline-block {
display: inline-block !important;
}

.d-block {
display: block !important;
}

.d-table {
display: table !important;
}

.d-table-row {
display: table-row !important;
}

.d-table-cell {
display: table-cell !important;
}

.d-flex {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
}

.d-inline-flex {
display: -webkit-inline-box !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
.custom-control {
position: relative;
display: block;
min-height: 1.5rem;
padding-left: 1.5rem;
}
.custom-radio .custom-control-label::before {
border-radius: 50%;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
background-color: #007bff;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
background-color: rgba(0, 123, 255, 0.5);
}
.custom-control-input {
position: absolute;
z-index: -1;
opacity: 0;
}

.custom-control-input:checked ~ .custom-control-label::before {
color: #fff;
background-color: #007bff;
}

.custom-control-input:focus ~ .custom-control-label::before {
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-control-input:active ~ .custom-control-label::before {
color: #fff;
background-color: #b3d7ff;
}

.custom-control-input:disabled ~ .custom-control-label {
color: #6c757d;
}

.custom-control-input:disabled ~ .custom-control-label::before {
background-color: #e9ecef;
}
.custom-control-label {
margin-bottom: 0;
}

.custom-control-label::before {
position: absolute;
top: 0.25rem;
left: 0;
display: block;
width: 1rem;
height: 1rem;
pointer-events: none;
content: "";
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #dee2e6;
}

.custom-control-label::after {
position: absolute;
top: 0.25rem;
left: 0;
display: block;
width: 1rem;
height: 1rem;
content: "";
background-repeat: no-repeat;
background-position: center center;
background-size: 50% 50%;
}

.custom-checkbox .custom-control-label::before {
border-radius: 0.25rem;
}
/*.row {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}*/
.w-75 {
width: 75% !important;
}

@keyframes progress-animation {
  0% {
      background-position: 0 0;
  }
  100% {
      background-position: 50px 50px;
  }
}


#start-chat-button, #livechat-rating-comment-button, #lc-end-rate-submit-button {

  color: rgb(255, 255, 255);
  border-radius: 0.3em;
  font-size: inherit;
  font-weight: bold;
  border: 0px none;
  padding: 1em;
  font-family: inherit;
  width: 100%;
  opacity: 1;
  text-transform: none;
  background-color: rgb(53, 138, 217);
  
  
}


#livechat {
width: 320px;
height: 610px;
display: flex;
flex-direction: column;
position: fixed;
bottom: 1.5em;
right: 1.5em;
transition: all 0.1s ease-out;
box-shadow: rgba(0, 0, 0, 0.25) 0px 0.2em 1em;
border-radius: 10px;
opacity: 1;
background-color: #fff;  
}

#unread-indicator {
width: 1.5em;
height: 1.5em;
font-size: 0.8em;
background-color: red;
color: white;
position: absolute;
top: -0.1em;
right: -0.1em;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: rgba(0, 0, 0, 0.25) 0px 0.2em 1em;
z-index: 100;
}

#livechat-minimized {
width: 4em;
height: 4em;
background-color: rgb(53, 138, 217);
position: fixed;
bottom: 1.5em;
right: 1.5em;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: rgba(0, 0, 0, 0.25) 0px 0.2em 1em;
z-index: 100;
opacity: 0;
transition: all 0.2s ease-out;
transform: scale(0.1);
}

#livechat-minimized:hover {
  cursor: pointer;
}

#livechat-minimized.minimized {
  z-index: 99999;
  opacity: 1;
  transform: none;
}

#livechat > div:first-child {
  border-radius: 10px 10px 0 0;
}

#livechat > div:last-child, #message-input, #send-button {
  border-radius: 0 0 10px 10px;
}

#livechat.minimized {
  transform: scale(0.8) translate(10%, 30%);
  opacity: 0;
  display: none!important;
}

#rate-chat {
  position: absolute;
  top: 4em;
  left: 0;
  right: 0;
  z-index: 12;
}

#rate-chat.hide {
  opacity: 0;
  display: none;
}


#minimize-chat {
  cursor: pointer;
  padding-right:0.2em;
  border: 0;
  background-color: transparent;
}

#close-chat {
  cursor: pointer;
  padding-top:0.2em;
  border: 0;  
  background-color: transparent;
}

#livechat.minimized #minimize {
  transform: rotate(180deg);
}



#livechat-header {
  flex-shrink: 0;
  line-height: 3em;
  padding: .5em 1em;
  height: 4em;
  display: flex;
  justify-content: space-between;
  background-color: #FFF;
  color:rgb(66, 77, 87);
  position: relative;
  z-index: 1;
  font-size:14.4px;
  font-weight:700;
  text-align: center;
}

#livechat-header div {
  line-height: 3em; 
}

#livechat-header-line{
  z-index: 10;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0px 1em -1px;
  border-color: rgba(0, 0, 0, 0.05);
}
#livechat-header-agent-container{
  width: 100%;
  position: relative;
  z-index: 2;
  background-color: rgb(255, 255, 255);
  color: rgb(66, 77, 87);
  font-size: 1em;
  height: 78px;
  font-weight: 700 !important;
  border-width: initial;
  border-style: initial;
  border-color: rgb(0, 0, 0);
  border-image: initial;
  padding: 1.2em;
  transition: background-color 0.3s ease 0s;
  display: flex;
  flex-shrink: 0;
  -webkit-box-flex: 0;
  flex-grow: 0;
  align-items:flex-start;
  -webkit-box-pack: left;
  justify-content: left;
  text-align: left;
  -webkit-box-align: stretch;
}

#livechat-header-agent-avatar{
  text-align: center;
  background-color: rgb(255, 255, 255);
  text-transform: uppercase;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-right: 5px;
  border-radius: 50%;
  border-width: 0px;
  border-style: initial;
  border-color: initial;
  border-image: initial;    
}

#livechat-header-agent-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;    

}
#livechat-header-agent-title{
flex-grow: 2;   
}
#livechat-header-agent-name{
font-size: 0.9em;
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;    
}
#livechat-header-agent-position{
font-weight: 300;
  font-size: 0.9em;
  opacity: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;    
}

#livechat-header-agent-buttons{
  
  display: flex;
  min-width: 0px;    
}

#rate-good, #rate-bad{
-webkit-appearance: none;
  color: inherit;
  width: 40px;
  height: 40px;
  text-align: center;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  opacity: 1;
  border-width: 0px;
  border-style: initial;
  border-color: initial;
  border-image: initial;
  margin-left: 0.7em;
      margin-right: 0.7em;
  padding: 0px 0.5em;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;    
}
#rate-good.selected, #rate-bad.selected{
  background: rgb(66, 127, 225);
  color: #fff;
  
}

#livechat-rating-comment-container{
  
position: absolute;
  z-index: 1500;
  top: 1em;
  left: 1em;
  right: 1em;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0.2em 0.8em;
  max-width: 290px;
  background: rgb(255, 255, 255);
  padding: 0.5em;
  border-radius: 8px;
  margin: 0px auto;    
}

#livechat-rating-comment-header{
  display: flex;
  flex-direction: row-reverse;
}

#livechat-rating-comment-body{
  padding: 1em;
}

#livechat-rating-comment-body p{
  text-align: center;
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  color: #212529;    
}

#livechat-rating-comment-body textarea{

  resize: none;
  box-shadow: none;
  -webkit-appearance: none;
  font-size: 0.9em;
  font-family: inherit;
  width: 100%;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(221, 226, 230);
  border-image: initial;
  padding: 0.8em;
  border-radius: 4px;
  background-color: transparent;    
}
#lc-rating-comment-close{
  border: 0;
  background-color: transparent;
}

#lc-rate-comment-icon-container{
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;    
}
#lc-rate-comment-icon-up,#lc-rate-comment-icon-down{
background-color: rgb(221, 226, 230);
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;}
#livechat-rating-comment-shadow{
z-index: 999;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  border-radius: inherit;  
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 300ms cubic-bezier(0.33, 0, 0.67, 1) 0s;
}


#lc-end-rating-container{
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
  display: block;
  max-width: 600px;
  border-width: 0px;
  border-style: initial;
  border-color: initial;
  border-image: initial;
  margin: 1em;    
  padding:1em;
  font-size: 12px;
}

.lc-end-rating-options{
  position: relative;
  
}

.lc-end-rate-chat-block{
  margin-top:0.5em;
}

.lc-end-rate-chat-block textarea{

resize: none;
  box-shadow: none;
  -webkit-appearance: none;
  font-size: 0.9em;
  font-family: inherit;
  width: 100%;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(221, 226, 230);
  border-image: initial;
  padding: 0.8em;
  border-radius: 4px;    
  
}

#lc-end-rate-buttons{
  
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
}

#message-input {
  font-size: 1em;
  background-color: transparent;
  padding: 0.2em 0.2em;
  flex-grow: 1;
  border: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;

  resize: none;
  height: 3.8em;
  //line-height: 4em;

  overflow:hidden;
  overflow-wrap: normal;

}

#message-input::placeholder {
  color: #b2bbc6;
}

.message-container {
  margin-bottom: .5em;  
  max-width: 90%;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}
.message-wrapper{

}
.message-name{
  font-size: 0.8em;
  box-sizing:border-box;
  color:rgb(66, 77, 87);
  display:inline;    
}
.message-time{
  font-size: 0.8em;
  box-sizing:border-box;
  color:rgb(66, 77, 87);
  display:inline;    
}
.message-status{
  font-size: 0.8em;
  box-sizing:border-box;
  color:rgb(66, 77, 87);
  display:inline;
}
.visitor{
  text-align:right;
}
.message {

  background: rgb(53, 138, 217);
  padding: 1em;
  border-radius: 6px 6px 6px 6px;
  color: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px;

  word-wrap: break-word;
  max-width: 100%;
  font-size: 14px;

}
.message a{
  /*color: #fff;*/
  cursor: pointer;
  text-decoration: underline;    
}
.message img{
  width:200px;   
}


.message-container.agent a {
  color: blueviolet;
}

.message-container.visitor a {
  color: #fff;
}

.message-container.agent {
  align-self: flex-start;
}

.message-container.agent .message {
  background-color: #fff;
  border-radius: 6px 6px 6px 6px;
  color: #5a6976;
}

.message-container.system {
  align-self: center;
}

.message-container.system .message {
  border-radius: 0;
  color: #000;
  box-shadow: none;
  background-color: transparent;
}

.agent-avatar {
  width: 1.6em;
  height: auto;
  border-radius: 50%;
  display: block;
  margin-right: .5em;
}

#footer {
  display: flex;
  background-color: #fff;

  flex-shrink: 0;
  font-size:14px;
  height:74px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding: 0.5em;


}
#input-container {
  padding-left: 15px;
  padding-right: 15px;
}
#send-file {
  border: 0;
  background-color: transparent;
}



#send-button {
  background-color: #fff;
  color: #000000;
  font-size: 1em;
  border: 0;
}

#offline-message {
  text-align: center;
  background-color: #fff;
  border-radius: .5em;
  padding: .5em;
  color: #5a6976;
  position: absolute;
  top: 4.3em;
  bottom: 4.9em;
  left: 0.5em;
  right: 0.5em;
  box-shadow: rgba(0, 0, 0, 0.03) 0px 2px 4px;
  transition: all .2s ease-out;
  z-index: 10;
  display: flex;
  align-items: center;
}

#queue-message {
  text-align: center;
  background-color: #fff;
  border-radius: .5em;
  padding: .5em;
  color: #5a6976;
  position: absolute;
  top: 4.5em;
  bottom: 5em;
  left: 1em;
  right: 1em;
  box-shadow: rgba(0, 0, 0, 0.03) 0px 2px 4px;
  transition: all .2s ease-out;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

#queue-message.hide {
  opacity: 0;
  display: none;
}

.queue-icon {
  font-size: 3em;
}

#offline-message.hide {
  opacity: 0;
  display: none;
}

.offline-icon {
  font-size: 2em;
}

#connection-message {
  color: #fff;
  position: absolute;
  top: 0;
  transition: all .2s ease-out;
  text-align:center;
  right: 0;
  left: 0;
  font-size: .8em;
  background-image: linear-gradient(
      -45deg, 
      rgba(255, 255, 255, .2) 25%, 
      transparent 25%, 
      transparent 50%, 
      rgba(255, 255, 255, .2) 50%, 
      rgba(255, 255, 255, .2) 75%, 
      transparent 75%, 
      transparent
      );
  background-size: 50px 50px;
  animation: progress-animation 2s linear infinite;
  background-color: #90CAF9;
}

#connection-message.hide {
  transform: translateY(-100%);
}

#connection-message.disconnected {
  background-color: #D50000;
}
/*
#typing-indicator {
  position: absolute;
  bottom: 4em;
  z-index: 9;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .8em;
  background-color: rgba(255, 255, 255, 0.7);
  padding: .5em;
}

#typing-indicator.hide {
  opacity: 0;
  display: none;
}
*/
@media (max-width: 600px) {
  #livechat {
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: 100%;
  }
}


.sh {
  animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #f6f7f8;
}

#typing-indicator {
  position: relative;
}

div#wave {
  position: relative;
  margin-top: 50vh;
  text-align: center;
  width: 100px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 3px;
  background: #5a6976;
  animation: wave 1.3s linear infinite;
}
.dot:nth-child(2) {
  animation-delay: -1.1s;
}

.dot:nth-child(3) {
  animation-delay: -0.9s;
}

@keyframes wave {
  0%,
  60%,
  100% {
    transform: initial;
  }

  30% {
    transform: translateY(-7px);
  }
}

/*20191110*/

.form-group {
  margin-bottom: 0.5rem;
}

.info{
  margin-bottom: 0.5em;
}
.required::after {
  display: inline;
  content: " *";
  font-size: 0.75rem;
  font-weight: normal;
  color: rgb(214, 69, 70);
}

#ticket-form{

  position: absolute;
  z-index: 10;
  transition: all .1s ease-out;
  align-self: center;
  background-color: #fff;
  border-radius: 6px 6px 6px 6px;
  padding: 0.8em;
  margin: 0.5em;
  /*font-size: 0.8em;  */
  height: 95%;
  width: 95%;
}

#ticket-form-container{
 padding-bottom: 2em;
}

.button {

  color: rgb(255, 255, 255);
  border-radius: 0.3em;
  font-size: inherit;
  font-weight: bold;
  border: 0px none;
  padding: 1em;
  font-family: inherit;
  width: 100%;
  opacity: 1;
  text-transform: none;
  background-color: rgb(53, 138, 217);
  
}

#livechat-alert-shadow{
  z-index: 999;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: inherit;  
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 300ms cubic-bezier(0.33, 0, 0.67, 1) 0s;
  }

#livechat-alert{
  position: absolute;
  z-index: 1500;
  top: 12em;
  left: 1em;
  right: 1em;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0.2em 0.8em;
  max-width: 270px;
  background: rgb(255, 255, 255);
  padding: 0.5em;
  border-radius: 8px;
  margin: 0px auto;     
  height: 12em;
}

#livechat-alert-header{
  display: flex;
  flex-direction: row-reverse;
}

#lc-alert-close{
  border: 0;
  background-color: transparent;
}

#livechat-alert-body{
  padding: 0.5em;
}

#livechat-alert-body p{
  text-align: center;
  display: block;
  margin-block-start: 0.5em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  color: #212529;    
}


#body-container {


  height: 85%;
  position: relative;
 background-color: #e9eef4;
 /*background-color: #fff;  */
}

#message-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: .5em;
  background-color: #e9eef4;
  overflow-y: auto;
  height: 400px;
  position: relative;
  padding: 1em 1em 0px;
}

#message-list > div:last-child {
  padding-bottom: .5em;
}


#prechat {
  text-align: center;
  transition: all .1s ease-out;
  align-self: center;
  background-color: #fff;
  border-radius: 6px 6px 6px 6px;
  padding: 0.8em;
  font-size: 0.9em;
  margin: 0.8em;
}

#prechat.hide {
  opacity: 0;
  transform: scale(0.7);
  display:none;

}

#prechat input {
  padding: .4em;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin-top: .2em;
  display: inline-block;
  width:100%;
}
#prechat p, #prechat span {
  font-family: 'Roboto', sans-serif;
  color : #212529!important;
  font-size: 1.2em;
  line-height: 1.5;
}

.chat-form-control{

  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;  
}