@import "colors.css";
@import "fonts.css";
@import "keyframes.css";
@import "bot-image.css";
@import "send-image.css";
@import "scrollbar-chatbot.css";

.floating-chat {
    position: fixed;
    width: 0;
    height: 0;
    bottom: -100px;
    right: -100px;
    transition: all 250ms ease-out;
    line-height: 16px;
}

.floating-chat :focus {
    outline: 0;
}

.floating-chat.expand {
    width: 300px !important;
    min-width: 300px !important;
    height: 450px !important;
    min-height: 450px !important;
    bottom: 32px;
    right: 32px;
    cursor: auto;
    z-index: 100;
}

.floating-chat .angle-down-container {
    width: 48px;
    background: transparent;
    border: 0;
    color: white;
}

.floating-chat .angle-down-container .fas {
    font-size: 32px;
    text-shadow: 1px 1px 6px var(--strong-grey);
}

.floating-chat .chat {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    background-color: var(--lighter-grey);
    transition: all 250ms ease-out;
}

.floating-chat .chat .header-chatbot {
    display: flex;
    justify-content: space-around;
    min-height: 56px;
    background: var(--province-primary);
    background-image: url("/csscovid/header-chatbot.png") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.floating-chat .chat .header-chatbot .title-chatbot {
    padding-left: 60px;
    padding-bottom: 16px;
    padding-top: 16px;
}

.floating-chat .chat .messages {
    padding: 10px;
    margin: 0;
    list-style: none;
    overflow-y: scroll;
    overflow-x: hidden;
}

.floating-chat .chat .messages li {
    position: relative;
    clear: both;
    margin: 0 0 10px 0;
    font-size: 13px;
    word-wrap: break-word;
    max-width: 80%;
}

.floating-chat .chat .messages li,
.floating-chat .chat .messages li.self .option-selection {
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.floating-chat .chat .messages li.self .option-selection {
    margin-right: 16px;
    width: 48px;
    text-align: center;
}

.floating-chat .chat .messages li.self .option-selection:hover {
    background-color: white !important;
    border: 1px solid var(--province-primary) !important;
    color: var(--province-primary) !important;
    transition: 0.1s all;
    cursor: pointer;
}

.floating-chat .chat .messages li.self,
.floating-chat .chat .messages li.other {
    animation: show-chat-even 0.15s 1 ease-in;
    -moz-animation: show-chat-even 0.15s 1 ease-in;
    -webkit-animation: show-chat-even 0.15s 1 ease-in;
    display: flex;
    float: left;
}

.floating-chat .chat .messages li.self:not(.message-selection),
.floating-chat .chat .messages li.self .option-selection {
    background-color: var(--strong-grey);
}

.floating-chat .chat .messages li.self {
    float: left;
}

.floating-chat .chat .messages li.other {
    float: right;
    background-color: white;
    color: var(--strong-grey);
}

.floating-chat .chat .messages li.self:not(.message-selection):after,
.floating-chat .chat .messages li.other:after {
    content: "";
    position: absolute;
    top: 50%;
    border: 5px solid transparent;
    margin-top: -5px;
}

.floating-chat .chat .messages li.self:not(.message-selection):after {
    border-right-color: var(--strong-grey);
    border-left: 0;
    margin-left: -4px;
    left: 0;
}

.floating-chat .chat .messages li.other:after {
    border-left-color: white;
    border-right: 0;
    margin-right: -4px;
    right: 0;
}

.floating-chat .chat .messages li.message-selection {
    width: 100%;
}

.floating-chat .chat .messages li.self select {
    width: 100%;
    padding: 6px 12px;
    background-color: var(--strong-grey);
    color: white;
    border-radius: 5px;
}

.floating-chat .chat .footer-chatbot {
    display: flex;
    background-color: white;
    height: 56px;
    flex-shrink: 0;
}

.floating-chat .chat .footer-chatbot .text-box {
    width: 100%;
    font-size: 13px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    color: var(--strong-grey) !important;
    overflow-y: auto;
    padding: 6px;
    margin: 12px;
}

.floating-chat .chat .footer-chatbot button {
    background: transparent;
    border: 0;
}

[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: var(--strong-grey);
}

[data-placeholder]:empty:focus::before {
    content: "";
}