.nexora-chatbot-window {
    isolation: isolate;
}

.nexora-chatbot-window .nexora-chatbot-profile {
    position: absolute;
    z-index: 4;
    inset: 74px 0 58px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    padding: 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, .035) 44%, rgba(15, 23, 42, .14) 100%);
    pointer-events: none;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

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

.nexora-chatbot-window .nexora-profile-card {
    display: flex;
    width: min(100%, 420px);
    max-height: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgba(100, 116, 139, .18);
    border-radius: 20px;
    background: var(--nexora-profileCardBgColor, #fff);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
    pointer-events: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.nexora-chatbot-window .nexora-profile-card h3 {
    margin: 0;
    color: var(--nexora-profileTextColor, #172033);
    font-size: 18px;
    line-height: 1.25;
    text-align: left;
}

.nexora-chatbot-window .nexora-profile-intro,
.nexora-chatbot-window .nexora-profile-required,
.nexora-chatbot-window .nexora-profile-security {
    margin: 0;
    color: var(--nexora-profileMutedTextColor, #687385);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.nexora-chatbot-window .nexora-profile-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--nexora-profileTextColor, #172033);
    font-size: 12px;
    font-weight: 600;
}

.nexora-chatbot-window .nexora-profile-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(100, 116, 139, .28);
    border-radius: 11px;
    background: var(--nexora-profileInputBgColor, #fff);
    color: var(--nexora-profileInputTextColor, #172033);
    font-size: 14px;
    font-weight: 400;
}

.nexora-chatbot-window .nexora-profile-field input:focus-visible {
    outline: 2px solid var(--nexora-profileButtonBgColor, #2563eb);
    outline-offset: 2px;
}

.nexora-chatbot-window .nexora-profile-submit {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--nexora-profileButtonBgColor, #2563eb);
    color: var(--nexora-profileButtonTextColor, #fff);
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    transition: transform 140ms cubic-bezier(.23, 1, .32, 1), filter 140ms ease-out;
}

.nexora-chatbot-window .nexora-profile-submit:active {
    transform: scale(.98);
}

.nexora-chatbot-window .nexora-profile-submit:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nexora-chatbot-window .nexora-profile-error {
    margin: 0;
    color: #b42318;
    font-size: 12px;
    text-align: center;
}

.nexora-chatbot-window .nexora-profile-error[hidden] {
    display: none !important;
}

@media (max-width: 560px) {
    .nexora-chat-widget.nexora-mobile-open .nexora-chatbot-window .nexora-chatbot-profile {
        top: calc(74px + env(safe-area-inset-top, 0px));
        bottom: 58px;
        padding: 10px 12px;
    }

    .nexora-chatbot-window .nexora-profile-card {
        gap: 8px;
        padding: 15px;
        border-radius: 18px;
    }
}
