/* Campo y botón en una sola fila: el texto crece hacia arriba (hasta ~6
   líneas, ChatInputController.js) y el botón se queda abajo a la derecha. */
#chat-input-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;

    width: 100%;
    padding: 12px 12px 8px 14px;

    background-color: white;
    border: 1px solid #d9dde3;
    border-radius: 18px;

    box-sizing: border-box;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#chat-input-form:focus-within {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

#chat-input {
    display: block;
    flex: 1;

    width: 100%;
    min-height: 24px;
    max-height: 140px;
    padding: 0;

    color: #1f2937;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;

    background-color: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;

    resize: none;
    box-sizing: border-box;
}

#chat-input::placeholder {
    color: #9ca3af;
}

#chat-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

#chat-input-actions {
    flex-shrink: 0;

    display: flex;
}

#chat-send-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    padding: 0;

    color: white;
    background-color: #d71920;
    border: none;
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

#chat-send-button:hover:not(:disabled) {
    background-color: #b9151b;
}

#chat-send-button:active:not(:disabled) {
    transform: scale(0.94);
}

/* Campo vacío o el Inge todavía contestando. */
#chat-send-button:disabled {
    opacity: 0.35;
    cursor: default;
}

#chat-send-button:focus-visible {
    outline: 2px solid rgba(215, 25, 32, 0.35);
    outline-offset: 2px;
}

#chat-disclaimer {
    margin: 6px 12px 0;

    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

#chat-send-button .chat-send-icon {
    display: block;

    width: 18px;
    height: 18px;

    color: white;
    fill: none;
    stroke: currentColor;

    pointer-events: none;
}