/* START CHATBOT STYLES */
:root {
    --chatBotMasterColor:#000000;

    --chatBotBlack:#000;
    --chatBotBtnColor:#262626;
    --chatBotBtnHoverColor: #525252;
    --chatBotText:#515568;
    --chatBotgray:#e8eef3;
    --chatBotgray1:#f1f1f1;
    --chatBotWhite:#fff;
    --chatBotRed:red;
    --chatBotBlue:blue;
}

.d_none{
    display: none !important;
}

.chatBoticon{
    position: fixed;
    bottom: 0;
    margin-bottom: .5rem;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--chatBotBlack);
    color: var(--chatBotWhite);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
    z-index: 20;
    transition: all .3s ease;
}

.chatBoticon:hover {
    transform: scale(1.1)
}


.alert-container{
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 101;
}

.chatbot-container {
    display: flex;
    height: 100%;
    background-image: url("../images/chatbot/background.png");
    background-size: cover;
    border: 3px solid var(--chatBotBlack);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, .1);
    z-index: 101;
    bottom: 70px;
    right: 20px;
    flex-direction: column;
    max-height: 525px;
    width: 317px;
    position: fixed;
    border-radius: 26px;
    overflow: hidden;
}

.chatbot-header-title span{
    font-weight: 600;
    font-size: 30px;
    line-height: 1.3;
}

.chatbot-header-subtitle p{
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 0 !important;
    margin-top: .5rem !important;
    color: var(--chatBotWhite);
}

.resize-handle {
    cursor: grab;
    background: transparent;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 36px;
    border-top-left-radius: 12px;
}

.chatbot-header {
    display: flex;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: var(--chatBotWhite);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.chatbot-message-container {
    display: flex;
    flex-direction: column;
    overflow: auto;
    min-height: 0;
    background: var(--chatBotWhite);
    flex: 1 1 auto !important;
}

.chatbot-message-header {
    display: flex;
}

.ui-handle {
    display: flex;
    pointer-events: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 40px;
    height: 45px;
    background-color: var(--chatBotBlack);
    top: -3px;
    left: -3px;
    border-bottom-right-radius: 34% !important
}

.ui-handle::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 40px;
    width: 32px;
    height: 52px;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg width="32" height="52" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 H32 Q0,0 0,36 Z" fill="rgb(0,0,0)"/><rect x="0" y="0" width="52" height="52" fill="white" fill-opacity="0" /></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.ui-handle::before {
    content: '';
    position: absolute;
    top: 45px;
    left: -5px;
    width: 32px;
    height: 29px;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg width="32" height="52" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 H28 Q1,1 0,52 Z" fill="rgb(0,0,0)"/><rect x="0" y="0" width="32" height="52" fill="white" fill-opacity="0" /></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

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

.clear-chat{
    position: absolute;
    border: 1px solid var(--chatBotRed);
    border-radius: 30px;
    background: var(--chatBotWhite);
    color: var(--chatBotRed);
    font-size: 12px;
    top: 10px;
    right: 10px;
    padding: .5rem 1rem;
}

.chatbot-messages {
    display: flex;
    flex: 1 1 auto !important;
    flex-direction: column;
    gap: 15px;
    border-radius: 12px;
    background: var(--chatBotWhite);
    scroll-behavior: smooth;
    overflow: auto;
    padding: .5rem;
    margin: 4rem 1rem 6rem 1rem;
    /* Firefox */
    -ms-overflow-style: none;

    /* Internet Explorer 10+ */
    &::-webkit-scrollbar {
        /* WebKit */
        width: 1px;
        /* Chrome/Safari/Webkit */
    }
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: var(--chatBotBlack);
    border-radius: 10px;
    transition: background-color .3s ease;
}

.chatbot-messages::-webkit-scrollbar-track {
    background-color: var(--chatBotWhite);
    border-radius: 10px
}

.chatSendBtn {
    gap: 10px;
    margin: .5rem;
    z-index: 10;
    position: absolute;
    flex-direction: column;
    background: var(--chatBotWhite);
    border-radius: 8px;
    padding: .5rem;
    bottom: 10px;
    left: 10px;
    right: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.waiting-page {
    display: flex;
    flex: 1 1 auto !important;
    width: 100%;
    height: 100%;
    background: var(--chatBotWhite);
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.detailSuccessMain{
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.detailSuccessBottomtext{
    margin: 1rem;
    text-align: center;
}

.waiting-header-title{
    color: var(--chatBotBlack);
    font-size: 20px;
    font-weight: 500;
}

.waiting-header-subtitle{
    margin-bottom: .25rem;
}

.waiting-header-text{
    color: var(--chatBotText);
    font-size: 12px;
    margin-bottom: 1.5rem;
    margin-top: .5rem;
}

.chatbot-input{
    padding: .5rem;
    font-size: 14px;
    border: none;
    outline: none;
    background: var(--chatBotWhite);
    width: 100%;
}

/* JS classes */
.user-message {
    align-self: flex-end;
    background-color: #262626;
    color: var(--chatBotWhite);
    padding: 10px 15px;
    border-radius: 10px 0 10px 10px;
    max-width: 75%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .1);
    word-wrap: break-word;
    font-size: 14px
}

.user-message-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.ai-message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ai-avatar-container,
.user-avatar-container {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #262626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar-container {
    margin-right: 5px;
}

.user-avatar-container {
    margin-left: 5px;
}

.ai-avatar,
.user-avatar {
    height: 15px;
    width: 15px;
    display: flex;
}


.ai-message {
    align-self: flex-start;
    background-color: #f3f3f3;
    color: #333;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    max-width: 80%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .1);
    word-wrap: break-word;
    font-size: 14px
}

.ai-message p {
    margin: 0 !important;
    line-height: 1.6
}

.ai-message img {
    width: 30px;
    height: 30px;
    border-radius: 50%
}

.ai-message ul {
    padding-top: 10px;
    padding-left: 0 !important
}

.ai-message li {
    line-height: 1.5;
    margin-bottom: 8px
}

.typing-loader {
    align-self: flex-start;
    background-color: var(--chatBotgray1);
    color: var(--black);
    padding: 10px 15px;
    border-radius: 7px 7px 0;
    max-width: 75%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .1);
    font-size: 14px;
    display: flex;
    gap: 5px;
    align-items: center
}

.typing-loader:after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0073aa;
    animation: typing 1s infinite
}
/* //JS Css close */

.inputButtonHead {
    display: flex;
}

.chatbot-Message-send{
    width: 60px;
    height: 50px;
    color: var(--chatBotWhite);
    background: var(--chatBotBtnColor);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    padding: .5rem;
}

.chatbot-message-send-head{
    display: flex;
}

.chatbot-send{
    width: 100%;
    color: var(--chatBotWhite);
    background-color: var(--chatBotBtnColor);
    border: 0;
    border-radius: 12px;
    padding: .5rem;
}

.chatbot-send:hover{
    background-color: var(--chatBotBtnHoverColor);
    transition: background-color .3s ease-in-out;
}

.chatbot-send span{
    font-size: 14px;
}

.formText{
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--chatBotText);
    padding: .5rem 0;
}

.disclaimer-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: .5rem;
}

.disclaimer-text{
    color: var(--chatBotText);
    font-size: 8px;
}

.chatbot-formsend:disabled {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        transform: translateY(200px)
    }

    to {
        transform: translateY(0)
    }
}


@keyframes typing {
    0% {
        transform: scale(0)
    }

    50% {
        transform: scale(1)
    }

    100% {
        transform: scale(0);
    }
}

.ChatForm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1rem 0 1rem;
    overflow: auto;
    background: var(--chatBotWhite);
    break-before: 12px;
    height: 425px;
    border-top: 1px solid var(--chatBotBlack);
}

.ChatForm .ChatFormContent{
    padding-bottom: 1rem;
}

.ChatForm .ChatFormContent .ChatFormFieldhead{
    display: flex;
    flex-direction: column;
    margin-bottom: .25rem;
    padding-bottom: .25rem;
}

.ChatForm .ChatFormContent .ChatFormFieldhead label{
    font-size: 12px;
    font-weight: 500;
    margin-bottom: .25rem;
}

.ChatForm input {
    all: unset;
    border: 1px solid var(--chatBotgray);
    height: 35px;
    border-radius: 8px;
    padding: 0 10px;
    box-sizing: border-box;
    transition: all .2s ease;
    width: 100%;
    background-color: var(--chatBotWhite);
    font-size: 14px;
}

.ChatForm input::placeholder {
    font-size: 13px;
    color: #9CACCB;
}

.ChatForm input:hover,
.ChatForm input:focus {
    border: 1px solid var(--chatBotBlue);
}

.errorText{
    color: var(--chatBotRed);
    font-size: 12px;
    margin-top: .25rem;
}

.chatIconText{
    position: relative;
}
.chatbot-hint {
    background: var(--chatBotBlack);
    color: var(--chatBotWhite);
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 14px 14px 3px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: floatText 2s ease-in-out infinite;
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    top: -18px;
    right: 21px;
    }

@keyframes floatText {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.chatbot-hint{
    display: none;
}

.chatbotDefaultLandingText{
    font-size: 14px;
    text-align: center;
    margin-top: 19px;
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50% , -50%);
    width: 100%;
}


