special-pages/pages/new-tab/app/omnibar/components/AiChatForm.module.css
.form {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--sp-3) + var(--sp-7) + var(--sp-3)); /* Extra space to accomodate absolute positioned .buttons */
}

.textarea {
    align-self: stretch;
    background: none;
    border: none;
    box-sizing: content-box;
    color: var(--ntp-text-primary);
    line-height: 16px;
    max-height: 10lh;
    padding: var(--sp-3) var(--sp-3) 0;
    resize: none;

    [data-platform="macos"] & {
        font-weight: 500;
    }

    &::placeholder {
        color: var(--ntp-text-tertiary);
    }

    [data-platform="windows"] &::selection {
        background: var(--ntp-selection-background-color);
        color: var(--ntp-selection-color);
    }

    &:focus {
        outline: none;
    }

    .hasScroll & {
        border-bottom: 1px solid var(--ntp-decoration-tertiary);
        padding-bottom: var(--sp-3);
    }
}

.buttons {
    align-self: stretch;
    bottom: 0;
    justify-content: space-between;
    left: 0;
    padding: var(--sp-3);
    position: absolute; /* Fix .buttons to <Container /> so that it animates smoothly when container resizes */
    right: 0;
}

.submitButton {
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
    background: var(--ntp-accent-primary);
    border-radius: 100%;
    border: none;
    color: var(--ntp-accent-content-primary);
    cursor: pointer;
    display: flex;
    height: var(--sp-7);
    justify-content: center;
    margin-left: auto;
    padding: 0;
    width: var(--sp-7);

    &[disabled] {
        background: none;
        color: color-mix(in srgb, var(--ntp-icons-primary) 30%, transparent);
        cursor: default;
    }

    &:hover:not([disabled]) {
        background: var(--ntp-accent-secondary);
    }

    &:active:not([disabled]) {
        background: var(--ntp-accent-tertiary);
    }

    &:focus-visible {
        box-shadow: var(--focus-ring);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
