﻿body > .container-fluid {
    position: relative;
    z-index: 0;
}

    body > .container-fluid:not(.no-transition),
    body > .container-fluid > .row > .navbar:not(.no-transition) {
        transition: width 0.5s, left 0.5s;
    }

    body > .container-fluid.chat-left {
        margin: 0 0 0 auto;
        width: 100%;
        left: 0;
    }

        body > .container-fluid.chat-left > .row > .navbar {
            left: auto;
            right: 0;
            width: 100%;
            right: 0;
        }

    body > .container-fluid.chat-right {
        margin: 0 auto 0 0;
        width: 100%;
    }

        body > .container-fluid.chat-right > .row > .navbar {
            left: 0;
            right: auto;
            width: 100%;
        }

/* NEW CHATBOX STYLES */
.chat {
    position: fixed;
    z-index: 1;
}

    .chat:not(.no-transition) {
        transition: transform 0.5s;
    }

    .chat:not(.chat-bottom):not(.chat-floating) {
        height: 100%;
    }

    .chat.chat-left {
        left: 0;
    }

        .chat.chat-left.chat-hidden {
            transform: translateX(-100%);
        }

    .chat.chat-right {
        right: 0;
    }

        .chat.chat-right.chat-hidden {
            transform: translateX(100%);
        }

    .chat.chat-bottom {
        bottom: 0;
        width: 100%;
    }

        .chat.chat-bottom.chat-hidden {
            transform: translateY(100%);
        }

    .chat.chat-floating {
        z-index: 1;
    }

        .chat.chat-floating.chat-hidden {
            height: 35px;
            overflow: hidden;
        }

    .chat:not(.chat-bottom) .chat-bottom-handle {
        display: none;
    }

    .chat .chat-holder {
        height: calc(100% - 35px);
        border-style: solid;
        border-width: 0 1px 1px 1px;
    }

    .chat:not(.chat-bottom) .chat-holder {
        height: calc(100% - 35px);
    }

    .chat.chat-left .chat-holder {
        float: left;
    }

    .chat.chat-right .chat-holder {
        float: right;
        left: 0 !important;
    }

    .chat .chat-holder iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    .chat .chat-controls {
        height: 35px;
        line-height: 1;
        padding: 10px;
        position: relative;
        z-index: 1;
    }

    .chat.chat-bottom .chat-controls,
    .chat.chat-floating .chat-controls {
        border-top-right-radius: 5px;
    }

    .chat.chat-bottom .chat-controls,
    .chat.chat-floating .chat-controls {
        border-top-left-radius: 5px;
    }

    .chat:not(.chat-bottom):not(.chat-floating) .chat-controls {
        width: 100%;
    }

    .chat .chat-controls .chat-select .channel-select {
        position: absolute;
        top: 0;
        left: 0;
        height: 35px;
        width: 150px;
        border: none;
        background: transparent;
        text-align: left;
        padding-left: 10px;
    }

        .chat .chat-controls .chat-select .channel-select .glyphicon {
            font-size: 12px;
            margin-right: 5px;
        }

    .chat .chat-controls .chat-select .chat-channels {
        position: absolute;
        top: 40px;
        left: 5px;
        padding: 5px;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

        .chat .chat-controls .chat-select .chat-channels.popup-hidden {
            display: none;
        }

        .chat .chat-controls .chat-select .chat-channels button {
            width: 46px;
            height: 38px;
            font-size: 10px;
            border: none;
            float: left;
        }

            .chat .chat-controls .chat-select .chat-channels button .fa {
                font-size: 19px;
                display: block;
                padding-bottom: 5px;
            }

    .chat .chat-controls .chat-dock {
        float: right;
    }

        .chat .chat-controls .chat-dock button {
            width: 14px;
            height: 14px;
            background: transparent;
            padding: 0;
            float: left;
        }

            .chat .chat-controls .chat-dock button:not(:last-child) {
                margin-right: 4px;
            }

        .chat .chat-controls .chat-dock .chat-dock-left div,
        .chat .chat-controls .chat-dock .chat-dock-right div {
            width: 50%;
            height: 100%;
        }

        .chat .chat-controls .chat-dock .chat-dock-left div {
            float: left;
        }

        .chat .chat-controls .chat-dock .chat-dock-right div {
            float: right;
        }

        .chat .chat-controls .chat-dock .chat-dock-bottom div {
            width: 100%;
            height: 50%;
            margin-top: 50%;
        }

        .chat .chat-controls .chat-dock .chat-dock-floating div {
            width: 8px;
            height: 8px;
            margin-left: 2px;
        }

.btn.open-chat {
    width: 25px;
    padding: 12px 0;
    box-shadow: 3px 5px 10px rgb(0 0 0 / 16%);
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid;
}

body .container-fluid .open-chat {
    position: fixed;
    bottom: 150px;
    z-index: 10;
}

    body .container-fluid .open-chat:not(.no-transition) {
        transition: left 0.5s, right 0.5s;
    }

.chat-floating .open-chat {
    display: none;
}

body > .container-fluid.chat-left .open-chat {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    left: 0;
}

body > .container-fluid.chat-right .open-chat {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    right: 0;
    border-right: 0;
    border-left: 1px solid #ccc;
}

body > .container-fluid.chat-bottom .open-chat {
    display: none;
}

.chat:not(.chat-bottom) .open-chat {
    display: none;
}

.chat.chat-bottom .open-chat {
    top: 6px;
    left: 75px;
    transform: rotate(-90deg) translateX(60px);
    position: absolute;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.open-chat .glyphicon {
    font-size: 22px;
}

.open-chat p {
    margin: 4px 0 0;
    line-height: 1;
    text-align: center;
    writing-mode: vertical-lr;
    padding-left: 5px;
}

.chat-bottom .open-chat .caption_status {
    top: 5px;
}

.open-chat .caption_users {
    display: block;
    position: absolute;
    width: 70px;
    background: inherit;
    line-height: 1;
    padding: 6px 0;
    border-radius: 4px;
    font-weight: 400;
    left: 0;
}

.chat-left .caption_users {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.chat-right .caption_users {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.chat-bottom .caption_users {
    top: -26px;
}

.container-fluid .open-chat .caption_users {
    bottom: -26px;
}

@media screen and (max-width: 1125px) {
    body > .container-fluid,
    body > .container-fluid .navbar {
        width: 100% !important;
    }
}

@media only screen and (max-width: 500px) {
    .chat .chat-controls .chat-dock .chat-dock-floating {
        display: none;
    }
}
