﻿/*------------- Widget styles -------------------*/

.IconStyle {
    z-index:9;
    position: fixed;
    background-size: 25%;
    width: 75px;
    height: 75px;
    bottom: 50px;
    right: 25px;
    cursor: pointer;
}

    .IconStyle:focus {
        outline: none;
        background: transparent !important;
    }

*, *::after, *::before {
    box-sizing: border-box;
}

.modalChat {
    border-radius: 5px;
    position: fixed;
    right: -1000px;
    bottom: 50px;
    transform: translate(0%, 0%) scale(0);
    transition: 200ms ease-in-out;
    z-index: 10;
    background-color: white;
    width: 400px;
    box-shadow: -1px 1px 19px -2px rgba(0, 0, 0, 0.75);
    position: absolute;
    height: 540px;
    overflow-y: hidden;
    display: block;
    right: 15px;
}

    .modalChat.active {
        transform: translate(0%, 0%) scale(1);
        position: fixed;
        right: 20px;
    }

.close-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 35px;
    font-weight: bold;
    color: white;
    position: absolute;
    right: 15px;
    margin-top: 15px;
}

.modal-body {
    padding: 0px;
}

#overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

    #overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.webchatIframe {
    min-width: 350px;
    width: 400px;
    height: 477px;
    position: relative;
    border: none;
}

#header {
    width: 100%;
    height: 64px;
    display: flex;
    background-color: #2193b0;
    font-family: 'SegoeUI';
    z-index: 100;
    background: linear-gradient(to right, #0d60b6 0%, #1484c8 100%);
}

.brand-logo {
    padding: 5px;
    width: 70px;
}

.botName {
    color: white;
}

#webchat, .wc-console, .wc-message-groups {
    background-color: white;
}

@media (max-width: 270px) {
    .botName h2 {
        margin: 20px 0;
    }
}

.afplogo-container {
    width: 47px;
    height: 46px;
    z-index: 10;
    background-color: white;
    border-radius: 100px;
    margin: 10px;
}

    .afplogo-container img {
        width: 47px;
        border-radius: 25px;
        margin: 0 auto;
        display: block;
    }

.modalChat .botName > h2 {
    margin-top: 19px;
    font-size: 21px;
}

.modalChat button:hover {
    background: transparent;
}


/*------------- /Widget styles -------------------*/

/*------------- WebChat Overrides -------------------*/

.ac-container.ac-adaptiveCard .ac-textBlock {
    white-space: normal !important;
}

#webChat .main > form {
    margin-bottom: 0 !important;
    padding-top: 15px;
    padding-bottom: 15px;
}

.webchat__row.message {
    background-color: transparent;
    border-color: transparent;
    padding: 0;
    margin: 0;
    border: 0;
}

    .webchat__row.message .webchat__bubble__content {
        line-height: normal;
        font-size: 16px;
    }

.ac-actionSet button, #webChat .main button {
    font-size: 14px;
    margin-top: 0;
    line-height: normal;
}

.webchat__row.message .markdown p {
    padding: 0;
}

.avatar .image img {
    width: 40px;
    height: 40px;
}

span.transcript-timestamp {
    display: none;
}

/*MESSAGE*/
.msg {
    z-index:9;
    padding: 10px 20px;
    position: fixed;
    margin-bottom: -56px;
    right: 117px;
    width: max-content;
    bottom: 144px;
    max-width: 300px;
    text-align: left;
    border-radius: 6px;
    -webkit-box-shadow: 12px 20px 36px 0px rgba(0, 0, 0, 0.17) !important;
    -moz-box-shadow: 12px 20px 36px 0px rgba(0, 0, 0, 0.17) !important;
    box-shadow: 12px 20px 36px 0px rgba(0, 0, 0, 0.17) !important;
    background: white;
    display: flex;
    cursor: pointer;
}

    .msg p {
        font-size: 13px;
        margin: 0;
        font-weight: bold;
        line-height: 15px;
    }

    .msg .figura {
        border-top: 15px solid transparent;
        border-left: 15px solid white;
        position: absolute;
        top: 85%;
        right: 4px;
        transform: translate(90%, -50%);
    }

.elipse {
    width: 34px;
    height: 34px;
    background: #E89040;
    border-radius: 50%;
    margin-right: 15px;
}

.elipse-text {
    width: 38px;
    height: 18px;
    font-size: 10px !important;
    color: white;
    left: 17%;
    top: 30%;
    position: relative;
}

.ac-container.ac-adaptiveCard .ac-textBlock {
    color: #808285 !important;
}

    .ac-container.ac-adaptiveCard .ac-textBlock:first-of-type {
        font-size: 18px !important;
        color: #0062B0 !important;
    }
