
/* Styles for the floating widget on the host website */
body {
    font-family: sans-serif;
}

#chat-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #7c3aed; /* purple-600 */
    color: white;
    border: none;
    border-radius: 9999px; /* pill shape */
    height: 56px; /* Increased height */
    padding: 0 24px; /* Horizontal padding */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
    font-weight: 600;
    gap: 8px;
}

#chat-widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

#chat-widget-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    height: 600px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: none; /* Initially hidden */
    overflow: hidden;
    z-index: 9999;
}

#chat-widget-container.open {
    display: block;
}

/* Handle showing/hiding the text */
#chat-widget-button .widget-text-open,
#chat-widget-button .widget-text-close {
    display: none;
    align-items: center;
    gap: 8px;
}

#chat-widget-button .widget-text-open {
    display: inline-flex;
}

#chat-widget-button.open .widget-text-open {
    display: none;
}

#chat-widget-button.open .widget-text-close {
    display: inline-flex;
}
