/* =====================================================================
   MIA CONSULT GROUP — shared: header dropdowns, contact dock, callback popover, chat assistant.
   MIA BIZNES tokens: glass rgba(10,24,34,.9)+blur(18px), lines rgba(255,255,255,.1), cyan #13B8EE, lime #68E2B4, orange #FFA04F,
   btn radius 14, card radius 22, Geist; label 12.5/650/.04em, body 14.5–15.5.
   ===================================================================== */

/* ---------- header dropdowns: Panel klienta / MIA BIZNES, contact ---------- */
.hx-dd{position:relative}
.site-header .hx-dd.open .hx-pill{border-color:rgba(19,184,238,.75);background:rgba(19,184,238,.08);color:#fff;box-shadow:0 0 0 3px rgba(19,184,238,.14),0 6px 22px rgba(19,184,238,.28)}
.hx-ddm{position:absolute;right:0;top:calc(100% + 10px);min-width:270px;padding:6px;border-radius:16px;z-index:50;
  background:rgba(10,24,34,.92);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);
  border:1px solid rgba(255,255,255,.1);box-shadow:0 24px 50px rgba(0,0,0,.5),0 0 0 1px rgba(0,0,0,.2);
  visibility:hidden;opacity:0;transform:translateY(-4px);transition:opacity .18s,transform .18s,visibility 0s .18s}
.hx-dd.open .hx-ddm{visibility:visible;opacity:1;transform:none;transition:opacity .18s,transform .18s}
.hx-ddm::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.hx-ddi{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;color:#C9D6DE;min-width:0}
a.hx-ddi:hover{background:rgba(19,184,238,.12);color:#fff}
.hx-ddi b{display:block;font-size:14.5px;font-weight:650;color:#fff;line-height:1.3;white-space:nowrap}
.hx-ddi b i{font-style:normal;color:#8EE3FE}
.hx-ddi small{display:block;font-size:12.5px;font-weight:500;color:#8FA4AF;line-height:1.35}
.hx-ddi-ic{width:36px;height:36px;flex:none;border-radius:11px;display:grid;place-items:center}
.hx-ddi-ic svg{width:18px;height:18px;display:block}
.hx-ic-c{background:rgba(19,184,238,.14);color:#8EE3FE;box-shadow:inset 0 0 0 1px rgba(19,184,238,.3)}
.hx-ic-l{background:rgba(104,226,180,.13);color:#9BEBCB;box-shadow:inset 0 0 0 1px rgba(104,226,180,.28)}
.hx-ic-o{background:rgba(255,160,79,.13);color:#FFC08A;box-shadow:inset 0 0 0 1px rgba(255,160,79,.28)}
.hx-ddm-tel{min-width:290px}
.hx-dd-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px 4px 4px}
.hx-dd-m{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;border-radius:12px;font-size:14px;font-weight:600;color:#fff;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
.hx-dd-m:hover{border-color:#13B8EE;background:rgba(19,184,238,.1)}
.hx-dd-m .ico-m{width:22px;height:22px}
.hx-dd-cb{width:calc(100% - 8px);margin:4px;height:42px;justify-content:center;font-size:14.5px;padding:0 16px}
.site-header .hx-tel-btn{width:38px;padding:0;justify-content:center}
.hx-tel-btn svg{display:block;flex:none}
@media (max-width:1100px){.site-header .hx-tel{display:none}}
@media (max-width:639px){.site-header .hx-acc{display:none}}

/* ---------- contact dock ---------- */
.cdock{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:46;display:flex;align-items:center;gap:6px;padding:6px;border-radius:22px;
  background:rgba(10,24,34,.78);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);
  border:1px solid rgba(255,255,255,.12);box-shadow:0 22px 50px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.08);
  transition:opacity .3s,transform .3s,visibility 0s}
.cdock.is-wait,html.mn-open .cdock{opacity:0;transform:translateY(14px);pointer-events:none;visibility:hidden;transition:opacity .3s,transform .3s,visibility 0s .3s}
.cd-main{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 20px 0 6px;border:0;border-radius:16px;cursor:pointer;font:inherit;font-size:15.5px;font-weight:650;color:#fff;white-space:nowrap;
  background:linear-gradient(135deg,#13B8EE,#0EA2D6);box-shadow:0 10px 26px rgba(19,184,238,.4),inset 0 1px 0 rgba(255,255,255,.25);transition:transform .2s,box-shadow .2s}
.cd-main:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(19,184,238,.5),inset 0 1px 0 rgba(255,255,255,.25)}
.cd-main:focus-visible,.cd-ic:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(19,184,238,.45)}
.cd-main-ic{width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.2)}
.cd-main-ic svg{width:19px;height:19px;display:block;animation:cdRing 4s ease-in-out infinite}
@keyframes cdRing{0%,86%,100%{transform:rotate(0)}88%{transform:rotate(-14deg)}90%{transform:rotate(12deg)}92%{transform:rotate(-10deg)}94%{transform:rotate(8deg)}96%{transform:rotate(0)}}
.cd-ic{position:relative;width:50px;height:50px;flex:none;display:grid;place-items:center;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#8EE3FE;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.cd-ic:hover{border-color:rgba(19,184,238,.7);background:rgba(19,184,238,.1);transform:translateY(-1px)}
.cd-ic .ico-m{width:30px;height:30px}
.cd-chat svg{display:block}
.cd-dot{position:absolute;right:9px;top:9px;width:9px;height:9px;border-radius:50%;background:#68E2B4;box-shadow:0 0 0 2px #0E1E2A,0 0 8px #68E2B4}
html.bot-open .cd-chat{border-color:#13B8EE;background:rgba(19,184,238,.16)}
@media (prefers-reduced-motion:reduce){.cd-main-ic svg{animation:none}}

/* Duo 640–1100: same dock, a bit smaller */
@media (min-width:640px) and (max-width:1100px){
  .cdock{right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));gap:5px;padding:5px;border-radius:20px}
  .cd-main{height:46px;font-size:15px;padding-right:18px}.cd-main-ic{width:36px;height:36px}
  .cd-ic{width:46px;height:46px;border-radius:15px}
}
/* phone ≤639: fixed bottom bar + page padding so it never covers content / footer */
@media (max-width:639px){
  .cdock{left:0;right:0;bottom:0;border-radius:20px 20px 0 0;border-width:1px 0 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));gap:8px;background:rgba(7,20,28,.9)}
  .cd-main{flex:1 1 auto;min-width:0;justify-content:center;height:50px;padding:0 14px 0 6px}
  .cd-main-ic{width:36px;height:36px}
  .cd-main-t{overflow:hidden;text-overflow:ellipsis}
  .cd-ic{width:50px;height:50px}
  html.has-dock body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  /* phone: the floating cookie button would sit on content above the bar — cookie settings live in the footer link instead */
  html.has-dock .mia-ck-revisit{display:none!important}
  html.bot-open .cdock,html.cb-open .cdock{opacity:0;pointer-events:none;visibility:hidden}
  html.dock-lock,html.dock-lock body{overflow:hidden}
}
@media (max-width:374px){.cd-main{font-size:14.5px;gap:8px}.cd-ic{width:46px;height:46px}.cdock{gap:6px;padding-left:10px;padding-right:10px}}

/* ---------- callback popover ---------- */
.cb-pop{position:fixed;inset:auto 24px calc(100px + env(safe-area-inset-bottom,0px)) auto;z-index:80;width:380px;max-width:calc(100vw - 32px)}
.cb-pop[hidden],.bot[hidden]{display:none}
.cb-scrim{display:none}
.cb-card{display:block;padding:22px;border-radius:22px;background:rgba(10,24,34,.94);-webkit-backdrop-filter:blur(20px) saturate(1.3);backdrop-filter:blur(20px) saturate(1.3);
  border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 70px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.08);color:var(--b-ink);
  opacity:0;transform:translateY(10px) scale(.98);transform-origin:100% 100%;transition:opacity .22s,transform .22s}
.cb-pop.is-on .cb-card{opacity:1;transform:none}
.cb-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.cb-ic{width:42px;height:42px;flex:none;border-radius:13px;display:grid;place-items:center;background:rgba(19,184,238,.16);color:#8EE3FE;box-shadow:inset 0 0 0 1px rgba(19,184,238,.35)}
.cb-ic svg{width:20px;height:20px;display:block}
.cb-ht{flex:1;min-width:0}
.cb-ht h3,.cb-ht #cb-t{margin:0;font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.25;color:#fff}
.cb-ht p{margin:3px 0 0;font-size:14px;color:var(--b-muted)}
.cb-x,.bot-x{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:11px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#C9D6DE;cursor:pointer}
.cb-x:hover,.bot-x:hover{border-color:rgba(19,184,238,.7);color:#fff}
.cb-body{display:grid;gap:14px}
.cb-card select{width:100%;font:inherit;font-size:15.5px;padding:14px 40px 14px 16px;border-radius:14px;border:1px solid var(--b-line);background:var(--b-bg);color:var(--b-ink);outline:none;color-scheme:dark;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23A3B4BE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
.cb-card select:focus{border-color:#13B8EE;box-shadow:0 0 0 4px rgba(19,184,238,.18)}
.cb-when{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--b-line)}
.cb-opt{position:relative;cursor:pointer}
.cb-opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.cb-opt b{display:flex;align-items:center;justify-content:center;min-height:42px;padding:6px 10px;border-radius:11px;text-align:center;font-size:14.5px;font-weight:600;color:#C9D6DE;line-height:1.2;transition:background .2s,color .2s}
.cb-opt input:checked + b{background:#13B8EE;color:#fff;box-shadow:0 6px 18px rgba(19,184,238,.35)}
.cb-opt input:focus-visible + b{box-shadow:0 0 0 3px rgba(19,184,238,.4)}
.cb-time{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cb-time[hidden]{display:none}
.cb-agree{margin-top:2px}
.cb-card .lf-agree span.lf-box{display:block;width:22px;height:22px;margin:0;border-radius:7px;border:1px solid rgba(255,255,255,.22);background:var(--b-bg);position:relative;transition:background .2s,border-color .2s}
.cb-card .lf-agree span.lf-agree-t{margin:0;font-size:12.5px;font-weight:450;letter-spacing:0;line-height:1.5;color:var(--b-muted)}
.cb-send{width:100%;justify-content:center;height:52px;font-size:16px}
.cb-ok{display:grid;justify-items:center;text-align:center;gap:8px;padding:8px 4px 2px;outline:none}
.cb-ok[hidden]{display:none}
.cb-ok-i{width:52px;height:52px}.cb-ok-i::after{left:19px;top:11px;width:11px;height:22px;border-width:0 3.5px 3.5px 0}
.cb-ok b{font-size:20px;font-weight:700;color:#fff;margin-top:6px}
.cb-ok p{margin:0 0 10px;font-size:15px;line-height:1.5;color:var(--b-ink2)}
.cb-ok .btn{width:100%;justify-content:center}
@media (min-width:640px) and (max-width:1100px){.cb-pop{right:20px;bottom:calc(88px + env(safe-area-inset-bottom,0px))}}
@media (max-width:639px){
  .cb-pop{inset:0;width:auto;max-width:none;display:flex;align-items:flex-end}
  .cb-scrim{display:block;position:absolute;inset:0;background:rgba(3,10,15,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
  .cb-card{position:relative;width:100%;border-radius:22px 22px 0 0;padding:20px 16px calc(18px + env(safe-area-inset-bottom,0px));max-height:92dvh;overflow:auto;transform:translateY(30px)}
}

/* ---------- chat assistant ---------- */
.bot{position:fixed;right:24px;bottom:calc(100px + env(safe-area-inset-bottom,0px));z-index:80;width:384px;height:min(560px,calc(100dvh - 130px))}
.bot-panel{height:100%;display:flex;flex-direction:column;border-radius:24px;overflow:hidden;
  background:linear-gradient(180deg,rgba(19,184,238,.10),rgba(10,24,34,.0) 140px),rgba(10,24,34,.94);-webkit-backdrop-filter:blur(20px) saturate(1.3);backdrop-filter:blur(20px) saturate(1.3);
  border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 70px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.08);
  opacity:0;transform:translateY(12px) scale(.98);transform-origin:100% 100%;transition:opacity .22s,transform .22s}
.bot.is-on .bot-panel{opacity:1;transform:none}
.bot-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.bot-ava{position:relative;width:44px;height:44px;flex:none;border-radius:14px;display:grid;place-items:center;font-size:13px;font-weight:800;letter-spacing:.02em;color:#04202C;background:linear-gradient(135deg,#8EE3FE,#13B8EE 55%,#68E2B4)}
.bot-ava i{position:absolute;right:-3px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:#68E2B4;box-shadow:0 0 0 3px #0B1C27}
.bot-ht{flex:1;min-width:0}
.bot-ht b{display:block;font-size:16px;font-weight:700;color:#fff;letter-spacing:-.01em}
.bot-ht small{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#9BEBCB}
.bot-ht small i{width:7px;height:7px;border-radius:50%;background:#68E2B4;box-shadow:0 0 6px #68E2B4}
.bot-log{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.bm{max-width:88%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.5;color:var(--b-ink2)}
.bm p{margin:0}.bm p+p{margin-top:6px}
.bm ul{margin:6px 0 0;padding:0 0 0 18px}.bm li{margin:2px 0}
.bm b{color:#fff;font-weight:650}
.bm a{color:#8EE3FE;font-weight:600}
.bm-bot{align-self:flex-start;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-bottom-left-radius:6px}
.bm-me{align-self:flex-end;background:#13B8EE;color:#fff;border-bottom-right-radius:6px;font-weight:550}
.bm-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.bm-links a{display:inline-flex;align-items:center;padding:7px 12px;border-radius:10px;font-size:13.5px;background:rgba(19,184,238,.12);border:1px solid rgba(19,184,238,.35)}
.bm-links a:hover{background:rgba(19,184,238,.22);color:#fff}
.bm-acts{display:grid;gap:6px;margin-top:10px}
.bm-act{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 14px;border-radius:12px;font:inherit;font-size:14.5px;font-weight:650;color:#fff!important;cursor:pointer;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05)}
.bm-act .ico-m{width:22px;height:22px}
.bm-cb{background:#13B8EE;border-color:#13B8EE;box-shadow:0 8px 20px rgba(19,184,238,.35)}
.bm-act:hover{border-color:#13B8EE}
.bm-typing{display:inline-flex;gap:4px;padding:4px 2px}
.bm-typing i{width:7px;height:7px;border-radius:50%;background:#A3B4BE;animation:bmDot 1s ease-in-out infinite}
.bm-typing i:nth-child(2){animation-delay:.15s}.bm-typing i:nth-child(3){animation-delay:.3s}
@keyframes bmDot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.bot-foot{border-top:1px solid rgba(255,255,255,.08);padding:12px 14px 14px;display:grid;gap:10px}
.bot-quick{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:0 14px}
.bot-quick::-webkit-scrollbar{display:none}
.bot-quick button{flex:none;height:34px;padding:0 13px;border-radius:999px;font:inherit;font-size:13.5px;font-weight:600;color:#DCE7ED;white-space:nowrap;cursor:pointer;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);transition:border-color .2s,background .2s}
.bot-quick button:hover{border-color:#13B8EE;background:rgba(19,184,238,.1);color:#fff}
.bot-quick button[data-q="promo"]{border-color:rgba(255,160,79,.55);color:#FFD2AA;background:rgba(255,160,79,.08)}
.bot-human{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;border-radius:12px;font:inherit;font-size:14px;font-weight:650;color:#9BEBCB;cursor:pointer;background:rgba(104,226,180,.08);border:1px solid rgba(104,226,180,.35)}
.bot-human:hover{background:rgba(104,226,180,.16);color:#fff}
.bot-in{display:flex;gap:8px}
.bot-in input{flex:1;min-width:0;height:48px;padding:0 16px;border-radius:14px;border:1px solid var(--b-line);background:var(--b-bg);color:var(--b-ink);font:inherit;font-size:15.5px;outline:none;color-scheme:dark}
.bot-in input::placeholder{color:var(--b-muted);opacity:.8}
.bot-in input:focus{border-color:#13B8EE;box-shadow:0 0 0 4px rgba(19,184,238,.18)}
.bot-in button{width:48px;height:48px;flex:none;border:0;border-radius:14px;display:grid;place-items:center;color:#fff;cursor:pointer;background:#13B8EE;box-shadow:0 8px 20px rgba(19,184,238,.35)}
@media (min-width:640px) and (max-width:1100px){.bot{right:20px;bottom:calc(88px + env(safe-area-inset-bottom,0px));height:min(560px,calc(100dvh - 120px))}}
@media (max-width:639px){
  .bot{inset:0;width:auto;height:100dvh}
  .bot-panel{border-radius:0;border:0;transform:translateY(24px)}
  .bot-head{padding-top:calc(14px + env(safe-area-inset-top,0px))}
  .bot-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .bm{font-size:15px}
}
@media (max-width:479px){.cd-dm{display:none}}
html.bot-open .mia-ck-revisit,html.cb-open .mia-ck-revisit{display:none!important}
.f-ck{padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;text-align:left}

.b-fcols .f-ck{display:block;font-size:14.5px;padding:5px 0;color:#B9C7CF}.b-fcols .f-ck:hover{color:#8EE3FE}
@media (max-width:768px){.b-fcols .f-ck{font-size:15px;padding:10px 0;min-height:44px}}
.cb-body[hidden]{display:none}
/* messenger icons: one shared symbol each (partials/icons.html), size set per context only */
.ico-m{display:block;flex:none;width:24px;height:24px;border-radius:50%}
.b-fcols a.f-msg{display:flex;align-items:center;gap:9px}
.f-msg .ico-m{width:20px;height:20px}

/* ---------- chat attachments ---------- */
.bot-panel{position:relative}
.bot-in .bot-clip{width:44px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);color:#A3B4BE;box-shadow:none;transition:color .2s,border-color .2s,background .2s}
.bot-in .bot-clip:hover,.bot-in .bot-clip:focus-visible{color:#fff;border-color:#13B8EE;background:rgba(19,184,238,.12)}
.bot.has-files .bot-clip{color:#8EE3FE;border-color:rgba(19,184,238,.55)}
.bot-files{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:0 14px}
.bot-files[hidden]{display:none}
.bot-files::-webkit-scrollbar{display:none}
.bf-chip{flex:none;display:flex;align-items:center;gap:9px;max-width:230px;height:48px;padding:0 6px 0 7px;border-radius:12px;background:rgba(19,184,238,.08);border:1px solid rgba(19,184,238,.35)}
.bf-chip.is-err{background:rgba(255,99,99,.08);border-color:rgba(255,120,120,.55)}
.bf-ic{flex:none;width:32px;height:34px;border-radius:7px;display:grid;place-items:center;font-size:9.5px;font-weight:800;letter-spacing:.04em;color:#fff;background:#5E7380}
.bf-pdf{background:#E5484D}.bf-img{background:#13B8EE}.bf-doc{background:#3B6FE0}.bf-xls{background:#1F9D62}
.bf-t{min-width:0;display:flex;flex-direction:column;line-height:1.25}
.bf-t b{font-size:13px;font-weight:650;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bf-t small{font-size:12px;color:#A3B4BE}
.is-err .bf-t small{color:#FF9C9C;font-weight:600}
.bf-x{flex:none;width:28px;height:28px;border:0;border-radius:8px;display:grid;place-items:center;color:#A3B4BE;background:transparent;cursor:pointer}
.bf-x:hover{color:#fff;background:rgba(255,255,255,.1)}
.bm-me.bm-f{padding:8px 12px 8px 8px}
.bm-file{display:flex;align-items:center;gap:10px}
.bm-file span:last-child{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.bm-file b{color:#fff;font-size:14px;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bm-file small{font-size:12px;color:rgba(255,255,255,.82);font-weight:500}
.bm-file .bf-ic{box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.bot-drop{position:absolute;inset:8px;z-index:5;border-radius:18px;display:grid;place-items:center;pointer-events:none;opacity:0;transition:opacity .18s;
  background:rgba(10,24,34,.86);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:2px dashed rgba(19,184,238,.75)}
.bot.is-drop .bot-drop{opacity:1}
.bot-drop-in{display:grid;justify-items:center;gap:6px;text-align:center}
.bot-drop-ic{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;color:#8EE3FE;background:rgba(19,184,238,.14);border:1px solid rgba(19,184,238,.45);margin-bottom:6px}
.bot-drop-in b{font-size:17px;color:#fff;font-weight:700}
.bot-drop-in small{font-size:13px;color:#A3B4BE}
@media (max-width:639px){.bf-chip{max-width:210px}.bot-drop{display:none}}

/* ---------- MIA bot icon (img/mia-bot-icon.png → assets/img/mia-bot-128/64.webp) ---------- */
.bot-ava{background:none;padding:0}
.bot-ava img{display:block;width:44px;height:44px;border-radius:12px;box-shadow:0 6px 16px rgba(19,184,238,.35)}
.bm-bot{position:relative;margin-left:34px;max-width:calc(88% - 34px)}
.bm-bot::before{content:"";position:absolute;left:-34px;bottom:0;width:26px;height:26px;border-radius:8px;background:var(--bm-ava,url(../assets/img/mia-bot-64.webp)) center/cover;box-shadow:0 3px 8px rgba(0,0,0,.35)}
.bm-bot:has(+.bm-bot)::before{display:none}
.cd-chat svg{width:28px;height:28px;color:#8EE3FE}

/* Footer clearance: keep legal links (and the whole bottom bar) above the fixed contact dock. */
@media (min-width:640px){
  .b-footer{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
}
@media (min-width:640px) and (max-width:1100px){
  .b-footer{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}

/* ---------- pre-chat start screen ---------- */
.bot-pre{position:relative;flex:1;min-width:0;min-height:0;width:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent;
  display:flex;flex-direction:column;box-sizing:border-box;padding:0 22px}
.bot-pre[hidden]{display:none!important}
.bot-log[hidden],.bot-foot[hidden]{display:none!important}
.bot-pre-in,.bot-pre-form,.bpf-f,.bpf-tel-wrap,.bpf-tel,.bpf-inp,.bpf-go{box-sizing:border-box;min-width:0;max-width:100%}
.bot-pre-in{margin:auto;width:100%;max-width:340px;padding:20px 0 28px;text-align:center}
.bot-pre-ava{display:block;width:80px;height:80px;margin:0 auto 16px;filter:drop-shadow(0 10px 24px rgba(19,184,238,.42))}
.bot-pre-ava img{display:block;width:80px;height:80px;border-radius:22px}
.bot-pre-h{margin:0 0 6px;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.03em;color:#fff}
.bot-pre-s{margin:0 0 22px;font-size:15px;line-height:1.4;color:var(--b-muted)}
.bot-pre-form{display:grid;gap:12px;text-align:left}
.bpf-f{display:grid}
.bpf-inp{width:100%;max-width:100%;height:48px;padding:0 18px;border-radius:999px;border:1px solid var(--b-line);background:var(--b-bg);color:var(--b-ink);font:inherit;font-size:15.5px;outline:none;color-scheme:dark}
.bpf-inp::placeholder,.bpf-tel input::placeholder{color:var(--b-muted);opacity:.8}
.bpf-inp:focus{border-color:#13B8EE;box-shadow:0 0 0 4px rgba(19,184,238,.18)}
.bpf-tel-wrap{position:relative}
.bpf-tel{display:flex;align-items:center;width:100%;min-width:0;height:48px;border-radius:999px;border:1px solid var(--b-line);background:var(--b-bg);color-scheme:dark}
.bpf-tel:focus-within{border-color:#13B8EE;box-shadow:0 0 0 4px rgba(19,184,238,.18)}
.bpf-cc{display:inline-flex;align-items:center;gap:6px;height:100%;padding:0 8px 0 14px;border:0;background:transparent;color:#fff;cursor:pointer;font:inherit;font-size:14.5px;font-weight:650;border-radius:999px 0 0 999px;flex:none}
.bpf-cc:focus-visible{outline:none}
.bpf-flag{display:inline-flex;align-items:center;justify-content:center;width:20px;height:14px;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.25);flex:none;background:#1a2a33}
.bpf-flag svg{display:block;width:20px;height:14px}
.bpf-cc .bpf-code{font-variant-numeric:tabular-nums;letter-spacing:.01em}
.bpf-cc svg{display:block;flex:none;color:#A3B4BE;transition:transform .18s}
.bot.cc-open .bpf-cc svg{transform:rotate(180deg);color:#8EE3FE}
.bpf-cc::after{content:"";width:1px;height:20px;margin:0 2px 0 6px;background:rgba(255,255,255,.14);flex:none}
.bpf-tel input{flex:1;min-width:0;height:100%;border:0;background:transparent;padding:0 16px 0 6px;color:var(--b-ink);font:inherit;font-size:15.5px;outline:none;border-radius:0 999px 999px 0;color-scheme:dark}
.bpf-f.is-err .bpf-inp,.bpf-f.is-err .bpf-tel{border-color:#FF8A80;box-shadow:0 0 0 4px rgba(255,120,120,.16)}
.bpf-err{margin:6px 4px 0 16px;font-size:12.5px;font-weight:600;color:#FF9C9C;line-height:1.3}
.bpf-err[hidden]{display:none}
.bpf-cc-list{position:absolute;z-index:8;overflow:auto;padding:6px;border-radius:16px;
  background:rgba(10,24,34,.96);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);
  border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.5);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.bpf-cc-list[hidden]{display:none}
.bpf-cc-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:#fff;font:inherit;font-size:14px;font-weight:500;cursor:pointer;text-align:left}
.bpf-cc-opt .bpf-flag{flex:none}
.bpf-cc-n{flex:1;min-width:0}
.bpf-cc-d{color:#A3B4BE;font-variant-numeric:tabular-nums;font-weight:600}
.bpf-cc-opt:hover,.bpf-cc-opt.is-hi{background:rgba(19,184,238,.14)}
.bpf-cc-opt[aria-selected="true"]{background:rgba(19,184,238,.2)}
.bpf-cc-opt:focus-visible{outline:none;background:rgba(19,184,238,.18)}
.bpf-go{width:100%;max-width:100%;height:48px;margin-top:4px;border-radius:14px;font-size:16px;font-weight:650;justify-content:center}
.bpf-go:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(19,184,238,.28),0 10px 24px rgba(19,184,238,.28)}
@media (max-width:639px){
  .bot-pre{padding:0 20px}
  .bot-pre-in{padding:24px 0 calc(20px + env(safe-area-inset-bottom,0px));max-width:400px}
  .bot-pre-h{font-size:24px}
  .bot-pre-s{font-size:15.5px;margin-bottom:24px}
  .bpf-inp,.bpf-tel, .bpf-go{height:50px}
}
@media (min-width:640px) and (max-width:1100px){
  .bot-pre{padding:0 20px}
  .bot-pre-in{padding:18px 0 24px}
  .bot-pre-h{font-size:21px}
}

/* prechat: errors shown only as red input outline; text kept for screen readers */
.bpf-err{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;margin:0!important;padding:0!important}

/* Live chat (js/mcg-chat.js): author line, sending / failed state, file links, unread badge on the chat buttons */
.bm-au{display:block;margin:0 0 4px;font-size:12px;font-weight:700;color:#8EE3FE;letter-spacing:.01em}
.bm.is-sending{opacity:.6}
.bm.is-failed{opacity:1;box-shadow:0 0 0 1px #FF8A8A}
.bm-err{display:block;margin-top:6px;font-size:12px;font-weight:600;color:#FFD3D3}
a.bm-file{color:inherit;text-decoration:none}
a.bm-file:hover b{text-decoration:underline}
.bm-bot .bm-file b{color:var(--b-ink,#F3F7F9)}
.bm-bot .bm-file small{color:#9FB2BC}
.bm-bot a{color:#8EE3FE;font-weight:650;overflow-wrap:anywhere}
[data-bot-open][data-unread]{position:relative}
[data-bot-open][data-unread]::after{content:attr(data-unread);position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;
  display:grid;place-items:center;border-radius:10px;background:#FF5A5F;color:#fff;font:700 11px/1 system-ui,sans-serif;box-shadow:0 0 0 2px #0B1A24;pointer-events:none}
