body {
    font-family: Arial, sans-serif;
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.chat-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
	height: 60vh; /* 60% dell'altezza della finestra */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 1.6s ease-out, opacity 0.6s ease-out;
}

.chat-box.show {
    max-height: 50vh; /* Altezza metà schermo */
    opacity: 1;
}


/* Header con immagine più grande */
.chat-header {
    display: flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-weight: bold;
}

.operator-img {
    width: 180px;  /* Ingrandisce l'immagine */
    height: 200px; /* Ingrandisce l'immagine */
    border-radius: 50%;
    margin-right: 10px;
}

.chat-body {
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

input, button {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
	width: 500px;  /* Larghezza */
    height: 520px;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 10px;
    text-align: center;
    
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.popup.show {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup video {
    width: 500px;  /* Larghezza */
    height: 400px; /* Altezza */
    border-radius: 10px; /* Angoli arrotondati */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Ombra per un effetto elegante */
}

.close-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 15px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    background-color: #0056b3;
}

.chat-body button {
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    background-color: #ADD8E6; /* Celeste chiaro */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 15px; /* Angoli arrotondati */
    font-size: 16px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Ombra grigia */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.chat-body button:hover {
    background-color: #87CEEB; /* Celeste più scuro quando passi sopra */
    transform: scale(1.05); /* Effetto leggero di espansione */
}