#telegram_helper {
	background-color: #f5f5f5;
	bottom: 0;
	display: none;
	min-height: 280px;
	max-height: 600px;
	/* min-width: 400px; */
	height: 280px;
	position: fixed;
	right: 10px;
	width: 400px;
	-moz-border-radius: 0px;
	-webkit-border-radius: 5px 5px 0px 0px;
	border-radius: 3px 3px 0px 0px;
	box-sizing: border-box;
	box-shadow: 0 0 2px #a7a7a7;
	z-index: 1000;
	color:#000;
	max-width: 100vw;
}

#telegram_helper_link {
	bottom: 0;
	min-height: 15px;
	padding: 10px;
	position: fixed;
	right: 0;
	width: 200px;
	cursor: pointer;
	text-align: center;
	border-radius: 2px 0 0 0;
	border-bottom: 2px solid #EFFDDE;
	z-index: 100;
	margin-right: 20px;
	padding-left:50px;
	background: url(images/chat_small_white.png) no-repeat 15px 50%;
	background-color: #d9230f; /*#6389a8;*/
	box-sizing: border-box;
}

#telegram_helper_link a {
	color: white;
	font-size: 15px;
	text-decoration: none;
	font-family: 'Trebuchet MS',"Helvetica","Arial",sans-serif;
	letter-spacing: 1px;
}

#telegram_helper .messages_wrapper {
	background-color: #e5e5e5;
	height: calc(100% - 110px);
	max-height: 500px;
	overflow: auto;
	float: left;
	/*padding: 10px;*/
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

#telegram_helper .messages_drag_wrapper {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

#telegram_helper .messages {
	overflow: auto;
	float: left;
	padding: 10px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	display: table;
}


#telegram_helper .messages .text_blocks_wrapper {
	display: table-cell;
	vertical-align: bottom;
	height: 100%;
}


#telegram_helper .new_message {
	display: block;
	left: 10px;
	width: 100%;
	float: left;
	padding: 10px;
	box-sizing: border-box;
	background: #f7f7f7;
	border-top: 1px solid #ececec;
}
#telegram_helper .new_message input[type=text]{
	height: 34px;
	width: calc(100% - 70px);
	font-size:15px;
	padding-left: 10px;
	position: relative;
	float: left;
	border: 1px solid #ececec;
	border-right: 0;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
	transition: all 0.3s ease;
	background-color: #fff;
	box-sizing: border-box;
}

#telegram_helper .new_message input[type=text]:focus {
	outline:none;
	border: 1px solid #ececec;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,.07),0 3px 1px -2px rgba(0,0,0,.1),0 1px 5px 0 rgba(0,0,0,.06);
}


#telegram_helper .send_button {


	border-radius: 0%;
	border: none;
	color: black;
	cursor: pointer;
	display: inline-block;
	font-weight: 700;
	height: 34px;
	line-height: 36px;
	margin: 0;
	outline: medium none;
	overflow: hidden;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	vertical-align: middle;
	will-change: box-shadow;
	width: 70px;
	font-size: 12px;
	padding: 0;
	letter-spacing: 1px;
	font-family: 'Trebuchet MS',"Helvetica","Arial",sans-serif;
	background: url(images/airplane.png) no-repeat 50% 50%;
	background-color: #d9230f;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
	float: left;
}



#telegram_helper .send_button:hover {
	box-shadow: 0 2px 2px 0 rgba(0,0,0,.07),0 3px 1px -2px rgba(0,0,0,.1),0 1px 5px 0 rgba(0,0,0,.06);
}


#telegram_helper .close {
    display: block;
    position: absolute;
    top:10px;
    right: 10px;
	opacity: 1;
}

#telegram_helper .close a {
	font-size: 15px;
	font-weight: bold;
	text-decoration: none;
	color: #d9230f; /*#c2d7e8; /*#ffffff;*/
	font-family: sans-serif;
	/*background: #b9b9b9;*/
	display: inline-block;
	height: 30px;
	width: 30px;
	line-height: 29px;
	text-align: center;
	border-radius: 50%;

	/*background: rgba(158, 158, 158, 0.2)  none repeat scroll 0 0;*/
	/*background: url(images/close1.png) no-repeat 50% 50%;*/
	/*box-shadow: 0 1px 1.5px 0 rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.24);*/
}

#telegram_helper .close a:hover {
	background-color: rgba(158, 158, 158, 0.4);
	box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/*#telegram_helper .error_line {
    color:red;
}*/

#telegram_helper .led{
	width: 6px;
	height: 6px;
	display: block;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	-khtml-border-radius: 3px;
	font-size: 3px;
	color: #fff;
	line-height: 6px;
	text-align: center;
	background: #000;
	position: absolute;
	/*border: 2px solid black;*/
	border-radius: 50%;
}
#telegram_helper .led_status {
	color: grey;
	font-size: 75%;
}

#telegram_helper .graggabilly {
	cursor: all-scroll;
}


#telegram_helper .led.live{
    background:lightgreen;
}

#telegram_helper .led.died{
    background:darkred;
}

#telegram_helper .avatar {
	float: left;
	height: 40px;
}

#telegram_helper .avatar_default, #telegram_helper .avatar_image {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

#telegram_helper span.avatar_default {

	background:  url('images/i-telegramm.png') no-repeat 50% 50%;
	display: block;
	color: #ffffff;
	font-family: Verdana,sans-serif;
	font-size: 15px;
	line-height: 40px;
	text-align: center;
}


#telegram_helper .assistant_name {
	float: left;
	font-size: 15px;
	line-height: 40px;
	padding-left: 10px;
	padding-right: 10px;
	font-family: 'Trebuchet MS',"Helvetica","Arial",sans-serif;
	color: #000;
}

#telegram_helper .CLIENT {
	float: right;
	/*border-radius: 12px 12px 0 12px;*/
	background-color: #f7f7f7;
	box-shadow: 0 1px 2px #cccccc;
}
#telegram_helper .ASSISTANT {
	background-color: #EFFDDE; 
	/*border-radius: 12px 12px 12px 0;*/
	float: left;
	box-shadow: 0 1px 2px #bdbdbd;
}
#telegram_helper .CLIENT, #telegram_helper .ASSISTANT {
	margin: 0;
	padding: 5px 8px;
	cursor:text;
	position: relative;
}


#telegram_helper .status_line {
	float: left;
	width: 100%;
	/*background: #6389a8;*/
	border-bottom: 1px solid #ececec;
	padding: 5px 10px;
	box-sizing: border-box;
	border-radius: 3px 3px 0 0;
    min-height: 50px;
	cursor:all-scroll;
}

#telegram_helper .text_block {
    display: inline-block;
    position: inherit;
    width: 100%;
	font-size: 13px;
	font-family: "Trebuchet MS", "Helvetica", "Arial", sans-serif;
	float: left;
	margin: 2px 0px;
}




#telegram_helper .CLIENT .send-time{
	text-align: left;
	color:#bdbdbd;
}
#telegram_helper .ASSISTANT .send-time{
	text-align: right;
	color: #61C555; /*#fff;*/
}
#telegram_helper .ASSISTANT .send-time, #telegram_helper .CLIENT .send-time{
	display: block;
	font-size: 80%;
}

#telegram_helper .resizer {
	background: url(images/angel.png) no-repeat;
	width: 16px; height: 16px;
	position:absolute; right: 0; bottom: 0; cursor: se-resize; }


#telegram_helper_drag_wrapper {
	position: fixed;
	width:100%;
	height: 100%;
	z-index: -100;
	top:30px;
	left:0;
}

#telegram_helper .made_by {
	margin: 0;
	padding: 0;
	font-size: 10px;
	color: #A5A5A5;
	text-align: right;
	margin-right: 20px;
	position: absolute;
	bottom: 0px;
	right: 100px;
}



#telegram_helper_link.green, #telegram_helper.green .send_button{
	background-color: darkgreen;
}

#telegram_helper.green .close a {
	color: darkgreen;
}
#telegram_helper_link.blue, #telegram_helper.blue .send_button{
	background-color: darkblue;
}

#telegram_helper.blue .close a {
	color: darkblue;
}

#telegram_helper_link.gray, #telegram_helper.gray .send_button{
	background-color: darkgrey;
}

#telegram_helper.gray .close a {
	color: darkgrey;
}


#telegram_helper_link.black, #telegram_helper.black .send_button{
	background-color: black;
}

#telegram_helper.black .close a {
	color: black;
}


@media screen and (max-width: 500px) and (max-height: 640px){

	#telegram_helper {
		left: 0;
		top: 0;
		width: 100% !important;
		height: 100% !important;
		min-width: 300px;
		z-index: 5000;
		font-weight: bold;
	}


	#telegram_helper .resizer, #telegram_helper .made_by {
		display: none;
	}

	#telegram_helper_link a {
		display: none;
	}
	#telegram_helper_link { 
		width:40px;
		height: 40px;
		right: 0;
		bottom:50%;
		margin-right: 0;
	}

}

#telegram_helper_link:not(.show-btn){
		display:none !important;
	}
	.messenger {
  display: flex;
    position: fixed;
    right: 100px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    z-index: 999;
	--btn-size: 60px;
	--btn-radius: 50%;
}
.messenger-btn {
    padding: calc(var(--btn-size) / 4);
    display: block;
    width: var(--btn-size);
    height: var(--btn-size);
    border-radius: var(--btn-radius);
    background-color: #4413f9;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
	color:#fff;
}
.messenger-btn.show .icon-chat{
	display:none;
}
.messenger-btn:not(.show) .icon-close{
	display:none;
}
.messenger-btn img,
.messenger-btn svg{
  width: calc(var(--btn-size) / 2);
  height: calc(var(--btn-size) / 2);
  display: block;
}
.messenger-links {
  position: absolute;
  left: -59%;
  /* top: -100%; */
  width: 44px;
  transform: scale(0);
  transform-origin: 100% 50%;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  z-index: 0;
  bottom: 67px;
}
.messenger-links.show {
  /* left: -45px; */
  transform: scale(1);
}
.messenger-links a {
  width: 40px;
  margin-left: 4px;
  display: block;
  height: 40px;
  margin-bottom: 14px;
  transition: transform .4s ease-out;
	will-change: transform;
}
.messenger-links a.chat{
	border-radius: 50%;
	background: #4413f9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	width: 45px;
	height: 45px;
}
.messenger-links a.order-call{
	border-radius: 50%;
	background: #4413f9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	width: 40px;
	height: 40px;
}
.messenger-links a,
.messenger-links img,
.messenger-links svg{
  
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.messenger-links a:hover,
.messenger-links a:hover img,
.messenger-links a:hover svg{
  transform: scale(1.1);
  text-decoration: none;
}
.widgethelp_pulse {
  border-radius: var(--btn-radius);
  box-shadow: 0 0 0 #FF3338;
  animation: animationpulse 2s infinite;
   -webkit-animation: animationpulse 2s ease-out;
   -webkit-animation-iteration-count: infinite;
   position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}
.widgethelp_pulse:hover {
  animation: linear;
}
@-webkit-keyframes animationpulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 inherit;
  }
  70% {
      -webkit-box-shadow: 0 0 0 15px rgba(0,0,0, 0);
  }
  100% {
      -webkit-box-shadow: 0 0 0 0 rgba(0,0,0, 0);
  }
}
@keyframes animationpulse {
  0% {
     transform: scale(1.0, 1.0);
    -moz-box-shadow: 0 0 0 0 inherit;
    box-shadow: 0 0 0 0 inherit;
  }
  10% {
     transform: scale(1.1, 1.1);
  }
  15% {
     transform: scale(1.0, 1.0);
  }
  70% {
      -moz-box-shadow: 0 0 0 15px rgba(0,0,0, 0);
      box-shadow: 0 0 0 15px rgba(0,0,0, 0);
  }
  100% {
      -moz-box-shadow: 0 0 0 0 rgba(0,0,0, 0);
      box-shadow: 0 0 0 0 rgba(0,0,0, 0);
  }
}
@-ms-keyframes animationpulse {
    0% {
        -ms-transform: scale(1.0, 1.0);
        box-shadow: 0 0 5px #FF3338;
    }
    10% {
        box-shadow: 0 0 15px #FF3338;
        -ms-transform: scale(1.1, 1.1);
    }
    20% {
     box-shadow: 0 0 5px #FF3338;
        -ms-transform: scale(1.0, 1.0);
    }
    100% {
    box-shadow: 0 0 5px #FF3338;
       -ms-transform: scale(1.0, 1.0);
    }
}
@media (max-width: 576px) {
	.messenger {
  
    right: 15px;
    bottom: 15px;
	--btn-size: 40px;
  
}
}