.chat-container {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 50px;
    margin: 0 5% 0 0;
    z-index: 9999999;
}

.chat-container .btn-chat-opener {
    min-width: 0 !important;
    width: 73px;
}

.chat-container .chat-title {
    opacity: 0;
}

.chat-container.active .chat-title {
    opacity: 1;
    transition-property: opacity;
    transition-duration: 2s;
    display: inline-block;
    margin-left: 10px;
}

.chat-container.active .btn-chat-opener {
    width: 350px;
    transition-property: width;
    transition-duration: 0.3s;
}

.btn-chat-opener {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 45px;
    width: 350px;
    margin: 0 5% 0 0;
    text-align: left;
    background-color: #fefefe;
    border: 1px solid #eaeaea;
    z-index: 1;
    cursor: pointer;
}

.btn-chat-closer {
    padding: 0;
    margin: 0;
    text-align: right;
    background: none;
}

.btn:active {
    box-shadow: none;
}

.chat-window {
    position: fixed;
    bottom: 44px;
    right: 0;
    width: 350px;
    margin: 0 5% 0 0;
    background-color: #fefefe;
    box-shadow: 0 0 2px #ccc;
}

.chat-bottom > .btn {
    box-shadow: 0 0 2px #ccc;
}

.chat-container .chat-window {
    height: 0;
    width: 0;
    overflow: hidden;
    transition-property: height, width;
    transition-duration: 0.3s;
}

.chat-container.active .chat-window {
    height: 400px;
    width: 350px;
    overflow: hidden;
    transition-property: height, width;
    transition-duration: 0.3s;
}

.chat-window-header {
    padding: 10px;
    background-color: #3183aa;
    color: #ffffff;
}

.chat-window-user {
    padding: 10px;
    background-color: #005a76;
    color: #ffffff;
}

.chat-window-form {
    height: 289px;
    padding: 10px;
    margin-left: 15px;
}

.btn-send {
    margin: 0 0 0 175px;
}

.chat-loader {
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    width: 100%;
    height: 295px;
    margin-left: -25px;
}

.chat-container .callback-message {
    margin-left: -15px;
}

.chat-container .callback-error {
    margin-top: -15px;
}

.chat-container .callback-error .alert {
    margin: 0 0 5px 0;
}
