/* =========================================================
   JALO AI
   L.A. FOTOGRAPHEE
   Version 0.2.2
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

#jalo-widget,
#jalo-widget * {
    box-sizing: border-box;
}

#jalo-widget {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    position: relative;

    z-index: 999999;
}


/* =========================================================
   LAUNCHER AREA
   ========================================================= */

#jalo-launcher-area {

    position: fixed;

    right: 28px;
    bottom: 28px;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    z-index: 999999;

}


/* =========================================================
   JALO TEASER
   ========================================================= */

#jalo-teaser {

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 58px;

    padding:
        10px 18px
        10px 15px;

    background:
        linear-gradient(
            135deg,
            #050505,
            #181818
        );

    border:
        1px solid
        rgba(212, 175, 55, .65);

    border-radius: 18px;

    color: #ffffff;

    cursor: pointer;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, .30);

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(25px)
        scale(.96);

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;

}


/* SHOW TEASER */

#jalo-teaser.jalo-teaser-visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateX(0)
        scale(1);

}


/* TEASER HOVER */

#jalo-teaser:hover {

    transform:
        translateY(-2px);

    border-color:
        #d4af37;

    box-shadow:
        0 16px 40px
        rgba(0, 0, 0, .38),

        0 0 22px
        rgba(212, 175, 55, .10);

}


/* WAVE */

.jalo-teaser-wave {

    display: block;

    font-size: 24px;

    transform-origin:
        70% 70%;

    animation:
        jaloWave
        2.2s
        ease-in-out
        infinite;

}


/* WAVE ANIMATION */

@keyframes jaloWave {

    0%,
    60%,
    100% {

        transform:
            rotate(0deg);

    }

    68% {

        transform:
            rotate(15deg);

    }

    74% {

        transform:
            rotate(-10deg);

    }

    80% {

        transform:
            rotate(15deg);

    }

    86% {

        transform:
            rotate(-5deg);

    }

    92% {

        transform:
            rotate(8deg);

    }

}


/* TEASER TEXT */

.jalo-teaser-text {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: left;

    line-height: 1.15;

}


.jalo-teaser-text strong {

    margin-bottom: 4px;

    color: #d4af37;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .2px;

}


.jalo-teaser-text span {

    color: #ffffff;

    font-size: 12px;

    font-weight: 600;

}


/* =========================================================
   FLOATING JALO BUTTON
   ========================================================= */

#jalo-launcher {

    position: relative;

    width: 82px;
    height: 82px;

    flex-shrink: 0;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    overflow: visible;

    filter:
        drop-shadow(
            0 8px 14px
            rgba(0, 0, 0, .35)
        );

    transition:
        transform .25s ease,
        filter .25s ease;

}


/* LAUNCHER HOVER */

#jalo-launcher:hover {

    transform:
        translateY(-4px)
        scale(1.06);

    filter:
        drop-shadow(
            0 12px 20px
            rgba(0, 0, 0, .45)
        );

}


/* LOGO */

.jalo-launcher-logo {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 50%;

}


/* THE FAMOUS GREEN DOT 😂 */

.jalo-online-dot {

    position: absolute;

    width: 16px;
    height: 16px;

    right: 2px;
    bottom: 7px;

    background:
        #29d36b;

    border:
        3px solid
        #111111;

    border-radius: 50%;

    box-shadow:
        0 0 0 2px
        #ffffff,

        0 2px 5px
        rgba(0, 0, 0, .25);

}


/* =========================================================
   CHAT WINDOW
   ========================================================= */

#jalo-chat-window {

    display: none;

    position: fixed;

    right: 28px;
    bottom: 122px;

    width: 390px;
    height: 600px;

    max-height:
        calc(100vh - 150px);

    background:
        #f7f7f7;

    border:
        1px solid
        rgba(212, 175, 55, .50);

    border-radius:
        22px;

    overflow:
        hidden;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, .38);

    z-index:
        999999;

}


/* OPEN STATE */

#jalo-chat-window.jalo-open {

    display: flex;

    flex-direction: column;

    animation:
        jaloOpen
        .25s ease;

}


/* OPEN ANIMATION */

@keyframes jaloOpen {

    from {

        opacity: 0;

        transform:
            translateY(15px)
            scale(.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   HEADER
   ========================================================= */

.jalo-header {

    min-height:
        84px;

    display:
        flex;

    align-items:
        center;

    padding:
        15px 18px;

    background:
        linear-gradient(
            135deg,
            #050505,
            #1c1c1c
        );

    color:
        #ffffff;

    border-bottom:
        2px solid
        #b9942f;

}


/* AVATAR */

.jalo-avatar {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-right: 12px;

    background:
        #050505;

    border:
        1px solid
        #d4af37;

    border-radius:
        50%;

    overflow:
        hidden;

}


.jalo-avatar-logo {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

}


/* HEADER INFO */

.jalo-header-info {

    flex: 1;

    min-width: 0;

}


.jalo-name {

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.jalo-status {

    margin-top: 4px;

    font-size: 11px;

    letter-spacing: .7px;

    color:
        #d4af37;

}


/* HEADER STATUS DOT */

.jalo-status-dot {

    display:
        inline-block;

    width: 7px;
    height: 7px;

    margin-right:
        5px;

    background:
        #29d36b;

    border-radius:
        50%;

}


/* CLOSE BUTTON */

#jalo-close {

    background:
        transparent;

    border:
        0;

    color:
        #aaaaaa;

    font-size:
        29px;

    line-height:
        1;

    cursor:
        pointer;

    padding:
        4px 8px;

    transition:
        color .2s ease,
        transform .2s ease;

}


#jalo-close:hover {

    color:
        #ffffff;

    transform:
        scale(1.08);

}


/* =========================================================
   MESSAGES
   ========================================================= */

#jalo-messages {

    flex: 1;

    overflow-y:
        auto;

    padding:
        22px 17px;

    background:
        linear-gradient(
            180deg,
            #fafafa,
            #f3f3f3
        );

    scroll-behavior:
        smooth;

}


.jalo-message {

    display:
        flex;

    width:
        100%;

    margin-bottom:
        14px;

}


.jalo-message-bot {

    justify-content:
        flex-start;

}


.jalo-message-user {

    justify-content:
        flex-end;

}


/* BUBBLES */

.jalo-bubble {

    max-width:
        82%;

    padding:
        12px 15px;

    border-radius:
        17px;

    font-size:
        14px;

    line-height:
        1.5;

    word-break:
        break-word;

}


.jalo-message-bot
.jalo-bubble {

    background:
        #ffffff;

    color:
        #171717;

    border:
        1px solid
        #e5e5e5;

    border-bottom-left-radius:
        5px;

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, .05);

}


.jalo-message-user
.jalo-bubble {

    background:
        #111111;

    color:
        #ffffff;

    border:
        1px solid
        #b9942f;

    border-bottom-right-radius:
        5px;

}


/* =========================================================
   TYPING INDICATOR
   ========================================================= */

#jalo-typing {

    display:
        none;

    padding:
        5px 20px 10px;

    background:
        #f3f3f3;

}


#jalo-typing span {

    display:
        inline-block;

    width: 7px;
    height: 7px;

    margin-right:
        4px;

    background:
        #b9942f;

    border-radius:
        50%;

    animation:
        jaloTyping
        1.2s
        infinite;

}


#jalo-typing span:nth-child(2) {

    animation-delay:
        .15s;

}


#jalo-typing span:nth-child(3) {

    animation-delay:
        .30s;

}


@keyframes jaloTyping {

    0%,
    60%,
    100% {

        transform:
            translateY(0);

        opacity:
            .4;

    }

    30% {

        transform:
            translateY(-5px);

        opacity:
            1;

    }

}


/* =========================================================
   MESSAGE FORM
   ========================================================= */

#jalo-form {

    display:
        flex;

    align-items:
        center;

    padding:
        12px;

    background:
        #ffffff;

    border-top:
        1px solid
        #e5e5e5;

}


/* INPUT */

#jalo-input {

    flex: 1;

    min-width: 0;

    height:
        46px;

    padding:
        0 15px;

    border:
        1px solid
        #dddddd;

    border-radius:
        24px;

    outline:
        none;

    font-size:
        14px;

    background:
        #fafafa;

    color:
        #111111;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


#jalo-input::placeholder {

    color:
        #999999;

}


#jalo-input:focus {

    border-color:
        #b9942f;

    box-shadow:
        0 0 0 2px
        rgba(185, 148, 47, .12);

}


/* SEND BUTTON */

#jalo-send {

    width:
        46px;

    height:
        46px;

    flex-shrink:
        0;

    margin-left:
        8px;

    border:
        0;

    border-radius:
        50%;

    background:
        #111111;

    color:
        #d4af37;

    cursor:
        pointer;

    font-size:
        18px;

    transition:
        background .2s ease,
        transform .2s ease;

}


#jalo-send:hover {

    background:
        #222222;

    transform:
        scale(1.04);

}


#jalo-send:disabled {

    cursor:
        default;

    opacity:
        .6;

}


/* =========================================================
   FOOTER
   ========================================================= */

.jalo-powered {

    padding:
        0 0 10px;

    background:
        #ffffff;

    text-align:
        center;

    color:
        #999999;

    font-size:
        9px;

    letter-spacing:
        1.5px;

}


/* =========================================================
   SCROLLBAR
   ========================================================= */

#jalo-messages::-webkit-scrollbar {

    width:
        6px;

}


#jalo-messages::-webkit-scrollbar-track {

    background:
        transparent;

}


#jalo-messages::-webkit-scrollbar-thumb {

    background:
        #cccccc;

    border-radius:
        10px;

}


#jalo-messages::-webkit-scrollbar-thumb:hover {

    background:
        #b9942f;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media
(max-width: 600px) {

    #jalo-launcher-area {

        right:
            16px;

        bottom:
            18px;

        gap:
            8px;

    }


    #jalo-launcher {

        width:
            68px;

        height:
            68px;

    }


    .jalo-online-dot {

        width:
            14px;

        height:
            14px;

        right:
            1px;

        bottom:
            5px;

    }


    #jalo-teaser {

        min-height:
            52px;

        padding:
            9px 13px;

        border-radius:
            16px;

    }


    .jalo-teaser-wave {

        font-size:
            20px;

    }


    .jalo-teaser-text strong {

        font-size:
            12px;

    }


    .jalo-teaser-text span {

        font-size:
            11px;

    }


    #jalo-chat-window {

        right:
            10px;

        bottom:
            98px;

        width:
            calc(100vw - 20px);

        height:
            calc(100vh - 120px);

        max-height:
            none;

        border-radius:
            18px;

    }


    .jalo-header {

        min-height:
            78px;

        padding:
            12px 15px;

    }


    .jalo-avatar {

        width:
            48px;

        height:
            48px;

    }


    .jalo-name {

        font-size:
            17px;

    }


    #jalo-messages {

        padding:
            18px 14px;

    }


    .jalo-bubble {

        max-width:
            88%;

        font-size:
            14px;

    }

}


/* EXTRA SMALL PHONES */

@media
(max-width: 390px) {

    #jalo-teaser {

        padding:
            8px 11px;

    }


    .jalo-teaser-wave {

        display:
            none;

    }


    #jalo-launcher {

        width:
            64px;

        height:
            64px;

    }

}/* JALO AI — Instant Clear Chat v0.6.3 */



/* =========================================================
   WELCOME GATE — JALO v0.6.x
   ========================================================= */

.jalo-welcome-gate {
    position: absolute;
    inset: 84px 0 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fafafa, #f3f3f3);
}

.jalo-welcome-gate.jalo-welcome-hidden { display: none; }

.jalo-welcome-inner { width: 100%; max-width: 320px; text-align: center; }
.jalo-welcome-icon { margin-bottom: 10px; font-size: 30px; line-height: 1; }
.jalo-welcome-inner h3 { margin: 0 0 6px; color: #111; font-size: 23px; font-weight: 800; }
.jalo-welcome-intro { margin-bottom: 20px; color: #b9942f; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.jalo-welcome-copy { margin: 0 0 20px; color: #444; font-size: 14px; line-height: 1.5; }
.jalo-welcome-field { margin-bottom: 13px; text-align: left; }
.jalo-welcome-field label { display: block; margin-bottom: 6px; color: #222; font-size: 12px; font-weight: 800; }
.jalo-welcome-field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d7d7d7; border-radius: 12px; outline: none; background: #fff; color: #111; font-size: 14px; }
.jalo-welcome-field input:focus { border-color: #b9942f; box-shadow: 0 0 0 2px rgba(185,148,47,.12); }
.jalo-welcome-submit { width: 100%; min-height: 46px; margin-top: 3px; border: 1px solid #b9942f; border-radius: 12px; background: #111; color: #d4af37; font-size: 12px; font-weight: 800; letter-spacing: .5px; cursor: pointer; }
.jalo-welcome-submit:hover { background: #1d1d1d; }
.jalo-welcome-submit:disabled { opacity: .6; cursor: wait; }
.jalo-welcome-privacy { margin: 13px 8px 0; color: #777; font-size: 10px; line-height: 1.45; }

#jalo-widget.jalo-needs-welcome #jalo-messages,
#jalo-widget.jalo-needs-welcome #jalo-typing,
#jalo-widget.jalo-needs-welcome #jalo-form,
#jalo-widget.jalo-needs-welcome .jalo-powered { visibility: hidden; }

@media (max-width: 600px) {
    .jalo-welcome-gate { inset: 78px 0 0; padding: 20px 18px; }
    .jalo-welcome-inner { max-width: 100%; }
}

/* =========================================================
   JALO AI — INSTANT CLEAR CHAT
   Version 0.6.3
   ========================================================= */

.jalo-clear-chat {
    margin-left: auto;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 999px;
    color: #d4af37;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.jalo-clear-chat:hover,
.jalo-clear-chat:focus-visible {
    background: rgba(212, 175, 55, .12);
    border-color: #d4af37;
    color: #ffffff;
    transform: translateY(-1px);
}

.jalo-clear-chat .jalo-clear-icon {
    width: auto;
    height: auto;
    margin: 0;
    display: inline;
    background: transparent;
    border: 0;
    font-size: 14px;
    line-height: 1;
}

.jalo-clear-confirm {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.jalo-clear-confirm.jalo-clear-confirm-visible {
    display: flex;
}

.jalo-clear-confirm-card {
    width: 100%;
    max-width: 330px;
    padding: 26px 22px 22px;
    background: linear-gradient(145deg, #0b0b0b, #181818);
    border: 1px solid rgba(212, 175, 55, .65);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
    color: #ffffff;
    text-align: center;
    animation: jaloClearPop .20s ease;
}

@keyframes jaloClearPop {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.jalo-clear-confirm-card .jalo-clear-confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, .12);
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 50%;
    color: #d4af37;
    font-size: 25px;
}

.jalo-clear-confirm-card h3 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.jalo-clear-confirm-card p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.55;
}

.jalo-clear-confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.jalo-clear-confirm-actions button {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.jalo-clear-confirm-actions button:hover { transform: translateY(-1px); }

.jalo-clear-cancel {
    background: #242424;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .14);
}

.jalo-clear-cancel:hover { background: #303030; }

.jalo-clear-confirm-button {
    background: #d4af37;
    color: #080808;
    border: 1px solid #d4af37;
}

.jalo-clear-confirm-button:hover {
    background: #e0bd4e;
    border-color: #e0bd4e;
}

.jalo-clear-confirm-button:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

@media (max-width: 600px) {
    .jalo-clear-chat {
        margin-right: 4px;
        padding: 6px 8px;
        font-size: 9px;
    }

    .jalo-clear-chat .jalo-clear-text { display: none; }
    .jalo-clear-chat .jalo-clear-icon { font-size: 16px; }
    .jalo-clear-confirm { padding: 16px; }

    .jalo-clear-confirm-card {
        max-width: 310px;
        padding: 24px 18px 20px;
    }

    .jalo-clear-confirm-actions { flex-direction: column; }
}
