#nx-visual-only-launch,
#nx-visual-only-panel,
#nx-visual-only-panel * {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

#nx-visual-only-launch {
    position: fixed;
    right: 8px;
    left: auto;
    bottom: 59px;
    z-index: 2147483000;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: #641d25;
    color: #f4cc45;
    font-size: 27px;
    cursor: pointer;
    box-shadow: 0 5px 22px #0003;
}

#nx-visual-only-panel {
    position: fixed;
    right: 8px;
    left: auto;
    bottom: 125px;
    z-index: 2147483001;
    display: none;
    flex-direction: column;
    width: 350px;
    max-width: calc(100vw - 36px);
    height: 480px;
    max-height: calc(100dvh - 120px);
    overflow: hidden;
    border: 1px solid #eadede;
    border-radius: 18px;
    background: #fff;
    color: #292323;
    box-shadow: 0 12px 40px #0003;
}

#nx-visual-only-panel.nxvo-open {
    display: flex;
}

#nx-visual-only-panel .nxvo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    background: #641d25;
    color: #f4cc45;
}

#nx-visual-only-panel .nxvo-brand {
    font-size: 15px;
    font-weight: 700;
}

#nx-visual-only-panel .nxvo-subtitle {
    margin-top: 4px;
    color: #fff0d0;
    font-size: 11px;
    font-weight: 400;
}

#nx-visual-only-panel .nxvo-close {
    border: 0;
    background: transparent;
    color: #f4cc45;
    font-size: 26px;
    cursor: pointer;
}

#nx-visual-only-panel .nxvo-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    overflow-y: auto;
    padding: 18px 13px;
    background: #faf7f7;
}

#nx-visual-only-panel .nxvo-bubble {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    color: #383030;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    box-shadow: 0 1px 4px #0000000c;
}

#nx-visual-only-panel .nxvo-user {
    align-self: flex-end;
    border-radius: 14px 14px 4px 14px;
    background: #f7e4e8;
}

#nx-visual-only-panel .nxvo-footer {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eee4e4;
    background: #fff;
}

#nx-visual-only-panel .nxvo-input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e5dada;
    border-radius: 24px;
    outline: none;
    background: #fff;
    color: #292323;
    font-size: 13px;
}

#nx-visual-only-panel .nxvo-input:focus {
    border-color: #9c6268;
}

#nx-visual-only-panel .nxvo-send {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 22px;
    background: #641d25;
    color: #f4cc45;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 480px) {
    #nx-visual-only-launch {
        right: 14px;
        left: auto;
        bottom: 18px;
    }

    #nx-visual-only-panel {
        right: 12px;
        left: auto;
        bottom: 82px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: min(480px, calc(100dvh - 105px));
        max-height: calc(100dvh - 105px);
    }
}

/* Keep visual-only assistant above the existing mobile bottom menu */
@media (max-width: 767px) {
    #nx-visual-only-launch {
        bottom: 86px !important;
    }

    #nx-visual-only-panel {
        bottom: 150px !important;
    }
}

@media (max-width: 767px) {
    #nx-visual-only-launch {
        bottom: 136px !important;
    }

    #nx-visual-only-panel {
        bottom: 200px !important;
    }
}
