/* AI Editor Suite – public chat. Generated from inline styles (5.1.12). Dynamic values: --aies-color, --aies-panel-w, .aies-pos-* */
.aies-floating{position:fixed;right:18px;bottom:18px;z-index:999999}
    .aies-bubble-btn{width:58px;height:58px;border-radius:50%;background:#2271b1;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.2);font-weight:700;border:0}
    .aies-bubble-panel{display:none;position:absolute;right:0;bottom:70px;width:390px;max-width:calc(100vw - 30px);background:#fff;border:1px solid #dcdcde;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18);overflow:hidden}
    .aies-bubble-head{padding:12px 14px;background:#2271b1;color:#fff;font-weight:700}
    .aies-bubble-log{max-height:360px;overflow:auto;padding:12px;background:#f6f7f7}
    .aies-bubble-input-wrap{padding:12px;border-top:1px solid #eee;background:#fff}
    .aies-bubble-input{width:100%;box-sizing:border-box;resize:vertical;margin-bottom:10px}
    .aies-bubble-send{display:inline-block;padding:10px 14px;border:0;border-radius:10px;background:#2271b1;color:#fff;cursor:pointer}
    .aies-msg{padding:10px;border-radius:10px;margin-bottom:10px}
    .aies-user{background:#e7f0ff}
    .aies-ai{background:#f1f1f1}
    .aies-thinking{background:#fff8e1;border:1px dashed #dba617;font-style:italic}
    .aies-role{font-weight:700;margin-bottom:6px}
    .aies-msg-text p{margin:0 0 10px}
    .aies-msg-text ul{margin:8px 0 8px 18px}
    .aies-msg-text a{color:#135e96;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
    .aies-bubble-panel .aies-msg-text{overflow-x:auto;line-height:1.55}
    .aies-bubble-panel .aies-msg-text table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;margin:10px 0;font-size:12px;min-width:0;background:transparent}
    .aies-bubble-panel .aies-msg-text th,.aies-bubble-panel .aies-msg-text td{border:1px solid #d8e1eb;padding:8px;text-align:left;vertical-align:top;overflow-wrap:break-word}
    .aies-bubble-panel .aies-msg-text th{background:#eaf3fc;font-weight:700;color:#173450}
    .aies-bubble-panel .aies-msg-text tbody tr:nth-child(even){background:#f6f9fd}
    .aies-bubble-panel .aies-msg-text h3{font-size:15px;line-height:1.4;margin:12px 0 7px}
    .aies-bubble-panel .aies-source-links{background:#fff;border:1px solid #dce5ef;border-radius:11px;margin-top:12px;padding:10px 12px;box-shadow:0 2px 5px rgba(15,23,42,.03)}
    .aies-bubble-panel .aies-source-links h3{font-size:12px!important;margin:0 0 7px!important;font-weight:700;color:#41566a}
    .aies-bubble-panel .aies-source-links ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}
    .aies-bubble-panel .aies-source-links li{font-size:11.5px;line-height:1.4;margin:0;overflow-wrap:anywhere}
    .aies-bubble-panel .aies-source-links a{font-size:inherit!important;line-height:inherit;color:#176399;text-decoration:none}
    .aies-bubble-panel .aies-source-links a:hover{text-decoration:underline}

    .aies-bubble-panel .aies-msg-text table{display:table;overflow:visible}
    @media(max-width:500px){.aies-bubble-panel .aies-msg-text table{font-size:12px}.aies-bubble-panel .aies-msg-text th,.aies-bubble-panel .aies-msg-text td{padding:6px}}
    .aies-result-list{display:grid;gap:12px;margin:10px 0 2px}
    .aies-result-card{background:#fff;border:1px solid #d7e3f2;border-radius:12px;padding:13px 14px;box-shadow:0 2px 8px rgba(15,23,42,.05)}
    .aies-result-card h3{font-size:16px;line-height:1.35;margin:0 0 8px;color:#172033}
    .aies-result-card p{margin:5px 0;line-height:1.45}
    .aies-result-link{display:inline-block;margin-top:8px;padding:8px 12px;border-radius:9px;background:#2271b1;color:#fff!important;text-decoration:none!important;font-weight:700}
    .aies-result-link:hover{background:#135e96}
    .aies-faq-accordion{margin-top:18px;padding:14px;border-radius:18px;background:linear-gradient(180deg,#f5f9ff 0%,#ffffff 100%);border:1px solid #d7e3f2}
    .aies-faq-item{border:1px solid #d7e3f2;border-radius:14px;background:#fff;overflow:hidden}
    .aies-faq-item + .aies-faq-item{margin-top:10px}
    .aies-faq-question{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:linear-gradient(135deg,#0f172a 0%,#1d4f91 100%);color:#fff;border:0;cursor:pointer;text-align:left;font-weight:800}
    .aies-faq-icon{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.16);font-size:18px;line-height:1}
    .aies-faq-answer{display:none;padding:14px 16px;background:#fff}
    .aies-faq-item.is-open .aies-faq-answer{display:block}
    .aies-faq-item.is-open .aies-faq-icon{transform:rotate(45deg)}
    .aies-answer-shell{display:grid;gap:10px;line-height:1.55;color:#1f2937}
    .aies-answer-shell>p:first-child,.aies-answer-lead{font-size:15px;line-height:1.6;background:#fff;border-left:4px solid #2271b1;padding:10px 12px;border-radius:8px;margin:0 0 2px!important}
    .aies-answer-section{background:#fff;border:1px solid #dbe5f0;border-radius:12px;padding:12px 14px;margin:0}
    .aies-answer-section h3,.aies-answer-shell>h3{font-size:15px;line-height:1.35;margin:0 0 8px;color:#12344d}
    .aies-answer-section p{margin:5px 0 8px}.aies-answer-section ul{margin:7px 0 3px 19px}.aies-answer-section li{margin:4px 0}
    .aies-context-cta{display:flex;flex-direction:column;gap:8px;align-items:stretch;justify-content:flex-start;margin:12px 0 8px;padding:12px 14px;border:1px solid #b6d9ff;border-radius:13px;background:linear-gradient(135deg,#eef7ff 0%,#fff 100%)}
    .aies-context-cta>.aies-cta-copy{display:grid;gap:4px;min-width:0}.aies-cta-title{display:block;line-height:1.35}.aies-cta-title strong{display:block;color:#12344d}.aies-cta-desc{display:block;font-size:12px;color:#526274;line-height:1.45}
    .aies-cta-button{display:block;width:100%;box-sizing:border-box;text-align:center;flex:0 0 auto;padding:9px 12px;border-radius:9px;background:#2271b1;color:#fff!important;text-decoration:none!important;font-weight:700;white-space:normal}
    .aies-cta-button:hover{background:#135e96}
    .aies-cta-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;width:100%}.aies-cta-secondary{background:#50575e}.aies-cta-secondary:hover{background:#3c434a}.aies-cta-note{margin:6px 2px 10px;font-size:12px;color:#526274;line-height:1.45}
    .aies-contact-box{margin:8px 0 2px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid #e2e8f0}.aies-contact-box p{margin:0 0 7px}.aies-contact-box ul{margin:5px 0 0 18px}
    @media(max-width:520px){.aies-context-cta{align-items:stretch;flex-direction:column}.aies-cta-button{text-align:center}}
#aies-floating.aies-floating{position:fixed!important;right:18px!important;left:auto!important;bottom:18px!important;z-index:2147483000!important;display:block!important}
        #aies-floating.aies-floating.aies-pos-between{left:auto!important;right:18px!important;top:auto!important;bottom:18px!important;display:none!important}#aies-floating.aies-floating.aies-pos-between.aies-scroll-ready{display:block!important}#aies-floating.aies-floating.aies-pos-between.aies-inline-docked{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;display:inline-flex!important;vertical-align:middle!important;margin:0 6px!important}#aies-floating.aies-floating.aies-pos-between.aies-inline-docked #aies-bubble-panel{bottom:calc(100% + 10px)!important;right:0!important;left:auto!important}
        /* The public chat launcher stays out of view until the visitor scrolls. */
        #aies-floating.aies-floating.aies-at-page-top{display:none!important}
        #aies-bubble-btn.aies-bubble-btn{width:68px!important;height:46px!important;min-width:0!important;border-radius:3px 0 0 3px!important;margin-left:8px!important;margin-top:4px!important;background:var(--aies-color,#2271b1)!important;color:#fff!important;display:block!important;text-align:center!important;cursor:pointer!important;box-shadow:0 8px 24px rgba(0,0,0,.25)!important;font-weight:700!important;border:0!important;visibility:visible!important;opacity:1!important}
        #aies-bubble-panel.aies-bubble-panel{position:absolute!important;right:0!important;left:auto!important;bottom:70px!important;width:var(--aies-panel-w,390px)!important;max-width:calc(100vw - 30px)!important;background:#fff!important;border:1px solid #dcdcde!important;border-radius:14px!important;box-shadow:0 10px 30px rgba(0,0,0,.22)!important;overflow:hidden!important;z-index:2147483001!important}
        #aies-bubble-panel .aies-bubble-log{max-height:360px;overflow:auto;padding:12px;background:#f6f7f7}
        #aies-bubble-panel .aies-msg{padding:10px;border-radius:10px;margin-bottom:10px;display:block!important;visibility:visible!important;opacity:1!important}
        #aies-bubble-panel .aies-user{background:#e7f0ff}.aies-bubble-panel .aies-ai{background:#f1f1f1}
        #aies-bubble-panel .aies-role{font-weight:700;margin-bottom:5px}.aies-bubble-panel .aies-msg-text{line-height:1.5;word-break:break-word}
        #aies-bubble-panel .aies-msg-text a{word-break:break-word}
        /* Subtle animated typing status; no visible loading text. */
        #aies-bubble-panel .aies-msg.aies-msg-thinking{display:inline-flex!important;align-items:center!important;min-width:54px!important;padding:10px 13px!important;background:#eef3f8!important;border:1px solid #dce5ee!important;font-style:normal!important}
        #aies-bubble-panel .aies-msg-thinking .aies-role{display:none!important}
        #aies-bubble-panel .aies-msg-thinking .aies-msg-text{display:flex!important;align-items:center!important;min-height:15px!important}
        #aies-bubble-panel .aies-typing-dots{display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:12px!important}
        #aies-bubble-panel .aies-typing-dots span{display:block!important;width:7px!important;height:7px!important;border-radius:50%!important;background:#477da5!important;animation:aiesTypingPulse 1.15s ease-in-out infinite!important}
        #aies-bubble-panel .aies-typing-dots span:nth-child(2){animation-delay:.16s!important}
        #aies-bubble-panel .aies-typing-dots span:nth-child(3){animation-delay:.32s!important}
        #aies-bubble-panel .aies-bubble-title{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#aies-bubble-panel .aies-bubble-close{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:30px!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;background:rgba(255,255,255,.18)!important;color:inherit!important;font:700 22px/1 Arial,sans-serif!important;cursor:pointer!important;box-shadow:none!important;transition:background .15s!important}
#aies-bubble-panel .aies-bubble-close:hover,#aies-bubble-panel .aies-bubble-close:focus-visible{background:rgba(255,255,255,.32)!important;outline:none!important}
@keyframes aiesTypingPulse{0%,65%,100%{opacity:.3;transform:translateY(0)}32%{opacity:1;transform:translateY(-4px)}}
        @keyframes aiesTypingFade{0%,65%,100%{opacity:.25}32%{opacity:1}}
@media (prefers-reduced-motion:reduce){#aies-bubble-panel .aies-typing-dots span{animation:aiesTypingFade 1.15s ease-in-out infinite!important;transform:none!important}}

        #aies-bubble-panel .aies-source-links{background:#fff!important;border:1px solid #dce5ef!important;border-radius:11px!important;margin-top:12px!important;padding:10px 12px!important}
        #aies-bubble-panel .aies-source-links h3{font-size:12px!important;line-height:1.4!important;margin:0 0 7px!important;color:#41566a!important}
        #aies-bubble-panel .aies-source-links ul{list-style:none!important;padding:0!important;margin:0!important;display:grid!important;gap:6px!important}
        #aies-bubble-panel .aies-source-links li{font-size:11.5px!important;line-height:1.4!important;margin:0!important}
        #aies-bubble-panel .aies-source-links a{font-size:inherit!important;text-decoration:none!important}
        #aies-bubble-panel .aies-source-links a:hover{text-decoration:underline!important}
        /* v5.0.26 compact, fully aligned price table: no leftover white column */
        #aies-bubble-panel .aies-msg-text{min-width:0!important;overflow-wrap:anywhere!important}
        #aies-bubble-panel .aies-msg-text table{display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;box-sizing:border-box!important;background:transparent!important;margin:9px 0!important;font-size:12px!important}
        #aies-bubble-panel .aies-msg-text table th,#aies-bubble-panel .aies-msg-text table td{box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:7px 8px!important;width:50%!important}
        #aies-bubble-panel .aies-msg-text .aies-tax-note{display:inline!important;font-size:inherit!important;font-weight:inherit!important;color:inherit!important;line-height:inherit!important;margin:0!important;white-space:nowrap!important}
        /* Source cards: smaller font, clickable rows and tiny colored markers */
        #aies-bubble-panel .aies-source-links{background:#f8fbff!important;border:1px solid #dbe7f2!important;box-shadow:0 2px 7px rgba(32,66,108,.06)!important;padding:10px!important;border-radius:12px!important}
        #aies-bubble-panel .aies-source-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;font-size:11px!important;font-weight:700!important;letter-spacing:.2px!important;color:#41536b!important;margin-bottom:8px!important}
        #aies-bubble-panel .aies-source-heading span{background:#e1ecf7!important;color:#365b7e!important;border-radius:999px!important;min-width:18px!important;text-align:center!important;font-size:10px!important;padding:2px 5px!important}
        #aies-bubble-panel .aies-source-links ul{gap:5px!important}
        #aies-bubble-panel .aies-source-links li{margin:0!important;list-style:none!important}
        #aies-bubble-panel .aies-source-links li a{display:flex!important;align-items:flex-start!important;gap:7px!important;padding:8px!important;background:white!important;border:1px solid #e4edf7!important;border-radius:8px!important;text-decoration:none!important;font-size:11px!important;line-height:1.35!important;color:#175a94!important;box-sizing:border-box!important;transition:background .15s ease!important}
        #aies-bubble-panel .aies-source-links li a:hover{background:#eff6ff!important;border-color:#afcdeb!important}
        #aies-bubble-panel .aies-source-dot{width:7px!important;height:7px!important;flex:0 0 7px!important;margin-top:4px!important;background:#4b89b9!important;border-radius:50%!important}
        #aies-bubble-panel .aies-source-name{flex:1!important;min-width:0!important;overflow-wrap:anywhere!important}
        #aies-bubble-panel .aies-source-arrow{margin-left:auto!important;font-size:13px!important;line-height:1!important;color:#7a9dbb!important}

        #aies-bubble-panel .aies-bubble-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:12px 10px 12px 14px!important;background:var(--aies-color,#2271b1)!important;color:#fff!important;font-weight:700!important;font-size:16px!important;line-height:1.4!important}
        #aies-bubble-panel .aies-bubble-log{display:block!important;max-height:360px!important;overflow:auto!important;padding:12px!important;background:#f6f7f7!important;box-sizing:border-box!important}
        #aies-bubble-panel .aies-bubble-input-wrap{display:block!important;padding:12px!important;border-top:1px solid #eee!important;background:#fff!important;box-sizing:border-box!important}
        #aies-bubble-panel .aies-bubble-input{display:block!important;width:100%!important;min-height:72px!important;box-sizing:border-box!important;resize:vertical!important;margin:0 0 10px!important;padding:9px 10px!important;border:1px solid #8c8f94!important;border-radius:6px!important;background:#fff!important;color:#1d2327!important;font:inherit!important}
        #aies-bubble-panel .aies-bubble-send{display:inline-block!important;padding:10px 14px!important;border:0!important;border-radius:10px!important;background:var(--aies-color,#2271b1)!important;color:#fff!important;cursor:pointer!important;font:inherit!important;font-weight:700!important}
        #aies-bubble-panel .aies-result-card{display:block!important;background:#fff!important;border:1px solid #d7e3f2!important;border-radius:12px!important;padding:13px 14px!important;margin:10px 0!important;box-sizing:border-box!important}
        #aies-bubble-panel .aies-context-cta{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}#aies-bubble-panel .aies-context-cta>div{width:100%!important}#aies-bubble-panel .aies-cta-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:8px!important}#aies-bubble-panel .aies-result-link,#aies-bubble-panel .aies-cta-button{display:block!important;width:100%!important;box-sizing:border-box!important;text-align:center!important;margin-top:8px!important;padding:8px 12px!important;border-radius:9px!important;background:var(--aies-color,#2271b1)!important;color:#fff!important;text-decoration:none!important;font-weight:700!important}
        /* v5.0.30: slightly smaller regular chat text; headings, tables, buttons and source cards unchanged. */
        #aies-bubble-panel .aies-msg-text{font-size:14px!important;line-height:1.55!important}
        #aies-bubble-panel .aies-msg-text p,#aies-bubble-panel .aies-msg-text li{font-size:inherit!important}
        /* v5.0.32: input placeholder is one pixel smaller than before. */
        #aies-bubble-panel #aies-bubble-input::placeholder{font-size:12px!important}
        /* Regular answer links follow body size; source cards and action buttons retain their styles. */
        #aies-bubble-panel .aies-msg-text a:not(.aies-cta-button):not(.aies-result-link):not(.aies-service-cta-button){font-size:inherit!important;line-height:inherit!important}
        #aies-bubble-panel .aies-msg-text .aies-source-links li a{font-size:11px!important;line-height:1.35!important}
        /* 5.0.35: Compact service CTA; regular answer text/source cards are unchanged. */
        #aies-bubble-panel .aies-msg-text .aies-service-cta{margin:10px 0 4px!important;padding:11px!important;border:1px solid #d5e6f8!important;border-radius:11px!important;background:#f3f8ff!important}
        #aies-bubble-panel .aies-msg-text .aies-service-cta-heading{font-size:12px!important;line-height:1.4!important;font-weight:700!important;color:#255782!important}
        #aies-bubble-panel .aies-msg-text .aies-service-cta p{font-size:12px!important;line-height:1.45!important;margin:5px 0 8px!important}
        #aies-bubble-panel .aies-msg-text .aies-service-cta-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:100%!important;width:auto!important;box-sizing:border-box!important;padding:7px 11px!important;margin:3px 0 0!important;background:#1b64a6!important;color:#fff!important;border-radius:8px!important;text-decoration:none!important;font-size:12px!important;line-height:1.3!important;font-weight:600!important;overflow-wrap:break-word!important;box-shadow:none!important}
        #aies-bubble-panel .aies-msg-text .aies-service-cta-button:hover{background:#144d83!important}
#aies-floating.aies-floating.aies-pos-left{left:18px!important;right:auto!important}
#aies-floating.aies-pos-left #aies-bubble-panel.aies-bubble-panel{left:0!important;right:auto!important}
/* One font everywhere in the chat: answers, headings, buttons and the input use the same font as the visitor's questions. */
#aies-floating,#aies-floating *{font-family:inherit!important}
#aies-bubble-panel .aies-bubble-close{font-family:Arial,Helvetica,sans-serif!important}
#aies-bubble-panel .aies-msg-text :is(h1,h2,h3,h4,h5,h6){font-size:15px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:normal!important;text-transform:none!important;font-style:normal!important}
#aies-bubble-panel .aies-msg-text :is(p,li,td,th,dd,dt,blockquote){font-size:inherit!important;letter-spacing:normal!important;text-transform:none!important}
#aies-bubble-panel .aies-bubble-input,#aies-bubble-panel .aies-bubble-send{font-size:14px!important}
/* One type scale for the whole chat (base = --aies-fs, default 14px; set from „Разширени настройки → Размер на текста“). */
#aies-floating{--aies-fs:14px}
#aies-floating #aies-bubble-panel .aies-bubble-log *,#aies-floating #aies-bubble-panel .aies-bubble-input,#aies-floating #aies-bubble-panel .aies-bubble-input::placeholder,#aies-floating #aies-bubble-panel .aies-bubble-send{font-size:var(--aies-fs)!important;line-height:1.5!important;letter-spacing:normal!important}
#aies-floating #aies-bubble-panel .aies-bubble-log :is(h1,h2,h3,h4,h5,h6,.aies-cta-title,.aies-cta-title *,.aies-service-cta-heading,.aies-answer-lead){font-size:calc(var(--aies-fs) + 1px)!important;line-height:1.4!important;font-weight:700!important}
#aies-floating #aies-bubble-panel .aies-bubble-log .aies-answer-lead{font-weight:400!important}
#aies-floating #aies-bubble-panel .aies-bubble-log :is(.aies-role,.aies-source-links,.aies-source-links *,.aies-source-heading,.aies-source-heading *,.aies-cta-desc,.aies-cta-note,.aies-tax-note,table,table *,.aies-service-cta p){font-size:calc(var(--aies-fs) - 1.5px)!important;line-height:1.45!important}
#aies-floating #aies-bubble-panel .aies-bubble-log .aies-faq-icon{font-size:calc(var(--aies-fs) + 2px)!important;line-height:1!important}
#aies-floating #aies-bubble-panel .aies-bubble-log .aies-typing-dots span{font-size:0!important}
#aies-floating #aies-bubble-panel .aies-bubble-head,#aies-floating #aies-bubble-panel .aies-bubble-title{font-size:calc(var(--aies-fs) + 2px)!important}
