/* /assets/css/live-chat.css (VERSÃO FINAL COM LAYOUT CORRIGIDO) */

.chat-widget-fab {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: all 0.3s ease;
}

.chat-widget-fab:hover {
    transform: scale(1.1);
    background-color: #0b5ed7;
}

/* --- TAMANHO DA JANELA AJUSTADO AQUI --- */
.chat-widget-window {
    position: fixed;
    bottom: 100px;
    left: 25px;
    width: 400px; /* Aumentado */
    max-width: 90vw;
    height: 70vh; /* Aumentado */
    max-height: 650px; /* Aumentado */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1049;
    transform: scale(0.5) translateY(50px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom left;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-widget-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-widget-header {
    background-color: #0d6efd;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-widget-header h5 { margin: 0; font-size: 1.1rem; }
.chat-widget-body { flex-grow: 1; padding: 15px; overflow-y: auto; background-color: #f4f7f9; }
.chat-message { display: flex; align-items: flex-end; margin-bottom: 15px; max-width: 85%; }
.chat-message .avatar { width: 35px; height: 35px; border-radius: 50%; margin-right: 10px; object-fit: cover; flex-shrink: 0; }
.chat-message .message-content { background-color: #e9ecef; padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; word-break: break-word; }
.chat-message.customer { justify-content: flex-end; margin-left: auto; }
.chat-message.customer .avatar { margin-right: 0; margin-left: 10px; order: 2; }
.chat-message.customer .message-content { background-color: #0d6efd; color: white; border-top-right-radius: 0; }
.chat-message.bot .message-content { border-top-left-radius: 0; }
.message-time { font-size: 0.7rem; color: #aaa; margin-top: 5px; padding: 0 5px; }
.customer .message-time { text-align: right; }

.chat-widget-footer { padding: 10px 15px; border-top: 1px solid #dee2e6; display: flex; gap: 10px; align-items: center; flex-shrink: 0;}
.chat-widget-footer input { flex-grow: 1; border: 1px solid #ced4da; border-radius: 20px; padding: 8px 15px; font-size: 0.9rem; }
.chat-widget-footer input:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25); }
.chat-widget-footer button { border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; padding: 0; display: flex; align-items: center; justify-content: center; }

/* --- ESTILOS DO CARD DE PRODUTO CORRIGIDOS --- */
.chat-widget-body .product-card { background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 8px; max-width: 220px; font-size: 0.85rem; }
.chat-widget-body .product-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 8px;
    height: 120px; /* Altura fixa para o contêiner da imagem */
    object-fit: contain; /* Garante que a imagem inteira apareça, sem cortar */
}
.chat-widget-body .product-card-title { font-weight: bold; margin-bottom: 4px; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-widget-body .product-card-price { color: #28a745; font-weight: bold; margin-bottom: 8px; font-size: 0.9rem; }
.chat-widget-body .product-card .btn { width: 100%; padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* Estilos para os botões de opção */
.chat-options-container { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.chat-option-btn { background-color: #fff; border: 1px solid #0d6efd; color: #0d6efd; border-radius: 20px; padding: 5px 12px; font-size: 0.85rem; cursor: pointer; text-align: center; transition: all 0.2s ease; }
.chat-option-btn:hover { background-color: #eef5ff; }
.chat-option-btn:disabled { background-color: #e9ecef; color: #6c757d; border-color: #ced4da; cursor: not-allowed; }