@charset "utf-8";
#chat_ico{
	position: fixed;
	bottom: 50px;
	right: 20px;
	cursor: pointer;
	z-index: 99;
}
.chat_close{
	position: fixed;
	bottom: 0px;
	right: 20px;
	width: 320px;
	height: 33px;
	background: #D34E34;
	color: white;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	border-radius: 10px 10px 0 0;
	cursor: pointer;
	z-index: 99;
}
.chat_close-left{
	margin-left: 20px;
	margin-top: 4px;
}
.chat_close-right{
	margin-right: 20px;
	margin-top: 4px;
}
.chat_body{
	flex-grow: 1;
	margin-top: 5px;
	overflow-y: scroll;
	scrollbar-width: none;
	margin-bottom: 5px;
}
.chat_body::-webkit-scrollbar {
    display: none; /* Приховує скроллбар у WebKit (Chrome, Safari) */
}
.chat_open{
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 320px;
	height: 500px;
	background: #E6E7E7;
	border-radius: 10px;
	box-shadow: 5px 4px 20px rgba(0, 0, 0, 0.5); /* Додає тінь */
	display: flex;
	flex-direction: column;
  	justify-content: space-between;
  	z-index: 99;
}
.chat_title{
	height: 33px;
	background: #D34E34;
	border-radius: 10px 10px 0 0;
	color: white;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
}
.chat_title-left{
	margin-top: 4px;
	margin-left: 20px;
}
.chat_title-right{
	margin-top: 3px;
	margin-right: 10px;
	font-size: 1.1rem;
}
.chat_footer{
	height: 60px;
	background: white;
	border-radius: 0 0 10px 10px;
	display: flex;
	justify-content: space-between;
}
.chat_footer-left textarea{
	margin-top: 2px;
	width: 260px;
	height: 55px;
	border: none;
	resize: none;
	text-align: center; /* Вирівнює текст по горизонталі */
    padding-top: 18px; /* Вирівнює текст по вертикалі */
    box-sizing: border-box; /* Включає padding у розміри елемента */
    overflow: hidden;
}
/* Додаємо аналогічний стиль для placeholder */
.chat_footer-left textarea::placeholder {
    text-align: center; /* Вирівнює текст placeholder по горизонталі */
}
.chat_footer-right {
    display: inline-block;
    transition: filter 0.3s ease;
}

.chat_footer-right img {
	margin-top: 14px;
	margin-right: 10px;
    display: block;
    filter: none;
    transition: filter 0.3s ease;
}

.chat_footer-right:hover img {
    filter: sepia(0.7) hue-rotate(350deg) saturate(3);
}
.manager-img{
	margin-top: 3px;
}
.manager-main{
	margin-left: 10px;
	display: flex;
}
.manager-message{
	background: white;
	width: 240px;
	margin-left: 5px;
	margin-top: 3px;
	border-radius: 0 7px 7px 7px;
	padding: 5px 10px 5px 15px;
	line-height: 0.9rem;
}
.client-message{
	background: #ECF5FF;
	margin-top: 3px;
	width: 288px;
	margin-left: 15px;
	padding: 5px 10px 5px 15px;
	border-radius: 7px 0 7px 7px;
	line-height: 0.9rem;
}
.client-message-footer, .manager-message-footer{
	color: #706F6F;
	font-size: 0.7rem;
	text-align: right;
}
.chat_new_message{
	width: 23px;
	background: #49C200;
	border-radius: 20px;
	position: fixed;
	bottom: 110px;
	right: 20px;
	cursor: pointer;
	z-index: 100;
	text-align: center;
	color: white;
	font-weight: bold;
}