:root {
    --chatbot-button-background: #009EE3;
    --chatbot-button-color: #ffffff;
    --chatbot-button-bottom: 20px;
    --chatbot-button-right: 20px;
    --chatbot-window-width: 420px;
    --chatbot-window-height: 700px;
    --chatbot-window-bottom: 20px;
    --chatbot-window-right: 20px;
    --chatbot-window-background: #ffffff;
    --chatbot-header-background: #009EE3;
    --chatbot-header-color: #ffffff;
    --chatbot-close-button-color: #ffffff;
}

#chatbot-open-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: auto;
    transform: none;
    width: 240px;
    padding: 20px;
    background: #7A996C;
    color: #ffffff;
    border-radius: 0.5rem;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(122,153,108,0.25);
    cursor: move;

}

.chatbot-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
}

.chatbot-button-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
}

.chatbot-button-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
}

#chatbot-start-button {
    padding: 10px 18px;
    border: none;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #7A996C;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chatbot-modal {
    display: none;
    position: fixed;
    bottom: var(--chatbot-window-bottom);
    right: var(--chatbot-window-right);
    width: var(--chatbot-window-width);
    height: var(--chatbot-window-height);
    background: var(--chatbot-window-background);
    border-radius: 12px;
    resize: both;
    overflow: hidden;
    min-width: 320px;
    min-height: 400px;
    box-shadow: 0 0 20px rgba(122,153,108,0.25);
    z-index: 99999;
}

#chatbot-header {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #ffffff;
    color: #7A996C;
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
}

#chatbot-header:hover {
    background: #7A996C;
    color: #ffffff;
}

#chatbot-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: normal;
    white-space: nowrap;
    flex: 1;
}

#chatbot-close-button {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

#chatbot-iframe {
    width: 100%;
    height: calc(100% - 30px);
    border: none;
}

@media (max-width: 600px) {
    body {
        overflow: hidden;
    }

    #chatbot-modal {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        z-index: 2147483647 !important;
    }

    #chatbot-title {
        display: none;
    }

    #chatbot-close-button {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 30px;
        background: transparent;
        border: none;
        color: #7A996C;
        font-size: 0;
        font-family: var(--company-font-family);
        cursor: pointer;
    }

    #chatbot-close-button::before {
        content: "X";
        font-weight: bold;
        font-size: 24px;
    }
}