body {
    background-color: #ffffff;
    margin: 0;
    font-family: sans-serif;
}
.chat-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
.back-link {
    align-self: flex-start;
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    margin-bottom: 20px;
}
#cs24-chat-window {
    width: 100%;
    max-width: 500px; /* Più largo per la pagina intera */
    height: 75vh;
    max-height: 700px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cs24-chat-header {
    background: #0056b3;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.cs24-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f0f8ff; /* Sfondo tipico delle chat */
}
.cs24-msg {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.cs24-bot {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.cs24-user {
    background: #dcf8c6; /* Verde chiaro stile WhatsApp */
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.cs24-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}
.cs24-options button {
    background: white;
    border: 1px solid #0056b3;
    color: #0056b3;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: 0.2s;
    font-weight: 500;
}
.cs24-options button:hover {
    background: #f0f8ff;
}
.cs24-options button.highlight-btn {
    background: #0056b3;
    color: white;
    font-weight: bold;
}
.cs24-chat-input {
    display: flex;
    padding: 15px;
    background: #f0f0f0;
}
.cs24-chat-input input {
    flex: 1;
    border: none;
    padding: 15px;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.cs24-chat-input button {
    background: #0056b3;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs24-chat-input.hidden {
    display: none;
}