#console_top_row,
#status_wrap2,
.footerbtns > div {
	transition: transform 0.5s;
}

#contentPart {
	position: relative;
	left: 0;
	transition: left 0.5s;
}

body.cis-chat-console-shift-left #console_top_row,
body.cis-chat-console-shift-left #status_wrap2,
body.cis-chat-console-shift-left .footerbtns > div,
body.cis-chat-console-shift-right #console_top_row,
body.cis-chat-console-shift-right #status_wrap2,
body.cis-chat-console-shift-right .footerbtns > div {
	transform: translateX(var(--cis-chat-console-shift, 0px));
}

body.cis-chat-console-shift-left #contentPart,
body.cis-chat-console-shift-right #contentPart {
	left: var(--cis-chat-console-shift, 0px);
}

#btmbtn_chat,
#btmbtn_sms {
	position: relative;
	white-space: nowrap;
}

.cis-console-count {
	display: inline-block;
	min-width: 14px;
	height: 14px;
	margin: 0 0 3px 3px;
	padding: 0 4px;
	border-radius: 8px;
	background: #333;
	color: #eee;
	font: bold 10px/14px Verdana, Arial, sans-serif;
	text-align: center;
	vertical-align: middle;
	transform: scale(1);
	transition: background-color 2s ease, color 2s ease, transform 2s ease;
	transform-origin: center center;
}

.cis-console-count.cis-console-count-new {
	margin-bottom: 5px;
	background: transparent;
	color: #fff;
	transform: scale(1.4);
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.cis-console-count.cis-console-count-new.cis-console-count-fading {
	background: #333;
	color: #eee;
	transform: scale(1);
	transition: background-color 2s ease, color 2s ease, transform 2s ease;
}

#cis_console_chat_panel {
	position: fixed;
	right: max(12px, calc((100vw - 900px) / 2));
	bottom: var(--cis-chat-initial-bottom, 33px);
	width: min(295px, calc(100vw - 24px));
	height: min(430px, calc(100vh - 96px));
	display: none;
	flex-direction: column;
	background: transparent;
	border: 1px solid #333;
	border-radius: 15px 15px 0 0;
	box-shadow: 3px 3px 8px rgba(0,0,0,.35);
	z-index: 500;
	font: 12px Verdana, Arial, sans-serif;
	color: #151515;
	min-width: 260px;
	min-height: 220px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 44px);
	resize: none;
	overflow: hidden;
	transition: border-radius 0.5s, box-shadow 0.5s;
}

#cis_console_sms_panel {
	position: fixed;
	right: max(12px, calc((100vw - 900px) / 2));
	bottom: var(--cis-chat-initial-bottom, 33px);
	width: min(295px, calc(100vw - 24px));
	height: min(430px, calc(100vh - 96px));
	display: none;
	flex-direction: column;
	background: transparent;
	border: 1px solid #333;
	border-radius: 15px 15px 0 0;
	box-shadow: 3px 3px 8px rgba(0,0,0,.35);
	z-index: 499;
	font: 12px Verdana, Arial, sans-serif;
	color: #151515;
	min-width: 260px;
	min-height: 220px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 44px);
	resize: none;
	overflow: hidden;
	transition: border-radius 0.5s, box-shadow 0.5s;
}

#cis_console_chat_panel.cis-floating-panel {
	z-index: 500;
}

.cis-floating-panel.cis-panel-active {
	z-index: 501 !important;
}

#cis_console_chat_panel.cis-chat-open,
#cis_console_sms_panel.cis-chat-open {
	display: flex;
}

#cis_console_chat_panel.cis-chat-behind-call-menu,
#cis_console_sms_panel.cis-chat-behind-call-menu {
	z-index: 202;
}

.cis-floating-panel.cis-chat-behind-call-menu.cis-panel-active {
	z-index: 203 !important;
}

#cis_console_chat_panel.cis-chat-dragging,
#cis_console_sms_panel.cis-chat-dragging {
	user-select: none;
}

#cis_console_chat_panel.cis-chat-resizing,
#cis_console_sms_panel.cis-chat-resizing {
	user-select: none;
}

#cis_console_chat_panel.cis-chat-dragging .cis-chat-body-wrap,
#cis_console_chat_panel.cis-chat-resizing .cis-chat-body-wrap,
#cis_console_sms_panel.cis-chat-dragging .cis-chat-body-wrap,
#cis_console_sms_panel.cis-chat-resizing .cis-chat-body-wrap {
	opacity: .94;
}

#cis_console_chat_panel.cis-chat-touch-left,
#cis_console_sms_panel.cis-chat-touch-left {
	border-top-left-radius: 0;
}

#cis_console_chat_panel.cis-chat-touch-right,
#cis_console_sms_panel.cis-chat-touch-right {
	border-top-right-radius: 0;
}

#cis_console_chat_panel.cis-chat-touch-top,
#cis_console_sms_panel.cis-chat-touch-top {
	border-top-color: #666666;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	box-shadow: none;
}

.cis-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 34px;
	padding: 0 8px 0 10px;
	background: #666666;
	border-radius: 14px 14px 0 0;
	border-bottom: 1px solid #222;
	color: #fff;
	font-weight: bold;
	cursor: move;
	transition: border-radius 0.5s, box-shadow 0.5s;
}

#cis_console_chat_panel.cis-chat-touch-left .cis-chat-header,
#cis_console_sms_panel.cis-chat-touch-left .cis-chat-header {
	border-top-left-radius: 0;
}

#cis_console_chat_panel.cis-chat-touch-right .cis-chat-header,
#cis_console_sms_panel.cis-chat-touch-right .cis-chat-header {
	border-top-right-radius: 0;
}

#cis_console_chat_panel.cis-chat-touch-top .cis-chat-header,
#cis_console_sms_panel.cis-chat-touch-top .cis-chat-header {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.cis-chat-body-wrap {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	background: #f3f3f3;
}

.cis-chat-popup-logo {
	display: none;
}

.cis-chat-resize-handle {
	position: absolute;
	z-index: 3;
	background: transparent;
}

.cis-chat-resize-n,
.cis-chat-resize-s {
	left: 14px;
	right: 14px;
	height: 8px;
	cursor: ns-resize;
}

.cis-chat-resize-n {
	top: 0;
}

.cis-chat-resize-s {
	bottom: 0;
}

.cis-chat-resize-e,
.cis-chat-resize-w {
	top: 14px;
	bottom: 14px;
	width: 8px;
	cursor: ew-resize;
}

.cis-chat-resize-e {
	right: 0;
}

.cis-chat-resize-w {
	left: 0;
}

.cis-chat-resize-ne,
.cis-chat-resize-nw,
.cis-chat-resize-se,
.cis-chat-resize-sw {
	width: 16px;
	height: 16px;
}

.cis-chat-resize-ne {
	top: 0;
	right: 0;
	cursor: nesw-resize;
}

.cis-chat-resize-nw {
	top: 0;
	left: 0;
	cursor: nwse-resize;
}

.cis-chat-resize-se {
	right: 0;
	bottom: 0;
	cursor: nwse-resize;
}

.cis-chat-resize-sw {
	left: 0;
	bottom: 0;
	cursor: nesw-resize;
}

.cis-chat-resize-se:after,
.cis-chat-resize-sw:after {
	content: "";
	position: absolute;
	bottom: 3px;
	width: 7px;
	height: 7px;
	border-bottom: 1px solid #777;
}

.cis-chat-resize-se:after {
	right: 3px;
	border-right: 1px solid #777;
}

.cis-chat-resize-sw:after {
	left: 3px;
	border-left: 1px solid #777;
}

.cis-chat-title {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

.cis-chat-title-main {
	font-size: 12px;
	text-transform: uppercase;
}

#cis_chat_display_name {
	width: 4ch;
	min-width: calc(4ch - 2px);
	height: 19px;
	box-sizing: border-box;
	border: 1px solid #777;
	background: #eee;
	color: #151515;
	font: 11px Verdana, Arial, sans-serif;
	padding: 1px 4px;
	text-align: center;
}

#cis_chat_display_name:focus {
	background: #fff;
	border-color: #aaa;
	outline: none;
}

.cis-chat-display-name-sizer {
	position: absolute;
	left: -9999px;
	top: -9999px;
	visibility: hidden;
	white-space: pre;
	font: 11px Verdana, Arial, sans-serif;
}

#cis_chat_header_count,
#cis_sms_header_count {
	color: #d0d0d0;
	font-size: 10px;
	font-weight: normal;
	margin-left: auto;
	padding-left: 8px;
	padding-right: 8px;
	text-align: right;
	white-space: nowrap;
}

.cis-chat-header-actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 4px;
}

#cis_chat_hide,
#cis_chat_popout,
#cis_sms_hide,
#cis_sms_popout {
	width: 24px;
	height: 22px;
	border: 1px solid #777;
	background: #666;
	color: #fff;
	cursor: pointer;
	position: relative;
}

#cis_chat_view_console,
#cis_sms_view_console {
	height: 22px;
	border: 1px solid #777;
	background: #666;
	color: #fff;
	cursor: pointer;
	font: bold 10px Verdana, Arial, sans-serif;
	padding: 0 6px;
	white-space: nowrap;
}

#cis_chat_hide:hover,
#cis_chat_popout:hover,
#cis_chat_view_console:hover,
#cis_sms_hide:hover,
#cis_sms_popout:hover,
#cis_sms_view_console:hover {
	background: #737373;
}

#cis_chat_hide span,
#cis_sms_hide span {
	display: block;
	width: 9px;
	height: 9px;
	margin: 4px auto 0;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

#cis_chat_hide:hover span,
#cis_sms_hide:hover span {
	border-color: #ddd;
}

#cis_chat_hide.cis-chat-close-icon span,
#cis_sms_hide.cis-chat-close-icon span {
	width: 13px;
	height: 13px;
	margin: 5px auto 0;
	border: 0;
	position: relative;
	transform: none;
}

#cis_chat_hide.cis-chat-close-icon span:before,
#cis_chat_hide.cis-chat-close-icon span:after,
#cis_sms_hide.cis-chat-close-icon span:before,
#cis_sms_hide.cis-chat-close-icon span:after {
	content: "";
	position: absolute;
	left: 5px;
	top: 0;
	width: 2px;
	height: 14px;
	background: #fff;
}

#cis_chat_hide.cis-chat-close-icon span:before,
#cis_sms_hide.cis-chat-close-icon span:before {
	transform: rotate(45deg);
}

#cis_chat_hide.cis-chat-close-icon span:after,
#cis_sms_hide.cis-chat-close-icon span:after {
	transform: rotate(-45deg);
}

#cis_chat_popout span,
#cis_sms_popout span {
	display: block;
	width: 12px;
	height: 10px;
	margin: 7px auto 0;
	border: 2px solid #fff;
	box-sizing: border-box;
	position: relative;
}

#cis_chat_popout span:after,
#cis_sms_popout span:after {
	content: "";
	position: absolute;
	right: -4px;
	top: -5px;
	width: 7px;
	height: 7px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

#cis_chat_popout span:before,
#cis_sms_popout span:before {
	content: "";
	position: absolute;
	right: -4px;
	top: -4px;
	width: 7px;
	height: 2px;
	background: #fff;
	transform: rotate(-45deg);
	transform-origin: right center;
}

body.cis-chat-popup-mode,
body.cis-sms-popup-mode {
	margin: 0;
	background: #f3f3f3;
}

body.cis-chat-popup-mode #cis_console_chat_panel,
body.cis-sms-popup-mode #cis_console_sms_panel {
	display: flex;
	position: fixed;
	left: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0;
	min-height: 0;
	max-width: none;
	max-height: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	resize: none;
}

body.cis-chat-popup-mode .cis-chat-resize-handle,
body.cis-sms-popup-mode .cis-chat-resize-handle {
	display: none;
}

body.cis-chat-popup-mode .cis-chat-header,
body.cis-sms-popup-mode .cis-chat-header {
	cursor: default;
	border-radius: 0;
}

body.cis-chat-popup-mode .cis-chat-popup-logo,
body.cis-sms-popup-mode .cis-chat-popup-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	background: #000;
	flex: 0 0 auto;
}

body.cis-chat-popup-mode .cis-chat-popup-logo a,
body.cis-sms-popup-mode .cis-chat-popup-logo a {
	display: block;
	width: min(400px, calc(100vw - 10px));
	height: 50px;
	background: url(/images/t1/logo-400x50-clearbg.jpg) no-repeat center center;
	background-size: contain;
	text-indent: -9999px;
	overflow: hidden;
}

#cis_chat_messages,
#cis_sms_messages {
	flex: 1;
	overflow-y: auto;
	padding: 6px;
	background: #f3f3f3;
}

.cis-chat-empty,
.cis-chat-error {
	color: #666;
	padding: 8px 0;
}

.cis-chat-error {
	color: #9b0000;
}

.cis-chat-system-notice {
	margin: 4px 0;
	padding: 4px 6px;
	color: #555;
	font-size: 10px;
	font-style: italic;
	text-align: center;
}

.cis-chat-command-response {
	text-align: left;
}

.cis-chat-who-result {
	font-size: 12px;
	font-style: normal;
}

.cis-chat-load-earlier {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	padding: 5px 8px;
	border: 1px solid #c0c0c0;
	background: #e4e4e4;
	color: #222;
	cursor: pointer;
	font: bold 10px Verdana, Arial, sans-serif;
	text-align: center;
}

.cis-chat-load-earlier:hover {
	background: #ececec;
}

.cis-chat-load-earlier:disabled {
	color: #777;
	cursor: default;
}

.cis-chat-message {
	margin-bottom: 4px;
	padding: 5px 6px 6px;
	border: 1px solid #d4d4d4;
	background: #fff;
	box-sizing: border-box;
}

.cis-chat-message:nth-child(even) {
	background: #f9f9f9;
}

.cis-sms-message {
	position: relative;
}

.cis-sms-meta-actions {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.cis-sms-call-button {
	display: none;
	padding: 2px 5px;
	border: 1px solid #aaa;
	background: #eee;
	color: #222;
	font: bold 10px Verdana, Arial, sans-serif;
	cursor: pointer;
}

.cis-sms-message:hover .cis-sms-call-button,
.cis-sms-call-button[aria-expanded="true"] {
	display: block;
}

.cis-sms-call-button:hover {
	background: #f7f7f7;
}

.cis-sms-call-menu {
	display: none;
	position: absolute;
	z-index: 5;
	top: 24px;
	right: 5px;
	width: 210px;
	padding: 3px;
	border: 1px solid #888;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.cis-sms-call-choice,
.cis-sms-call-confirm {
	display: block;
	width: 100%;
	margin: 0;
	padding: 5px 6px;
	border: 0;
	border-bottom: 1px solid #ddd;
	background: #fff;
	color: #222;
	font: 10px Verdana, Arial, sans-serif;
	text-align: left;
	cursor: pointer;
}

.cis-sms-call-choice:last-of-type {
	border-bottom: 0;
}

.cis-sms-call-choice:hover,
.cis-sms-call-confirm:hover {
	background: #eee;
}

.cis-sms-call-choice span {
	display: block;
	margin-top: 2px;
	color: #666;
	font-size: 9px;
	line-height: 1.25;
}

.cis-sms-call-status {
	display: none;
	padding: 5px 6px;
	color: #555;
	font: 10px Verdana, Arial, sans-serif;
	line-height: 1.3;
}

.cis-sms-call-status-error {
	color: #9b0000;
}

.cis-sms-call-status-ok {
	color: #006000;
}

.cis-chat-meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 2px;
	color: #666;
	font-size: 10px;
}

.cis-chat-sender {
	font-weight: bold;
	color: #333;
}

.cis-chat-body {
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.3;
}

.cis-sms-big-emoji .cis-chat-body {
	font-size: 28px;
	line-height: 1.15;
}

.cis-sms-status {
	color: #9b0000;
	font-weight: normal;
}

#cis_chat_typing {
	display: none;
	padding: 4px 8px;
	border-top: 1px solid #c7c7c7;
	background: #ececec;
	color: #555;
	font: italic 10px Verdana, Arial, sans-serif;
	min-height: 12px;
	box-sizing: border-box;
}

#cis_chat_form {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 6px;
	border-top: 1px solid #aaa;
	background: #ddd;
}

#cis_chat_message {
	flex: 1;
	min-width: 0;
	height: 34px;
	resize: none;
	padding: 5px;
	border: 1px solid #777;
	font: 12px Verdana, Arial, sans-serif;
	background: #fff;
}

#cis_chat_send {
	width: 50px;
	height: 30px;
	border: 1px solid #006790;
	border-radius: 5px;
	background: #006700;
	color: #fff;
	cursor: pointer;
	font: bold 11px Verdana, Arial, sans-serif;
	line-height: 28px;
	padding: 0;
	text-align: center;
}

#cis_chat_send:hover {
	color: #000;
	background: #4fca4f;
}

#cis_chat_send:disabled,
#cis_chat_message:disabled {
	opacity: .6;
	cursor: default;
}
