﻿ 
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:host {
    --second-color: #11ad4f;
    --formButton-color: #33a7e0;
    --background-message-bot: #F1F1F1;
    --theme-opacity-color: rgba(17,173,79,0.4);
    --alert-color: #FB9826;
    font-family: 'Lato', sans-serif;
    color: #4D5863;
    font-size: 16px !important;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


button {
    font-family: 'Lato', sans-serif;
}

.row-split {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.width-sm-6 {
    width: 58%;
}

.width-sm-4 {
    width: 38%;
}
.chat {
    position: fixed;
    bottom: 0;
    right: 50px;
    z-index: 99999999999999999;
}

.chatBot {
    margin: 0 0 2vh 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 90vh;
    max-height: 900px;
}

.chatBot--display {
    display: none;
}

.chatBotContainer {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 0px;
    height: 0px;
    opacity: 0;
    background: #fff;
    transition: all .45s ease;
}

.chatBotContainer--active {
    height: 100%;
    width: 500px;
    opacity: 1;
}

/************ CHATBOT TITLE******************/

.chatBotHeader {
    border: 3px solid white;
    display: flex;
    align-items: center;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
}

.chatBotTitle {
    color: white;
    cursor: pointer;
    border-radius: 10px 10px 0px 0px;
    background-color: var(--second-color);
    padding: 10px 12px;
    width: 100%;
    outline: none;
    border: 0px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatBotTitle_info {
    display: flex;
    align-items: center;
}

.chatBotTitle_image {
    background: #fff;
    margin: 0px 10px 0px 0px;
    width: 4.5em;
    height: 4.5em;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.chatBotTitle_text {
    display: block;
    text-align: left;
    font-size: 1.7em;
}

.chatBotTitle_text--subtitle {
    display: flex;
    margin: .2em 0 0 0;
    align-items: center;
    font-size: 1.1em;
    font-weight: 500;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.chatBotTitle_text--online {
    border-radius: 100%;
    width: 0.75em;
    height: 0.75em;
    background-color: #48d174;
    display: inline-block;
    margin: 0 0.4em 0 0;
}

.chatBotTitle_min {
    margin-right: 10px;
    padding: 5px;
}

/*********** CHATBOT BOX************/

.chatBotBox {
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    height: calc( 100% - 90px);
    transition: all 0.35s ease-out;
    scrollbar-color: var(--theme-opacity-color) transparent;
    scrollbar-width: thin;
}

    .chatBotBox::-webkit-scrollbar {
        width: 8px;
        background-color: white;
    }

    .chatBotBox::-webkit-scrollbar-thumb {
        background-color: var(--theme-opacity-color);
        border-radius: 5px
    }

.chatBotButton {
    width: 100%;
    position: sticky;
    bottom: 0;
}

.chatBotButton-down {
    position: absolute;
    border-radius: 100%;
    width: 40px;
    height: 0;
    overflow: hidden;
    color: white;
    bottom: 10px;
    right: 10px;
    display: none;
    cursor: pointer;
    box-shadow: 2px 4px 40px rgb(0 0 0 / 15%);
}

.chatBotContent {
    min-height: 100%;
    height: auto;
    transition: max-height 0.2s ease-out;
    width: 100%;
}

.chatBotContent_options {
    position: sticky;
    display: flex;
    justify-content: start;
    top: 0;
    background: #fff;
    border-bottom: 2px solid #ECECEC;
    flex-wrap: wrap;
    padding: 5px 0px;
    z-index: 1;
}

.chatBotOption {
    cursor: pointer;
    border-radius: 5px;
    color: #626262;
    margin: 5px;
    padding: 10px 15px;
    border: 1px solid #DEDEDE;
    display: flex;
    align-items: center;
    font-size: 1em;
}

    .chatBotOption svg {
        margin: 0 5px 0 0;
    }

.chatBotContent_alert {
    position: sticky;
    top: 54px;
    height: 0px;
    z-index: 1;
    transition: all .35s ease;
    overflow: hidden;
    background: var(--alert-color);
    color: #fff;
    margin: 0 1px;
}

.chatBotContent_inactivity {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

    .chatBotContent_inactivity svg {
        margin-right: 5px;
    }

.chatBotContent_alert.active {
    height: 40px;
    box-shadow: 0 2px 2px rgb(0, 0,0, .12);
}

.chatBotContent_date {
    text-align: center;
    width: 100%;
}


/********** MESSAGE **********/

.message {
    font-size: 1em;
}

.message_avatar img {
    background: var(--second-color);
    margin: 0 0.62rem 0 0.18rem;
    width: 3.12em;
    height: 3.12em;
    border-radius: 50%;
}

.message--bot {
    display: flex;
    justify-content: start;
    align-items: start;
    margin-left: 5px;
    text-align: left;
}

.message--user {
    text-align: right;
}

.message_option {
    text-align: left;
    margin: 0 0 8px 65px;
    animation: floatup .5s forwards
}

.route {
    margin-top: 0px;
}

.message_option p, .message_option a {
    text-decoration: none;
    border-radius: 50px;
    color: var(--second-color);
    line-height: 1.5;
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid var(--second-color);
    max-width: 85%;
    font-weight: 600;
    cursor: pointer;
    transition: all .1s ease;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    margin: 0;
}

    .message_option p:hover, .message_option a:hover {
        background: var(--second-color);
        color: #fff;
    }

    .message_option p:active, .message_option a:active {
        position: relative;
        top: 1px;
    }

.message_description {
    line-height: 1.5em;
    display: inline-block;
    padding: 10px 5px;
    border-radius: 0px 8px 8px 8px;
    animation: floatup .5s forwards
}

.pollContainer {
    font-size: 1.56em;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.surveyContainer_option {
    padding: 10px 20px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    background: #fff;
    margin: 5px;
    cursor: pointer;
}

    .surveyContainer_option:hover, .surveyContainer_option:active {
        box-shadow: inset 0px 0px 1px 3px var(--second-color);
    }

.surveyContainer_option--active {
    box-shadow: inset 0px 0px 1px 3px var(--second-color);
}

.message_content {
    line-height: 1.5em;
    overflow-x: auto;
    overflow-y: hidden;
    display: inline-block;
    padding: 0 10px;
    border-radius: 2px 8px 8px 8px;
    max-width: 70%;
    animation: floatup .5s forwards;
    margin-bottom: 20px;
}

.message_content--bot {
    background: var(--background-message-bot);
    margin-bottom: 10px;
}

.message_content--poll {
    max-width: 100%;
    width: 100%;
    margin-left: 10px;
    margin-right: 15px;
    border-radius: 8px;
}

.message_content--firstMessage {
    max-width: 60%;
}

.message_content--user {
    color: white;
    font-size: 1em;
    text-align: right;
    margin-top: 10px;
}

    .message_content--user div {
        line-height: 1.5em;
        display: inline-block;
        background: var(--second-color);
        padding: 10px;
        border-radius: 8px;
        border-bottom-right-radius: 2px;
        animation: floatup .5s forwards
    }

.message_content--like {
    display: flex;
}

.messageForm {
    padding: 10px 8px;
}

.messageForm_input {
    width: 100%;
    padding: 12px 20px;
    margin: 10px 0;
    background: #FFFFFF;
    border: 1px solid #C4C4C4;
    box-sizing: border-box;
    border-radius: 5px;
    text-transform: uppercase;
}

    .messageForm_input::placeholder {
        text-transform: none;
    }

    .messageForm_input:focus {
        outline-color: var(--formButton-color);
    }

.messageForm_input--textArea {
    resize: none;
}

.messageForm_alert {
    color: red;
    display: none;
    font-size: 1em;
    margin-bottom: 5px;
}

.message_description--form {
    padding: 0;
    margin: 0.5em 0;
}

.message_description--bold {
    font-weight: bold;
}

.messageForm_button {
    width: 100%;
    padding: 20px 15px;
    font-size: 1em;
    border: none;
    background: var(--formButton-color);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    color: white;
    margin: 0.62em 0;
}

.messageForm_button--firstMessage {
    padding: 15px;
    width: 100%;
}

.messageForm_button:active {
    top: 1px;
}

.messageForm_button:focus {
    outline-width: unset;
    outline-style: none;
    outline-color: unset;
}

.messageForm_button:disabled,
.messageForm_button[disabled] {
    background: var(--formButton-color);
    opacity: 0.4;
    cursor: no-drop;
    color: #000;
}

.messageForm_input:disabled,
.messageForm_input[disabled] {
    background: #E5E8E8;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    cursor: no-drop;
}

.message_icon {
    width: 100%;
    padding-bottom: 8px;
}

    .message_icon img {
        width: 100%;
        object-fit: cover;
    }

.message_description--like {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    padding: 0 5px;
}

    .message_description--like svg {
        margin: 0 5px 0 10px;
        cursor: pointer;
    }


.oplike:hover .oplike-border {
    fill: none !important
}

.oplike:hover path {
    fill: var(--second-color);
}

.like-active .oplike-border {
    fill: none !important
}

.like-active path {
    fill: var(--second-color)
}


/****************** CHAT ICON **********************/

.chatIcon {
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    transition: all .35s ease;
    margin: 0 10px 0 0;
}

.chatIconContent {
    margin: 0 0 30px 0;
    width: 168px;
    height: 72px;
    position: relative;
    transition: all .35s ease;
}

.chatIcon_svg {
    position: relative
}

.chatIcon_text {
    position: absolute;
    padding: 0;
    margin: 0;
    top: 15px;
    left: 30px;
    color: white;
    line-height: 20px;
    font-size: 1.06em;
    font-weight: 600;
}

    .chatIcon_text span {
        font-size: 1.31em;
        font-weight: 900;
    }

.chatIcon_image {
    position: absolute;
    top: 0px;
    right: -25px;
    width: 65px;
    height: 65px;
}

    .chatIcon_image img {
        background: #fff;
        border-radius: 50%;
        border: solid 3px #fff;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all .3s ease;
        box-shadow: 2px 4px 40px rgba(0, 0, 0, 0.25);
    }

.chatIconContent--active {
    margin: 0;
}

.chatIconContent:hover > .chatIcon_image img {
    transform: scale(1.15);
}

.chatIconContent--active {
    height: 0px;
    opacity: 0;
}


#botStarterMessage {
    display: none;
    margin-left: 5px;
}

.loader-animation {
    display: flex;
    justify-content: center;
    align-self: center;
    margin: 0 auto;
}

    .loader-animation div {
        width: .6rem;
        height: .5rem;
        margin: 1rem 0.2rem 0.5rem;
        border-radius: 50%;
        background-color: #474747;
        animation: loader-animation .6s infinite alternate;
    }

    .loader-animation > div:nth-child(2) {
        animation-delay: .2s;
    }

    .loader-animation > div:nth-child(3) {
        animation-delay: .4s;
    }

@keyframes loader-animation {
    to {
        opacity: .1;
        transform: translate3d(0, -0.5rem, 0);
    }
}

@keyframes floatup {
    from {
        transform: translateY(14px);
        opacity: .0;
    }

    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

@media screen and (max-height:670px) {

    :host {
        font-size: 13px !important;
    }

    .chat {
        right: 20px;
    }

    .chatIconContent {
        margin-right: 20px;
    }

    .chatBotContainer--active {
        width: 385px;
    }


    .chatBotTitle_text {
        font-size: 1.35em;
    }

    .chatBotTitle_image {
        width: 3.2em;
        height: 3.2em;
    }

    .messageForm_button--firstMessage {
        width: 100%;
    }

    .message_option p, .message_option a {
        border-radius: 15px;
        max-width: 75%;
    }

    .message_content {
        max-width: 74%;
        padding: 0 7px;
    }

    .message_content--poll {
        max-width: 100%
    }

    .message_content--like {
        flex-wrap: wrap;
        align-items: center;
    }

    .message_description--like svg {
        margin: 0 5px 0 0;
    }
}

@media screen and (max-width:600px) {
    .chat {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .chatBot {
        position: fixed;
        margin-bottom: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        display: block;
    }

    .chatBotContainer {
        height: auto !important;
        border-radius: 0;
        opacity: 1;
        width: 100%;
    }

    .chatBotContent {
        width: 100%
    }

    .chatBotTitle {
        width: 100%;
        border-radius: 0px;
    }

    .chatBotTitle_minButton {
        display: none;
    }

    .chatBotTitle_minButton--active {
        display: flex;
    }

    .chatBotBox {
        height: 0px;
        transition: all .25s linear;
    }

    .chatBotBox--active {
        height: calc(100vh - 82px);
    }

    .chatBotContent {
        min-height: calc(100% - 5px);
    }

    .width-sx-4 {
        width: 38%;
    }

    .width-sx-6 {
        width: 59%;
    }

    .width-sx-12 {
        width: 100%;
    }

    .chatBotButton-down {
        height: 40px
    }

    .message_content {
        margin-right: 20px;
    }

    .message_content--user {
        margin: 8px
    }

    .message_content--poll {
        margin-right: 5px;
    }

    .message_content--firstMessage {
        max-width: 80%;
    }

    .messageForm_button--firstMessage {
        width: 100%;
    }

    .message_content--like {
        display: inline-block;
        padding-bottom: 12px;
    }

    .chatIconContent {
        display: none;
    }

    .message_option {
        margin: 0 0 15px 66px
    }

        .message_option p, .message_option a {
            margin-left: 0;
            max-width: 75%;
            border-radius: 10px;
        }

    .chatBotContent_options {
        justify-content: center;
    }

    .chatBotOption:nth-child(2) {
        display: none !important;
    }
}

@media screen and (max-height:670px)and (max-width:600px) {
    .message_content--like {
        display: flex;
    }
}


@media (max-width : 440px) {

    .chatBotTitle_image {
        width: 3.1em;
        height: 3.1em;
    }

    .message_avatar img {
        width: 2.5em;
        height: 2.5em;
        margin-right: 5px;
    }

    .message_description--like {
        margin-bottom: 5px;
    }

        .message_description--like svg {
            margin: 8px 10px 0 0px;
        }

    .message_content--user {
        padding-right: 0
    }

    .message_option {
        margin: 0 0 15px 55px;
    }

    .loader-animation div {
        width: .5rem;
    }
}

@media (max-width : 330px) {
    .chatBotHeader {
        height: 80px
    }

    .chatBotBox--active {
        height: calc(100vh - 86px);
    }

    .chatBotContent_alert.active {
        height: 55px;
    }
}
.csopac{
    opacity:0;
}
 