/* Estilo básico para o botão */
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

a:hover {
    cursor: pointer;
}

/* Estilo para o pop-up */
.popup {
    display: none; /* Inicialmente escondido */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo semitransparente */
    justify-content: center;
    align-items: center;
    z-index: 50;
}

/* Conteúdo do pop-up */
.popup-content {
    background: #fff;
    padding-top: 30px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    border-radius: 8px;
    text-align: center;
    /*width: 500px;*/
    max-width: 90%;
    position: relative;
}

.chat-container {
    width: 350px;
    margin-top: 6%; /* Adiciona 50px de padding superior */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    /*height: 600px;*/
}


.chat-container input, textarea, select {
    box-shadow: none;
    background-color: rgb(0 0 0 / 0%);
   /* border-style: none; */
    border-radius: 10px;
    margin: 10px;
    border: 2px solid rgba(4, 97, 1, 0.459);
    outline: none;
}

.chat-container input:focus {
    border-color: #ffc10788; /* Cor da borda quando o campo está selecionado (verde) */    
}
.chat-container select:focus {
    border-color: #ffc10788; /* Cor da borda quando o campo está selecionado (verde) */    
}

.chat-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
}

.chat-logo {
    width: 40px;
    margin-right: 10px;
}

.chat-header-info p {
    font-weight: bold;
    margin-bottom: 2px;
}

.chat-header-info span {
    font-size: 0.8rem;
    color: #c1ffeb;
}

.chat-close-btn button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 10px;
    background-image: url('../img/whatsapp-bg.webp');
    overflow-y: auto;
    line-height: 1.2;
}

.message {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    font-size: 1rem;
}

.message.sent {
    margin-left: auto;
    width:auto;
    background-color: #dcf8c6;
    padding: 0;
}

.message.received {
    background-color: #ffffff;
    align-self: flex-start;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    outline: none;
}

.submit-btn:hover {
    background-color: #004d3c;
}

.time {
    font-size: 0.7rem;
    color: #777;
    position: absolute;
    bottom: 5px;
    right: 10px;
}

@media (max-width: 768px) {
    .chat-container {
        width: 90%;
        /*height: 100%;*/
    }
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}