/* Widget de chat */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    border: 1px solid #ddd;
}

/* Cabeçalho do chat */
.chat-header {
    background-color: #f0f0f5;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.chat-header .chat-info {
    margin-left: 10px;
    flex: 1;
}

.chat-header .chat-info h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.chat-header .chat-info span {
    font-size: 12px;
    color: #666;
}

/* Corpo do chat */
.chat-body {
    padding: 15px;
    font-size: 14px;
    color: #333;
    min-height: 100px;
}

.chat-time {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

.message-container {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    width: 100%;
}

.message-container img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message-bubble {
    background-color: #f0f0f5;
    border-radius: 15px;
    padding: 10px 15px;
    max-width: calc(100% - 60px);
    color: #333;
    flex: 1;
}

.message-bubble p {
    margin: 0;
    line-height: 1.5;
}

.message-container.without-avatar {
    padding-left: 50px;
}

.typing-bubble {
    margin-left: 50px;
}

/* Rodapé do chat */
.chat-footer {
    background-color: #f0f0f5;
    padding: 5px 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
}

.chat-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #001689;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
}

.chat-button span {
    margin-left: 8px;
}

/* Divider entre os botões */
.divider {
    height: 30px;
    width: 1px;
    background-color: #001689;
    margin: 0 10px;
}

.chat-footer a:hover {
    color: #002aff;
}

.chat-close {
    cursor: pointer;
    font-size: 18px;
}

.chat-action-button {
    background-color: #001689;
    color: white;
    border-radius: 25px;
    padding: 10px 20px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.chat-action-button img {
    border-radius: 50%;
    margin-right: 10px;
}

.chat-action-button span {
    font-weight: bold;
}

/* Indicador de digitação */
/* Estilos para o indicador de digitação */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza os pontos dentro do balão */
}

.typing-bubble {
    background-color: #f0f0f5;
    border-radius: 15px;
    padding: 10px 15px;
    max-width: 150px; /* Define uma largura máxima para o balão de digitação */
    margin-left: 50px; /* Mantém o espaço para o avatar */
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s infinite both;
    margin-right: 4px;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
      opacity: 0.2;
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: 0.2;
    }
}
