/* --------- Chatbot CSS --------- */
.spark-chatbot,
.spark-chatbot *,
.spark-chatbot *::after,
.spark-chatbot *::before {
    box-sizing: border-box;
}

.spark-chatbot__template {
    display: none;
}

.spark-chatbot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    pointer-events: none;
    display: block;
}

.spark-chatbot__button {
    position: absolute;
    bottom: 1em;
    left: 3%;
    width: 3vw;
    min-width: 40px;
    max-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: all;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
}

.spark-chatbot__button>span {
    white-space: nowrap;
    font-size: 0.8vw;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

.spark-chatbot__button>.icon,
.spark-chatbot__bot>.bot-icon>span {
    width: 100%;
    position: relative;
    padding: 100% 0 0 0;
    overflow: hidden;
    background-color: #1F1944;
    border-radius: 100%;
    display: block;
}

.spark-chatbot__button>.icon::before,
.spark-chatbot__bot>.bot-icon>span::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('../images/icon-chatbot.png') center/contain no-repeat;
}

.spark-chatbot__holder {
    position: absolute;
    pointer-events: none;
    bottom: 0;
    left: 10%;
    width: 100%;
    max-width: 450px;
    height: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    transition: height .3s ease-in-out;
    overflow: hidden;
    background-color: #fff;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    z-index: 2;
    transition: height 0.3s ease-in-out;
}

.spark-chatbot.open .spark-chatbot__holder {
    height: 60%;
    pointer-events: all;
}

.spark-chatbot__holder .chat-top {
    height: 50px;
    min-height: 50px;
    width: 100%;
    background-color: #1F1944;
    position: relative;
}

.spark-chatbot__holder .chat-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 90%;
    height: calc(100% - 50px);
}

.spark-chatbot__close {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: url('../images/icon-chatbot-close.svg') center/contain no-repeat;
    outline: none;
    border: none;
}

.spark-chatbot__msg-area {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    flex: 1;
}

.spark-chatbot__bot {
    width: 90%;
    display: flex;
    align-items: flex-start;
    visibility: hidden;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale3d(0, 0, 1);
    transform-origin: 0% 0%;
}

.spark-chatbot__bot.active {
    visibility: visible;
    transform: scale3d(1, 1, 1);
}

.spark-chatbot__bot>.bot-icon {
    width: 8%;
    min-width: 30px;
}

.spark-chatbot__text {
    border: 1px solid #ebebeb;
    margin-left: 10px;
    border-radius: 8px;
    padding: 0.8em;
    width: 0;
    height: 0;
    visibility: hidden;
    transition: .3s ease-in-out;
    font-size: 0.875rem;
    color: #000000;
    line-height: 1.5;
}

.spark-chatbot__text.active {
    width: auto;
    height: auto;
    visibility: visible;
}

.spark-chatbot__text * {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.spark-chatbot__text strong {
    font-weight: 700 !important;
}

.spark-chatbot__text a {
    color: #3c5aaa;
}

.spark-chatbot__msg-area>* {
    margin: 10px 0;
}

.spark-chatbot__user {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.spark-chatbot__user>.spark-chatbot__text {
    width: 80%;
    flex-grow: unset;
    margin: 0;
    position: relative;
}

.spark-chatbot__question-area {
    height: auto;
    /* max-height: 80px; */
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0;
}

.spark-chatbot__question-area::-webkit-scrollbar {
    width: 0;
}

.spark-chatbot__question-area::-webkit-scrollbar-track {
    background: #ffffff;
}

.spark-chatbot__question-area::-webkit-scrollbar-thumb {
    background: #ffffff;
}

.spark-chatbot__question-area>li {
    display: block;
    width: auto;
    background-color: #1F1944;
    border-radius: 100px;
    padding: 5px 8px;
    color: #fff;
    font-size: .75rem;
    margin: 5px;
    cursor: pointer;
    line-height: 1;
}

.spark-chatbot__question-area>li.out {
    display: none;
}

@media (max-width:1024px) {
    .spark-chatbot__button>span {
        font-size: 0.75rem;
    }
}

@media (max-width:550px) {
    .spark-chatbot__holder {
        max-width: unset;
        left: 0;
        border-radius: 0;
    }

    .spark-chatbot.open .spark-chatbot__holder {
        height: 100%;
    }
}