@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.chatbot-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background-color: var(--chatbot-background);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-popup {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 400px;
    height: 521px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px #1219211F;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-popup.active {
    display: flex;
}

.chat-header {
    background-color: var(--chatbot-background);
    color: var(--chatbot-color);
    padding: 15px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--chatbot-color);
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    width: 220px;
    font-size: 14px;
    color: #566477;
}

.bot-wrapper {
    display: flex;
    justify-content: start;
    align-items: center;
}

.bot-icon {
    background: #D1E1FF;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
}

.bot-icon img {
    width: 32px;
}

.bot-message {
    background-color: #E9F0FF;
    align-self: flex-start;
}

.user-message {
    background-color: #293A5A;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input {
    display: flex;
    padding: 25px 0 25px 0;
    margin-left: 25px;
    margin-right: 25px;
    border-top: 1px solid #ddd;
}

.chat-input input {
    font-size: 14px;
    flex: 1;
    border-radius: 20px;
    outline: none;
    padding-left: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #D0D9E4;
    border-radius: 24px;
}

.chat-input input::placeholder {
    color: #BAC5DC;
}

.chat-input button {
    margin-left: 16px;
    padding-top: 10px;
    border: none;
    cursor: pointer;
    background-color: #fff;
    display: none;
}

.chat-input input:focus ~ button,
.chat-input input:not(:placeholder-shown) ~ button {
    display: block;
}