/* Container básico */
#fsix-chat-container {
    position: fixed;
    bottom: 20px;
    width: 320px;
    height: 420px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    font-family: Arial, sans-serif;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

/* Posição controlada via classe (.left/.right) */
#fsix-chat-container.right { right: 20px; }
#fsix-chat-container.left  { left: 20px; }

/* Header */
#fsix-chat-header {
    background: #000103;
    color: #ffaf07;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    user-select: none;
}

#fsix-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

#fsix-chat-actions {
    display: flex;
    gap: 6px;
}

.fsix-btn {
    background: transparent;
    border: none;
    color: #ffaf07;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
}

/* Área de mensagens */
#fsix-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: 14px;
    background: #fafafa;
}

.fsix-message {
    margin-bottom: 10px;
    line-height: 1.35;
}

.fsix-user {
    text-align: right;
    color: #000103;
    font-weight: bold;
}

.fsix-bot {
    text-align: left;
    color: #333;
}

/* Input */
#fsix-chat-input {
    display: flex;
    border-top: 1px solid #e8e8e8;
}

#fsix-user-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
}

#fsix-send {
    background: #ffaf07;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 700;
}

/* Estado minimizado */
#fsix-chat-container.minimized {
    height: 48px;
}

#fsix-chat-container.minimized #fsix-chat-messages,
#fsix-chat-container.minimized #fsix-chat-input {
    display: none;
}

/* Handle de redimensionamento (canto inferior) */
#fsix-resizer {
    width: 14px;
    height: 14px;
    position: absolute;
    bottom: 6px;
    right: 6px; /* reposicionado via JS se estiver à esquerda */
    cursor: se-resize;
    opacity: 0.6;
}

#fsix-resizer:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(0deg);
}
