p.titulo-app {
    margin: 0;
    color: #f85900;
    font-weight: 100;
    font-size: 24px;
}

.chat-container {
    padding: 20px 10px;
    height: calc(100% - 136px);
    overflow-y: auto;
    background-color: #f8f9fa;
    margin-right: 6px;
    margin-top: 8px;
    overflow-x: hidden;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    background-image: url("user-avatar.svg");
    background-repeat: no-repeat;
    background-position: right 67%;
    background-size: 32px;
    overflow: visible;
    padding-bottom: 16px;
    margin-right: 8px;
    animation: show-in-user .2s ease-in;
}

@keyframes show-in-user {
    from {
        opacity: 0;
        transform: translateX(200px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes show-in-bot {
    from {
        opacity: 0;
        transform: translateX(-200px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.user-message div {
    background: #d5d5e2;
    color: #585555;
    width: fit-content;
    padding: 12px 20px;
    border-radius: 16px 16px 0px 16px;
    margin-right: 45px;
    max-width: 80%;
    line-height: 18px;
    min-height: 40px;
    align-items: center;
    display: flex;
}

.bot-message {
    display: flex;
    justify-content: flex-start;
    background-image: url("bot-avatar.svg");
    background-repeat: no-repeat;
    background-position: left 67%;
    background-size: 32px;
    overflow: visible;
    padding-bottom: 16px;
    margin-left: 8px;
    animation: show-in-bot .2s ease-in;
}

.bot-message div {
    background: #F85900;
    color: white;
    width: fit-content;
    padding: 6px 20px;
    border-radius: 16px 16px 16px 0px;
    margin-left: 45px;
    max-width: 80%;
    line-height: 18px;
    min-height: 40px;
    align-items: center;
    display: flex;
}

.chat-box {
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0px 0px 20px #CCC;
    padding: 0;
    overflow: hidden;
    display: none;
    position: fixed;
    right: 6%;
    bottom: calc(55px + 5%);
    height: 680px;
    width: 460px;
    transition: .2s ease-in;
    background-color: #f8f9fa;

}

.chat-header {
    background: #F85900;
    border-radius: 5px 5px 0 0;
    padding: 1rem;
    position: relative;
}

.chat-header h2 {
    color: white;
    text-align: left;
    margin-bottom: 0;
    font-size: 16px;
    display: inline-block;
    width: fit-content;
    padding-left: 36px;
    background-image: url(chat-head-icon.svg);
    background-repeat: no-repeat;
}

.chat-header .contact-form {
    color: #fff;
    display: block;
    position: absolute;
    right: 54px;
    top: 13px;
    background: #ffffff2e;
    padding: 3px 11px;
    border-radius: 5px;
    transition: .3s ease;
}

.chat-header .contact-form:hover {
    background: #333;

}

.chat-header .resizer {
    color: #fff;
    display: block;
    position: absolute;
    right: 16px;
    top: 14px;
    background-image: url(ic_resizer.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.chat-header .resizer:hover {
    opacity: .6;
}

#chatForm {
    height: 76px;
}

#chatForm .input-group {
    padding: 1rem;
    background: #f8f9fa;
}

#messageInput {
    border-radius: 8px;
    border: none;
    border: 2px solid #eee;
}

#submit-btn {
    border-radius: 0;
    border: none;
    background-color: transparent;
    background-image: url(send-msg.svg);
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    width: 56px;
    margin-left: 4px;
    border-radius: 8px;
}

#submit-btn:hover {
    background-color: #ccc;
}

#initial {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    overflow: auto;

}

#initial h2 {
    text-align: center;
    color: #a4a5aa;
    font-size: 30px;
    margin-bottom: 20px;
    padding-top: 60px;
    background-image: url(welcome-logo.png);
    background-repeat: no-repeat;
    background-position: center 0px;
    background-size: 70px;
}

#initial p {
    color: #a4a5aa;
    margin-bottom: 30px;
}

.question-box {
    border: 1px solid #a4a5aa;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 15px;
    cursor: pointer;
}

.question-box:hover {
    background: #F85900;
    color: #FFF;
    border-color: #F85900;
}

.chat-opener {
    position: fixed;
    bottom: 5%;
    right: 3%;
    background-image: url(chat-opener.svg);
    background-repeat: no-repeat;
    width: 65px;
    height: 65px;
    z-index: 9999;
    cursor: pointer;
    transition: .2s ease;
}

.chat-opener:hover {
    transform: scale(1.1);
}

.chat-closer {
    background-image: url(chat-closer.svg);
    background-position: center;
}

.show-chat {
    display: block;
    animation: openme .2s ease
}

@keyframes openme {
    from {
        transform: scaleX(0);
        transform-origin: right;
        opacity: 0
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }

}

.resize-me {
    width: 800px;
    height: 85%;
}

/* mensaje error escritura vacía */

#mensajeError {
    position: absolute;
    bottom: 50px;
    padding: 5px 10px;
    left: 18px;
    z-index: 999999999;
    background: #ffdcdc;
    border-radius: 10px;
    color: red;
    font-size: 13px;
    display: none;
}

#mensajeError.show-error {
    display: block;
    animation: show-error-type 2s ease;
    animation-fill-mode: forwards;
}

@keyframes show-error-type {
    0% {
        opacity: 0
    }

    20% {
        opacity: 1
    }

    80% {
        opacity: 1
    }

    100% {
        opacity: 0;
        display: none;
    }
}


/** SCROLLBARS **/


/*Webkit*/
/* width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    BACKGROUND: #EEE;
    border-radius: 8px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 8px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/*** writting animation ***/

.chat-bubble {
    background-color: #ffe4d5;
    padding: 12px 24px;
    -webkit-border-radius: 20px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius: 20px;
    -moz-border-radius-bottomleft: 2px;
    border-radius: 16px;
    border-bottom-left-radius: 0;
    display: inline-block;
    position: absolute;
    bottom: 74px;
    left: 18px;
}

.typing {
    align-items: center;
    display: flex;
    height: 17px;
}

.typing .dot {
    animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
    background-color: #f85900;
    border-radius: 50%;
    height: 7px;
    margin-right: 4px;
    vertical-align: middle;
    width: 7px;
    display: inline-block;
}

.typing .dot:nth-child(1) {
    animation-delay: 200ms;
}

.typing .dot:nth-child(2) {
    animation-delay: 300ms;
}

.typing .dot:nth-child(3) {
    animation-delay: 400ms;
}

.typing .dot:last-child {
    margin-right: 0;
}

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color: #fcaf82;
    }

    28% {
        transform: translateY(-7px);
        background-color: #fdcfb5;
    }

    44% {
        transform: translateY(0px);
        background-color: #fce4d6;
    }
}


/* chat disclaimer */

.chat-disclaimer {
    width: 420px;
    border-radius: 16px;
    box-shadow: 1px 1px 20px #CCC;
    position: fixed;
    bottom: 100px;
    right: 65px;
    padding: 30px 10px 30px 117px;
    background-image: url(disclaimer-bg.svg);
    background-repeat: no-repeat;
    background-position: 16px 34px;
}

.chat-disclaimer h2 {
    color: #f85900;
    font-size: 20px;
    font-weight: 100;
    padding-right: 50px;
}

.chat-disclaimer h2 span {
    font-weight: bold;
}

.chat-disclaimer p {
    color: #424242;
    line-height: 18px;
}

.chat-disclaimer button {
    background: #f85900;
    color: #FFF;
    border:none;
    border-radius: 6px;
    padding: 10px 58px;
}

.hide-me{display:none;}

#disclaimer-close {
    position: absolute;
    right: 5px;
    top: 0px;
    font-size: 30px;
    transform: rotate(45deg);
    padding: 10px;
    cursor:pointer;
}

#disclaimer-close:hover{color: #f85900;}