.robot_chat__wrappen {
	width: auto;
	right: 0;
	bottom: 0px;
	display: block;
	overflow: hidden;
	position: fixed;
	z-index: 9998;
}
#robot_chat {
	height: auto;
	border-radius: 10px 10px 0 0;
	/*border: 1px solid #B11A1A;*/
	border-bottom: none;
	bottom: 0;
	display: block;
	overflow: hidden;
	background-color: #fff;
	position: relative;
	margin: 0 auto;
	box-shadow: 0px 10px 20px rgba(0,0,0,.4);
	width: 550px;
	transition: top 1s ease-out 0.5s;
}
#robot_chat__body {
	position: relative;
	top: 0px;
	/*left: 0px;
	bottom: 135px;*/
	overflow: hidden;
	overflow-y: scroll;
}
#robot_chat__wrap{
	display: none;
	position: relative;
    height: 100%;
	overflow: hidden;
}
#robot_chat__wrap_simple{
	position: relative;
    height: 100%;
	overflow: hidden;
}
.robot_chat__header{
	display: flex;
	justify-content: space-between;
	align-items: center;
    background-color: #B11A1A;
    width: 100%;
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    z-index: 1;

}
.robot_chat__header-main{
	display: flex;
}
.robot_chat__header__img{
    margin-right: 20px;
}
.robot_chat__header__img img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
#robot_chat__content{
    display: block;
    position: relative;
    width: 100%;
    height: auto;
	min-height: 135px;
    padding: 10px 15px 0;
    overflow:hidden;
    z-index: 0;
}

.robot_chat_item{
    margin-bottom: 10px;
}

.robot_chat_item__content,
.robot_chat_item__date{
	display: inline-block;

}
.robot_chat_item__date{
    font-size: 11px;
    width: auto;
    margin-left: 5px;
    text-align: center;
    vertical-align: top;
    color: #666;
    float: right;
}
.robot_chat_item__content{
    background-color: #cfe7f9;
    border-radius: 5px;
    padding: 10px;
    /*width: 450px;*/
    width:90%;
    line-height: 1.2em;
    color: #000;
    font-size: 17px;
    position: relative;
}
.robot_chat_item__content::after{
    content: '';
    position: absolute;
    background: url(https://s.9111s.ru/img/q/corner.png) no-repeat center;
    height: 7px;
    width: 10px;
    bottom: 0px;
    left: -7px;
}

.input_robot_chat{
	display: flex;
	flex-direction: column;
    width: 100%;
    background-color: #eee;
    padding: 10px;
    z-index: 0;
}
.input_robot_chat_simple{
	padding:3px 10px;
}

#robot_chat_printed{
    display: block;
    background-color: #cfe7f9;
    font-size: 14px;
    padding: 8px 10px;

    width: 100%;
    color: #444;
}
#robot_chat_printed img{
    position: relative;
    top: -1px;
    margin-left: 10px;
}

.robot_chat__header__close {
    position: absolute;
    right: 5px;
    top: 5px;
    cursor: pointer;
    background-size: contain;
}

.robot_chat__header__close svg {
	height: 25px;
    width: 25px;
    fill: #fff;
    margin: 8px 5px 0 10px;
}


.robot_chat__contentMess{
    margin-bottom: 14px;
}
.addq{
	width: 580px;
	height: 340px;
	position: fixed;
	bottom: 0px;
	left: 50%;
	margin-left: -254px;
	background:#B11A1A;
	padding: 0px 2px 2px;
	border-radius: 4px 4px 0px 0px;
	box-shadow: 0px 10px 20px rgba(0,0,0,.4);

	overflow: hidden;
	margin-bottom: -284px;
	z-index: 5555;
}






.addq__quest_form{
    width:100%;
}
.addq__quest_form_text {
	border-radius: 2px;
	max-height: 160px;
	font: normal 14px Arial,sans-serif;
	color: #000;
	padding: 5px;
	border: 1px solid #666666;
	height: 60px;
	min-height: 60px;
	width: 100%;
}
.addq__quest_form_simple {
	background-color: #ffdc3b;
}



.robot_chat__open {
	background:#0085cc;
	border: none;
	font-size: 12px;
	font-weight: bold;
	text-transform:uppercase;
	padding:6px 11px;
	border-radius: 8px;
	color:rgb(255, 255, 255);
}
.addq__header-info{
	color: #fff;
	font-size: 26px;
	font-weight: bold;
}
.addq__header-subinfo{
	display: table;
}
.addq__header-subinfo{
	color: #ffcece;
	font-size: 16px;
	letter-spacing: 0px;
}
.addq__header-subinfo span{
	margin-right: 5px;
}


.addq__header-subinfo-time{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	min-width: 17px;
	height: 17px;
	border-radius: 50%;
	background: yellow;
	color: #B11A1A;
	font-weight: bold;
	font-size: 13px;
	margin-right: 5px;
	animation: rotateTime 2s infinite ease-in-out;
}

.addQ__phone8800{
	font-size: 20px;
	display: inline-flex;
	color:#FF0000;
	font-weight: bold;
}

@keyframes rotateTime {
	from {transform: scale(1.0); box-shadow: 0 0 5px 0 rgba(251, 255, 0, 0);}
	5% {transform: scale(1.3);  box-shadow: 0 0 10px 0 rgb(0, 247, 0); }
	10% {transform: scale(1.0); box-shadow: 0 0 5px 0 rgba(251, 255, 0, .0);}
	90% {transform: scale(1.0); box-shadow: 0 0 5px 0 rgba(251, 255, 0, 0);}
	95% {transform: scale(1.3);  box-shadow: 0 0 10px 0 rgba(0, 119, 255, 0.945);}
	to {transform: scale(1.0); box-shadow: 0 0 5px 0 rgba(251, 255, 0, 0);}
}

.robot_chat__close{
    display: none;
	position: fixed;
    z-index: 10;
    top: 8px;
    right: 8px;
    background: #ff8a8a;
    padding: 10px;
    border-radius: 50%;
}

@media (max-height: 280px){
	.show .robot_chat__close{
		display: flex;
	}
}

@media screen and (max-width: 570px){
	.robot_chat__wrappen{
		width: 100%;
	}
	#robot_chat{
		width: 100%;
	}
}

@media screen and (max-width: 414px){

	.robot_chat_item__content{
		font-size: 12px;
	}

	.robot_chat__header__img {
		margin-right: 10px;
	}
	.addq__header-info{
		padding-top: 3px;
		font-size: 19px;
	}
}




@media screen and (max-width: 679px){

    .robot_chat_item__content span{
        font-size: 15px !important;
        white-space: nowrap;
	}


    .input_robot_chat table{
        position: absolute;
        right: 8px;
        top: 10px;
    }
}


.robot_chat_item__date {
	position: absolute;
	left: 100%;
	top: 0;
}




@media print {
	.robot_chat__wrappen{
		display: none;
	}
}