/* File: live-support/css/live-support.css */
.live-support-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    margin: 20px auto;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    max-width: 70%;
}

.user-message {
    background-color: #4a87ee;
    color: white;
    margin-left: auto;
}

.admin-message {
    background-color: #f0f0f0;
    color: #333;
    margin-right: auto;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.chat-input button {
    background-color: #4a87ee;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #3a77de;
}

@media (max-width: 480px) {
    .live-support-content {
        width: 95%;
        margin: 10px auto;
    }

    .chat-container {
        height: 70vh;
    }
}

/* File: bologna/live-support/css/live-support.css */
#liveSupportModal.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.live-support-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 5px;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-input button {
    padding: 8px 15px;
    background: #4a87ee;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-input button:hover {
    background: #3a77de;
}

/* Aggiungi questi stili al tuo CSS esistente */
.chat-message.admin-message {
    background-color: #e3f2fd;
    color: #1565c0;
    margin-right: auto;
    margin-left: 10px;
    border-radius: 15px 15px 15px 0;
}

.chat-message.user-message {
    background-color: #4a87ee;
    color: white;
    margin-left: auto;
    margin-right: 10px;
    border-radius: 15px 15px 0 15px;
}

.chat-message.system-message {
    background-color: #f5f5f5;
    color: #666;
    margin: 10px auto;
    text-align: center;
    font-style: italic;
    border-radius: 15px;
    max-width: 80%;
}

.chat-message {
    padding: 8px 12px;
    margin: 5px;
    max-width: 70%;
    word-wrap: break-word;
}

.chat-message {
    position: relative;
    margin-bottom: 10px;
    padding: 8px 12px;
}

.message-time {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

.message-content {
    margin-bottom: 2px;
}