.nexora-chatbot-form {
    display: flex;
    min-height: 72px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid rgba(100, 116, 139, .14);
    background: var(--nexora-inputAreaBgColor, #fff);
}

.nexora-chatbot-form[hidden] {
    display: none !important;
}

.nexora-chat-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    flex: 1 1 auto;
    padding: 0 17px;
    border: 1px solid rgba(100, 116, 139, .2);
    border-radius: 25px;
    background: var(--nexora-inputBgColor, #fff);
    color: var(--nexora-inputTextColor, #172033);
    font-size: 14px;
    line-height: 1.4;
    outline: 0;
    transition: border-color 140ms ease-out, background-color 140ms ease-out;
    -webkit-appearance: none;
    appearance: none;
}

.nexora-chat-input::placeholder {
    color: var(--nexora-inputTextColor, #687385);
    opacity: .62;
}

.nexora-chat-input:focus-visible {
    border-color: var(--nexora-controlTextColor, #64748b);
    outline: 2px solid var(--nexora-controlTextColor, #64748b);
    outline-offset: 2px;
}

/* Keep the rounded composer intact when the active WordPress theme styles inputs globally. */
.nexora-chat-widget .nexora-chat-input {
    margin: 0 !important;
    border: 1px solid rgba(100, 116, 139, .2) !important;
    border-radius: 25px !important;
    background: var(--nexora-inputBgColor, #fff) !important;
    color: var(--nexora-inputTextColor, #172033) !important;
    box-shadow: none !important;
}

.nexora-chat-widget .nexora-chat-input:focus-visible {
    border-color: var(--nexora-controlTextColor, #64748b) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .16) !important;
}

.nexora-chat-send {
    display: grid;
    width: 46px;
    height: 46px;
    min-width: 46px;
    flex: 0 0 46px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--nexora-sendBtnBgColor, #2563eb);
    color: var(--nexora-sendBtnTextColor, #fff);
    box-shadow: 0 5px 14px rgba(15, 23, 42, .14);
    cursor: pointer;
    transition: transform 140ms cubic-bezier(.23, 1, .32, 1), filter 140ms ease-out;
    -webkit-appearance: none;
    appearance: none;
}

.nexora-chat-send svg {
    display: block;
    width: 19px;
    height: 19px;
}

.nexora-chat-send:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nexora-chat-widget .nexora-chat-send:hover:not(:disabled),
.nexora-chat-widget .nexora-chat-send:focus,
.nexora-chat-widget .nexora-chat-send:active {
    border-color: transparent !important;
    background: var(--nexora-sendBtnBgColor, #2563eb) !important;
    color: var(--nexora-sendBtnTextColor, #fff) !important;
    text-decoration: none !important;
    filter: none !important;
}

.nexora-chat-send:active { transform: scale(.96); }
.nexora-chat-send:disabled { cursor: not-allowed; opacity: .58; }

@media (hover: hover) and (pointer: fine) {
    .nexora-chat-send:hover:not(:disabled) { filter: brightness(1.05); }
}

@media (max-width: 560px) {
    .nexora-chatbot-form { min-height: 68px; gap: 9px; padding: 10px 13px; }
    .nexora-chat-input { height: 46px; padding: 0 15px; font-size: 14px; }
    .nexora-chat-send { width: 44px; height: 44px; min-width: 44px; flex-basis: 44px; }
}
