﻿.pit-chat-btn {
	cursor: pointer;
	position: fixed;
	margin: 25px;
	bottom: 0;
	right: 0;
	z-index: 1000;
}

.pit-chat-area {
	position: fixed;
	margin: 0 80px 20px 0;
	bottom: 0;
	right: 0;
	height: 100%;
	max-height: 450px;
	width: calc(100% - 65px);
	width: -webkit-calc(100% - 65px);
	max-width: 350px;
	z-index: 10000;
	background-color: #5bb031;
	padding: 40px 10px 10px 10px;
	border-radius: 15px;
}

	.pit-chat-area .pit-chat-area-header {
		position: absolute;
		float: left;
		top: 0px;
		left: 0px;
		padding: 0 5px;
		width: calc(100% - 10px);
		height: 35px;
	}
		.pit-chat-area .pit-chat-area-header.allow-move {
			cursor: move;
		}

		.pit-chat-area .pit-chat-area-header .pit-chat-area-header-text {
			text-align: left;
			font-weight: 400;
			font-size: 20px;
			line-height: 35px;
		}

		.pit-chat-area .pit-chat-area-header .pit-chat-close-btn {
			cursor: pointer;
			position: absolute;
			float: right;
			top: 0;
			right: 0;
			height: 35px;
		}

	/*.pit-chat-area .pit-chat-move-btn {
		cursor: move;
		position: absolute;
		float: left;
		top: 10px;
		left: 10px;
		opacity: 0.6;
		font-size: 27px;
	}
		.pit-chat-area .pit-chat-move-btn:after {
			content: '\2932';
		}*/

	.pit-chat-area .pit-chat-curtain {
		background-color: #FBFBFB;
		background: 35% 35% repeat url("../wait_plh.gif");
		height: 100%;
		width: 100%;
	}

.pit-hidden {
	display: none;
}

.pit-chat-frame {
	height: 100%;
	width: 100%;
	border-radius: 5px;
}


.k-chat .k-message-list-content > * + * {
	margin: 3px 0;
}

#chat {
	/* height: fit-content; */
	opacity: 1;
}

.k-chat {
	width: calc(100% - 2px);
	width: -webkit-calc(100% - 2px);
	height: calc(100% - 2px);
	height: -webkit-calc(100% - 2px);
	/* opacity: 0; */
	/* padding: 0 2px 2px 2px; */
	/*margin: 0 7px;*/
	border-color: #f9f9f9;
	margin: 0;
	max-width: 1024px;
}}

#chat.hidden, #files.hidden, #chat-mask.hidden,
#chats-area.hidden, #resolved-dialog-area.hidden, #knowledge-article-area.hidden {
	opacity: 0;
	position: absolute;
	width: 0;
	height: 0;
}

#chat-mask {
	background-color: transparent;
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	margin-top: 5px;
	background-color: #f5f5f8;
}

#chat-mask-content {
	font-weight: bold;
	position: relative;
	font-size: 21px;
	margin: 0 auto;
	top: 50%;
}

div.k-message-box input {
	max-width: 100%;
}

/*	стили textarea со скроллом	*/
div.k-message-box textarea {
	max-width: 100%;
	overflow-y: auto;
	resize: none;
}

	div.k-message-box textarea::-webkit-scrollbar {
		width: 0.5em;
		cursor: pointer;
	}

	div.k-message-box textarea::-webkit-scrollbar-track {
		-webkit-border-radius: 5px;
		border-radius: 5px;
		background-color: lightgrey;
	}

	div.k-message-box textarea::-webkit-scrollbar-thumb {
		-webkit-border-radius: 5px;
		border-radius: 5px;
		background-color: darkgrey;
		outline: 1px solid slategrey;
	}

	/*	стили textarea с авторесайзом  */
	div.k-message-box textarea.h-auto-resize {
		max-width: 100%;
		resize: none;
		overflow: auto;
		min-height: 1.4em;
		height: auto;
		max-height: 50vh;
		background-color: #fff;
		padding: 5px;
		border-radius: 10px;
	}


/* Smartphones (вертикальная и горизонтальная ориентация) ----------- */
@media only screen and (min-width : 320px) and (max-width : 1023px) and (max-height : 900px) {
	/* стили */
	img#pit-chat-btn {
		/*width: 60px;*/
	}

	.pit-chat-area {
		margin: 0 !important;
		max-width: inherit;
		max-height: inherit;
		bottom: 0;
		right: 0;
		width: 100%;
		height: calc(100% - 40px);
		height: -webkit-calc(100% - 40px);
		padding: 40px 0 0 0;
		border-radius: 0;
	}
		.pit-chat-area .pit-chat-move-btn {
			display: none;
		}

	img#pit-chat-btn2 {
		z-index: 2000;
		top: -22px;
		right: -21px;
	}

	.pit-chat-frame {
		border-radius: 0;
	}

	.pit-chat-btn {
		margin: 15px;
	}
}

/* Smartphones (горизонтальная) ----------- */
@media only screen and (min-width: 321px) {
	/* стили */
}

/* Smartphones (вертикальная) ----------- */
@media only screen and (max-width: 320px) {
	/* стили */
}

/* iPads (вертикальная и горизонтальная) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	/* стили */
}

/* iPads (горизонтальная) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
	/* стили */
}

/* iPads (вертикальная) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
	/* стили */
}

/* iPad 3**********/
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
	/* стили */
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
	/* стили */
}

.k-chat .k-message-box .k-button:hover {
	color: inherit;
}

.k-message-box .k-button {
	padding: 0 5px 0 8px;
}
/*###############################################################*/

.k-card-body {
	padding: 0px 0px;
}

.k-chat .k-alt .k-bubble {
	border-color: #eae8e8;
	color: #222;
	background-color: #eae8e8;
}

/*область кнопок*/
.k-chat .k-quick-replies {
	width: 100%;
}
	/**стиль для горизонтального скролла**/
	.k-chat .k-quick-replies.in-single-line {
		display: flex;
		overflow-x: auto;
		/*align-items: center;*/ /*кнопки по центру по вертикали*/
		align-items: stretch; /*кнопки растянуты по вертикали*/
		padding-bottom: 5px;
	}

	.k-chat .k-quick-replies .k-quick-reply {
		/*border-color: #eae8e8;
	color: #408020;*/
		background-color: transparent;
		border-radius: 10px;
		vertical-align: middle;
		text-align: center;
	}

	.k-chat .k-quick-replies.in-single-line .k-quick-reply {
		display: flex;
		align-items: center;
		justify-content: center;
		max-width: 35%;
	}

.k-chat .k-quick-reply:hover {
	border-color: #5bb031;
	color: #fff;
	background-color: #5bb031;
}

.k-message-group:not(.k-alt) > .k-avatar {
	top: 0;
}

	.k-chat .k-message-list {
		scroll-behavior: auto;
	}

.k-avatars .k-message-group:not(.k-alt):not(.k-no-avatar) {
	/*padding-left: 0;
	margin-top: 5px;*/
}

.k-chat .k-message-group.k-alt {
	max-width: 86%;
	width: 100%;
	/* margin-bottom: 10px; */
}

.k-chat .k-card-list {
	width: 100%;
}

body {
	background-color: #fff;
}

.k-quick-reply {
	padding: 5px 10px;
}

.k-chat .k-bubble {
	padding: 3px 5px 5px 5px;
	font-size: 14px;
	white-space: pre-wrap;
}

.k-chat .k-message-time {
	opacity: 1;
	font-size: 16px;
}

.k-chat .k-message-group:not(.k-alt) .k-only .k-bubble {
	border-top-left-radius: 2px;
	border-bottom-left-radius: 12px;
}

.k-chat .k-message {
	width: 100%;
}
.k-chat .k-message.k-state-selected {
	margin-bottom: 0;
}
.k-message.k-only .k-message-group:not(.k-alt) {
	left: -34px;
}

.k-message-group:not(.k-alt) > .k-avatar {
	/*top: -7px;*/
}
p {

	font-size: 14px;
}
p.k-author {
	/*min-height: 30px;
	padding-left: 35px;*/
	line-height: 30px;
	font-size: inherit;
}

.k-message-list.k-avatars {
	/* width: calc(100% + 13px); */
	/* width: -webkit-calc(100% + 13px); */
	/*overflow-y: scroll;*/
}

.k-message-list-content {
	/*padding-right: 20px !important;*/
}

button.k-button.k-flat.k-button-icon.k-button-send {
	width: inherit;
}

.k-message-box {
	padding: 5px;
}

.k-chat .k-message-list-content {
	padding: 16px 16px 16px 12px;
}

.k-chat .k-message {
	/*margin: 0;*/
}

.k-chat .ac-image {
	margin: 0 5px;
	min-width: unset !important;
}

.k-card-body .ac-container .ac-textBlock {
	word-break: break-word;
	word-wrap: break-word;
	-ms-word-wrap: break-word;
}

.ac-container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-right: 5px;
}

.k-card-body > .ac-container > .ac-container:last-child {
	border-radius: 12px;
	border-top-left-radius: 2px;
	padding-bottom: 0;
	padding-right: 20px;
}

	.k-card-body > .ac-container > .ac-container:last-child > .ac-textBlock {
		line-height: 2em;
		font-size: 14px !important;
	}

@media only screen and (min-width : 320px) and (max-width : 1023px) {
	.k-message-list.k-avatars {
		width: 100%;
	}

	.k-chat .k-message-list-content {
		padding: 16px 12px;
	}
}

iframe#pit-chat-frame {
	background-color: #fff;
}

/*картинка загрузки файла*/
div.k-message-box .pit-uploadfile-image {
	cursor: pointer;
	height: 2.1em;
}

:focus {
	outline-width: 0;
}

/**/
.k-card {
	border-color: transparent;
}

	.k-card .image-attachment {
		max-height: 120px;
	}

.k-chat .k-author {
	font-weight: 600;
}

.ac-container {
	padding: 2px 5px 2px 0 !important;
}

	.ac-container .ac-textBlock {
	}

.k-card-body > .ac-container > .ac-container:last-child {
	border-radius: 15px;
	border-top-left-radius: 2px;
	padding-bottom: 5px;
	padding-right: 10px;
	background-color: #e3eef9;
}

	.k-card-body > .ac-container > .ac-container:last-child > .ac-textBlock {
		padding-left: 6px;
	}

.k-card-body .ac-container .ac-textBlock ul,
.k-card-body .ac-container .ac-textBlock ol {
	width: auto !important;
}
/**/
::-webkit-scrollbar-thumb {
	background-color: #5067a9;
	border-radius: 1px;
	/* box-shadow: inset 1px 1px 10px #f3faf7; */
}

::-webkit-scrollbar {
	width: 4px;
	/* height: 8px; */
	background-color: #dcdbdb;
}

#msgCnt{
	background: rgb(255, 247, 0);
	border-radius: 9px;
	height: 18px;
	width: 18px;
	text-align: center;
	z-index: 9000;
	font-size: 12px;
	border: 1px solid #fbf209;
}
#wait{
	background:url(../wait3.gif);
	position:absolute; 
	top: calc(50% - 25px);
	left: calc(50% - 25px);
	width:50px;
	height:50px;
	background-size: contain;
}
.k-message-box .k-input{
	background-color: #fff;
	padding: 6px;
}

#editMessage {
	border-style: none;
	border-radius: 8px;
	/* background-color: inherit; */
	/* background-image: none,linear-gradient(to bottom,rgba(255,255,255,.3) 0,rgba(255,255,255,0) 100%); */
	/* max-width: 97%; */
	min-height: 18px;
	resize: none;
	overflow: auto;
	padding: 2px 3px 0px 3px;
	width: calc(100% - 3px);
	text-align: right;
	font-family: inherit;
	font-size: inherit;
	/* margin-top: 2px; */
	margin: -2px 0 -4px;
}