﻿.chat,
.chat input,
.chat select,
.chat textarea,
.chat label,
.chat button {
	font-family: "Fira Sans",Arial,Helvetica,sans-serif;
	font-size: 12px;
	color: #000;
}


.chat button {
	background: #5c6b28;
    -webkit-box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.chat {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
}

.chat select[name="groups"] {
	pointer-events: none;
	opacity: 0.7;
} 

.chat a {
	text-decoration: none;
	color: #217095;
}

.chat iframe {
	border-style: none;
	position: absolute;
	left: -100px;
	top: -100px;
	width: 1px;
	height: 1px;
}

.chat button {
	height: 29px;
	border: none;
	cursor: pointer;
}

.chat button:active {
	background-position: 0 -38px;
}

.chat .head {
	display: none;
}

.chat .background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background: #000;
	opacity: .3;
	filter: alpha(opacity=30);
}

.chat .window {
	border: 3px solid #5B6E7F;
	background: #fff;
	position: absolute;
	z-index: 1000;
	left: 50%;
	top: 50%;
	box-shadow: 0 0 20px #000;
	-moz-box-shadow: 0 0 20px #000;
	-webkit-box-shadow: 0 0 20px #000;
}

.chat .window .header {
	background: #5B6E7F;
	color: #fff;
	text-align: center;
	font-size: 16px;
	padding: 8px 0;
	font-weight: bolder;
}

.chat .window .content {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: #fff;
	text-align: center;
}

.chat .window .content button:nth-child(2) {
	background: #5c6b28;
}

.chat .window .content button:nth-child(3) {
	width: 80px;
    background: #F43F5E;
    -webkit-box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.chat .window .score {
	display: inline-block;
	width: 190px;
	height: 36px;
	background: url("./i/stars.png") repeat-x transparent 0 0;
	text-align: left;
	cursor: pointer;
}

.chat .window .score span {
	display: inline-block;
	height: 36px;
	background: url("./i/stars.png") repeat-x transparent 0 -72px;
}

.chat .window .score span.select {
	background-position: 0 -36px;
}

.chat .message {
	position: absolute;
	height: auto;
	width: 100%;
	top: 50%;
	text-align: center;
	white-space: normal;
}

.chat .message.loading img {
	width: 16px;
	height: 16px;
	margin-right: 5px;
	margin-bottom: -3px;
	margin: 0 auto;
}

.chat .message button {
	margin-top: 10px;
}

.chat .message.net-error span {
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("./i/chat.png") no-repeat transparent 0 -68px;
	margin: 0 5px -3px 0;
}

.chat .login {
	position: absolute;
	width: auto;
	height: auto;
	top: 20%;
	left: 50%;
	width: 93%;
	transform: translate(-50%, 0);
	text-align: left;
	margin: 0px !important;
}

.login {
	margin: 0px !important;
}

.login div {
	display: flex;
	flex-direction: column;
	margin: 10px 0px;
}

.login div:nth-child(4) {
	display: none;
}

.login div img {
	width: 100%;
	max-width: 30px;
}

.chat .login button {
	width: 80px;
	margin: 0 0 0 5px;
    background: #5c6b28;
    box-shadow: 0px 1px 2px rgba(15, 23, 42, 0.0784314);
    border-radius: 4px;
    color: #fff;
	cursor: pointer;
    border: transparent;
	transition: all .2s ease;
	font-size: 16px;
}

.chat .login button:hover {
	background-color: #da9432;
}

.chat .login img {
	display: none;
	width: 16px;
	height: 16px;
	margin-bottom: -4px;
	margin-left: 4px;
}

.chat .login div {
	margin-bottom: 5px;
}

.chat .login div:last-child {
	margin-top: 10px;
}

.chat .login div.loading img {
	display: inline;
}

.chat .login div.error {
	background: url("./i/chat.png") no-repeat transparent 434px -64px;
}

.chat .login div.error:last-child {
	background: url("./i/chat.png") no-repeat transparent 208px -64px;
}

.chat .login input {
	font-size: 15px;
	padding: 5px;
	max-width: 95%;
	width: 100%;
	margin: 0 20px 0 5px;
	border: 1px solid #AAA;
	min-height: 20px;
	padding-left: 3px;
	outline: none;
	vertical-align: middle;
    border: 1px solid #e2e8f0;
    border-radius: 0.2rem;
    color: #475569;
}

.chat .login input[name=group] {
    opacity: 0;
    appearance: none;
    width: 0px;
}

.chat .login input:focus {
	border-color: #9FC0E6;
}

.chat .login input.invalid {
	border-color: #EA7676;
}

.chat .login div select {
	max-width: 95%;
	width: 100%;
	margin-left: 5px;
	border: 1px solid #e2e8f0;
	min-height: auto;
    border-radius: 0.2rem;
    color: #475569;
	height: auto;
	outline: none;
	vertical-align: middle;
	min-height: 20px;
	padding: 5px;
	font-size: 15px;
}

.chat .login label {
	display: inline-block;
	width: 120px;
	white-space: nowrap;
	text-align: left;
	font-size: 15px;
	margin-bottom: 5px;
}

.chat .login .title {
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 20px;
}

.is_ie .login input {
	padding-left: 3px;
	height: 16px;
	padding-top: 2px;
}

.is_ie .login input:focus,
.is_ie .login input.invalid {
	height: 15px;
	padding-top: 1px;
	width: 300px;
}

.is_ie .login input:focus {
	border-color: #9FC0E6;
}

.is_ie .login input.invalid {
	border-color: #EA7676;
}

.is_ie .login div select {
	width: 306px;
	margin-left: 5px;
	border: 1px solid #AAA;
	height: auto;
	outline: none;
	vertical-align: top;
}

.chat .dialog textarea {
	width: auto !important;
	left: 10px;
	right: 10px;
	position: absolute;
	bottom: 42px;
	margin: 0;
	padding: 3px 0 0 3px;
	height: 75px;
	border: 1px solid #AAA;
	resize: none;
	outline: none;
}

.chat .dialog textarea:disabled {
	background: #f0f0f0;
}

.chat .dialog textarea:focus {
	border-color: #9FC0E6;
	border-width: 2px;
	padding-left: 2px;
	padding-top: 2px;
	height: 74px;
}

.chat .dialog button {
	position: absolute;
	bottom: 0;
	margin: 0;
	background: #5c6b28;
    -webkit-box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.chat .dialog button.send {
	background: #5c6b28;
    -webkit-box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    box-shadow: 0px 1px 2px rgb(15 23 42 / 8%);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
	width: 120px;
	right: 10px;
	bottom: 5px;
}

.chat .dialog button.copy {
	left: 0;
}

.chat .dialog form {
	position: absolute;
	left: 10px;
	bottom: 124px;
	color: #666;
}

.chat .dialog form .but {
	color: #217095;
	text-decoration: none;
	cursor: pointer;
}

.chat .dialog form .but span {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 3px;
	margin-left: 2px;
	background: url("./i/chat.png") no-repeat transparent 0 -87px;
}

.chat .dialog form img {
	display: inline-block;
	margin-bottom: -3px;
	margin-right: 4px;
}

.chat .commands {
	text-align: right;
	padding: 0 4px;
	color: #6F6F6F;
	vertical-align: top;
	z-index: 99;
}

.chat .commands .network-messsage {
	display: none;
	float: left;
	font-size: 11px;
	padding-left: 20px;
	height: 14px;
	background: url("./i/chat.png") no-repeat transparent 0 -68px;
}

.chat .commands span,
.chat .commands a {
	display: inline-block;
	height: 14px;
}

.chat .commands .score {
	height: 14px;
	width: 70px;
	background: url('./i/small-stars.png') repeat-x transparent 0 0;
	cursor: pointer;
	text-align: left;
}

.chat .commands .score span {
	display: inline-block;
	height: 14px;
	width: 14px;
	background: url('./i/small-stars.png') repeat-x transparent 0 -14px;
}

.chat .commands .closed {
	color: #B02C2C;
	background: url('./i/chat.png') no-repeat transparent -30px 2px;
	padding-left: 16px;
}

.chat .commands .timer {
	margin: 0 5px;
}

.chat .list {
	position: absolute;
	top: 65px;
	left: 10px;
	right: 10px;
	bottom: 120px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #B2B9BC;
	padding-bottom: 10px;
}

.chat .list.files {
	bottom: 147px;
}

.chat .list div {
	padding-left: 20px;
	text-align: left;
	white-space: pre-line;
	padding-right: 20px;
}

.chat .list .icon {
	display: inline-block;
	margin-right: 6px;
	width: 7px;
	height: 8px;
	background: url('./i/chat.png') no-repeat 0 0 transparent;
}

.chat .list .time {
	font-size: 10px;
	color: #3C3C3C;
	font-weight: normal;
	margin-right: 6px;
}

.chat .list .title {
	font-size: 11px;
	font-weight: bold;
	padding: 10px 0 0 6px;
}

.chat .list .system .icon {
	width: 8px;
	background-position: -22px 0;
}

.chat .list .my .icon {
	background-position: -15px 0;
}

.chat .list .they-1 .icon,
.chat .list .they-2 .icon,
.chat .list .they-3 .icon,
.chat .list .they-4 .icon {
	background-position: -8px 0;
}

.chat .list .welcome .icon {
	width: 8px;
	height: 5px;
	background-position: 0 0;
	margin-bottom: 2px;
}

.chat .list .autoreply .icon {
	width: 9px;
	height: 9px;
	background-position: -30px -88px;
}

.chat .list .they-1 {
	color: #900;
}

.chat .list .they-2 {
	color: #23a77d;
}

.chat .list .they-3 {
	color: #fa6e50;
}

.chat .list .they-4 {
	color: #8c4d9b;
}

.chat .list .system {
	color: #2e2e2e;
}

.chat .list .welcome {
	color: #000;
	font-size: 12px;
	font-weight: normal;
}

.chat .list .autoreply {
	color: #000;
	font-size: 12px;
	font-weight: normal;
}

.chat .list .my {
	color: #217095;
}

.chat .list .typing {
	font-size: 11px;
	color: #666;
	margin: 6px 0 0 0;
}

.chat .list div:last-child {
	margin-bottom: 6px;
}

.chat .list .attachment {
	display: block;
	margin: 3px 0;
	white-space: nowrap;
	overflow: hidden;
}

.chat .list .attachment .icon {
	width: 12px;
	height: 16px;
	background: url('./i/chat.png') transparent no-repeat -14px -86px;
	margin-right: 4px;
}

.chat .list .attachment .size {
	color: #666;
}

.chat .disabled .commands .network-messsage {
	display: inline-block;
}

.chat .closed .list {
	bottom: 36px;
}

.chat .closed button.send {
	display: none;
}

.chat .closed textarea {
	display: none;
}

.chat .closed form {
	display: none;
}

.chat .login .info {
	text-align: left;
	padding-top: 10px;
	padding-left: 125px;
	color: #333;
	font-size: 11px;
}

@media (min-width: 640px) {
	.chat .login label {
		font-size: 15px;
		margin-right: 30px;
	}

	.chat .login input {
		font-size: 16px;
		min-height: 40px;
		height: auto;
		padding: 5px;
	}

	.chat .login div select {
		font-size: 16px;
		min-height: 40px;
		max-height: 40px;
		height: auto;
		padding: 5px;
	}
}