
/* Lolek — lokalny czat pomocy ePracownik */
.eprac-lolek-chat-root{
    --eprac-lolek-edge:26px;
    --eprac-lolek-launcher-space:112px;
    --eprac-lolek-top-safe:16px;
    position:fixed;
    right:var(--eprac-lolek-edge);
    bottom:var(--eprac-lolek-edge);
    z-index:2147482500;
    font-family:"DM Sans","Outfit",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:#17122f;
}

.eprac-lolek-launcher{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    width:86px;
    min-height:98px;
    border:0;
    border-radius:30px;
    padding:10px 9px 11px;
    color:#fff;
    cursor:pointer;
    background:
        radial-gradient(circle at 20% 15%,rgba(255,255,255,.45),transparent 25%),
        linear-gradient(135deg,#ff7a18 0%,#ef476f 52%,#7c3aed 100%);
    box-shadow:0 20px 48px rgba(124,58,237,.28),0 14px 30px rgba(255,122,24,.26);
    transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
    isolation:isolate;
}
.eprac-lolek-launcher:hover{
    transform:translateY(-2px) scale(1.015);
    box-shadow:0 24px 60px rgba(124,58,237,.34),0 18px 38px rgba(255,122,24,.3);
}
.eprac-lolek-launcher:focus-visible{
    outline:4px solid rgba(124,58,237,.22);
    outline-offset:4px;
}
.eprac-lolek-launcher__avatar{
    width:46px;
    height:46px;
    border-radius:999px;
    overflow:hidden;
    display:grid;
    place-items:center;
    background:#fff;
    border:3px solid rgba(255,255,255,.85);
    box-shadow:0 8px 18px rgba(15,23,42,.2);
}
.eprac-lolek-launcher__avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.eprac-lolek-launcher__label{
    display:block;
    width:100%;
    font-weight:900;
    letter-spacing:.01em;
    font-size:12.5px;
    line-height:1.08;
    text-align:center;
    white-space:normal;
    text-wrap:balance;
    text-shadow:0 1px 10px rgba(0,0,0,.18);
}
.eprac-lolek-launcher__pulse{
    position:absolute;
    inset:-6px;
    border-radius:36px;
    background:linear-gradient(135deg,rgba(255,122,24,.28),rgba(124,58,237,.22));
    z-index:-1;
    animation:epracLolekPulse 2.8s ease-in-out infinite;
}
@keyframes epracLolekPulse{
    0%,100%{transform:scale(.96);opacity:.35}
    50%{transform:scale(1.08);opacity:.85}
}

.eprac-lolek-chat{
    position:fixed;
    right:var(--eprac-lolek-edge);
    bottom:calc(var(--eprac-lolek-edge) + var(--eprac-lolek-launcher-space));
    width:min(430px,calc(100vw - var(--eprac-lolek-edge) - var(--eprac-lolek-edge)));
    max-height:min(720px,calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-launcher-space) - var(--eprac-lolek-top-safe)));
    max-height:min(720px,calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-launcher-space) - var(--eprac-lolek-top-safe)));
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid rgba(124,58,237,.14);
    border-radius:30px;
    z-index:2;
    background:
        radial-gradient(circle at 12% 0%,rgba(255,122,24,.12),transparent 34%),
        radial-gradient(circle at 100% 12%,rgba(124,58,237,.13),transparent 36%),
        rgba(255,255,255,.96);
    box-shadow:0 30px 90px rgba(15,23,42,.22),0 18px 44px rgba(124,58,237,.14);
    backdrop-filter:blur(18px);
    transform:translateY(16px) scale(.97);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
}
.eprac-lolek-chat.is-open{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0) scale(1);
}
.eprac-lolek-chat-root.is-chat-open .eprac-lolek-launcher{
    opacity:0;
    pointer-events:none;
    transform:translateY(10px) scale(.94);
}
.eprac-lolek-chat-root.is-chat-open .eprac-lolek-chat{
    bottom:var(--eprac-lolek-edge);
    max-height:min(720px,calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge)));
    max-height:min(720px,calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge)));
}
.eprac-lolek-chat__header{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:18px 18px 14px;
    border-bottom:1px solid rgba(124,58,237,.1);
    background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(250,245,255,.78));
}
.eprac-lolek-chat__person{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.eprac-lolek-chat__avatar{
    width:50px;
    height:50px;
    border-radius:18px;
    overflow:hidden;
    flex:0 0 auto;
    background:#fff;
    box-shadow:0 12px 26px rgba(124,58,237,.18);
    border:1px solid rgba(255,255,255,.85);
}
.eprac-lolek-chat__avatar img,
.eprac-lolek-chat__portrait img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.eprac-lolek-chat__title{
    font-size:18px;
    font-weight:950;
    letter-spacing:-.03em;
    color:#17122f;
}
.eprac-lolek-chat__subtitle{
    margin-top:2px;
    font-size:11.5px;
    font-weight:800;
    color:#81779a;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:265px;
}
.eprac-lolek-chat__actions{
    display:flex;
    align-items:center;
    gap:7px;
}
.eprac-lolek-icon-btn{
    width:36px;
    height:36px;
    border-radius:13px;
    border:1px solid rgba(124,58,237,.12);
    background:rgba(255,255,255,.76);
    color:#756b88;
    cursor:pointer;
    display:grid;
    place-items:center;
    transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.eprac-lolek-icon-btn:hover{
    color:#7c3aed;
    background:#fff;
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(124,58,237,.12);
}
.eprac-lolek-chat__intro{
    flex:0 0 auto;
    display:flex;
    gap:12px;
    align-items:center;
    margin:16px 18px 10px;
    padding:14px;
    border-radius:24px;
    background:linear-gradient(135deg,rgba(255,122,24,.1),rgba(124,58,237,.08));
    border:1px solid rgba(124,58,237,.1);
}
.eprac-lolek-chat__portrait{
    width:58px;
    height:70px;
    border-radius:20px;
    overflow:hidden;
    flex:0 0 auto;
    background:#fff;
    box-shadow:0 10px 24px rgba(255,122,24,.14);
}
.eprac-lolek-chat__intro-text{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}
.eprac-lolek-chat__intro-text strong{
    font-size:13.5px;
    line-height:1.2;
    font-weight:950;
    color:#17122f;
}
.eprac-lolek-chat__intro-text span{
    font-size:11.5px;
    line-height:1.45;
    font-weight:700;
    color:#716985;
}

.eprac-lolek-chat__messages{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    padding:8px 18px 12px;
    display:flex;
    flex-direction:column;
    gap:10px;
    min-height:0;
    scrollbar-width:thin;
}
.eprac-lolek-chat__messages::-webkit-scrollbar{width:8px}
.eprac-lolek-chat__messages::-webkit-scrollbar-thumb{background:rgba(124,58,237,.22);border-radius:999px}
.eprac-lolek-msg{
    display:flex;
    align-items:flex-end;
    gap:8px;
    max-width:100%;
}
.eprac-lolek-msg--user{
    justify-content:flex-end;
}
.eprac-lolek-msg__avatar{
    width:30px;
    height:30px;
    border-radius:999px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 7px 16px rgba(124,58,237,.14);
    flex:0 0 auto;
}
.eprac-lolek-msg__avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.eprac-lolek-msg__bubble{
    max-width:82%;
    padding:12px 13px;
    border-radius:18px;
    font-size:13px;
    line-height:1.48;
    font-weight:700;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}
.eprac-lolek-msg--bot .eprac-lolek-msg__bubble{
    color:#261d40;
    background:#fff;
    border:1px solid rgba(124,58,237,.1);
    border-bottom-left-radius:7px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.eprac-lolek-msg--user .eprac-lolek-msg__bubble{
    color:#fff;
    background:linear-gradient(135deg,#7c3aed,#ef476f);
    border-bottom-right-radius:7px;
    box-shadow:0 12px 28px rgba(124,58,237,.2);
}
.eprac-lolek-msg__route{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:9px;
    padding:8px 10px;
    border-radius:999px;
    background:rgba(255,122,24,.1);
    color:#ea580c;
    font-size:11.5px;
    font-weight:950;
    text-decoration:none;
}
.eprac-lolek-msg__route:hover{
    color:#c2410c;
    background:rgba(255,122,24,.16);
}
.eprac-lolek-typing{
    display:inline-flex;
    align-items:center;
    gap:4px;
    min-width:54px;
}
.eprac-lolek-typing span{
    width:7px;
    height:7px;
    border-radius:999px;
    background:#a78bfa;
    animation:epracLolekTyping 1s ease-in-out infinite;
}
.eprac-lolek-typing span:nth-child(2){animation-delay:.15s}
.eprac-lolek-typing span:nth-child(3){animation-delay:.3s}
@keyframes epracLolekTyping{
    0%,100%{transform:translateY(0);opacity:.45}
    50%{transform:translateY(-4px);opacity:1}
}

.eprac-lolek-chat__quick{
    flex:0 0 auto;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:0 18px 13px;
}
.eprac-lolek-chip{
    border:1px solid rgba(124,58,237,.12);
    border-radius:999px;
    padding:8px 10px;
    background:rgba(255,255,255,.78);
    color:#5f5478;
    font-size:11.5px;
    font-weight:900;
    cursor:pointer;
    transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.eprac-lolek-chip:hover{
    background:#fff;
    color:#7c3aed;
    transform:translateY(-1px);
    box-shadow:0 10px 20px rgba(124,58,237,.1);
}

.eprac-lolek-chat__form{
    flex:0 0 auto;
    display:flex;
    align-items:flex-end;
    gap:10px;
    padding:14px 18px 12px;
    border-top:1px solid rgba(124,58,237,.1);
    background:rgba(255,255,255,.84);
}
.eprac-lolek-chat__input{
    flex:1;
    min-height:46px;
    max-height:120px;
    resize:none;
    border:1px solid rgba(124,58,237,.14);
    border-radius:18px;
    padding:13px 14px;
    outline:0;
    background:#fff;
    color:#201735;
    font:800 13px/1.4 "DM Sans","Outfit",system-ui,sans-serif;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
.eprac-lolek-chat__input:focus{
    border-color:rgba(124,58,237,.42);
    box-shadow:0 0 0 4px rgba(124,58,237,.1);
}
.eprac-lolek-chat__send{
    width:46px;
    height:46px;
    border:0;
    border-radius:17px;
    color:#fff;
    cursor:pointer;
    background:linear-gradient(135deg,#ff7a18,#ef476f 54%,#7c3aed);
    box-shadow:0 12px 28px rgba(124,58,237,.24);
    display:grid;
    place-items:center;
    transition:transform .16s ease,filter .16s ease,opacity .16s ease;
}
.eprac-lolek-chat__send:hover{transform:translateY(-1px);filter:saturate(1.08)}
.eprac-lolek-chat__send:disabled{opacity:.55;cursor:not-allowed;transform:none}
.eprac-lolek-chat__footnote{
    flex:0 0 auto;
    padding:0 18px 15px;
    font-size:10.5px;
    line-height:1.35;
    color:#948ba7;
    font-weight:750;
}

@media (max-width: 720px){
    .eprac-lolek-chat-root{
        --eprac-lolek-edge:12px;
        --eprac-lolek-launcher-space:104px;
        --eprac-lolek-top-safe:12px;
        right:var(--eprac-lolek-edge);
        bottom:var(--eprac-lolek-edge);
    }
    .eprac-lolek-chat{
        left:var(--eprac-lolek-edge);
        right:var(--eprac-lolek-edge);
        bottom:calc(var(--eprac-lolek-edge) + var(--eprac-lolek-launcher-space));
        width:auto;
        max-height:calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-launcher-space) - var(--eprac-lolek-top-safe));
        max-height:calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-launcher-space) - var(--eprac-lolek-top-safe));
        border-radius:26px;
    }
    .eprac-lolek-chat-root.is-chat-open .eprac-lolek-chat{
        bottom:var(--eprac-lolek-edge);
        max-height:calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
        max-height:calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
    }
    .eprac-lolek-launcher{width:78px;min-height:90px;padding:9px 8px 10px}
    .eprac-lolek-launcher__avatar{width:42px;height:42px}
    .eprac-lolek-launcher__label{font-size:11.5px}
    .eprac-lolek-chat__subtitle{max-width:190px}
}

@media (max-height: 760px){
    .eprac-lolek-chat__header{padding:12px 14px 10px}
    .eprac-lolek-chat__avatar{width:42px;height:42px;border-radius:15px}
    .eprac-lolek-chat__title{font-size:16px}
    .eprac-lolek-chat__subtitle{font-size:10.5px;max-width:210px}
    .eprac-lolek-chat__intro{margin:10px 14px 8px;padding:10px;border-radius:20px}
    .eprac-lolek-chat__portrait{width:46px;height:56px;border-radius:16px}
    .eprac-lolek-chat__intro-text strong{font-size:12.5px}
    .eprac-lolek-chat__intro-text span{font-size:10.8px;line-height:1.35}
    .eprac-lolek-chat__messages{padding:6px 14px 10px}
    .eprac-lolek-chat__quick{max-height:78px;overflow:auto;padding:0 14px 10px}
    .eprac-lolek-chip{padding:7px 9px;font-size:10.8px}
    .eprac-lolek-chat__form{padding:10px 14px}
    .eprac-lolek-chat__input{min-height:42px;padding:11px 12px}
    .eprac-lolek-chat__send{width:42px;height:42px;border-radius:15px}
    .eprac-lolek-chat__footnote{display:none}
}

@media (max-height: 620px){
    .eprac-lolek-chat__intro{display:none}
    .eprac-lolek-chat__quick{max-height:58px}
}

@media (prefers-reduced-motion: reduce){
    .eprac-lolek-launcher,
    .eprac-lolek-launcher__pulse,
    .eprac-lolek-chat,
    .eprac-lolek-typing span{
        animation:none!important;
        transition:none!important;
    }
}

/* Doprecyzowane kadrowanie postaci Lolka po rozdzieleniu widoków: miniatury używają kadru twarzy, a portret pokazuje całą postać. */
.eprac-lolek-launcher__avatar img,
.eprac-lolek-chat__avatar img,
.eprac-lolek-msg__avatar img{
    object-fit:cover;
    object-position:center center;
}
.eprac-lolek-chat__portrait{
    background:radial-gradient(circle at 50% 35%,#fff 0%,#fff7ed 58%,#f3e8ff 100%);
}
.eprac-lolek-chat__portrait img{
    object-fit:contain;
    object-position:center bottom;
    padding:2px;
    box-sizing:border-box;
}

/* v3 — tryb „conversation first”: panel wykorzystuje dostępną wysokość ekranu, a szybkie pytania nie zabierają kilku wierszy czatu. */
.eprac-lolek-chat-root.is-chat-open .eprac-lolek-chat{
    height:min(740px,calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge)));
    height:min(740px,calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge)));
    max-height:min(740px,calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge)));
    max-height:min(740px,calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge)));
}
.eprac-lolek-chat__quick{
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    padding-bottom:10px;
}
.eprac-lolek-chat__quick::-webkit-scrollbar{height:6px}
.eprac-lolek-chat__quick::-webkit-scrollbar-thumb{background:rgba(124,58,237,.18);border-radius:999px}
.eprac-lolek-chip{
    flex:0 0 auto;
    white-space:nowrap;
}
.eprac-lolek-chat__messages{
    flex:1 1 0;
}

@media (max-height: 840px){
    .eprac-lolek-chat-root.is-chat-open{
        --eprac-lolek-edge:14px;
    }
    .eprac-lolek-chat-root.is-chat-open .eprac-lolek-chat{
        height:calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
        height:calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
        max-height:calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
        max-height:calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
    }
    .eprac-lolek-chat__header{
        padding:10px 14px 9px;
    }
    .eprac-lolek-chat__avatar{
        width:40px;
        height:40px;
        border-radius:14px;
    }
    .eprac-lolek-chat__title{font-size:15.5px}
    .eprac-lolek-chat__subtitle{
        font-size:10px;
        max-width:210px;
    }
    .eprac-lolek-icon-btn{
        width:34px;
        height:34px;
        border-radius:12px;
    }
    .eprac-lolek-chat__intro{
        display:none;
    }
    .eprac-lolek-chat__messages{
        padding:10px 14px 10px;
        gap:8px;
    }
    .eprac-lolek-msg__avatar{
        width:26px;
        height:26px;
    }
    .eprac-lolek-msg__bubble{
        padding:10px 12px;
        font-size:12.4px;
        line-height:1.4;
        max-width:86%;
    }
    .eprac-lolek-chat__quick{
        max-height:none;
        padding:0 14px 8px;
        gap:7px;
    }
    .eprac-lolek-chip{
        padding:6px 9px;
        font-size:10.6px;
    }
    .eprac-lolek-chat__form{
        padding:9px 14px 10px;
        gap:8px;
    }
    .eprac-lolek-chat__input{
        min-height:40px;
        max-height:88px;
        padding:10px 12px;
        font-size:12.6px;
        border-radius:16px;
    }
    .eprac-lolek-chat__send{
        width:40px;
        height:40px;
        border-radius:15px;
    }
}

@media (max-height: 680px){
    .eprac-lolek-chat-root.is-chat-open{
        --eprac-lolek-edge:10px;
    }
    .eprac-lolek-chat-root.is-chat-open .eprac-lolek-chat{
        border-radius:22px;
    }
    .eprac-lolek-chat__subtitle{
        display:none;
    }
    .eprac-lolek-chat__quick{
        padding-bottom:6px;
    }
    .eprac-lolek-chat__footnote{
        display:none;
    }
}

@media (max-width: 720px){
    .eprac-lolek-chat-root.is-chat-open .eprac-lolek-chat{
        height:calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
        height:calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
        max-height:calc(100vh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
        max-height:calc(100dvh - var(--eprac-lolek-edge) - var(--eprac-lolek-edge));
    }
}

/* v4 — szybkie podpowiedzi nie są już obcinane na dole okna.
   Zamiast poziomej listy ucinanej na krawędzi panelu stosujemy kompaktową siatkę,
   która zawija długie pytania wewnątrz okna i w razie potrzeby przewija się pionowo. */
.eprac-lolek-chat__quick{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:7px;
    max-height:118px;
    overflow-x:hidden;
    overflow-y:auto;
    box-sizing:border-box;
    padding-right:18px;
    scrollbar-width:thin;
}
.eprac-lolek-chat__quick::-webkit-scrollbar{
    width:6px;
    height:6px;
}
.eprac-lolek-chat__quick .eprac-lolek-chip{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    text-align:left;
    line-height:1.22;
}

@media (max-height: 840px){
    .eprac-lolek-chat__quick{
        grid-template-columns:repeat(2,minmax(0,1fr));
        max-height:96px;
        padding-right:14px;
        padding-bottom:8px;
    }
}

@media (max-height: 680px){
    .eprac-lolek-chat__quick{
        max-height:72px;
        padding-bottom:6px;
    }
    .eprac-lolek-chat__quick .eprac-lolek-chip{
        font-size:10.2px;
        line-height:1.18;
        padding:6px 8px;
    }
}

@media (max-width: 520px){
    .eprac-lolek-chat__quick{
        grid-template-columns:1fr;
        max-height:106px;
    }
}

/* v5 — podpowiedzi bez scrolla: wszystkie szybkie pytania mają mieścić się w panelu,
   bez pionowego lub poziomego przewijania sekcji podpowiedzi. */
.eprac-lolek-chat__quick{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-height:none!important;
    overflow:visible!important;
    padding:0 14px 8px;
    gap:6px;
}
.eprac-lolek-chat__quick::-webkit-scrollbar{
    display:none;
}
.eprac-lolek-chat__quick .eprac-lolek-chip{
    min-height:31px;
    padding:5px 8px;
    font-size:10.3px;
    line-height:1.16;
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

@media (min-width: 421px){
    .eprac-lolek-chat__quick{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-height: 760px){
    .eprac-lolek-chat__quick{
        padding-bottom:7px;
        gap:5px;
    }
    .eprac-lolek-chat__quick .eprac-lolek-chip{
        min-height:29px;
        padding:4px 8px;
        font-size:9.9px;
        line-height:1.12;
    }
}

@media (max-height: 640px){
    .eprac-lolek-chat__messages{
        padding-top:6px;
        padding-bottom:6px;
    }
    .eprac-lolek-chat__quick{
        gap:4px;
        padding-bottom:6px;
    }
    .eprac-lolek-chat__quick .eprac-lolek-chip{
        min-height:27px;
        padding:4px 7px;
        font-size:9.4px;
        line-height:1.08;
    }
}

@media (max-width: 520px){
    .eprac-lolek-chat__quick{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 380px){
    .eprac-lolek-chat__quick{
        grid-template-columns:1fr;
    }
}

/* v6 — launcher Lolka jako subtelna ikona bez tekstu.
   Cel: mniej zasłaniać aplikację, zachować widoczność i czytelny punkt wejścia do pomocy. */
.eprac-lolek-chat-root{
    --eprac-lolek-edge:18px;
    --eprac-lolek-launcher-space:78px;
}
.eprac-lolek-launcher{
    width:64px!important;
    min-width:64px;
    height:64px!important;
    min-height:64px!important;
    padding:0!important;
    gap:0;
    border-radius:24px!important;
    background:
        linear-gradient(135deg,rgba(255,255,255,.88),rgba(255,255,255,.66)) padding-box,
        linear-gradient(135deg,rgba(255,122,24,.9),rgba(236,72,153,.78),rgba(124,58,237,.86)) border-box;
    border:1px solid transparent;
    box-shadow:0 14px 34px rgba(15,23,42,.16),0 8px 20px rgba(124,58,237,.13)!important;
    backdrop-filter:blur(14px);
    opacity:.94;
}
.eprac-lolek-launcher:hover{
    transform:translateY(-2px) scale(1.035);
    opacity:1;
    box-shadow:0 18px 42px rgba(15,23,42,.2),0 10px 24px rgba(124,58,237,.18)!important;
}
.eprac-lolek-launcher__label{
    display:none!important;
}
.eprac-lolek-launcher__avatar{
    width:50px!important;
    height:50px!important;
    border-radius:18px!important;
    border:2px solid rgba(255,255,255,.86)!important;
    box-shadow:0 7px 16px rgba(15,23,42,.16)!important;
}
.eprac-lolek-launcher__pulse{
    inset:-4px!important;
    border-radius:28px!important;
    background:linear-gradient(135deg,rgba(255,122,24,.2),rgba(124,58,237,.18));
    animation:epracLolekPulseSoft 3.8s ease-in-out infinite;
}
@keyframes epracLolekPulseSoft{
    0%,100%{transform:scale(.98);opacity:.18}
    50%{transform:scale(1.06);opacity:.42}
}

@media (max-width: 720px){
    .eprac-lolek-chat-root{
        --eprac-lolek-edge:14px;
        --eprac-lolek-launcher-space:70px;
    }
    .eprac-lolek-launcher{
        width:58px!important;
        min-width:58px;
        height:58px!important;
        min-height:58px!important;
        border-radius:22px!important;
    }
    .eprac-lolek-launcher__avatar{
        width:46px!important;
        height:46px!important;
        border-radius:16px!important;
    }
    .eprac-lolek-launcher__pulse{
        border-radius:25px!important;
    }
}

@media (max-width: 420px){
    .eprac-lolek-chat-root{
        --eprac-lolek-edge:12px;
        --eprac-lolek-launcher-space:64px;
    }
    .eprac-lolek-launcher{
        width:54px!important;
        min-width:54px;
        height:54px!important;
        min-height:54px!important;
        border-radius:20px!important;
    }
    .eprac-lolek-launcher__avatar{
        width:42px!important;
        height:42px!important;
        border-radius:15px!important;
    }
}

/* v7 — launcher Lolka na nową ikonę z subtelnym dymkiem hover.
   Cel: nowa identyfikacja wizualna, brak dodatkowego tła launchera,
   mniejsza inwazyjność oraz animowany dymek „Zapytaj Lolka”. */
.eprac-lolek-chat-root{
    --eprac-lolek-edge:16px;
    --eprac-lolek-launcher-space:76px;
}

.eprac-lolek-launcher{
    position:relative;
    width:60px!important;
    min-width:60px!important;
    height:60px!important;
    min-height:60px!important;
    padding:0!important;
    gap:0!important;
    border:none!important;
    border-radius:20px!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    opacity:1!important;
    overflow:visible!important;
    isolation:isolate;
}

.eprac-lolek-launcher:hover{
    transform:translateY(-2px) scale(1.035);
    box-shadow:none!important;
}

.eprac-lolek-launcher__label{
    display:none!important;
}

.eprac-lolek-launcher__avatar{
    position:relative;
    z-index:2;
    width:60px!important;
    height:60px!important;
    border-radius:20px!important;
    overflow:visible!important;
    border:none!important;
    background:transparent!important;
    box-shadow:none!important;
}

.eprac-lolek-launcher__avatar img{
    width:100%;
    height:100%;
    object-fit:contain!important;
    border-radius:20px!important;
    filter:drop-shadow(0 10px 24px rgba(76,29,149,.24)) drop-shadow(0 5px 14px rgba(249,115,22,.18));
}

.eprac-lolek-launcher__pulse{
    inset:8px!important;
    z-index:1;
    border-radius:20px!important;
    background:radial-gradient(circle at 50% 50%, rgba(255,153,51,.32), rgba(168,85,247,.14) 56%, rgba(168,85,247,0) 74%)!important;
    filter:blur(6px);
    opacity:.68;
    animation:epracLolekIconAura 3.3s ease-in-out infinite;
}

@keyframes epracLolekIconAura{
    0%,100%{transform:scale(.92);opacity:.48}
    50%{transform:scale(1.08);opacity:.82}
}

.eprac-lolek-launcher::before,
.eprac-lolek-launcher::after{
    position:absolute;
    opacity:0;
    pointer-events:none;
    transition:opacity .22s ease, transform .22s ease;
}

.eprac-lolek-launcher::before{
    content:attr(data-tooltip);
    right:calc(100% + 12px);
    bottom:13px;
    z-index:4;
    padding:10px 14px;
    border-radius:18px;
    border:1px solid rgba(216,180,254,.95);
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,255,.96));
    color:#5b2d91;
    font-size:13px;
    font-weight:800;
    line-height:1;
    letter-spacing:.01em;
    white-space:nowrap;
    box-shadow:0 12px 30px rgba(15,23,42,.16), 0 4px 12px rgba(124,58,237,.12);
    transform:translateX(8px) translateY(2px) scale(.96);
}

.eprac-lolek-launcher::after{
    content:'';
    right:calc(100% + 7px);
    bottom:20px;
    z-index:3;
    width:14px;
    height:14px;
    border-right:1px solid rgba(216,180,254,.95);
    border-bottom:1px solid rgba(216,180,254,.95);
    background:rgba(255,255,255,.98);
    transform:rotate(-45deg) translate(10px, 2px) scale(.9);
    box-shadow:4px 4px 12px rgba(15,23,42,.06);
}

.eprac-lolek-launcher:hover::before,
.eprac-lolek-launcher:hover::after,
.eprac-lolek-launcher:focus-visible::before,
.eprac-lolek-launcher:focus-visible::after{
    opacity:1;
}

.eprac-lolek-launcher:hover::before,
.eprac-lolek-launcher:focus-visible::before{
    transform:translateX(0) translateY(0) scale(1);
    animation:epracLolekBubbleFloat 2.1s ease-in-out infinite;
}

.eprac-lolek-launcher:hover::after,
.eprac-lolek-launcher:focus-visible::after{
    transform:rotate(-45deg) translate(0, 0) scale(1);
}

@keyframes epracLolekBubbleFloat{
    0%,100%{transform:translateX(0) translateY(0) scale(1)}
    50%{transform:translateX(0) translateY(-2px) scale(1.01)}
}

@media (max-width: 720px){
    .eprac-lolek-chat-root{
        --eprac-lolek-edge:14px;
        --eprac-lolek-launcher-space:70px;
    }

    .eprac-lolek-launcher,
    .eprac-lolek-launcher__avatar{
        width:56px!important;
        min-width:56px!important;
        height:56px!important;
        min-height:56px!important;
        border-radius:18px!important;
    }

    .eprac-lolek-launcher__pulse{
        inset:7px!important;
        border-radius:18px!important;
    }

    .eprac-lolek-launcher::before{
        right:0;
        bottom:calc(100% + 10px);
        font-size:12.5px;
        padding:9px 13px;
        transform:translateY(8px) scale(.96);
    }

    .eprac-lolek-launcher::after{
        right:20px;
        bottom:calc(100% + 2px);
        transform:rotate(45deg) translateY(8px) scale(.9);
    }

    .eprac-lolek-launcher:hover::before,
    .eprac-lolek-launcher:focus-visible::before{
        transform:translateY(0) scale(1);
    }

    .eprac-lolek-launcher:hover::after,
    .eprac-lolek-launcher:focus-visible::after{
        transform:rotate(45deg) translateY(0) scale(1);
    }
}

@media (max-width: 420px){
    .eprac-lolek-chat-root{
        --eprac-lolek-edge:12px;
        --eprac-lolek-launcher-space:64px;
    }

    .eprac-lolek-launcher,
    .eprac-lolek-launcher__avatar{
        width:52px!important;
        min-width:52px!important;
        height:52px!important;
        min-height:52px!important;
        border-radius:17px!important;
    }

    .eprac-lolek-launcher__pulse{
        inset:6px!important;
        border-radius:17px!important;
    }

    .eprac-lolek-launcher::before{
        max-width:152px;
        white-space:normal;
        text-align:center;
        line-height:1.15;
        right:-2px;
    }

    .eprac-lolek-launcher::after{
        right:16px;
    }
}

/* v8 — usunięcie strzałki dymku oraz ujednolicenie zdjęcia Lolka w oknie czatu. */
.eprac-lolek-launcher::after{
    content:none!important;
    display:none!important;
}

.eprac-lolek-launcher::before{
    right:calc(100% + 10px)!important;
    bottom:12px!important;
    border-radius:18px!important;
}

@media (max-width:720px){
    .eprac-lolek-launcher::before{
        right:0!important;
        bottom:calc(100% + 10px)!important;
    }
}

.eprac-lolek-chat__avatar,
.eprac-lolek-chat__portrait{
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
    overflow:visible!important;
}

.eprac-lolek-chat__avatar img,
.eprac-lolek-chat__portrait img{
    object-fit:contain!important;
    border-radius:16px!important;
    filter:drop-shadow(0 8px 18px rgba(76,29,149,.18)) drop-shadow(0 4px 10px rgba(249,115,22,.12));
}

.eprac-lolek-chat__avatar{
    width:44px!important;
    height:44px!important;
    border-radius:16px!important;
}

.eprac-lolek-chat__portrait{
    width:58px!important;
    height:58px!important;
    border-radius:18px!important;
    flex:0 0 58px!important;
}

.eprac-lolek-chat__intro{
    align-items:center;
}
