
@keyframes chat_dragging-icon {
    0%,
    12%,
    16%,
    20%,
    24%,
    28%,
    32%,
    36%,
    4%,
    40%,
    44%,
    48% {
        transform: scale(1.02);
    }
    14%,
    18%,
    2%,
    22%,
    26%,
    30%,
    34%,
    38%,
    42%,
    46%,
    50%,
    8%,
    to {
        transform: scale(1);
    }
}
@keyframes chat_dragging {
    0%,
    12%,
    16%,
    20%,
    24%,
    28%,
    32%,
    36%,
    4%,
    40%,
    44%,
    48% {
        transform: scale(1.04);
    }
    14%,
    18%,
    2%,
    22%,
    26%,
    30%,
    34%,
    38%,
    42%,
    46%,
    50%,
    8%,
    to {
        transform: scale(1);
    }
}
@keyframes chat-button-wave {
    0% {
        opacity: 0.45;
        transform: scale(1);
    }
    40% {
        opacity: 0.45;
    }
    to {
        opacity: 0;
        transform: scale(1.35);
    }
}
@keyframes chat_shake {
    0%,
    20% {
        transform: translateZ(0);
    }
    10%,
    14%,
    18%,
    2%,
    6% {
        transform: translate3d(-7px, 0, 0);
    }
    12%,
    16%,
    4%,
    8% {
        transform: translate3d(7px, 0, 0);
    }
}
@keyframes chat_livechat_opening {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes chat_livechat_hiding {
    0% {
        opacity: 1;
        transform: none;
    }
    to {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
}
@keyframes chat_livechat_overlay {
    0% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}	
.chat-button-holder * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}		
.chat-livechat {
    position: absolute;
    width: 100%;
    z-index: 20000;
}

.chat-livechat-hint {
    position: absolute;
    width: 100%;
    z-index: 20000;
}
.div-close-icon {
	display: flex;
    justify-content: center;
    align-items: center;
	width: 34px; 
	height: 34px;
    right: 0;
    top: -4.5vh;
    position: absolute;
    z-index: 20000;
	cursor: pointer;
	background: #eb5757;
	border-radius: 50%;
}

.chat-livechat_bottom-left {
    transform-origin: bottom left;
}
.chat-livechat_chat {
    background: transparent;
    border-radius: 6px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.15);
    height: calc(100vh - 120px);
    max-height: 40vh;
    min-height: 30vh;
    width: 360px;
}

@media (max-width: 769px) {
    .chat-livechat:not(.chat-livechat--no-mobile) > iframe {
        transition: 0.3s;
        z-index: 100;
    }
    .chat-livechat:not(.chat-livechat--no-mobile).chat-livechat_bubble > iframe {
        transform: translateX(0);
    }
}

.chat-button-holder {
	order: 0;
    box-sizing: border-box;
    padding: 7px;
    z-index: 10000;
	
}
.chat-button-holder * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
@media print {
    .chat-button-holder {
        display: none;
    }
}
.chat-horisontal {
    max-width: unset;
}
.chat-button__iframe {
    max-width: unset;
}
.chat-button {
    background-size: cover;
    cursor: pointer;
    position: relative;
	width: 60px; 
	height: 60px; 
	z-index: 100002; 
	background: rgb(88, 187, 106); 
	border-radius: 30px; 
	float: left; 
	opacity: 1;
}
.chat-button,
.chat-button--main {
    -webkit-user-select: none;
    -moz-user-select: none;
}
.chat-button--main {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    display: flex;
    justify-content: center;
    user-select: none;
}
.chat-button--main.maincollapsed {
    box-shadow: 1px 1px 15px 0 rgba(0, 0, 0, 0.15);
}
.chat-button--main.maincollapsed:before {
    border: 2px solid;
    border-color: inherit;
    border-radius: inherit;
    bottom: -1px;
    content: "";
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}
.chat-button--main-icon {
    display: block;
    height: 100% !important;
    width: 100% !important;
    z-index: 6;
}
.chat-button--main-icon-inner {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
}
.chat-button--main-icon-inner svg {
    height: 80%;
    width: 80%;
}
.chat-button--only-livechat .chat-button--main-icon-inner svg {
    height: 50%;
    width: 50%;
}
.chat_animation_waves:after,
.chat_animation_waves:before {
    animation: chat-button-wave 2.6s linear 0s infinite;
    background: inherit;
    border-radius: inherit;
    content: "";
    display: block;
    height: 100% !important;
    left: 0;
    position: absolute;
    width: 100% !important;
    z-index: 0;
}
.chat_animation_waves:before {
    animation-delay: 0s;
}
.chat_animation_waves:after {
    animation-delay: 1.3s;
}

.chat-button-greeting-badge {
    align-items: center;
    background: #eb5757;
    border-radius: 50%;
    color: #fff !important;
    display: none;
    display: flex;
    font-family: Roboto, sans-serif !important;
    font-size: 14px !important;
    height: 24px !important;
    justify-content: center;
    line-height: 16px !important;
    position: absolute;
    right: 50px;
    top: -6px;
    width: 24px !important;
    z-index: 9;
}

/* popup окно */
#window_chat {
    display: none;
}

/*---------------------- popup-----------------*/

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
	display: block;
}
/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
    display: none;
}
body {
	line-height: 1;
}
menu, ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
html, body {
  height: 100%;
  background: none transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;

}
/*body * {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  outline: none;
}*/
input, textarea {
  -webkit-user-select: initial;
     -moz-user-select: initial;
          user-select: initial;
  font-style: normal;
  font-family: Roboto, Helvetica, Arial, sans-serif;
}
body {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.styles_header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 14px;
  width: 100%;
  height: 4vh;
  background: linear-gradient(285.77deg, rgba(135, 135, 135, 1) 0%, rgba(0, 0, 0, 0) 62.06%), #4f4f4f;
  color: #fff;
  box-shadow: 1px 6px 13px rgba(0, 0, 0, 0.1), 0px 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 2;
}
.styles_name {
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;

  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.styles_name_no_avatar {
  margin-left: 12px;
}
.styles_main {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
/* панель с сообщением */
.styles_messages { 
  margin-bottom: 38px;
  overflow-y: scroll;
  overflow-x: hidden;
  
}
.styles_messages:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-color: #F1F2F8;
  background-image: url('../img/svg/leaves-2-white.svg');
  background-repeat: repeat;
}
.styles_messages::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.styles_messages_inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 0 14px 116px;
}
.styles_message_wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}
.styles_message_wrapper:not(.styles_message_wrapper_outgoing) + .styles_message_wrapper:not(.styles_message_wrapper_outgoing) .styles_delimiter {
  padding-top: 12px;
}
.styles_message_wrapper:not(.styles_message_wrapper_outgoing) +
.styles_message_wrapper:not(.styles_message_wrapper_outgoing)
  .styles_delimiter {
  margin-top: 3px;
}
.styles_message_wrapper_date_delimiter,
.styles_message_wrapper_date {
  padding-top: 10px !important;
}
.styles_date {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 12px;
  color: #B1B8BA;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  margin-top: 8px;
  margin-bottom: 8px;
}

.styles_message {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  width: 14rem;
  padding: 5px;
  background: #FDFBFB;
  border-radius: 6px;
  font-size: 14px;
  line-height: 18px;
}
.styles_message:before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  border-right: 12px solid transparent;
  border-left: 12px solid #fff;
  border-top: 8px solid #fff;
  border-bottom: 8px solid transparent;
  right: -13px;
  top: 8px;
  z-index: -1;
}
.styles_message_a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  width: 14rem;
  padding: 5px;
  background: #FDFBFB;
  border-radius: 6px;
  font-size: 14px;
  line-height: 18px;
  left: 30%;
}
.styles_message_a:before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  border-left: 12px solid transparent;
  border-right: 12px solid #fff;
  border-top: 8px solid #fff;
  border-bottom: 8px solid transparent;
  left: -13px;
  top: 8px;
  z-index: -1;
}
.styles_message:not(.styles_message_outgoing) {
  margin-right: auto;
}
.styles_text {
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  line-height: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #000;
  font-size: 14px;
  font-weight: 700;
}
.styles_text a {
  color: #313942;
}
.styles_message_outgoing .styles_text a {
  color: #fff;
}
.styles_footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 26px;
  left: 0;
  z-index: 0;
  width: 100%;
  font-size: 12px;
  line-height: 14px;
}
.styles_compose_wrapper {
  display: flex;
  flex-shrink: 0;

  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2;

  margin: auto 14px 14px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.styles_compose_wrapper:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 36px;
  z-index: -1;
}
.styles_compose {
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-grow: 1;
  min-height: 42px;
  background: #FFFFFF;
  border: 1px solid #CDCED2;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding-left: 18px;
}
.styles_textarea {
  overflow: hidden; 
  overflow-wrap: break-word; 
  height: 44px;
  min-height: 29px;
  max-height: 170px;
  outline: none;
  width: 100%;
  border: 0;
  background: none;
  resize: none;
  font-size: 14px;
  color: #000;
  line-height: 18px;
  padding: 13px 0;
}
.styles_textarea::-moz-placeholder {
  color: #B1B8BA;
}
.textarea::-moz-placeholder {
  color: #B1B8BA;
}
.styles_textarea::placeholder {
  color: #B1B8BA;
}
.styles_textarea::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
.styles_actions {
  display: flex;
}
.styles_gif_icon_wrapper {
  display: flex;
  padding-top: 13px;
  justify-content: center;
  height: 100%;
  padding-right: 8px;
  cursor: pointer;
  color: #adb0b6;
}
.styles_emoji_picker_container {
  position: relative;
}
.styles_emoji_icon_wrapper {
  display: flex;
  justify-content: center;
  height: 100%;
  padding-top: 12px;
  padding-right: 6px;
  cursor: pointer;
  color: #adb0b6;
}
.styles_emoji_icon_wrapper.styles_emoji_icon_wrapper_last {
  padding: 12px 13px 12px 6px;
  border-top-right-radius: 21px;
  border-bottom-right-radius: 21px;
}
.styles_input {
  display: none;
}
.styles_label {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  padding-right: 13px;
  height: 100%;
  border-top-right-radius: 21px;
  border-bottom-right-radius: 21px;
  cursor: pointer;
}
.styles_label.styles_label_loading {
  cursor: default;
}
.styles_attach_icon {
  color: #adb0b6;
}
.styles_button {
  display: flex;
  flex-shrink: 0;
  cursor: pointer;
  margin: auto 0 0 8px;
}
.styles_button:active {
  transform: translateY(1px);
}
.styles_button_hidden {
  display: none;
}
.styles_button_icon {
  fill: #007AFF;
}
/*---------------------- hint-----------------*/
/* размер окна hint */
.chat-livechat_bubble {
    height: 7rem;
    width: 9.7rem;
}
#app-hint {
  display: flex;
  flex-direction: column;

}
.styles_bubble {
  display: flex;
  position: absolute;
  width: 88vw;
  padding: 10px;
  z-index: 5;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 1px 5px 8px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.styles_bubble.bottom-left {
  width: 100%;
  left: 10px;
  bottom: 15px;
  margin-right: 7px;
}
.styles_bubble.bottom-left .styles_arrow {
  left: var(--offset);
  transform: translateX(calc(-50% - 1px));
}

.styles_message-hint {
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  overflow: hidden;
  word-break: break-word;
}
.styles_arrow {
  content: '';
  position: absolute;
  z-index: 2;
  top: 100%;
  border: 7px solid;
  border-color: #f5f5f5 transparent transparent transparent;
}