/**
 * Advisor Form
 */
#advisor {
    /*-webkit-transition: all 0.5s ease;*/
    /*-moz-transition: all 0.5s ease;*/
    /*-o-transition: all 0.5s ease;*/
    transition:
            right 0.4s ease,
            height 0.4s ease,
            width 0.4s ease
    ;
}

.advisor * {
    box-sizing: content-box !important;
}

.advisor {
    background-color: #fff;
    width: 330px;
    position: fixed;
    top: 50%;
    right: 40px;
    border-radius: 5px 5px 0 0;
    margin-top: -270px;
    box-shadow:  0 0 10px rgba(0,0,0,0.5);
}

.advisor.hidden {
    display: block !important;
    text-rendering: geometricPrecision;
    background-color: #ffdf4a;
    background-image: url("../../images/advisor/konsul_bar.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 33px !important;
    height: 170px !important;
    margin: 0;
    padding: 0;
    right: 0;
    top: 203px;
    cursor: pointer;
}

.advisor.hidden .title > span {
    cursor: pointer;
}

.advisor.hidden.small {
    margin-top: 0;
}

.advisor .title.big > .logo {
    background: rgba(0, 0, 0, 0) url("../../images/advisor/manager.png") repeat scroll 0 0;
    background-size: cover;
    display: block;
    height: 60px;
    width: 60px;
    position: absolute;
    top: 0;
    left: -30px;
}

.advisor .title.big {
    height: 38px;
    padding: 10px 0;
    text-align: center;
}

.advisor .title.big > span {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.advisor .title.big > span > span {
    display: block;
    margin: 7px 0 0;
    text-transform: none;
}

.advisor .title.big > span .status {
    display: inline-block;
    vertical-align: middle;
}

.advisor .title.big .buttons {
    position: absolute;
    right: 13px;
    top: 19px;
}

.advisor .title {
    background-color: #ffdf4a;

    height: 24px;

    border-top: 2px solid #e8ab18;

    font-family: "Open Sans";
    font-size: 11px;
    font-weight: bold;
    color: #3c3d41;

    padding-top: 6px;
}

.advisor .title .logo {
    display: none;
}

.advisor .title span {
    margin-left: 15px;
    margin-right: 20px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.advisor .title > span > span {
    display: none;
}

.advisor .title > .icon {
    background: url("../../images/advisor/logo-bird.png") no-repeat scroll 0px 0px;
    height: 34px;
    width: 34px;

    display: inline-block;
    vertical-align: middle;

    position: absolute;
    top: 0;
}

.advisor .title > span .status {
    display: none;
}

.advisor .title .status {
    background-color: #33c31b;
    height: 10px;
    width: 10px;

    display: inline-block;
    vertical-align: middle;

    border-radius: 50%;

    margin-left: 12px;
}

.advisor .title .buttons {
    display: none;

    float: right;
    margin-right: 10px;
    margin-top: 2px;
}

.advisor .title .close {
    background: url("../../images/advisor/close.png") no-repeat scroll 0 0;
    background-size: contain;
    height: 20px;
    width: 20px;
    display: inline-block;
    margin: 0 2px;
    cursor: pointer;
    opacity: 1;
}

.advisor .content {
    display: none;
}

.advisor.hidden * {
    display: none;
    opacity: 0;
}

.advisor .messages {
    display: block;
    overflow-y: hidden;
    height: 350px;
    width: 306px;

    font-family: "Open Sans";
    font-size: 13px;
    line-height: 16px;
    color: #333333;

    padding-left: 7px;
    margin: 19px 0;
}

.advisor.small .messages {
    height: 150px;
}

.advisor.small {
    margin-top: -170px;
    top: 240px;
}

.advisor .messages .message {
    width: 292px;

    white-space: pre;           /* CSS 2.0 */
    white-space: pre-wrap;      /* CSS 2.1 */
    white-space: pre-line;      /* CSS 3.0 */
    white-space: -pre-wrap;     /* Opera 4-6 */
    white-space: -o-pre-wrap;   /* Opera 7 */
    white-space: -moz-pre-wrap; /* Mozilla */
    white-space: -hp-pre-wrap;  /* HP Printers */
    word-wrap: break-word;      /* IE 5+ */

    border-radius: 2px;
    margin-bottom: 5px;
    float: left;
    clear: both;
}

.advisor .messages .message:last-child {
    margin-bottom: 0;
}

.advisor .messages .message span {
    width: 248px;
    font-size: 13px;
    padding: 15px;
}

.advisor .messages .message span p {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 5px;
}

.advisor .messages .advisor-message {
    background: url('../../images/advisor/output-message.png') top no-repeat;
    min-height: 45px;
    float: left;
    clear: both;
}

.advisor .messages .advisor-message span {
    background-color: #feefb1;
    float: right;
}

.advisor .messages .user-message {
    background: url('../../images/advisor/input-message.png') top no-repeat;
    min-height: 45px;

    float: right;
    clear: both;
}

.advisor .messages .user-message span {
    background-color: #eaeaea;
    float: left;
}

.advisor .content .send-message {
    background-color: #ffdf4a;
    padding: 20px 17px;
    height: 55px;
}

.advisor .content .send-message:focus {
    outline: 0;
}

.advisor textarea {
    overflow: hidden;
    height: 35px;
    width: 236px;
    resize: none;
    font-family: "Open Sans";
    font-size: 13px;
    border: none;
    margin: 0;
    padding: 10px;
    float: left;
    outline: none;
}

.advisor button {
    background: url('../../images/advisor/send-message-button.png') no-repeat 12px 29px #fff;
    height: 55px;
    width: 40px;
    cursor: pointer;
    border: none;
    margin: 0;
    padding: 0;
    float: left;
    outline: none;
}

/**
 * Recall Form
 */

.popup {
    display: none;
    height: 160px;

    position: fixed;
    top: 50%;
    left: 50%;

    margin-top: -80px;
    margin-left: -125px;

    z-index: 1000;
}

/**
 * Scrollbar
 */
.messages.scroll-pane.jspScrollable {
    width: 100% !important;
}
.jspContainer {
    width: 100% !important;
}
.jspPane {
    width: 306px !important;
    margin-left: 0 !important;
}
.messages.jspVerticalBar {
    width: 7px;
}
.messages .jspVerticalBar {
    right: 6px;
    width: 7px;
}
.messages .jspTrack {
    background-color: #eaeaea;
}
.messages .jspDrag {
    background-color: #ffdf4a;
}
.jspTrack {
    height: 323px !important;
}
.messages .jspVerticalBar {
    background-color: #eaeaea;
}
