#livechat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#livechat-open-button {
    width: 55px;
    height: 55px;
    background-color: var(--lcfb-primary-color);
    color: var(--lcfb-primary-text-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--lcfb-shadow-color);
}

#livechat-window {
    width: 350px;
    height: 500px;
    background-color: var(--lcfb-widget-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--lcfb-shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
}

#livechat-window.hidden {
    display: none;
}

#livechat-header > p {
    color: var(--lcfb-primary-text-color);
}

#livechat-header {
    background-color: var(--lcfb-primary-color);
    color: var(--lcfb-primary-text-color);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#livechat-header p {
    margin: 0;
    font-weight: bold;
}

#livechat-close-button {
    background: none;
    border: none;
    color: var(--lcfb-primary-text-color);
    font-size: 20px;
    cursor: pointer;
}

#livechat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    line-height: 1.4;
}

.bot-message {
    background-color: var(--lcfb-bot-message-bg-color);
    color: var(--lcfb-bot-message-text-color);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

#livechat-messages > div.message.user-message > p {
    color: var(--lcfb-primary-text-color);
}

.user-message {
    background-color: var(--lcfb-primary-color);
    color: var(--lcfb-primary-text-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

#livechat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--lcfb-border-color);
}

#livechat-user-input {
    flex-grow: 1;
    border: 1px solid var(--lcfb-border-color);
    border-radius: 20px;
    padding: 8px 12px;
    outline: none;
}

#livechat-send-button {
    background: none;
    border: none;
    color: var(--lcfb-primary-color);
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

.contact-button {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    margin: 5px auto; /* Center the button */
    text-align: center;
}

.bot-message > .contact-button {
    background-color: var(--lcfb-primary-color);
    color: var(--lcfb-primary-text-color);
}