#chat-open {
    cursor: pointer;
}

#chat-widget {
    position: fixed;
    right: -350px;
    bottom: 0;
    width: 350px;
    z-index: 9999;
    transition: right 0.5s;
    height: 100%;
}

#chat-widget.visible {
    right: 0;
    bottom: 0;
    width: 100%;
}

#chat-container {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333333;
}

#chat-messages {
    height: calc(100% - 110px);
    min-height: 300px;
    overflow-y: scroll;
    padding: 10px;
}

@media (min-width: 600px) and (min-height: 600px) {
    #chat-widget {
        bottom: 60px;
        height: 500px;
    }

    #chat-widget.visible {
        right: 20px;
        bottom: 60px;
        width: 350px;
    }
}

#chat-title {
    padding: 10px;
    font-weight: bold;
    background-color: #286942;
    color: #ffffff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
}

#chat-title span {
    flex-grow: 1;
}

.chat-message-container {
    margin-bottom: 10px;
}

.chat-message-header {
    font-weight: bold;
}

.chat-message-body {
    margin-top: 5px;
}

#chat-input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #d9d9d9;
}

#chat-input {
    flex: 1;
    padding: 5px;
    border: none;
    border-radius: 5px;
    margin-right: 5px;
}

#chat-send {
    font-family: "Open Sans", sans-serif;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #286942;
    color: #ffffff;
    cursor: pointer;
}

#chat-toggle {
    cursor: pointer;
}

#loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid #ccc;
    border-top-color: #666;
    animation: spin 1s infinite linear;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.message {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #666;
}
