/*
|--------------------------------------------------------------------------
| VELORA AI ASSISTANT
|--------------------------------------------------------------------------
*/

.velora-ai {
    --ai-dark: #2e211c;
    --ai-dark-hover: #3a2922;
    --ai-brown: #4a352d;

    --ai-gold: #d8a34e;
    --ai-gold-light: #f1c777;

    --ai-text: #342a26;
    --ai-muted: #8d817b;

    --ai-bg: #ffffff;
    --ai-bg-soft: #faf8f5;
    --ai-bg-chat: #f7f4f0;

    --ai-border: rgba(78, 59, 50, .11);

    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 999999;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--ai-text);

    box-sizing: border-box;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


.velora-ai *,
.velora-ai *::before,
.velora-ai *::after {
    box-sizing: border-box;
}


.velora-ai-position-left {
    right: auto;
    left: 24px;
}


.velora-ai-position-right {
    right: 24px;
    left: auto;
}


/*
|--------------------------------------------------------------------------
| CHAT WINDOW
|--------------------------------------------------------------------------
*/

.velora-ai-window {
    position: absolute;

    right: 0;
    bottom: 84px;

    display: flex;
    flex-direction: column;

    width: 400px;

    height:
        min(
            650px,
            calc(100vh - 125px)
        );

    max-height: 650px;

    overflow: hidden;

    border:
        1px solid
        rgba(71, 53, 45, .11);

    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 30px 80px
        rgba(48, 34, 28, .18),
        0 8px 24px
        rgba(48, 34, 28, .08);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(14px)
        scale(.975);

    transform-origin:
        bottom right;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .22s
        cubic-bezier(.2, .8, .2, 1);
}


.velora-ai-position-left
.velora-ai-window {
    right: auto;
    left: 0;

    transform-origin:
        bottom left;
}


.velora-ai.is-open
.velora-ai-window {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.velora-ai-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex:
        0
        0
        auto;

    min-height: 76px;

    gap: 12px;

    padding:
        15px
        16px;

    border-bottom:
        1px solid
        var(--ai-border);

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #faf7f3 100%
        );
}


.velora-ai-header-brand {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 11px;
}


.velora-ai-avatar {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        44px;

    width: 44px;
    height: 44px;
}


.velora-ai-avatar-ring {
    position: absolute;

    inset: 0;

    border:
        1px solid
        rgba(210, 157, 78, .35);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #f8f0e6,
            #ffffff
        );

    transform:
        rotate(7deg);
}


.velora-ai-avatar-core {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #4a342c,
            #291d18
        );

    color:
        var(--ai-gold-light);

    font-size: 17px;

    box-shadow:
        0 7px 17px
        rgba(45, 29, 23, .18);
}


.velora-ai-header-copy {
    min-width: 0;
}


.velora-ai-header-name {
    overflow: hidden;

    color:
        var(--ai-text);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.velora-ai-status {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-top: 4px;
}


.velora-ai-status > span {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #43a06d;

    box-shadow:
        0 0 0 4px
        rgba(67, 160, 109, .10);
}


.velora-ai-status small {
    color:
        var(--ai-muted);

    font-size: 10px;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| HEADER BUTTONS
|--------------------------------------------------------------------------
*/

.velora-ai-header-actions {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 4px;
}


.velora-ai-header-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: #70635d;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


.velora-ai-header-button:hover {
    background: #f0ebe7;

    color: var(--ai-dark);
}


.velora-ai-header-button:active {
    transform: scale(.95);
}


.velora-ai-header-button svg {
    display: block;

    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/*
|--------------------------------------------------------------------------
| CHAT BODY
|--------------------------------------------------------------------------
*/

.velora-ai-body {
    position: relative;

    flex:
        1
        1
        auto;

    min-height: 0;

    overflow-x: hidden;
    overflow-y: auto;

    padding:
        15px
        15px
        22px;

    background:
        linear-gradient(
            180deg,
            #fbfaf8 0%,
            #f6f3ef 100%
        );

    scroll-behavior: smooth;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}


.velora-ai-body::-webkit-scrollbar {
    width: 5px;
}


.velora-ai-body::-webkit-scrollbar-track {
    background: transparent;
}


.velora-ai-body::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(74, 55, 47, .16);
}


/*
|--------------------------------------------------------------------------
| DATE
|--------------------------------------------------------------------------
*/

.velora-ai-date {
    display: block;

    width: fit-content;

    margin:
        0
        auto
        15px;

    padding:
        5px
        9px;

    border:
        1px solid
        rgba(77, 58, 49, .07);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .78);

    color: #998e88;

    font-size: 9px;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| MESSAGES
|--------------------------------------------------------------------------
*/

.velora-ai-message-row {
    display: flex;

    width: 100%;

    gap: 8px;

    margin-bottom: 14px;

    animation:
        veloraAiMessageIn
        .18s ease both;
}


@keyframes veloraAiMessageIn {

    from {
        opacity: 0;

        transform:
            translateY(5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


.velora-ai-message-assistant {
    justify-content: flex-start;
}


.velora-ai-message-user {
    justify-content: flex-end;
}


.velora-ai-message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        28px;

    width: 28px;
    height: 28px;

    margin-top: 2px;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #49342c,
            #2d201a
        );

    color:
        var(--ai-gold-light);

    font-size: 11px;

    box-shadow:
        0 5px 13px
        rgba(49, 32, 25, .13);
}


.velora-ai-message-content {
    display: flex;
    flex-direction: column;

    max-width: 82%;

    min-width: 0;
}


.velora-ai-message-user
.velora-ai-message-content {
    align-items: flex-end;
}


.velora-ai-bubble {
    display: block;

    max-width: 100%;

    padding:
        10px
        12px;

    font-size: 12px;
    line-height: 1.55;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}


.velora-ai-bubble-assistant {
    border:
        1px solid
        rgba(77, 58, 49, .08);

    border-radius:
        6px
        15px
        15px
        15px;

    background:
        rgba(255, 255, 255, .96);

    color: #403530;

    box-shadow:
        0 4px 14px
        rgba(49, 35, 29, .035);
}


.velora-ai-bubble-user {
    border-radius:
        15px
        6px
        15px
        15px;

    background:
        linear-gradient(
            145deg,
            #4a352d,
            #35251f
        );

    color: #fff;

    box-shadow:
        0 6px 16px
        rgba(52, 35, 28, .13);
}


.velora-ai-message-time {
    display: block;

    margin-top: 4px;

    color: #aaa19c;

    font-size: 8px;
    line-height: 1.2;
}


/*
|--------------------------------------------------------------------------
| QUICK SUGGESTIONS
|--------------------------------------------------------------------------
*/

.velora-ai-suggestions {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin:
        4px
        0
        17px
        36px;
}


.velora-ai-suggestions[hidden] {
    display: none !important;
}


.velora-ai-suggestions button {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 31px;

    padding:
        6px
        10px;

    border:
        1px solid
        rgba(79, 60, 51, .10);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .88);

    color: #62564f;

    font-size: 9px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
}


.velora-ai-suggestions button:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(213, 161, 79, .38);

    background: #fff;
}


.velora-ai-suggestions button span {
    color: #b97b32;

    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| TYPING
|--------------------------------------------------------------------------
*/

.velora-ai-typing-row[hidden] {
    display: none !important;
}


.velora-ai-typing {
    display: flex;
    align-items: center;

    gap: 4px;

    min-height: 37px;
}


.velora-ai-typing span {
    display: block;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #998983;

    animation:
        veloraAiTyping
        1.1s ease-in-out infinite;
}


.velora-ai-typing span:nth-child(2) {
    animation-delay: .12s;
}


.velora-ai-typing span:nth-child(3) {
    animation-delay: .24s;
}


@keyframes veloraAiTyping {

    0%,
    60%,
    100% {
        opacity: .35;

        transform:
            translateY(0);
    }

    30% {
        opacity: 1;

        transform:
            translateY(-3px);
    }

}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.velora-ai-footer {
    position: relative;

    z-index: 5;

    flex:
        0
        0
        auto;

    padding:
        12px
        12px
        10px;

    border-top:
        1px solid
        var(--ai-border);

    background:
        rgba(255, 255, 255, .99);
}


.velora-ai-form {
    width: 100%;

    margin: 0;
}


.velora-ai-input-shell {
    display: flex;
    align-items: flex-end;

    width: 100%;

    gap: 5px;

    padding: 6px;

    border:
        1px solid
        rgba(76, 57, 49, .12);

    border-radius: 16px;

    background: #f8f5f2;

    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}


.velora-ai-input-shell:focus-within {
    border-color:
        rgba(183, 128, 56, .34);

    background: #fff;

    box-shadow:
        0 0 0 3px
        rgba(216, 163, 78, .06);
}


/*
|--------------------------------------------------------------------------
| TEXTAREA
|--------------------------------------------------------------------------
*/

.velora-ai-input {
    display: block;

    flex:
        1
        1
        auto;

    width: 100%;

    min-width: 0;

    min-height: 38px;

    max-height: 105px;

    margin: 0;

    padding:
        9px
        7px;

    border: 0;

    outline: 0;

    resize: none;

    background: transparent;

    color: var(--ai-text);

    font-family: inherit;

    /*
    |--------------------------------------------------------------------------
    | 16PX ESTE IMPORTANT PE iOS
    |--------------------------------------------------------------------------
    */

    font-size: 16px;

    font-weight: 400;

    line-height: 1.4;

    -webkit-appearance: none;
    appearance: none;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


.velora-ai-input::placeholder {
    color: #a69c97;

    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| MIC / SEND
|--------------------------------------------------------------------------
*/

.velora-ai-mic,
.velora-ai-send {
    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        38px;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    border-radius: 11px;

    cursor: pointer;

    touch-action: manipulation;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


.velora-ai-mic {
    background: transparent;

    color: #81736d;
}


.velora-ai-mic:hover {
    background: #eee8e3;

    color: var(--ai-dark);
}


.velora-ai-mic.is-listening {
    background: #fff0f0;

    color: #c84e4e;
}


.velora-ai-send {
    background:
        linear-gradient(
            145deg,
            #49342c,
            #2e211c
        );

    color:
        #fff;

    box-shadow:
        0 5px 12px
        rgba(47, 30, 24, .16);
}


.velora-ai-send:hover {
    transform:
        translateY(-1px);

    background:
        linear-gradient(
            145deg,
            #563d33,
            #382720
        );
}


.velora-ai-send:disabled {
    opacity: .45;

    cursor: not-allowed;

    transform: none;
}


.velora-ai-mic svg,
.velora-ai-send svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/*
|--------------------------------------------------------------------------
| ERROR
|--------------------------------------------------------------------------
*/

.velora-ai-error {
    margin-bottom: 8px;

    padding:
        8px
        10px;

    border:
        1px solid
        rgba(184, 63, 63, .13);

    border-radius: 10px;

    background: #fff4f4;

    color: #9d4040;

    font-size: 10px;
    line-height: 1.4;
}


.velora-ai-error[hidden] {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| FOOTER NOTE
|--------------------------------------------------------------------------
*/

.velora-ai-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    margin-top: 7px;

    color: #aaa09a;

    font-size: 8px;

    line-height: 1.4;

    text-align: center;
}


.velora-ai-footer-note span {
    color: #c08a42;
}


/* ==========================================================================
   LAUNCHER DESKTOP
   ========================================================================== */

.velora-ai-launcher {
    position: relative;

    display: inline-flex;
    align-items: center;

    width: auto;

    min-width: 224px;

    height: 66px;

    gap: 13px;

    padding:
        6px
        11px
        6px
        6px;

    overflow: visible;

    border:
        1px solid
        rgba(222, 166, 79, .78);

    border-radius: 999px;

    outline: 0;

    background:
        linear-gradient(
            135deg,
            #211713 0%,
            #38271f 52%,
            #271a16 100%
        );

    color: #fff;

    box-shadow:
        0 18px 46px
        rgba(40, 25, 19, .25),

        0 6px 16px
        rgba(40, 25, 19, .12),

        inset 0 1px 0
        rgba(255, 255, 255, .08);

    cursor: pointer;

    -webkit-tap-highlight-color:
        transparent;

    touch-action: manipulation;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        opacity .18s ease,
        visibility .18s ease;
}


/*
|--------------------------------------------------------------------------
| GOLD BADGE
|--------------------------------------------------------------------------
*/

.velora-ai-launcher::after {
    content: 'AI';

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;

    min-width: 46px;

    height: 38px;

    margin-left: auto;

    border:
        1px solid
        rgba(238, 190, 107, .85);

    border-radius: 13px;

    background:
        rgba(216, 163, 78, .09);

    color: var(--ai-gold-light);

    font-size: 16px;
    font-weight: 800;

    pointer-events: none;
}


.velora-ai-launcher:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(238, 190, 107, .98);

    box-shadow:
        0 22px 56px
        rgba(40, 25, 19, .28),

        0 0 0 4px
        rgba(216, 163, 78, .045);
}


.velora-ai-launcher:active {
    transform:
        scale(.98);
}


/*
|--------------------------------------------------------------------------
| ICON
|--------------------------------------------------------------------------
*/

.velora-ai-launcher-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        52px;

    width: 52px;

    min-width: 52px;

    height: 52px;

    overflow: hidden;

    border:
        1px solid
        rgba(226, 173, 83, .65);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #49342a 0%,
            #30211b 46%,
            #211713 100%
        );

    color: #fff;

    box-shadow:
        0 0 0 5px
        rgba(216, 163, 78, .035),

        0 0 20px
        rgba(216, 163, 78, .10),

        inset 0 1px 0
        rgba(255, 255, 255, .08);
}


.velora-ai-launcher-icon svg {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 29px;

    height: 29px;

    fill: none;

    stroke: #fff;

    stroke-width: 1.55;

    stroke-linecap: round;

    stroke-linejoin: round;

    transform:
        translate(
            -50%,
            -50%
        );
}


.velora-ai-launcher-icon
.velora-ai-star {
    fill:
        var(--ai-gold-light);

    stroke:
        var(--ai-gold-light);
}


.velora-ai-launcher-close-icon {
    opacity: 0;
}


/*
|--------------------------------------------------------------------------
| LAUNCHER TEXT
|--------------------------------------------------------------------------
*/

.velora-ai-launcher-label {
    display: block;

    margin-right: 3px;

    color: #fffdf8;

    font-size: 14px;

    font-weight: 650;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| PULSE
|--------------------------------------------------------------------------
*/

.velora-ai-launcher-pulse {
    position: absolute;

    top: 50%;

    left: 32px;

    width: 62px;

    height: 62px;

    border-radius: 50%;

    background: transparent;

    box-shadow:
        0 0 28px
        rgba(216, 163, 78, .12);

    transform:
        translate(
            -50%,
            -50%
        );

    pointer-events: none;
}


/* ==========================================================================
   MOBILE / TABLET
   ========================================================================== */

@media (
    max-width: 768px
) {

    /*
    |--------------------------------------------------------------------------
    | ROOT
    |--------------------------------------------------------------------------
    */

    .velora-ai,
    .velora-ai-position-right,
    .velora-ai-position-left {
        position: fixed;

        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;

        height:
            var(
                --velora-ai-viewport-height,
                100dvh
            );

        pointer-events: none;

        z-index: 999999;
    }


    /*
    |--------------------------------------------------------------------------
    | CHAT
    |--------------------------------------------------------------------------
    */

    .velora-ai-window,
    .velora-ai-position-right
    .velora-ai-window,
    .velora-ai-position-left
    .velora-ai-window {
        position: fixed;

        top:
            max(
                7px,
                env(safe-area-inset-top)
            );

        right: 7px;

        bottom:
            max(
                7px,
                env(safe-area-inset-bottom)
            );

        left: 7px;

        width: auto;

        height: auto;

        max-height: none;

        margin: 0;

        border-radius: 20px;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(15px);

        transform-origin:
            bottom center;
    }


    .velora-ai.is-open
    .velora-ai-window {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0);
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE HEADER
    |--------------------------------------------------------------------------
    */

    .velora-ai-header {
        min-height: 68px;

        padding:
            12px
            13px;
    }


    .velora-ai-avatar {
        flex-basis: 39px;

        width: 39px;

        height: 39px;
    }


    .velora-ai-avatar-core {
        width: 32px;

        height: 32px;

        font-size: 15px;
    }


    .velora-ai-header-name {
        font-size: 14px;
    }


    .velora-ai-status small {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE BODY
    |--------------------------------------------------------------------------
    */

    .velora-ai-body {
        padding:
            12px
            11px
            16px;
    }


    .velora-ai-message-content {
        max-width: 85%;
    }


    .velora-ai-bubble {
        font-size: 13px;

        line-height: 1.5;
    }


    .velora-ai-suggestions {
        margin-left: 34px;
    }


    .velora-ai-suggestions button {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE FOOTER
    |--------------------------------------------------------------------------
    */

    .velora-ai-footer {
        flex-shrink: 0;

        padding:
            9px
            9px
            max(
                9px,
                env(safe-area-inset-bottom)
            );

        background: #fff;
    }


    .velora-ai-input-shell {
        min-height: 50px;

        padding: 6px;
    }


    /*
    |--------------------------------------------------------------------------
    | FIX IOS ZOOM
    |--------------------------------------------------------------------------
    */

    .velora-ai-input,
    .velora-ai-input:focus {
        min-height: 38px;

        max-height: 90px;

        padding:
            8px
            6px;

        font-size:
            16px !important;

        transform:
            none !important;

        zoom: 1;
    }


    .velora-ai-mic,
    .velora-ai-send {
        flex-basis: 38px;

        width: 38px;

        min-width: 38px;

        height: 38px;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE LAUNCHER
    |--------------------------------------------------------------------------
    */

    .velora-ai-launcher {
        position: fixed;

        right:
            max(
                17px,
                env(safe-area-inset-right)
            );

        bottom:
            max(
                18px,
                calc(
                    env(safe-area-inset-bottom)
                    +
                    10px
                )
            );

        left: auto;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 68px;

        min-width: 68px;

        height: 68px;

        gap: 0;

        padding: 0;

        overflow: visible;

        border:
            1px solid
            rgba(231, 177, 87, .88);

        border-radius: 50%;

        background:
            radial-gradient(
                circle at 35% 28%,
                #493329 0%,
                #31221c 45%,
                #201612 100%
            );

        box-shadow:
            0 16px 36px
            rgba(39, 24, 18, .28),

            0 0 0 5px
            rgba(216, 163, 78, .04),

            0 0 27px
            rgba(216, 163, 78, .14);

        pointer-events: auto;

        z-index: 30;

        transform: none;
    }


    .velora-ai-position-left
    .velora-ai-launcher {
        right: auto;

        left:
            max(
                17px,
                env(safe-area-inset-left)
            );
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE AI BADGE
    |--------------------------------------------------------------------------
    */

    .velora-ai-launcher::after {
        content: 'AI';

        position: absolute;

        top: -7px;

        right: -7px;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 31px;

        min-width: 31px;

        height: 24px;

        margin: 0;

        border:
            1px solid
            rgba(255, 226, 169, .65);

        border-radius: 9px;

        background:
            linear-gradient(
                145deg,
                #f0bd65,
                #d7953f
            );

        color: #2c1e18;

        font-size: 10px;

        font-weight: 800;

        box-shadow:
            0 5px 12px
            rgba(88, 52, 20, .22);
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE ICON
    |--------------------------------------------------------------------------
    */

    .velora-ai-launcher-icon {
        flex-basis: 51px;

        width: 51px;

        min-width: 51px;

        height: 51px;

        border:
            1px solid
            rgba(235, 184, 98, .46);

        background:
            rgba(255, 255, 255, .015);

        box-shadow: none;
    }


    .velora-ai-launcher-icon
    .velora-ai-launcher-chat-icon {
        width: 32px;

        height: 32px;
    }


    .velora-ai-launcher-label {
        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | ASCUNDE LAUNCHER CÂND CHATUL ESTE DESCHIS
    |--------------------------------------------------------------------------
    */

    .velora-ai.is-open
    .velora-ai-launcher {
        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            scale(.82);
    }


    /*
    |--------------------------------------------------------------------------
    | BODY LOCK
    |--------------------------------------------------------------------------
    */

    body.velora-ai-lock {
        overflow: hidden !important;

        overscroll-behavior: none;
    }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (
    max-width: 380px
) {

    .velora-ai-window,
    .velora-ai-position-right
    .velora-ai-window,
    .velora-ai-position-left
    .velora-ai-window {
        top: 4px;

        right: 4px;

        bottom: 4px;

        left: 4px;

        border-radius: 17px;
    }


    .velora-ai-header {
        padding:
            10px
            10px;
    }


    .velora-ai-body {
        padding:
            10px
            9px
            13px;
    }


    .velora-ai-footer {
        padding:
            8px
            7px
            max(
                8px,
                env(safe-area-inset-bottom)
            );
    }


    .velora-ai-launcher {
        width: 62px;

        min-width: 62px;

        height: 62px;
    }


    .velora-ai-launcher-icon {
        flex-basis: 46px;

        width: 46px;

        min-width: 46px;

        height: 46px;
    }


    .velora-ai-launcher-icon
    .velora-ai-launcher-chat-icon {
        width: 29px;

        height: 29px;
    }

}


/* ==========================================================================
   LANDSCAPE PHONE
   ========================================================================== */

@media (
    max-width: 932px
)
and (
    orientation: landscape
)
and (
    max-height: 500px
) {

    .velora-ai-window,
    .velora-ai-position-right
    .velora-ai-window,
    .velora-ai-position-left
    .velora-ai-window {
        top: 4px;

        right: 4px;

        bottom: 4px;

        left: 4px;

        border-radius: 16px;
    }


    .velora-ai-header {
        min-height: 54px;

        padding:
            7px
            10px;
    }


    .velora-ai-avatar {
        flex-basis: 34px;

        width: 34px;

        height: 34px;
    }


    .velora-ai-avatar-core {
        width: 29px;

        height: 29px;
    }


    .velora-ai-body {
        padding:
            8px
            10px;
    }


    .velora-ai-footer {
        padding:
            7px
            8px;
    }


    .velora-ai-footer-note {
        display: none;
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (
    prefers-reduced-motion: reduce
) {

    .velora-ai *,
    .velora-ai *::before,
    .velora-ai *::after {
        animation: none !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }

}

/*
|--------------------------------------------------------------------------
| AI RESULTS
|--------------------------------------------------------------------------
*/

.velora-ai-results {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: calc(100% - 35px);

    margin:
        -4px
        0
        16px
        35px;
}


/*
|--------------------------------------------------------------------------
| PRODUCTS
|--------------------------------------------------------------------------
*/

.velora-ai-product-results {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.velora-ai-product-card {
    display: grid;

    grid-template-columns:
        82px
        minmax(0, 1fr);

    min-height: 92px;

    overflow: hidden;

    border:
        1px solid
        rgba(87, 66, 56, .09);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, .97);

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 6px 18px
        rgba(52, 36, 29, .045);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.velora-ai-product-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(194, 138, 64, .25);

    box-shadow:
        0 10px 25px
        rgba(52, 36, 29, .08);
}


/*
|--------------------------------------------------------------------------
| PRODUCT IMAGE
|--------------------------------------------------------------------------
*/

.velora-ai-product-media {
    position: relative;

    min-height: 92px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f6f1eb,
            #eee7df
        );
}


.velora-ai-product-media img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 92px;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.velora-ai-product-card:hover
.velora-ai-product-media img {
    transform:
        scale(1.045);
}


.velora-ai-product-placeholder {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #b18147;

    font-size: 24px;
}


/*
|--------------------------------------------------------------------------
| DISCOUNT
|--------------------------------------------------------------------------
*/

.velora-ai-product-discount {
    position: absolute;

    top: 6px;
    left: 6px;

    padding:
        3px
        6px;

    border-radius: 999px;

    background: #49342c;

    color: #fff;

    font-size: 8px;
    font-weight: 750;

    box-shadow:
        0 3px 8px
        rgba(42, 28, 22, .15);
}


/*
|--------------------------------------------------------------------------
| PRODUCT CONTENT
|--------------------------------------------------------------------------
*/

.velora-ai-product-card-content {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding:
        9px
        10px;
}


.velora-ai-product-category {
    margin-bottom: 3px;

    overflow: hidden;

    color: #a18e83;

    font-size: 8px;
    font-weight: 650;

    text-transform: uppercase;

    letter-spacing: .045em;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.velora-ai-product-name {
    overflow: hidden;

    color: #3d302b;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}


/*
|--------------------------------------------------------------------------
| PRODUCT PRICE
|--------------------------------------------------------------------------
*/

.velora-ai-product-price-row {
    display: flex;
    align-items: baseline;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 6px;
}


.velora-ai-product-price {
    color: #3b2b25;

    font-size: 12px;
    font-weight: 800;
}


.velora-ai-product-old-price {
    color: #ad9f98;

    font-size: 8px;
}


/*
|--------------------------------------------------------------------------
| PRODUCT FOOTER
|--------------------------------------------------------------------------
*/

.velora-ai-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 6px;

    margin-top: auto;

    padding-top: 6px;
}


.velora-ai-stock {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    font-size: 8px;
    font-weight: 650;
}


.velora-ai-stock::before {
    content: '';

    width: 5px;
    height: 5px;

    border-radius: 50%;
}


.velora-ai-stock.is-available {
    color: #43815e;
}


.velora-ai-stock.is-available::before {
    background: #45a16f;
}


.velora-ai-stock.is-unavailable {
    color: #a95a55;
}


.velora-ai-stock.is-unavailable::before {
    background: #c45f58;
}


.velora-ai-card-action {
    color: #a36c34;

    font-size: 8px;
    font-weight: 750;
}


/*
|--------------------------------------------------------------------------
| CATEGORY RESULTS
|--------------------------------------------------------------------------
*/

.velora-ai-category-results {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


.velora-ai-category-card {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 50px;

    padding:
        7px
        9px;

    border:
        1px solid
        rgba(84, 63, 53, .09);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, .94);

    color: inherit;

    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}


.velora-ai-category-card:hover {
    transform:
        translateX(2px);

    border-color:
        rgba(194, 138, 64, .22);

    background: #fff;
}


.velora-ai-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        34px;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #49342c,
            #30211b
        );

    color: #e7bb76;

    font-size: 12px;
}


.velora-ai-category-content {
    display: flex;
    flex-direction: column;

    min-width: 0;

    flex: 1;
}


.velora-ai-category-content strong {
    overflow: hidden;

    color: #40332e;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.velora-ai-category-content small {
    margin-top: 3px;

    color: #9c918b;

    font-size: 8px;
}


.velora-ai-category-arrow {
    color: #a36c34;

    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (
    max-width: 768px
) {

    .velora-ai-results {
        width:
            calc(100% - 34px);

        margin-left: 34px;
    }


    .velora-ai-product-card {
        grid-template-columns:
            88px
            minmax(0, 1fr);

        min-height: 98px;
    }


    .velora-ai-product-media {
        min-height: 98px;
    }


    .velora-ai-product-media img {
        min-height: 98px;
    }


    .velora-ai-product-name {
        font-size: 12px;
    }


    .velora-ai-product-price {
        font-size: 13px;
    }


    .velora-ai-product-category,
    .velora-ai-stock,
    .velora-ai-card-action,
    .velora-ai-category-content small {
        font-size: 9px;
    }


    .velora-ai-category-content strong {
        font-size: 11px;
    }

}
/* ==========================================================================
   VELORA AI — FINAL DESIGN COMPATIBILITY V3
   Keeps every existing AI state/card/mobile rule above.
   ========================================================================== */

.velora-ai {
    --ai-dark: #241A16;
    --ai-dark-hover: #3B2E28;
    --ai-brown: #3B2E28;
    --ai-gold: #66142C;
    --ai-gold-light: #FBF6F1;
    --ai-text: #241A16;
    --ai-muted: #8A7A70;
    --ai-bg: #FDFAF7;
    --ai-bg-soft: #FAF6F1;
    --ai-bg-chat: #FAF6F1;
    --ai-border: rgba(36, 26, 22, .11);
}

.velora-ai-window {
    border: 1px solid #E2D6CB;
    border-radius: 14px;
    background: #FDFAF7;
    box-shadow: 0 24px 48px -20px rgba(36, 26, 22, .5);
}

.velora-ai-header {
    min-height: 62px;
    padding: 10px 12px;
    border-bottom-color: #E7DBD0;
    background: #F0E7DE;
}

.velora-ai-avatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}

.velora-ai-avatar-ring {
    border-color: rgba(102, 20, 44, .18);
    border-radius: 50%;
    background: transparent;
    transform: none;
}

.velora-ai-avatar-core {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #FBF6F1;
    background: #66142C;
    box-shadow: none;
}

.velora-ai-header-name {
    color: #3B2E28;
    font-size: 12.5px;
}

.velora-ai-body {
    background: #FDFAF7;
}

.velora-ai-date {
    color: #A08C82;
}

.velora-ai-bubble-assistant {
    color: #3B2E28;
    border-color: #E6DCD3;
    background: #F4EDE6;
}

.velora-ai-bubble-user {
    color: #FBF6F1;
    background: #66142C;
}

.velora-ai-suggestions button {
    color: #5C4E47;
    border-color: #E2D6CB;
    background: transparent;
}

.velora-ai-suggestions button:hover {
    color: #66142C;
    border-color: rgba(102, 20, 44, .32);
    background: #FAF6F1;
}

.velora-ai-footer {
    border-top-color: #EDE3DA;
    background: #FDFAF7;
}

.velora-ai-input-shell {
    border-color: #E2D6CB;
    border-radius: 12px;
    background: #fff;
}

.velora-ai-input-shell:focus-within {
    border-color: rgba(102, 20, 44, .38);
    box-shadow: 0 0 0 3px rgba(102, 20, 44, .055);
}

.velora-ai-send {
    color: #FBF6F1;
    background: #66142C;
}

.velora-ai-send:hover {
    background: #4F0F22;
}

.velora-ai-launcher {
    min-height: 48px;
    color: #FBF6F1;
    background: #241A16;
    box-shadow: 0 14px 30px -14px rgba(36, 26, 22, .65);
}

.velora-ai-launcher:hover {
    background: #3B2E28;
}

.velora-ai-product-card,
.velora-ai-category-card {
    border-color: #E6DCD3;
    background: #FDFAF7;
}

.velora-ai-product-price,
.velora-ai-product-discount {
    color: #66142C;
}

@media (max-width: 767.98px) {
    .velora-ai-window {
        border-radius: 0;
    }
}

/* ==========================================================================
   VELORA AI V4 — WINE PRIMARY THEME
   Culoarea principală: #66142C
   ========================================================================== */

.velora-ai {
    --ai-dark: #66142C !important;
    --ai-dark-hover: #4F0F22 !important;
    --ai-brown: #66142C !important;

    --ai-gold: #66142C !important;
    --ai-gold-light: #FBF6F1 !important;

    --ai-primary: #66142C !important;
    --ai-primary-hover: #4F0F22 !important;
    --ai-accent: #66142C !important;

    --ai-text: #241A16 !important;
    --ai-muted: #8A7A70 !important;

    --ai-bg: #FDFAF7 !important;
    --ai-bg-soft: #FAF6F1 !important;
    --ai-bg-chat: #FAF6F1 !important;

    --ai-border: rgba(102, 20, 44, .16) !important;

    --velora-ai-wine: #66142C;
    --velora-ai-wine-hover: #4F0F22;
    --velora-ai-wine-soft: rgba(102, 20, 44, .08);
    --velora-ai-wine-border: rgba(102, 20, 44, .28);
    --velora-ai-cream: #FBF6F1;
}

/* --------------------------------------------------------------------------
   CHAT WINDOW
   -------------------------------------------------------------------------- */

.velora-ai-window {
    border-color: rgba(102, 20, 44, .20) !important;
    background: #FDFAF7 !important;
    box-shadow:
        0 26px 65px rgba(102, 20, 44, .20),
        0 8px 24px rgba(36, 26, 22, .08) !important;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */

.velora-ai-header {
    color: #FBF6F1 !important;
    border-bottom-color: rgba(102, 20, 44, .22) !important;
    background:
        linear-gradient(
            135deg,
            #66142C 0%,
            #4F0F22 100%
        ) !important;
}

.velora-ai-header-name {
    color: #FBF6F1 !important;
}

.velora-ai-status small {
    color: rgba(251, 246, 241, .78) !important;
}

.velora-ai-status > span {
    background: #B8D5B0 !important;
    box-shadow:
        0 0 0 4px
        rgba(184, 213, 176, .14) !important;
}

.velora-ai-avatar-ring {
    border-color: rgba(255, 255, 255, .38) !important;
    background: rgba(255, 255, 255, .07) !important;
}

.velora-ai-avatar-core {
    color: #66142C !important;
    background: #FBF6F1 !important;
    box-shadow:
        0 7px 17px
        rgba(36, 26, 22, .16) !important;
}

.velora-ai-header-button {
    color: #FBF6F1 !important;
    background: transparent !important;
}

.velora-ai-header-button:hover {
    color: #66142C !important;
    background: #FBF6F1 !important;
}

/* --------------------------------------------------------------------------
   BODY / DATE
   -------------------------------------------------------------------------- */

.velora-ai-body {
    background:
        linear-gradient(
            180deg,
            #FAF6F1 0%,
            #FDFAF7 100%
        ) !important;
}

.velora-ai-date {
    color: #66142C !important;
    border-color: rgba(102, 20, 44, .16) !important;
    background: rgba(102, 20, 44, .06) !important;
}

/* --------------------------------------------------------------------------
   MESSAGES
   -------------------------------------------------------------------------- */

.velora-ai-message-avatar {
    color: #FBF6F1 !important;
    background: #66142C !important;
    border-color: #66142C !important;
}

.velora-ai-bubble-assistant {
    color: #3B2E28 !important;
    border-color: rgba(102, 20, 44, .15) !important;
    background: #F4EDE6 !important;
}

.velora-ai-bubble-user {
    color: #FBF6F1 !important;
    border-color: #66142C !important;
    background:
        linear-gradient(
            135deg,
            #66142C 0%,
            #4F0F22 100%
        ) !important;
}

.velora-ai-message-time {
    color: #A08C82 !important;
}

/* --------------------------------------------------------------------------
   QUICK SUGGESTIONS
   -------------------------------------------------------------------------- */

.velora-ai-suggestions button {
    color: #66142C !important;
    border-color: rgba(102, 20, 44, .28) !important;
    background: #FDFAF7 !important;
}

.velora-ai-suggestions button span {
    color: #66142C !important;
}

.velora-ai-suggestions button:hover {
    color: #FBF6F1 !important;
    border-color: #66142C !important;
    background: #66142C !important;
}

/* --------------------------------------------------------------------------
   TYPING
   -------------------------------------------------------------------------- */

.velora-ai-typing span {
    background: #66142C !important;
}

/* --------------------------------------------------------------------------
   FOOTER / INPUT
   -------------------------------------------------------------------------- */

.velora-ai-footer {
    border-top-color: rgba(102, 20, 44, .14) !important;
    background: #FDFAF7 !important;
}

.velora-ai-input-shell {
    border-color: rgba(102, 20, 44, .22) !important;
    background: #FFFFFF !important;
}

.velora-ai-input-shell:focus-within {
    border-color: #66142C !important;
    box-shadow:
        0 0 0 3px
        rgba(102, 20, 44, .09) !important;
}

.velora-ai-input {
    color: #241A16 !important;
}

.velora-ai-input::placeholder {
    color: #A08C82 !important;
}

.velora-ai-mic {
    color: #66142C !important;
    background: transparent !important;
}

.velora-ai-mic:hover {
    color: #FBF6F1 !important;
    background: #66142C !important;
}

.velora-ai-mic.is-listening {
    color: #FBF6F1 !important;
    background: #66142C !important;
}

.velora-ai-send {
    color: #FBF6F1 !important;
    border-color: #66142C !important;
    background: #66142C !important;
}

.velora-ai-send:hover {
    color: #FFFFFF !important;
    border-color: #4F0F22 !important;
    background: #4F0F22 !important;
}

.velora-ai-footer-note {
    color: #A08C82 !important;
}

.velora-ai-footer-note span {
    color: #66142C !important;
}

/* --------------------------------------------------------------------------
   ERROR
   -------------------------------------------------------------------------- */

.velora-ai-error {
    color: #66142C !important;
    border-color: rgba(102, 20, 44, .24) !important;
    background: rgba(102, 20, 44, .07) !important;
}

/* --------------------------------------------------------------------------
   LAUNCHER — complet vișiniu, fără maro/auriu
   -------------------------------------------------------------------------- */

.velora-ai-launcher {
    color: #FBF6F1 !important;
    border: 1px solid #66142C !important;
    background:
        linear-gradient(
            135deg,
            #66142C 0%,
            #4F0F22 100%
        ) !important;
    box-shadow:
        0 14px 34px
        rgba(102, 20, 44, .30) !important;
}

.velora-ai-launcher:hover {
    color: #FFFFFF !important;
    border-color: #4F0F22 !important;
    background: #4F0F22 !important;
    box-shadow:
        0 18px 40px
        rgba(102, 20, 44, .36) !important;
}

.velora-ai-launcher-icon {
    color: #FBF6F1 !important;
    border-color: rgba(255, 255, 255, .34) !important;
    background: rgba(255, 255, 255, .10) !important;
}

.velora-ai-launcher-label {
    color: #FBF6F1 !important;
}

.velora-ai-launcher-pulse {
    border-color: rgba(102, 20, 44, .40) !important;
    box-shadow:
        0 0 0 0
        rgba(102, 20, 44, .20) !important;
}

/* Dacă există badge separat AI în launcher */
.velora-ai-launcher-badge,
.velora-ai-launcher-badge-text,
.velora-ai-badge {
    color: #FBF6F1 !important;
    border-color: rgba(255, 255, 255, .30) !important;
    background: rgba(255, 255, 255, .10) !important;
}

/* --------------------------------------------------------------------------
   RESULTS / PRODUCTS
   -------------------------------------------------------------------------- */

.velora-ai-results-title,
.velora-ai-results-title-icon {
    color: #66142C !important;
}

.velora-ai-product-card,
.velora-ai-category-card {
    border-color: rgba(102, 20, 44, .15) !important;
    background: #FDFAF7 !important;
}

.velora-ai-product-card:hover,
.velora-ai-category-card:hover {
    border-color: rgba(102, 20, 44, .34) !important;
    box-shadow:
        0 10px 24px
        rgba(102, 20, 44, .10) !important;
}

.velora-ai-product-placeholder,
.velora-ai-category-icon,
.velora-ai-category-arrow {
    color: #66142C !important;
}

.velora-ai-product-discount {
    color: #FBF6F1 !important;
    background: #66142C !important;
}

.velora-ai-product-price {
    color: #66142C !important;
}

.velora-ai-card-action {
    color: #66142C !important;
}

.velora-ai-stock.is-available {
    color: #557861 !important;
}

.velora-ai-stock.is-unavailable {
    color: #66142C !important;
}

/* --------------------------------------------------------------------------
   SCROLLBAR
   -------------------------------------------------------------------------- */

.velora-ai-body::-webkit-scrollbar-thumb {
    background: rgba(102, 20, 44, .28) !important;
}

.velora-ai-body {
    scrollbar-color:
        rgba(102, 20, 44, .28)
        transparent !important;
}

/* --------------------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {

    .velora-ai-window {
        border-color: transparent !important;
        background: #FDFAF7 !important;
    }

    .velora-ai-header {
        background:
            linear-gradient(
                135deg,
                #66142C 0%,
                #4F0F22 100%
            ) !important;
    }

    .velora-ai-launcher {
        border-color: #66142C !important;
        background: #66142C !important;
    }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY FOCUS
   -------------------------------------------------------------------------- */

.velora-ai button:focus-visible,
.velora-ai a:focus-visible,
.velora-ai textarea:focus-visible {
    outline:
        3px solid
        rgba(102, 20, 44, .22) !important;
    outline-offset: 2px;
}
