﻿@import url('https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i');

.openChatBtn {
    background-color: rgb(123, 28, 179);
    color: white;
    padding: 16px 20px;
    border: none;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 280px;
}

.chatbox-wrap {
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    height: 450px;
    /* border: 1px solid black; */
    bottom: 20px;
    max-width: 550px;
    min-width: 200px;
    position: fixed;
    right: 5px;
    z-index: 2147483001;
    padding: 0px;
    box-sizing: border-box;
    transform: translateZ(100000px);
    width: 100%;
    max-height: 700px;
}

.minimized-chat-wrap {
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: unset;
    /* height: 450px; */
    /* border: 1px solid black; */
    bottom: 20px;
    max-width: 100px;
    /* min-width: 200px; */
    position: fixed;
    right: 5px;
    z-index: 0;
    padding: 0px;
    box-sizing: border-box;
    transform: translateZ(1000px);
    width: 100%;
}

.minimized-chat {   
    margin: 0 20px 0 0;
    position: relative;
    display: flex;
    flex-flow: column;
    bottom: 0;
    transition: .1s ease-out;
}

.minimized-chat-icon {
    font-size: 3.8em !important;
    color: var(--company-color) !important;
    cursor: pointer;
}

.chatbox {
    width: 550px;
    height: 550px;
    margin: 0 20px 0 0;
    position: relative;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 20%);
    display: flex;
    flex-flow: column;
    border-radius: 10px 10px 10px 10px;
    background: white;
    bottom: 0;
    transition: .1s ease-out;
    border: 1px solid rgba(0,0,0,.12);
}

.chatbox-top {
    position: relative;
    display: flex;
    padding: 10px 0;
    border-radius: 10px 10px 0 0;
    /* background: rgba(0, 0, 0, .05); */
    background-color: var(--company-color) !important;
    color: white;
}

.chatbox-minimize-close-buttons {
    padding: 0 10px 0 0;
    display: flex;
    position: relative;
}

    .chatbox-minimize-close-buttons .fa {
        background: rgba(220, 0, 0, .6);
        padding: 3px 5px;
        margin: 0 0 0 3px;
        color: white;
        border-radius: 0 5px 0 5px;
        transition: 0.3s;
    }

        .chatbox-minimize-close-buttons .fa:hover {
            border-radius: 5px 0 5px 0;
            background: rgba(220, 0, 0, 1);
        }

    .chatbox-minimize-close-buttons a, .chatbox-minimize-close-buttons a:link, .chatbox-minimize-close-buttons a:visited {
        color: white;
    }

.chatbox-minimize-button,
.chatbox-close-button {
    cursor: pointer;
    color:white !important;
    font-weight:bold;
	margin: 0 10px 0;
}

.chatbox-minimize-icon {
    font-size: 2em;
}

.chatbox-close-icon {
    font-size: 1.5em;
	margin-top: 4px;
}

.chatbox-titlebar {
    flex: 1;
    padding: 0 0 0 10px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    /*text-shadow: 1px 1px 0 white;
    transition: .1s ease-out;*/
}

.chatbox-status {
	font-size 1em;
	font-weight: normal;
	font-style: italic;
    margin-inline: 1.5em;
}
.chatbox-status:not(:empty):before {
	content: '[';
}
.chatbox-status:not(:empty):after {
	content: ']';
}

.online {
    background: #b7fb00;
}

.away {
    background: #ffae00;
}

.donot-disturb {
    background: #ff4343;
}

.chatbox-avatar {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    background: white;
    padding: 3px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
    position: absolute;
    transition: .1s ease-out;
    bottom: 0;
    left: 6px;
}

    .chatbox-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

.chat-messages {
    height:400px;
    border-top: 1px solid rgba(0, 0, 0, .05);
    padding: 10px;
    overflow: auto;
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    flex: 1;
    background-color: whitesmoke;
}
.end-chat-prompt {
    flex-flow: row wrap;
    align-content: baseline;
    flex: 1;
    background-color: whitesmoke;
    text-align: center;
    max-height: 80px;
}

.end-chat-question {
    color:black;
    font-size:1.1em;
}

btn-yes::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.btn-yes {
    -webkit-appearance: none;
    background: #9cc900;
    background: -moz-linear-gradient(180deg, #00d8ff, #00b5d6);
    background: -webkit-linear-gradient( 180deg, #00d8ff, #00b5d6);
    background: -o-linear-gradient(180deg, #00d8ff, #00b5d6);
    background: -ms-linear-gradient(180deg, #00d8ff, #00b5d6);
    background: #00b5d6;
    color: white;
    font-size: 1.01em;
    padding: 0 15px;
    border: none;
    text-shadow: 1px 1px 0 rgb(0 0 0 / 30%);
	margin: 5px 20px;
    border-radius: 5px;
}

	.btn-yes:hover {
		background: #006699;
	}

.message-wrap {
    width: 100%;
    margin: 0 0 15px;
    display: flex;
    flex-flow: column;
    align-items: flex-end;
}

.message-head {
    font-size: 1.1em;
}

    .rep-message .message-head {
        margin: 0 0 3px;
        color: black;
        align-self: flex-start;
    }

    .own-message .message-head {
        /* margin: 0 0 15px; */
        /* color: #30649c; */
        align-self: flex-end;
        /* font-weight: 500; */
    }

.message-time {
    font-size: 0.7em;
	margin-inline: 0.5em;
    color: var(--company-color) !important;
}

.system-message .message-body {
	font-style: italic;
}

.message-body {
    padding: 6px 10px;
    border-radius: 6px 0 6px 0;
    position: relative;
    background: #00b5d6;
    /* border: 2px solid rgba(100, 170, 0, .1); */
    color: white;
    font-size: 1em;
}

    .message-body:after {
        /*content: '';
        position: absolute;
        top: 0;
        left: 98%;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-bottom-color: rgba(100, 170, 0, .2);
        border-top: 0;
        border-right: 0;
        margin-left: -4px;
        margin-top: -10px;*/
        padding: 6px 10px;
        border-radius: 6px 0 6px 0;
        position: relative;
        background: #00b5d6;
        /* border: 2px solid rgba(100, 170, 0, .1); */
        color: white;
        font-size: 1em;
    }

.rep-message .message-body {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 0 6px 0 6px;
    position: relative;
    background: #dee2e6;
    color: black;
    font-size: 1em;
}

    .rep-message .message-partner:after {
        /*right: auto;
        bottom: auto;
        top: -12px;
        left: 9px;
        border: 10px solid transparent;
        border-bottom: 10px solid rgba(0, 114, 135, .2);
        border-left: none;*/
        align-self: flex-start;
        padding: 6px 10px;
        border-radius: 0 6px 0 6px;
        position: relative;
        background: #dee2e6;
        color: black;
        font-size: 1em;
    }

.chat-input-wrap {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.chat-input {
    resize: none;
    padding: 5px 10px;
    height: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 1.1em;
    color: black;
    flex: 1;
    background-color: white;
    border: 1px solid silver;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 5px;
    line-height: 2.3;
}

    .chat-input:focus, .message-send:focus {
        outline: none;
    }

.message-send::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.message-send {
    -webkit-appearance: none;
    background: #9cc900;
    background: -moz-linear-gradient(180deg, #00d8ff, #00b5d6);
    background: -webkit-linear-gradient( 180deg, #00d8ff, #00b5d6);
    background: -o-linear-gradient(180deg, #00d8ff, #00b5d6);
    background: -ms-linear-gradient(180deg, #00d8ff, #00b5d6);
    background: #00b5d6;
    color: white;
    font-size: 1.01em;
    padding: 0 15px;
    border: none;
    text-shadow: 1px 1px 0 rgb(0 0 0 / 30%);
    margin-top: 5px;
    margin-right: 5px;
    border-radius: 5px;
}

	.message-send:disabled,
	.message-send:disabled:hover {
		background: #dee2e6;
		color: gray;
	}

	.message-send:hover {
		background: #006699;
	}

.chatbox-min {
    margin-bottom: -362px;
    /*   height: 46px; */
}

    .chatbox-min .chatbox-avatar {
        width: 60px;
        height: 60px;
    }

    .chatbox-min .chat-partner-name, .chatbox-min .chat-group-name {
        padding: 0 0 0 75px;
    }

.settings-popup {
    background: white;
    border-radius: 20px/10px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, .2);
    font-size: 13px;
    opacity: 0;
    padding: 10px 0;
    position: absolute;
    right: 0;
    text-align: left;
    top: 33px;
    transition: .15s;
    transform: scale(1, 0);
    transform-origin: 50% 0;
    width: 120px;
    z-index: 2;
    border-top: 1px solid rgba(0, 0, 0, .2);
    border-bottom: 2px solid rgba(0, 0, 0, .3);
}

    .settings-popup:after, .settings-popup:before {
        border: 7px solid transparent;
        border-bottom: 7px solid white;
        border-top: none;
        content: "";
        position: absolute;
        left: 45px;
        top: -10px;
        border-top: 3px solid rgba(0, 0, 0, .2);
    }

    .settings-popup:before {
        border-bottom: 7px solid rgba(0, 0, 0, .25);
        top: -11px;
    }

    .settings-popup:after {
        border-top-color: transparent;
    }

#chkSettings {
    display: none;
}

    #chkSettings:checked + .settings-popup {
        opacity: 1;
        transform: scale(1, 1);
    }

.settings-popup ul li a, .settings-popup ul li a:link, .settings-popup ul li a:visited {
    color: #999;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
}

    .settings-popup ul li a:hover {
        background: rgba(0, 0, 0, .05);
    }

@media (max-width: 414px) {
    .chatbox {
        width: 100% !important;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: -10px;
    }

    .chatbox-top {
        font-size: 8pt !important;
    }

    .end-chat-prompt {
        font-size: 9pt !important;
    }

    .chat-input-wrap {
        font-size: 9pt;
    }

    .chat-input {
        height: 30pt;
    }
}
