﻿#mainops-chat-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #198cbc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.30);
}


    #mainops-chat-button:hover {
        opacity: 0.90;
    }


.mainops-chat-icon {
    font-size: 28px;
}


.mainops-chat-window {
    display: none;
    position: fixed;
    right: 25px;
    bottom: 100px;
    width: 360px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    z-index: 99999;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.30);
    flex-direction: column;
}


.mainops-chat-header {
    min-height: 55px;
    background-color: #198cbc;
    color: white;
    padding-left: 15px;
    padding-right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: bold;
}


.mainops-chat-close {
    border: none;
    background: transparent;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0 5px;
}


    .mainops-chat-close:focus {
        outline: none;
    }


.mainops-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f4f4f4;
}


.mainops-bot-message {
    background-color: white;
    color: #333;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    max-width: 82%;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}


.mainops-user-message {
    background-color: #198cbc;
    color: white;
    padding: 10px 14px;
    margin-bottom: 12px;
    margin-left: auto;
    border-radius: 12px;
    max-width: 82%;
    word-wrap: break-word;
}


.mainops-chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: white;
}


.mainops-chat-input {
    flex: 1;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding-left: 15px;
    padding-right: 15px;
    outline: none;
}


    .mainops-chat-input:focus {
        border-color: #198cbc;
    }


.mainops-chat-send {
    margin-left: 8px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    border-radius: 20px;
    background-color: #198cbc;
    color: white;
    cursor: pointer;
}


    .mainops-chat-send:hover {
        opacity: 0.90;
    }


/* Loading message */

.mainops-chat-loading {
    font-style: italic;
    color: #777;
}


/* Mobile */

@media (max-width: 600px) {

    .mainops-chat-window {
        right: 10px;
        left: 10px;
        bottom: 85px;
        width: auto;
        height: 70vh;
    }


    #mainops-chat-button {
        right: 15px;
        bottom: 15px;
    }
}
