#consultadmin .content {
    position: relative;
}

/*#consultadmin .content {
    padding: 25px;
} */

textarea {
      overflow: auto;
    resize: none;
}

#astroconsult {
    position: fixed;
    top: 200px;
    /* min-height: 130px; */
    left: 0;
    color: #008000;
    font-size: 13px;
    display: block;
    outline: none;
    z-index: 999999;
}


#astroconsult *, #conversationform * {
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
    font-family: 'Segoe UI', 'Trebuchet MS', 'Tahoma', 'Helvetica', 'Arial';
}

#astroconsult input, #astroconsult textarea, #conversationform input, #conversationform textarea {
    color: #898989;
    float: left;
    width: 100%;
    margin-top: 3px;
    line-height: 14px;
    font-size: 12px;
}

#astroconsult #welcomeform {
    background-color: #f2f2f2;
}

#astroconsult #welcomeform .icon {
    position: relative;
    float: left;
    width: 130px;
    height: 130px;
    background: #008dd2;
    cursor: pointer;
}

#astroconsult.compacted #welcomeform .icon {
    width: 50px;
}

#astroconsult #welcomeform .icon .image {
    background: url("../images/icon.png") no-repeat center center;
    width: 130px;
    height: 130px;
}

#astroconsult.compacted #welcomeform .icon .image {
    background: url("../images/icon40.png") no-repeat center 85px;
    width: 40px;
}

#astroconsult .icon .status {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 130px;
}

#astroconsult #asking-for-consult, #astroconsult #asking-for-email {
    float: left;
}

#astroconsult.accepted #welcomeform, #astroconsult.notaccepted #conversationform {
    display: none;
}

#astroconsult .row {
    float: left;
    clear: both;
    width: 100%;
    margin: 0 !important;
}

#conversationform .content {
    background-color: #f2f2f2;
    padding: 15px;
}

#astroconsult #consult-window {
    border: 1px solid #008dd2;
    min-width: 400px;
    min-height: 400px;
    background-color: #f2f2f2;
    height: 100%;
    transform: scale(0);
    left: 0px;
    top: 0px;
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -ms-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
}

#astroconsult #consult-window.resizing {
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none;
}

#astroconsult .k-window-title {
    background-color: #008dd2;
    height: 40px;
    z-index: 1;
}

#astroconsult .window-header {
    background: #008dd2;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    height: 40px;
}

#astroconsult .window-header .window-title {
    padding: 8px 0 6px 10px;
    display: inline-block;
}

#astroconsult .window-actions #close-window {
    background: url("../images/close.png") center center no-repeat;
    height: 18px;
    position: absolute;
    right: 13px;
    top: 10px;
    width: 18px;
}

#astroconsult .k-i-close, #astroconsult .k-link.k-state-hover, #astroconsult  .k-link:hover {
    background-position: 100px 100px !important;
}

#astroconsult .k-window-actions .k-link:hover, #astroconsult .k-window-actions .k-link:focus {
    background: url("../images/close.png") center center no-repeat !important;
    border: none;
}

#astroconsult .k-window-actions {
    z-index: 2;
}

#astroconsult .k-window-actions .k-i-close {
    cursor: pointer;
    float: right;
    /* background: none;
    background: url("../images/close.png") center center no-repeat; */
}

#astroconsult .window-header .k-window-action {
    padding: 1px;
    margin: 3px 5px 0 0;
}

/* #astroconsult #conversationform .close {
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: url("../images/close.png") center center no-repeat;
    float: right;
    margin: 5px 5px 0 0;
} */



#astroconsult.available .icon .status {
    background-color: #008000;
}

#astroconsult.notavailable .icon .status {
    background-color: #bb2626;
}

#astroconsult.notavailable #asking-for-consult, #astroconsult.available #asking-for-email {
    display: none;
}

#astroconsult.collapsed .panel {
    display: none;
}

#astroconsult .panel {
    position: relative;
    float: left;
    width: 220px;
    height: 130px;
    overflow: hidden;
    padding: 2px 8px 5px 8px;
    background-color: #f2f2f2;
    display: block;
}

#astroconsult .button, #conversationform .button  {
    background: #008dd2;
    color: #fff;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    font-weight: 700;
}

#astroconsult #asking-for-consult {
    font-size: 14px;
}

#astroconsult #asking-for-consult .button {
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 0 0 0;
    margin: 5px 15px 0 15px;
    font-weight: 700;
}

#astroconsult #asking-for-consult .offering {
    margin-top: 10px;
}

#astroconsult .panel .offering {
    clear: both;
    /* margin-top: 4px; */
    text-align: center;
}

#astroconsult .offering > .message {
    display: block;
    clear: both;
    text-align: left;
}

#astroconsult #asking-for-email textarea {
    height: 38px;
    line-height: 16px;
}

#astroconsult #asking-for-email .button {
    border: medium none;
    float: right;
    font-size: 12px;
    height: 19px;
    margin: 3px 0 0;
    padding: 0;
    width: 90px;
}

#astroconsult form input:first-child {
    margin-top: 1px;
}

#consult-window .resize-handle {
    opacity: 0;
    position: absolute;
    background-color: #00ffff;;
    z-index: 10;
}

#consult-window .resize-n {
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    cursor: n-resize;
}

#consult-window .resize-e {
    top: 0;
    bottom: 0;
    right: 0;
    width: 5px;
    cursor: e-resize;
}

#consult-window .resize-s {
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    cursor: s-resize;
}

#consult-window .resize-w {
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    cursor: w-resize;
}

#consult-window .resize-ne {
    right: 0;
    top: 0;
    width: 8px;
    height: 8px;
    cursor: ne-resize;
    background-color: red;
    z-index: 20;
}

#consult-window .resize-se {
    right: 0;
    bottom: 0;
    width: 8px;
    height: 8px;
    cursor: se-resize;
    background-color: red;
    z-index: 20;
}

#consult-window .resize-sw {
    left: 0;
    bottom: 0;
    width: 8px;
    height: 8px;
    cursor: sw-resize;
    background-color: red;
    z-index: 20;
}

#consult-window .resize-nw {
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    cursor: nw-resize;
    background-color: red;
    z-index: 20;
}


#conversationform {
    /* min-height: 130px; */
    left: 0;
    color: #008000;
    font-size: 13px;
    background-color: #f2f2f2;
    display: block;
    outline: none;
    padding: 0 0 0 0;
    overflow: hidden;
    width: 100%;  %;
}

#conversationform .conversationlist, #conversationform .messaging, #conversationform .consultants {
    margin-bottom: 8px;
}

#conversationform .consultant .icon {
    float: left;
}

#conversationform .consultant .icon img {
    width: 90px;
    height: 90px;
}

#conversationform .consultant .name, #conversationform .consultant .jobtitle {
    color: #2b2a29;
    font-size: 18px;
    font-weight: 700;
    padding-left: 110px;
    width: 100%;
}

#conversationform .consultant .pict {
    display: block;
    margin-top: 4px;
    width: 40px;
    float: left;
}

#conversationform .consultant .pict > div {
    opacity: 1;
    width: 40px;
    height: 40px;
    background: url("../images/ltl-icon.png") 0 0 no-repeat;
}

#conversationform .consultant .mail {
    margin-left: 20px;
}

#conversationform .consultant .mail > div {
    background-position: 0 0;
}

#conversationform .consultant .mail:hover > div {
    background-position: 0 -160px;
}

#conversationform .consultant .call > div {
    background-position: 0 -200px;
}

#conversationform .consultant .call:hover > div {
    background-position: 0 -240px;
}

#conversationform .consultant .call {
    margin-left: 10px;
}

/* #conversationform .consultant .mail:hover > div {
    opacity: 0.7;
} */

#conversationform .consultant .jobtitle {
    font-size: 14px;
    font-size: 14px;
    font-weight: 400;
}

#conversationform .conversationlist .name {
    background: #f2f2f2;
    color: #008000;
    min-height: 30px;
    padding: 5px;
    font-size: 14px;
}

#conversationform .conversationlist .message {
    padding: 8px 4px 8px 4px;
    color: #2b2a29;
}

#conversationform .conversationlist .message .time {
    display: inline-block;
    float: right;
}

#conversationform .messaging * {
    outline: none;
}

#conversationform .conversationlist, #conversationform .messaging {
    background-color: #fff;
    border: 1px solid #008dd2;
    border-radius: 1px 1px 1px 1px;
}

#conversationform .conversationlist {
    padding: 8px;
}

#conversationform .messaging .button {
    height: 60px;
    width: 60px;
    margin: 2px 2px 0 0;
    float: right;
    border: none;
    background: url("../images/icons.png") 0 0 no-repeat #008dd2;
    border: none;
    position: relative;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

#astroconsult .button:hover, #conversationform .button:hover {
    background-color: #c1d7f7;
    opacity: 0.8;
    cursor: pointer;
}

#conversationform .messaging .button > input {
    border: none;
    opacity: 0;
    width: 60px !important;
    height: 60px !important;
    cursor: pointer !important;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    top: -0px;

}

#astroconsult .messaging .button:last-child {
    margin-bottom: 2px;
}

#conversationform .messaging #addfile-input {
    background-position: 0px -60px;
}

#conversationform .messaging #sendmessage-input {
    background-position: 0px 0px;
}

#conversationform .messaging .input {
    width: 100%;
    padding-right: 64px;
    position: relative;
}

#conversationform .messaging .input textarea {
    background: #fff;
    border: none;
    padding: 6px;
    font-size: 14px;
    height: 122px;
    margin-top: 2px;
    width: 100%;
    color: #000000;
}

#conversationform .messaging .controls {
    float: right;
    width: 60px;
    position: relative;
}

/* Cтили настроек рядов формы консультанта */

#conversationform .messaging {
    bottom: 23px;
    height: 128px;
    left: 15px;
    max-width: 100%;
    position: absolute;
    right: 15px;
    outline: none;
}

#conversationform .copyright {
    bottom: 0;
    height: 25px;
    left: 0px;
    max-width: 100%;
    position: absolute;
    right: 0px;
    color: #2b2a29;
    text-align: center;
    background: url("../images/resizecontrol.png") right bottom no-repeat;
}

#conversationform .conversationlist {
    position: absolute;
    left: 15px;
    right: 15px;
    overflow-y: auto;
    bottom: 72px;
    top: 152px;
    padding-bottom: 24px;
}

#conversationform .conversationlist.active {
    bottom: 187px;
	border-bottom: none;
	margin-bottom: 0;
}

#conversationform .composingplace {
	display: none;
}

#conversationform .composingplace.active {
	display: block;
	height: 24px;
	position: absolute;
    left: 15px;
    right: 15px;
	bottom: 155px;
	background-color: #fff;
	background-color: #fff;
    border: 1px solid #008dd2;
	border-top: none;
    border-radius: 1px 1px 1px 1px;
	margin-bottom: 8px;
}

#conversationform .control-buttons {
    min-width: 350px;
    position: absolute;
    left: 15px;
    right: 15px;
    overflow-y: auto;
    bottom: 15px;
    /*top: 574px;*/
}

#conversationform .control-buttons .button {
    float: right;
    height: 30px;
    width: 140px;
    padding: 5px;
    margin-left: 6px;
    font-weight: 400;

}

#conversationform .control-buttons .button#restart-button.disabled {
    background-color: lightgray;
    cursor: default;
}

#conversationform .consultants-list {
    display: none;
    margin-top: 5px;
    height: 50px;
    overflow: hidden;
    /* Если консультантов будет больше 5
    overflow-y: hidden;
    overflow-x: scroll; */
    position: relative;
    clear: both;
    float: left;
    width: 100%;
}

#conversationform.multiple-consultants .consultants-list {
    display: block;
}

#conversationform .consultants-list .consultant-avatar {
    height: 50px;
    width: 50px;
    float: left;
    position: relative;
    margin: 0 5px 0 5px;
    padding: 0;
}

#conversationform .consultants-list .consultant-avatar:first-child {
    margin-left: 0;
}

#conversationform .consultants-list .consultant-avatar:last-child {
    margin-right: 0;
}

#conversationform .consultants-list .consultant-avatar > img{
    height: 50px;
    width: 50px;
}

#conversationform.callbacked .conversationlist {
    top: 179px;
}

#conversationform.multiple-consultants .conversationlist {
    top: 205px;
}

#astroconsult .operator-typing {
   background: url("../images/operator-typing.png") no-repeat scroll left center rgba(255, 255, 255, 1) ;
    color: #898989;
    height: 24px;
    left: 5px;
    opacity: 1;
    padding-left: 23px;
    padding-top: 2px;
    position: absolute;
    top: -32px;
    vertical-align: middle;
    z-index: 1;
    width: 95%;
    -webkit-transition: all 200ms ease-out;
    -moz-transition: all 200ms ease-out;
    -ms-transition: all 200ms ease-out;
    -o-transition: all 200ms ease-out;
    transition: all 200ms ease-out;
}

#conversationform.multiple-consultants.callbacked .conversationlist {
    top: 234px;
}

#conversationform .callback {
    display: none;
    float: left;
    margin-top: 8px;
    width: 100%;
    clear: both;
}

#conversationform .callback .audio-call-state {
    text-align: right;
}

#astroconsult #conversationform.callbacked .callback {
    display: block;
}

#astroconsult .callback .submit-callback {
    background: none repeat scroll 0 0 #008dd2;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    float: right;
    height: 19px;
    position: relative;
    right: 3px;
    top: -22px;
    width: 120px;
    text-align: center;
    line-height: 16px;
}

#astroconsult .callback #callback-phone {
    height: 25px;
    padding: 0px 128px 0px 5px;

}

#astroconsult .callback input {
    border: 1px solid #008dd2;
}

#astroconsult .callback-submit {
    width: 40px;
    background: #008dd2;
}

#astroconsult .callback label {
    color: #2b2a29;
}

#conversationform #manager1 {
    float: left;
    width: 90px;
    height: 90px;
}



#astroconsult .helper {
    display:-moz-inline-box;
    display:inline-block;
    vertical-align:middle;
    height:100%;
    width:0px;
    zoom:1;
//display:inline;
}
