.chat-wrapper{
    display: none;
	height: auto;
	max-width: 360px;
	width: 100%;
	position: fixed;
	bottom: 10px;
	left: 10px;
    -webkit-box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    border-radius: 8px;
    background-color: white;
    z-index: 999999;
    overflow:hidden;
    -webkit-transition: all .4s ease;
    -o-transition: all  ease .4s;
    transition: all  .4s ease;
}
.chat-name{
 	display: block;
	width: 100%;
 	height: 50px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #e7eaf0;
    padding: 7px 10px;
}
.chat-name__logo{
	display: inline-block;
	background-image: url("../img/face.png");
	background-size: contain;
	background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}
.chat-name_text{
	display: inline-block;
	width: 80%;
    margin-left: 5px;
}
.chat-name_text__text{
	display: block;
	font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    user-select: none;
    cursor: default;
    color: #292c33;
}
.chat-pane-date{
	width: 100%;
	padding-top: 12px;
    font-size: 13px;
    line-height: 18px;
    color: #919cb5;
    text-align: center;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.chat-name_text__online{
	display: block;
	font-size: 13px;
    color: #15d435;
    line-height: 15px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.chat-header{
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #e6ebf1;
    background-color: #f3f5f8;
    display: block;
    -webkit-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
    cursor: pointer;
}

.chat-message-admin-mes{
	padding: 7px 10px;
    margin-top: 10px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 18px;
    width: 60%;
    float: left;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    position: relative;
    background: #f0f0f5;
    border-radius: 2px 16px 16px 16px;
    margin-left: 35px;
}
.chat-message-admin-date{
	display: block;
	width: 100%;
}
.chat-message-admin-date__text{
    color: rgba(54,107,161,.6);
    font-size: 12px;
    line-height: 14px;
    float: right;
}
.chat-pane-block,.chat-p-block{
	display: block;
    float: left;
}
.chat-header__text {
    font-size: 16px;
    font-weight: 500;
    line-height: 48px;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    /*width: 50px;*/
    max-width: 100%;
    padding: 0 0px 0 10px;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    color: #333;
    -webkit-user-select: none;
    display: inline-block;
    float: left;
}
.chat-wrapper__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 50px;
    cursor: pointer;
    opacity: .8;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.566 17.566a.8.8 0 000-1.132L13.13 12l4.435-4.434a.8.8 0 10-1.132-1.132L12 10.87 7.566 6.434a.8.8 0 10-1.132 1.132L10.87 12l-4.435 4.434a.8.8 0 001.132 1.132L12 13.13l4.434 4.435a.8.8 0 001.132 0z' fill='%23919CB5'/%3E%3C/svg%3E") no-repeat 50%;
    background-size: 50%;
    z-index: 10;
}
.chat-message-admin-mes p{
	font-size: 14px;
}
.chat-pane-wrapper{
	height: 450px;
	overflow-y:scroll;
	width: 100%;
	padding: 10px 10px 20px 10px;
}
.chat-message-admin{
	display: block;
	width: 100%;
}
.chat-message-admin_header{
	width: 100%;
	margin-top: 10px;
}
.chat-message-admin_header__img{
	display: inline-block;
	background-image: url("../img/face.png");
	background-size: contain;
	background-repeat: no-repeat;
    width: 24px;
    height: 24px;
}
.chat-message-admin_header__text{
	display: inline-block;
    padding-left: 8px;
    overflow: hidden;
    white-space: normal;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 24px;
    color: #919cb5;
    cursor: pointer;
}
.chat-message-input{
	display: block;
	float: left;
	width: 100%;
	height: auto;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    background-color: #fff;
    border-top: 1px solid #e7eaf0;
}
.chat-textarea{

}
.chat-message-admin-mes__text p{
	 white-space: normal; 
     margin-bottom: 5px;
}
.chat-pane-user-message{
	width: 100%;
	position: relative;
 
}
.chat-message-user-mes{
	background: #e0f5ff;
	padding: 7px 10px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 18px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 16px 16px 2px 16px;
    margin: 0 0 0 33%;
    float: right;
    max-width: 60%;
    margin-top: 10px;
}
.chat-pane-question{
    -webkit-align-self: center;
    -ms-flex-item-align: center;
    align-self: center;
    margin: 5px auto 0;
    float: none;
    width: 66%;
    display: block;
    background: #fff;
    border: 1px solid #0095ff;
    border-radius: 21px;
    line-height: 16px;
    padding: 5px 10px;
    color: #2e7e99;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: all .12s ease;
    -o-transition: all .12s ease;
    transition: all .12s ease;
    text-align: center;
}
.chat-pane-question:hover {
    border-color: #1c70c4;
}
#chat-pane-question-2{
	width: 74%;
}
#chat-pane-question-3{
	width: 86%;
}
#chat-pane-question-4{
    width: 46%;
}
.ui-icon_size_xxs {
    width: 12px;
    height: 12px;
    display: inline-block;
}
.chat-pane-q,.chat-pane-choose{
	width: 100%;
    display: none;
}
.chat-message-input_disabled {
    color: #919cb5 !important;
    cursor: default;
}
.callback-textarea__control,.chat-textarea__control{
	border:none;
	width: 85%;
	float: left;
	padding: 12px;
	height: 50px;
    border-radius: 10px;
}
.ui-icon-button,.callback-icon-button{
	display: inline-block;
    width: 15%;
    height: 50px;
    color: #007bff;
}
#icon-send{
	margin-left: 15px;
    margin-top: 10px;
    height: 40px;
    color: #0095ff;
}
.callback-textarea__control:focus,.chat-textarea__control:focus {
    outline: none;
}
.chat-unactive{
	height: 50px;
}
.chat-pane-user-message,.chat-message-admin{
	display: none;
}
.ya-chat-icon {
    position: relative;
    width: 24px;
    height: 24px;
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
    cursor: pointer;
    color: #0095ff;
    display: inline-block;
    margin-left: 10px;
    margin-top: 13px;
    float: left;
}
.chat-form{
    width: 100%;
    
}
.chat-form__input{
    margin-bottom: 5px;
    width: 100%;
    border:1px solid #f1f1f1;
    height: 50px;
    padding-left: 10px;
}
.submit-button{
    width: 100%;
    height: 30px;
    border-radius: 6px;
    text-align: center;
    padding-top: 5px;
    color: white;
    background-color: #0095ff;
    margin-top: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* CALLBACK */
.callback-wrap{
    width: 100%;
    position: relative;

}
.callback-wrapper{
    width: 65px;
    height: 65px;
    position: fixed;
    right: 60px;
    bottom: 40px;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
    z-index: 10000;
    background-color: #0095ff;
    -webkit-box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    
}
.callback-wrapper-act{
    animation: pulse 3s infinite;
}
.callback-wrapper-act:before{
     content: '';
     position: absolute;
     border: 1px solid rgb(45,201,198);
     left: -35px;
     right: -35px;
     top: -35px;
     bottom: -35px;
     border-radius: 50%;
     animation: c-pulse 1.8s linear infinite;
     opacity: 0;
}
@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(45,201,198, 0.4);
  }
  40% {
      -webkit-box-shadow: 0 0 0 30px rgba(45,201,198, 0.4);
  }
  80% {
      -webkit-box-shadow: 0 0 0 1px rgba(45,201,198, 0.3);
  }
  100% {
      -webkit-box-shadow: 0 0 0 0 rgba(45,201,198, 0);
  }
}
@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(45,201,198, 0.1);
    box-shadow: 0 0 0 0 rgba(45,201,198, 0.1);
  }
  40% {
      -moz-box-shadow: 0 0 0 30px rgba(45,201,198, 0.4);
      box-shadow: 0 0 0 30px rgba(45,201,198, 0.4);
  }
  80% {
      -moz-box-shadow: 0 0 0 1px rgba(45,201,198, 0.3);
      box-shadow: 0 0 0 1px rgba(45,201,198, 0.3);
  }
  100% {
      -moz-box-shadow: 0 0 0 0 rgba(45,201,198, 0);
      box-shadow: 0 0 0 0 rgba(45,201,198, 0);
  }
}
@keyframes c-pulse {
 0% {
  transform: scale(0.5);
  opacity: 0;
 }
 50% {
  opacity: 1;
 }
 100% {
  transform: scale(1.2);
  opacity: 0;
 }
}
@keyframes cicrle {
 50% {  width: 67px; height: 67px; }
 51% {  width: 65px; height: 65px; }
}

.callback-wrapper .callback-img{
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 17px auto 0;
    cursor: pointer;
    z-index: 20;
    background-image: url("../img/close.png");
}
.callback-wrapper-act .callback-img{
    width: 30px;
    height: 30px;
    margin: 12px auto 0;
    background-image: url("../img/telephone-handle-silhouette.png");
}
@keyframes cicrle-img {
 50% {  width: 57px; height: 57px; }
 51% {  width: 55px; height: 55px; }
}
.callibri_corner {
    position: absolute;
    right: 0;
    z-index: 1;
    overflow: hidden;
    transform: translateY(-25px);
}
.callibri_corner svg {
    overflow: visible!important;
    display: block;
    position: initial;
    top: initial;
    left: initial;
    opacity: 1;
}
.callback-textarea__control{
    width: 100% !important;
}
.callback-w{
    width: 100%;
    position: relative;
}
.callback-mes-wrap{
    display: none;
    position: absolute;
    top: -170px;
    right: 10px;
    width: 450px;
    height: auto;
    padding: 10px 30px 10px 30px;
    background-color: white;
    -webkit-box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    border-radius: 10px;
}
.callback-phone{
    color: #484848;
    border-color: #cedaff;
    min-height: 36px;
    border-radius: 2px;
    position: relative;
    font-weight: 400;
    border-style: solid;
    font-size: 20px;
    border-width: 2px;
    line-height: 20px;
    background-color: transparent;
    width: 61%;
    text-align: left;
    height: 57px;
    padding: 20px;
    border-bottom: 2px solid #0095ff;
    display: inline-block;
    float: left;
}
.button-5-cb:before{
    left: -4.9em;
}
.wrapper-5-cb{
    width: 39%;
    display: inline-block;
    position: relative;
    left: 0px;
    top: 0px;
}
.button-5-cb{
    width: 100%;
    color: #fff;
    background-color: #0095ff;
    transform: none;
    float: left;
    height: 57px;
    padding: 18px;
    font-size: 16px;
}
.callback-message-input{
    width: 85%;
}
.callback-message-input,.callback-icon-button{
    display: inline-block;
}
.callback-text{
    text-align: left;
    padding: 15px 0;
    font-weight: 900;
    font-size: 18px;
}
.callback_widget_corner{
    position: absolute;
    z-index: 20;
    margin-left: 5px !important;
}
.widget-writetext{
    width: 100%;
    margin: 20px 0 40px;
    position: relative;
    display: block;
}
.loader-inner{
    width: 24%;
    margin: 10px auto;
    position: relative;
    display: block;
    box-sizing: border-box;
}
.ballon-wrepper{
    height: 100px;
    position: absolute;
    top: 20px;
    left: 0;
    box-sizing: border-box;
    width: 100%;
}
.loader-inner .ballon-wrepper div{
    float: left;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #eee;
    margin-top: 30px;
    margin-right: 10px;
}
.loader-inner .ballon-wrepper div:nth-child(1){
    margin-left: 0px;
    animation: loaderf 1s infinite ease-in-out;
}
.loader-inner .ballon-wrepper div:nth-child(2){
    left: 35px;
    animation: loaders 1s infinite ease-in-out;
}
.loader-inner .ballon-wrepper div:nth-child(3){
    left: 70px;
    animation: loadert 1s infinite ease-in-out;
}



@keyframes loaderf {
 10% { margin-top: 20px; }
 20% { margin-top: 30px; }
}
@keyframes loaders {
 40% { margin-top: 20px; }
 50% { margin-top: 30px; }
}
@keyframes loadert {
 70% { margin-top: 20px; }
 80% { margin-top: 30px; }
}


.widget-ypemessage{
    text-align: center;
    font-size: 12px;
    line-height: 24px;
    color: #919cb5;
    width: 100%;
    margin-top: 10px;
    display: block;
    float: left;
}
.callback-mini-mes-wrap{
    display: none;
 
    position: absolute;
    top: -135px;
    right: -20px;
    width: 290px;
    height: auto;
    padding: 10px 30px 10px 30px;
    background-color: white;
    -webkit-box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
    border-radius: 10px;
 
}
.callback-text-svg{
    position: absolute;
    right: 0;
    top: 57px;
}
@media(max-width:768px) {
    .callback-wrapper{
        right: 10px;
        bottom: 10px;
    }
    .callback-mes-wrap{
        top: -280px;
        right: -15px;
        width: 380px;
        height: 240px;
    }
    .callback-phone{
        width: 100%;
    }
    .wrapper-5-cb{
        width: 100%;
        display: block;
        position: relative;
        left: 150px;
        top: 35px;
    }
}

@media(max-width:360px) {
    .chat-wrapper{
        max-width: 300px;
        max-height: 90vh;
    }
    .chat-pane-wrapper{
        max-height: 60vh;
    }
    #icon-send {
        margin-left: 5px;
    }
    .wrapper-5-cb{
        left: 140px;
    }
}
@media(max-width:320px) {
    .chat-wrapper{
        max-width: 280px;
        max-height: 90vh;
    }
    .chat-pane-wrapper{
        height: 55vh;
    }
    #icon-send {
        margin-left: 5px;
    }
    .wrapper-5-cb{
        left: 140px;
    }
    .callback-mes-wrap {
        top: -272px;
        right: -10px;
        width: 295px;
        height: 240px;
    }
    .wrapper-5-cb {
        left: 127px;
    }
    .chat-name_text__text{
        font-size: 12px;
    }
    #chat-pane-question-4 {
        width: 54%;
    }
    .chat-pane-question{
        font-size: 13px;
    }
    #chat-pane-question-3 {
        width: 100%;
    }
    #chat-pane-question-2 {
        width: 86%;
    }
    #chat-pane-question-1{
        width: 77%;
    }
    .ballon-wrepper{
        width: 150px;
    }
}


.callback-wrapper-act .callback-wrap .callback-img {   animation: 1200ms ease 0s normal none 1 running shake;
        animation-iteration-count: infinite;
        -webkit-animation: 1200ms ease 0s normal none 1 running shake;
        -webkit-animation-iteration-count: infinite;}

        @keyframes shake {
0% {
    transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg);
}
10% {
    transform: rotateZ(-30deg);
        -ms-transform: rotateZ(-30deg);
        -webkit-transform: rotateZ(-30deg);
}
20% {
    transform: rotateZ(15deg);
        -ms-transform: rotateZ(15deg);
        -webkit-transform: rotateZ(15deg);
}
30% {
    transform: rotateZ(-10deg);
        -ms-transform: rotateZ(-10deg);
        -webkit-transform: rotateZ(-10deg);
}
40% {
    transform: rotateZ(7.5deg);
        -ms-transform: rotateZ(7.5deg);
        -webkit-transform: rotateZ(7.5deg);
}
50% {
    transform: rotateZ(-6deg);
        -ms-transform: rotateZ(-6deg);
        -webkit-transform: rotateZ(-6deg);
}
60% {
    transform: rotateZ(5deg);
        -ms-transform: rotateZ(5deg);
        -webkit-transform: rotateZ(5deg);
}
70% {
    transform: rotateZ(-4.28571deg);
        -ms-transform: rotateZ(-4.28571deg);
        -webkit-transform: rotateZ(-4.28571deg);
}
80% {
    transform: rotateZ(3.75deg);
        -ms-transform: rotateZ(3.75deg);
        -webkit-transform: rotateZ(3.75deg);
}
90% {
    transform: rotateZ(-3.33333deg);
        -ms-transform: rotateZ(-3.33333deg);
        -webkit-transform: rotateZ(-3.33333deg);
}
100% {
    transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg);
}
}

@-webkit-keyframes shake {
0% {
    transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg);
}
10% {
    transform: rotateZ(-30deg);
        -ms-transform: rotateZ(-30deg);
        -webkit-transform: rotateZ(-30deg);
}
20% {
    transform: rotateZ(15deg);
        -ms-transform: rotateZ(15deg);
        -webkit-transform: rotateZ(15deg);
}
30% {
    transform: rotateZ(-10deg);
        -ms-transform: rotateZ(-10deg);
        -webkit-transform: rotateZ(-10deg);
}
40% {
    transform: rotateZ(7.5deg);
        -ms-transform: rotateZ(7.5deg);
        -webkit-transform: rotateZ(7.5deg);
}
50% {
    transform: rotateZ(-6deg);
        -ms-transform: rotateZ(-6deg);
        -webkit-transform: rotateZ(-6deg);
}
60% {
    transform: rotateZ(5deg);
        -ms-transform: rotateZ(5deg);
        -webkit-transform: rotateZ(5deg);
}
70% {
    transform: rotateZ(-4.28571deg);
        -ms-transform: rotateZ(-4.28571deg);
        -webkit-transform: rotateZ(-4.28571deg);
}
80% {
    transform: rotateZ(3.75deg);
        -ms-transform: rotateZ(3.75deg);
        -webkit-transform: rotateZ(3.75deg);
}
90% {
    transform: rotateZ(-3.33333deg);
        -ms-transform: rotateZ(-3.33333deg);
        -webkit-transform: rotateZ(-3.33333deg);
}
100% {
    transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg);
}
}
.callback-wrapper .callback-img {animation: none;}