/* Botão flutuante */
.gcf-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007AFF, #0051CC);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,122,255,0.5);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gcf-button:hover { transform: scale(1.1); }

/* Modal de fundo */
.gcf-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

/* Janela do chat padrão */
.gcf-modal-content {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: 90vw;
    height: 650px;
    max-height: 90vh;
    background: #f2f2f7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

/* TELA CHEIA NO CELULAR COM TODAS AS BORDAS ARREDONDADAS */
@media (max-width: 768px) {
    .gcf-modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 24px !important; /* todas as bordas arredondadas */
        margin: 10px !important; /* espaço nas bordas da tela */
        box-sizing: border-box;
    }
    
    .gcf-header {
        border-radius: 24px 24px 0 0;
    }
    
    .gcf-input-area {
        border-radius: 0 0 24px 24px;
    }
    
    .gcf-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

/* Cabeçalho */
.gcf-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #ddd;
    justify-content: flex-start;
}

.gcf-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.gcf-close:hover { background: #f0f0f0; }

#gcf-header-logo-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

#gcf-empresa-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#gcf-empresa-nome-header {
    margin: 0;
    font-size: 18px; /* <<< Aumentado de 17px para 18px */
    font-weight: 600;
    color: #1d1d1f;
}

/* Mensagens - letras maiores */
#gcf-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gcf-message {
    max-width: 80%;
    padding: 14px 18px; /* padding um pouco maior para respirar */
    border-radius: 20px;
    line-height: 1.6; /* linha mais espaçada */
    font-size: 17px; /* <<< Aumentado de 16px para 17px */
    white-space: pre-wrap;
    word-wrap: break-word;
}

.gcf-message.ai {
    align-self: flex-start;
    background: white;
    color: black;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gcf-message.user {
    align-self: flex-end;
    background: #007AFF;
    color: white;
    border-bottom-right-radius: 6px;
}

.gcf-message a { color: #007AFF; text-decoration: underline; word-break: break-all; }

/* Input - letra maior */
.gcf-input-area {
    padding: 12px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #ddd;
}

#gcf-chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 24px;
    font-size: 20px; /* <<< Aumentado de 16px para 17px */
    outline: none;
}

#gcf-chat-input:focus { border-color: #007AFF; }

#gcf-chat-send {
    width: 48px;
    height: 48px;
    background: #007AFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gcf-chat-send:hover { background: #0051CC; }