#chatbot * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#chatbot {
    width: 0;
    height: 0;
    opacity: 0;
    position: fixed;
    bottom: 80px;
    right: 10px;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(165.4deg, rgba(43, 57, 82, 0.7) -10.07%, rgba(43, 57, 82, 0.7) -10.06%, rgba(43, 57, 82, 0.404687) 47.56%, rgba(43, 57, 82, 0) 89.61%);
    background-color: #fff;
    overflow: hidden;
    transition: .2s;
    z-index: 99999;
}

#chatbot.opened {
    width: 376px;
    height: 530px;
    opacity: 1;
}

#chatbot.minified.opened {
    transition: opacity .2s;
    height: auto;
}

#chatbot.minified .notification-message, #chatbot.minified #chatbot-controls-wrapper {
    display: none;
}

#chatbot.minified .chatbot-options {
    margin-bottom: 0;
}

.chatbot-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background: linear-gradient(168.53deg, rgba(234, 255, 254, 0.9) 0%, rgba(205, 201, 241, 0.9) 97.46%);
    border-radius: 13px;
    width: 100%;
    height: 100%;
}

.dragscroll {
    cursor: grab;
}

.chatbot-loader-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 9em;
    margin: 20px;
    padding: 2em 0;
}

.chatbot-loader,
.chatbot-loader:before,
.chatbot-loader:after {
    background: #1A2A46 !important;
    -webkit-animation: spinLoaderChat 1s infinite ease-in-out;
    animation: spinLoaderChat 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}

.chatbot-loader {
    color: #1A2A46 !important;
    text-indent: -9999em;
    position: relative;
    font-size: 11px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.chatbot-loader:before,
.chatbot-loader:after {
    position: absolute;
    top: 0;
    content: '';
}

.chatbot-loader:before {
    left: -1.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.chatbot-loader:after {
    left: 1.5em;
}

@-webkit-keyframes spinLoaderChat {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

@keyframes spinLoaderChat {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

.hidden {
    display: none;
}

.typing_loader{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    -webkit-animation: typing 1s linear infinite alternate;
    -moz-animation: typing 1s linear infinite alternate;
    -ms-animation: typing 1s linear infinite alternate;
    animation: typing 1s linear infinite alternate;
    position: relative;
    left: -12px;
    margin: 7px 15px 6px;
}

.to .typing_loader {
    animation: typing-black 1s linear infinite alternate;
}



/*header*/
.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1A2A46;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 13px;
    user-select: none;
    flex-shrink: 0;
}

.chatbot-header-title {
    display: flex;
    align-items: center;
}

.chatbot-header-image {
    display: inline-block;
    margin-right: 5px;
    height: 40px;
    width: 40px;
    background-image: url('chatbot.png');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
}

#chatbot-close {
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
    display: none;
}

#chatbot-close::before, #chatbot-close::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 27px;
    height: 4px;
    border-radius: 2px;
    background-color: #EE1D2D;
    transform: translateY(-50%) rotate(45deg);
    transition: .1s;
}

#chatbot-close::after {
    transform: translateY(-50%) rotate(-45deg);
}

#chatbot-close:hover::before, #chatbot-close:hover::after {
    background-color: #b91724;
}
/*!header*/



/*messages*/
.chatbot-messages-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
    overflow-y: scroll;
    transition: margin 0.1s;
}

#chatbot.minified .chatbot-messages-wrapper {
    justify-content: center;
}

#chatbot-messages {
    transition: bottom 0.15s, padding-bottom 0.15s;
    padding: 0 15px;
    height: auto !important;
    width: 100%;
    max-height: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE 11 */
}

.chatbot-message-row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.chatbot-message-row:first-child {
    margin-top: 20px;
}

.chatbot-message-row:last-child {
    margin-bottom: 20px;
}

.chatbot-message-row.from {
    justify-content: flex-end;
}

.chatbot-message-row .message-wrapper {
    max-width: 90%;
    color: #1A2A46;
    background: linear-gradient(165.4deg, #FFFFFF -10.07%, rgba(255, 255, 255, 0) 89.61%);
    border-radius: 0px 20px 20px;
    padding: 2px;
}

.chatbot-message-row.from .message-wrapper {
    border-radius: 20px 0px 20px 20px;
}

.chatbot-message-row .message {
    border-radius: 0px 18px 18px;
    background: #edf7fb;
    padding: 10px 15px;
    font-size: 0.905rem;
}

.chatbot-message-row.from .message {
    border-radius: 18px 0px 18px 18px;
    background: #f9fbfd;
}

.chatbot-message-row + .chatbot-message-row {
    margin-top: 15px;
}

.chatbot-message-row .message {
    animation: slideTop 0.15s ease;
}

.chatbot-message-row .message.ready {
    animation: bounceIn 0.2s ease;
    transform-origin: 0 0 0;
}

@keyframes slideTop {
    0% {
        margin-bottom: -25px;
    }
    100% {
        margin-bottom: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.75, 0.75);
    }
    100% {
        transform: scale(1.0, 1.0);
    }
}
/*!messages*/



/*answers*/
.chatbot-options {
    overflow-y: scroll;
    margin-bottom: 20px;
}

.chatbot-option-wrapper {
    display: inline-block;
    margin: 7px;
    padding: 2px;
    border-radius: 10px;
    background: linear-gradient(165.4deg, #FFFFFF -10.07%, rgba(255, 255, 255, 0) 89.61%);
}

.chatbot-option-wrapper.selected {
    background: linear-gradient(143.89deg, rgba(97, 74, 211, 0.5) 3.16%, rgba(0, 0, 0, 0) 86.83%);
}

.chatbot-option-wrapper:hover, .chatbot-option-wrapper.selected:hover {
    background: linear-gradient(165.4deg, rgba(0, 0, 0, 0.2) -10.07%, rgba(255, 255, 255, 0) 89.61%);
}

.chatbot-option {
    padding: 5px 15px;
    background: #e3e7f7;
    color: #1A2A46;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chatbot-option-wrapper.selected .chatbot-option {
    background: #fff;
}

.chatbot-option-wrapper:hover .chatbot-option, .chatbot-option-wrapper.selected:hover .chatbot-option {
    background: rgba(255, 255, 255, 0.8);
}
/*!answers*/



/*controls*/
#chatbot-controls-wrapper {
    background: linear-gradient(165.4deg, #FFFFFF -10.07%, rgba(255, 255, 255, 0) 89.61%);
    padding: 2px;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}

textarea.chatbot-input {
    border: none;
    padding: 7px 10px;
    outline: none;
    font-size: 0.905rem;
    float: left;
    width: calc(100% - 70px);
    line-height: 1.3em;
    min-height: 1.7em;
    max-height: 10rem;
    display: block;
    max-width: 88%;
    margin-right: 2.5%;
}

input.chatbot-input {
    border: none;
    outline: none;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
    background-color: transparent;
}

.chatbot-input:disabled {
    background-color: transparent;
}

#chatbot-controls-wrapper.error {
    background: linear-gradient(165.4deg, #EE1D2D -10.07%, rgba(238, 29, 45, 0) 89.61%);
}

#chatbot-controls-wrapper.error .chatbot-input {
    color: #EE1D2D !important;
}

.notification-message {
    min-height: 0;
    height: 0;
    padding-left: 15px;
    transition: .1s;
    color: #1A2A46;
    font-size: 13px;
    line-height: 1.6;
}

.notification-message.error {
    color: #EE1D2D;
}

.notification-message.show {
    min-height: 20px;
    height: auto;
}

.chatbot-controls {
    display: flex;
    align-items: center;
    background: #eeeffa;
    border-radius: 8px;
    padding: 20px 15px;
}

.chatbot-form {
    width: calc(100% - 33px);
    margin: 0 auto 15px;
    padding: 0 !important;
    position: relative;
    max-height: 50%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chatbot-submit {
    padding: 3px 4px;
    border: none;
    margin-left: 15px;
    fill: #1F278B;
    cursor: pointer;
    border-radius: 8px;
    background: transparent;
    outline: none !important;
    flex-shrink: 0;
    display: flex;
}

.chatbot-submit:hover *, .chatbot-submit.glow * {
    fill: #3140f5;
}

/*!controls*/



/*outer toggler*/
#chatbot-toggler {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .1s;
    background-image: url('show-chatbot.png');
    background-repeat: no-repeat;
    background-size: cover;
}

#chatbot-toggler.on {
    background-image: url('hide-chatbot.png');
}
/*!outer toggler*/



.chatbot-messages-wrapper::-webkit-scrollbar, #chatbot-messages::-webkit-scrollbar, .chatbot-options::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

@media (max-width: 575px) {
    #chatbot {
        right: 0;
        bottom: 0;
        border-radius: 0;
        padding: 0;
    }

    #chatbot.minified {
        top: auto;
        padding: 2px 2px 0;
        border-radius: 15px 15px 0 0;
    }

    #chatbot.opened {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    #chatbot.opened.minified {
        height: auto;
    }

    #chatbot-close {
        display: block;
    }

    .chatbot-container {
        border-radius: 0;
    }

    #chatbot.minified .chatbot-container {
        border-radius: 13px 13px 0 0;
    }

    .chatbot-header {
        border-radius: 0;
    }

    #chatbot.minified .chatbot-header {
        border-radius: 13px 13px 0 0;
    }
}

@-webkit-keyframes typing{
    0%{
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.4),
        24px 0px 0px 0px rgba(255, 255, 255, 0.2);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 1),
        24px 0px 0px 0px rgba(255, 255, 255, 0.4);
    }
    100%{ background-color: rgba(255, 255, 255, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.4),
        24px 0px 0px 0px rgba(255, 255, 255, 1);
    }
}

@-moz-keyframes typing{
    0%{
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.4),
        24px 0px 0px 0px rgba(255, 255, 255, 0.2);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 1),
        24px 0px 0px 0px rgba(255, 255, 255, 0.4);
    }
    100%{ background-color: rgba(255, 255, 255, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.4),
        24px 0px 0px 0px rgba(255, 255, 255, 1);
    }
}

@keyframes typing{
    0%{
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.4),
        24px 0px 0px 0px rgba(255, 255, 255, 0.2);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 1),
        24px 0px 0px 0px rgba(255, 255, 255, 0.4);
    }
    100%{ background-color: rgba(255, 255, 255, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.4),
        24px 0px 0px 0px rgba(255, 255, 255, 1);
    }
}

@keyframes typing-black{
    0%{
        background-color: rgba(26, 42, 70, 1);
        box-shadow: 12px 0px 0px 0px rgba(26, 42, 70, 0.4),
        24px 0px 0px 0px rgba(26, 42, 70, 0.2);
    }
    50% {
        background-color: rgba(26, 42, 70, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(26, 42, 70, 1),
        24px 0px 0px 0px rgba(26, 42, 70, 0.4);
    }
    100%{ background-color: rgba(26, 42, 70, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(26, 42, 70, 0.4),
        24px 0px 0px 0px rgba(26, 42, 70, 1);
    }
}
