.chat_btn {
	width: 60px;
	height: 60px;
	/*background: #d65745;*/
	background: orange;
	border-radius: 50%;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 2000;
	transition-duration: 0.5s
}

.chat_btn i:before{
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate3d(-50%, -50%, 0);
   /*content: "chat_bubble";*/
   font-size: 28px;
   color: white;
   font-style: normal;
}

.chat_btn i:after{
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate3d(-50%, -50%, 0);
   /*content: "more_horiz";*/
   font-size: 20px;
   /*color: #d65745;*/
   color: orange;
   font-style: normal;
}

.chat_btn.opened i:before{
   /*content: "close";*/
}
.chat_btn.opened i:after{
   content: "";
}

.msg_container .btn-cta:hover, .btn-cta:focus {
   color: white;
   box-shadow: 1px 2px 0px 0px rgba(0, 0, 0, 0.5);
   cursor: pointer;
   text-decoration: none;
   /*background: #EE5644 radial-gradient(circle, transparent 1%, #EE5644 1%) center/15000%;*/
   background: orange radial-gradient(circle, transparent 1%, orange 1%) center/15000%;
}

.chat_btn:active ,
.msg_container .btn-cta:active {
   /*background-color: #d65745;*/
   background-color:orange;
   background-size: 100%;
   transition: background 0s;
}

.msg_container .btn-cta {
   border-radius: 3px;
   background-color: rgb(214, 87, 69);
   z-index: 11;
   font-size: 14px;
   font-weight: 500;
   display: inline-flex;
   text-decoration: none;
   color: white;
   padding: 10px 15px;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   -moz-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   -webkit-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   width: 100%;
   margin: 10px 0;
   align-items: center;
   justify-content: center;
}
.msg_container .btn-cta{
   padding: 20px 40px; }
@media (max-width: 768px) {
   .msg_container .btn-cta{
      margin-bottom: 20px; } }
@media (max-width: 540px) {
   .msg_container .btn-cta{
      margin-bottom: 20px; } }

.chat_btn:hover, .chat_btn:focus {
   /*background: #EE5644 radial-gradient(circle, transparent 1%, #EE5644 1%) center/15000%;*/
   background: orange radial-gradient(circle, transparent 1%, orange 1%) center/15000%;
   box-shadow: 1px 2px 0px 0px rgba(0, 0, 0, 0.5);
   cursor: pointer;
}

#chat-window .row{
   padding: 0 10px 15px 10px;
}
#chat-window {
	position: fixed;
	bottom: calc(40px + 75px);
	height: calc(100% - 20px - 75px - 20px);
	right: 50px;
	width: 370px;
	min-height: 250px;
	max-height: 590px;
	z-index: 2001;

   background-color: rgb(243, 245, 246);
   box-shadow: 5px 8.66px 30px 0px rgba(47, 58, 79, 0.3);
   border-radius: 20px;
}

#chat-window:after {
   -webkit-animation: fa-spin 2s infinite linear;
   animation: fa-spin 2s infinite linear;
   content: "\f1ce";
   font-family: "Font Awesome 5 Free", "FontAwesome";
   font-size: 40px;
   position: absolute;
   top: calc(50% - 20px);
   left: calc(50% - 20px);
   z-index: -1;
   color: rgba(47, 58, 79, 0.31);
}


#chat-window .panel-title{
   padding-left: 10px;
   color: #2f3a4f;
   font-weight: 600;
   font-size: 16px;
}

#chat-window .panel-title .img-wrapper{
   display: inline-block;
   background-color: rgb(214, 87, 69);
   padding: 3px;
   width: auto;
   height: auto;
   border-radius: 25px;
   margin: 10px;
}
#chat-window .panel-title img{
   width: 35px;
   height: auto;
   border-radius: 50%;
}
#chat-window .panel-title img[src*="logo_a"]{
   -webkit-filter: brightness(0) invert(1);
   filter: brightness(0) invert(1);
}

#chat-window .avatar,
#chat-window time{
   display: none;
}

.btn_send {
   position: absolute;
   bottom: 16px;
   right: 16px;
   width: 38px;
   height: 38px;
   border-radius: 19px;
	margin-bottom: 0 !important;
	background-color: #2f3a4f !important;
}

.btn_send i:before{
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate3d(-50%, -50%, 0);
   content: "send";
   font-family: 'Material Icons';
   font-size: 20px;
   font-style: normal;
}

/** for old support */
.tchat_close,
.tchat_close:focus,
.tchat_close:hover {
   height: 100%;
   color: #2f3a4f;
   background: none;
   font-size: 18px;
}
.tchat_close i:before{
   content: "close";
   font-family: "Material Icons";
   font-style: normal;
}

.tchat_header {
   height: 59px;
   display: flex;
   justify-content: space-between;
}
/** end for old support */

.window_close {
   display: flex;
   align-items: center;
   width: 32px;
   cursor: pointer;
}

.window_header {
	height: 59px;
	display: flex;
	justify-content: space-between;
}

.tchat_body {
	height: calc(100% - 118px);
	background-color: #F5F5F5;
	overflow-y: auto;
}

.tchat_footer {
	height: 59px;
}

.tchat_footer:after {
   content: ' ';
   position: absolute;
   bottom: -24px;
   right: 0;
   width: 50px;
   height: 50px;
   border-right: solid 30px #F5F5F5;
   border-bottom: solid 24px transparent;
   border-top: solid 20px transparent;
}

.tchat_composer {
	display: flex;
	align-items: stretch;
	height: 100%;
}

.tchat_composer textarea {
   direction: ltr;
	resize: none;
	margin-bottom: 10px;
	height: 100%;
	width: 100%;
   border-radius:25px;
   padding: 4px 48px 4px 15px;
   border: 2px solid rgb(236, 236, 236);
   background-color: rgb(255, 255, 255);
}

.tchat_composer textarea::placeholder {
   color: #cccccc;
}

.msg_receive{
	padding-left:0;
	margin-left:0;
}

.messages.msg_sent{
	margin-right:0;
   color: #2f3a4f;
   background-color: rgb(255, 255, 255);
   box-shadow: 1.5px 2.598px 7px 0px rgba(47, 58, 79, 0.2);
   border-radius: 20px 0 20px 20px;

}

.messages {
	padding: 10px 15px;
	max-width:100%;
   color: white;
   font-weight: 600;
   background-color: rgb(47, 58, 79);
   box-shadow: 1.5px 2.598px 7px 0px rgba(47, 58, 79, 0.2);
   border-radius: 0 20px 20px 20px;
}

.messages .name,
.messages .name + br{
   display: none;
}

.messages > p {
	font-size: 13px;
   line-height: 16px;
	margin: 0 0 0.2rem 0;
}

.fa-color {
  color: white;
}
.messages > time, .messages > span.name {
	font-size: 11px;
	color: #ccc;
}

.msg_container {
	padding: 10px;
	overflow: hidden;
	display: flex;
}

.avatar {
	position: relative;
}

.avatar img {
	border-radius: 50%;
	max-width: initial;
}

.base_receive > .avatar:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border: 5px solid #FFF;
	border-left-color: rgba(0, 0, 0, 0);
	border-bottom-color: rgba(0, 0, 0, 0);
}

.base_sent {
	justify-content: flex-end;
	align-items: flex-end;
}

.base_sent > .avatar:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 0;
	border: 5px solid white;
	border-right-color: transparent;
	border-top-color: transparent;
	box-shadow: 1px 1px 2px rgba(black, 0.2);
}

.msg_sent > time, .msg_sent > span.name {
	float: right;
}

.tchat_body::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

.tchat_body::-webkit-scrollbar {
	width: 12px;
	background-color: #F5F5F5;
}

.tchat_body::-webkit-scrollbar-thumb {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #555;
}

.chat_badge {
	position: absolute;
	left: 0px;
	top: 0px;
}

@keyframes blink {
    0% {
      opacity: .2;
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: .2;
    }
}

.writing {
	background: #f9f9f9;
	font-size: 11px;
}

.writing span {
    animation-name: blink;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.writing span:nth-child(2) {
    animation-delay: .2s;
}

.writing span:nth-child(3) {
    animation-delay: .4s;
}

@media only screen and (max-device-width: 667px), screen and (max-width: 450px) {
	#chat-window {
      border-radius: 0;
		position: fixed;
		top: 0; right: 0; bottom: 0; left: 0;
		z-index: 2001;
      max-height: 100%;

		width: 100%;
		height: 100%;
	}

	.noscroll {
		position: fixed !important;
		height: 100% !important;
		overflow: hidden !important;
	}
}
