/* Lale Marketing Chatbot Styles */

:root {
    --lale-magenta: #C6006D;
    --lale-navy: #002776;
    --lale-green: #72BA6F;
    --lale-white: #FFFFFF;
    --lale-light-bg: #F5F7FA;
}

.lale-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    /* High z-index to stay on top of WP themes */
    font-family: 'Poppins', sans-serif;
}

/* Toggle Button */
.lale-chat-toggle {
    background-color: var(--lale-magenta);
    color: var(--lale-white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.lale-chat-toggle:hover {
    transform: scale(1.05);
    background-color: #a5005b;
}

.lale-chat-toggle svg {
    fill: currentColor;
}

/* Chat Window */
.lale-chat-window {
    width: 350px;
    max-height: 500px;
    height: 500px;
    background-color: var(--lale-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.lale-chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.lale-chat-header {
    background-color: var(--lale-navy);
    color: var(--lale-white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.lale-chat-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.lale-chat-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 4px;
}

.lale-chat-close {
    background: none;
    border: none;
    color: var(--lale-white);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Body */
.lale-chat-body {
    flex-grow: 1;
    padding: 15px;
    background-color: var(--lale-light-bg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Messages */
.lale-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    word-wrap: break-word;
}

.lale-message.bot {
    background-color: var(--lale-white);
    color: var(--lale-navy);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lale-message.user {
    background-color: var(--lale-magenta);
    color: var(--lale-white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Options */
.lale-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    animation: fadeIn 0.5s ease-in-out;
}

.lale-option-btn {
    background-color: var(--lale-navy);
    color: var(--lale-white);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: background-color 0.2s, transform 0.1s;
    font-family: inherit;
}

.lale-option-btn:hover {
    background-color: var(--lale-green);
    transform: translateX(2px);
}

/* Forms */
.lale-input-group {
    display: flex;
    margin-top: 5px;
    gap: 5px;
    animation: fadeIn 0.3s ease;
}

.lale-chat-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.lale-chat-input:focus {
    border-color: var(--lale-magenta);
}

.lale-chat-submit {
    background-color: var(--lale-magenta);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lale-chat-submit:hover {
    background-color: #a5005b;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .lale-chat-window {
        width: 100%;
        height: 100%;
        max-height: 80vh;
        bottom: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        z-index: 100000;
    }

    .lale-chatbot-container {
        right: 15px;
        bottom: 15px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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