#hercules-front-chat.hercules-front-chat{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:99998;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.hercules-front-chat *{box-sizing:border-box}
.hercules-front-chat__launcher{
    min-height:52px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:0 18px 0 10px;
    border:0;
    border-radius:999px;
    background:#0f172a;
    color:#fff;
    box-shadow:0 16px 40px rgba(15,23,42,.24);
    cursor:pointer;
    font-size:14px;
    font-weight:800;
    transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.hercules-front-chat__launcher:hover,
.hercules-front-chat__launcher:focus{
    background:#111827;
    color:#fff;
    transform:translateY(-1px);
    box-shadow:0 20px 46px rgba(15,23,42,.3);
}
.hercules-front-chat__launcher-icon{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    font-size:17px;
    font-weight:900;
}
.hercules-front-chat__panel{
    position:absolute;
    right:0;
    bottom:64px;
    width:min(380px,calc(100vw - 28px));
    height:min(560px,calc(100vh - 96px));
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #dce4ef;
    border-radius:20px;
    background:#fff;
    color:#172033;
    box-shadow:0 24px 70px rgba(15,23,42,.28);
}
.hercules-front-chat__panel[hidden]{display:none!important}
.hercules-front-chat__header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:16px 17px;
    background:#0f172a;
    color:#fff;
}
.hercules-front-chat__header strong{
    display:block;
    font-size:14px;
    line-height:1.35;
}
.hercules-front-chat__header span{
    display:block;
    margin-top:3px;
    color:#cbd5e1;
    font-size:11px;
}
.hercules-front-chat__close{
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:9px;
    background:rgba(255,255,255,.1);
    color:#fff;
    cursor:pointer;
    font-size:20px;
}
.hercules-front-chat__close:hover,
.hercules-front-chat__close:focus{background:rgba(255,255,255,.18);color:#fff}
.hercules-front-chat__quick{
    display:flex;
    gap:7px;
    overflow-x:auto;
    padding:10px 12px;
    border-bottom:1px solid #e8edf4;
    background:#f8fafc;
    scrollbar-width:thin;
}
.hercules-front-chat__quick button{
    flex:0 0 auto;
    padding:7px 10px;
    border:1px solid #d8e1ec;
    border-radius:999px;
    background:#fff;
    color:#344054;
    cursor:pointer;
    font-size:11px;
    font-weight:700;
}
.hercules-front-chat__quick button:hover,
.hercules-front-chat__quick button:focus{
    border-color:#2563eb;
    color:#1d4ed8;
}
.hercules-front-chat__messages{
    flex:1;
    overflow-y:auto;
    padding:15px 13px 8px;
    background:#fff;
    scroll-behavior:smooth;
}
.hercules-front-chat__message{
    max-width:90%;
    margin:0 0 11px;
    font-size:12.5px;
    line-height:1.55;
}
.hercules-front-chat__message--user{
    margin-left:auto;
    padding:10px 12px;
    border-radius:14px 14px 4px 14px;
    background:#2563eb;
    color:#fff;
}
.hercules-front-chat__message--bot{
    padding:11px 12px;
    border:1px solid #e5eaf0;
    border-radius:4px 14px 14px 14px;
    background:#f8fafc;
    color:#475467;
}
.hercules-front-chat__message--bot strong{
    display:block;
    margin-bottom:5px;
    color:#101828;
    font-size:13px;
}
.hercules-front-chat__message--bot p{margin:0}
.hercules-front-chat__actions{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:9px;
}
.hercules-front-chat__actions a{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 10px;
    border-radius:8px;
    background:#0f172a;
    color:#fff!important;
    text-decoration:none!important;
    font-size:11px;
    font-weight:800;
}
.hercules-front-chat__actions a:hover,
.hercules-front-chat__actions a:focus{background:#2563eb;color:#fff!important}
.hercules-front-chat__typing{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#667085;
}
.hercules-front-chat__typing:before{
    content:"";
    width:7px;
    height:7px;
    border:2px solid #b8c2cf;
    border-top-color:#2563eb;
    border-radius:50%;
    animation:hercules-front-chat-spin .7s linear infinite;
}
@keyframes hercules-front-chat-spin{to{transform:rotate(360deg)}}
.hercules-front-chat__form{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    padding:10px 11px 8px;
    border-top:1px solid #e7ebf0;
    background:#fff;
}
.hercules-front-chat__form textarea{
    width:100%;
    min-height:44px;
    max-height:86px;
    resize:none;
    padding:10px 11px!important;
    border:1px solid #ced7e2!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#172033!important;
    box-shadow:none!important;
    font:inherit;
    font-size:12px;
    line-height:1.4;
}
.hercules-front-chat__form textarea:focus{
    border-color:#2563eb!important;
    box-shadow:0 0 0 2px rgba(37,99,235,.12)!important;
}
.hercules-front-chat__form button{
    align-self:end;
    min-width:58px;
    height:44px;
    padding:0 13px;
    border:0;
    border-radius:10px;
    background:#2563eb;
    color:#fff;
    cursor:pointer;
    font-size:12px;
    font-weight:800;
}
.hercules-front-chat__form button:disabled{opacity:.55;cursor:not-allowed}
.hercules-front-chat__footer{
    padding:0 12px 9px;
    background:#fff;
    color:#98a2b3;
    text-align:center;
    font-size:10px;
}
@media(max-width:640px){
    #hercules-front-chat.hercules-front-chat{right:12px;bottom:12px}
    .hercules-front-chat__launcher{width:52px;height:52px;padding:0;justify-content:center}
    .hercules-front-chat__launcher-text{display:none}
    .hercules-front-chat__panel{
        position:fixed;
        right:10px;
        left:10px;
        bottom:74px;
        width:auto;
        height:min(560px,calc(100vh - 96px));
    }
}
@media(prefers-reduced-motion:reduce){
    .hercules-front-chat__launcher{transition:none}
    .hercules-front-chat__messages{scroll-behavior:auto}
    .hercules-front-chat__typing:before{animation:none}
}

/* Frontend chatbot controls polish 20260919 */
.hercules-front-chat__quick{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    overflow:visible!important;
    padding:11px 12px!important;
}
.hercules-front-chat__quick button{
    width:100%!important;
    min-height:38px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px 10px!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.25!important;
}
.hercules-front-chat__form{
    grid-template-columns:minmax(0,1fr) 62px!important;
    gap:8px!important;
    align-items:center!important;
    padding:11px 12px 9px!important;
}
.hercules-front-chat__form input#hercules-front-chat-question{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 13px!important;
    border:1px solid #cfd8e3!important;
    border-radius:11px!important;
    outline:0!important;
    background:#fff!important;
    color:#172033!important;
    box-shadow:none!important;
    font:inherit!important;
    font-size:12px!important;
    line-height:46px!important;
}
.hercules-front-chat__form input#hercules-front-chat-question::placeholder{
    color:#98a2b3!important;
    opacity:1!important;
}
.hercules-front-chat__form input#hercules-front-chat-question:focus{
    border-color:#2563eb!important;
    box-shadow:0 0 0 3px rgba(37,99,235,.12)!important;
}
.hercules-front-chat__form button[type="submit"]{
    width:62px!important;
    min-width:62px!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 10px!important;
    align-self:center!important;
    border-radius:11px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
}
.hercules-front-chat__footer{
    padding:1px 12px 10px!important;
}
@media(max-width:420px){
    .hercules-front-chat__quick{
        grid-template-columns:1fr!important;
    }
    .hercules-front-chat__form{
        grid-template-columns:minmax(0,1fr) 58px!important;
    }
    .hercules-front-chat__form button[type="submit"]{
        width:58px!important;
        min-width:58px!important;
    }
}

/* Multilingual chatbot direction support */
.hercules-front-chat__message[dir="rtl"]{text-align:right;direction:rtl}
.hercules-front-chat__message[dir="rtl"] .hercules-front-chat__actions{justify-content:flex-start;flex-direction:row-reverse}
.hercules-front-chat__message[lang="ur"],.hercules-front-chat__message[lang="ar"]{line-height:1.85}
.hercules-front-chat__message[lang="ur-Latn"]{direction:ltr;text-align:left}


/* Multilingual assistant polish 20260925 */
.hercules-front-chat__message{
    overflow-wrap:anywhere;
    unicode-bidi:plaintext;
}
.hercules-front-chat__message[dir="rtl"]{
    text-align:right!important;
    direction:rtl!important;
}
.hercules-front-chat__message[dir="rtl"] strong,
.hercules-front-chat__message[dir="rtl"] p{
    text-align:right!important;
}
.hercules-front-chat__message[lang="ur"],
.hercules-front-chat__message[lang="ar"],
.hercules-front-chat__message[lang="fa"]{
    line-height:1.9;
    letter-spacing:0;
}
.hercules-front-chat__message[lang="ur-Latn"]{
    direction:ltr!important;
    text-align:left!important;
}
.hercules-front-chat__form input#hercules-front-chat-question{
    unicode-bidi:plaintext;
}
.hercules-front-chat__form input#hercules-front-chat-question[dir="rtl"]{
    text-align:right!important;
}
.hercules-front-chat__typing{
    min-width:46px;
}
.hercules-front-chat__footer{
    white-space:normal;
    line-height:1.35;
}
@media(max-width:640px){
    .hercules-front-chat__panel{
        max-height:calc(100dvh - 90px);
    }
}
