/* Smart Fitness assistant — brand colors from theme (#0e2a24, #d4b06a, #f4efe6) */
.sf-a{position:fixed;right:16px;bottom:16px;z-index:99990;font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Manrope,sans-serif;color:#0e2a24;box-sizing:border-box}
.sf-a *,.sf-a *::before,.sf-a *::after{box-sizing:border-box}
.sf-a__btn{width:56px;height:56px;border:0;border-radius:50%;cursor:pointer;color:#0e2a24;background:#d4b06a;box-shadow:0 4px 16px rgba(14,42,36,.28);display:flex;align-items:center;justify-content:center;transition:transform .15s ease}
.sf-a__btn:hover,.sf-a__btn:focus-visible{transform:scale(1.05);outline:2px solid #99601b;outline-offset:2px}
.sf-a__btn svg{width:26px;height:26px;fill:currentColor}
.sf-a.is-open .sf-a__btn{display:none}
.sf-a__panel{display:none;width:min(380px,calc(100vw - 24px));height:min(560px,calc(100vh - 24px - env(safe-area-inset-bottom,0px)));flex-direction:column;background:#f4efe6;border:1px solid rgba(14,42,36,.12);border-radius:16px;box-shadow:0 12px 40px rgba(14,42,36,.28);overflow:hidden}
.sf-a.is-open .sf-a__panel{display:flex}
.sf-a__hd{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:12px 14px;background:#0e2a24;color:#f4efe6}
.sf-a__hd strong{display:block;font-size:15px;font-weight:650}
.sf-a__hd span{display:block;font-size:12px;opacity:.75}
.sf-a__x{margin-left:auto;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#f4efe6;font-size:22px;cursor:pointer;line-height:1}
.sf-a__x:hover,.sf-a__x:focus-visible{background:rgba(255,255,255,.1)}
.sf-a__msgs{flex:1 1 auto;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;-webkit-overflow-scrolling:touch}
.sf-a__msg{max-width:92%;padding:10px 12px;border-radius:12px;white-space:pre-wrap;word-wrap:break-word}
.sf-a__msg--bot{align-self:flex-start;background:#fff;border:1px solid rgba(14,42,36,.08)}
.sf-a__msg--user{align-self:flex-end;background:#0e2a24;color:#f4efe6}
.sf-a__ctas{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sf-a__cta{display:inline-block;padding:7px 10px;border-radius:999px;border:1px solid #d4b06a;background:#fff;color:#0e2a24;text-decoration:none;font-size:13px;font-weight:600;cursor:pointer}
.sf-a__cta:hover,.sf-a__cta:focus-visible{background:#d4b06a}
.sf-a__quick{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px}
.sf-a__quick button{padding:7px 10px;border-radius:999px;border:1px solid rgba(14,42,36,.18);background:#fff;color:#0e2a24;font:inherit;font-size:13px;cursor:pointer}
.sf-a__quick button:hover,.sf-a__quick button:focus-visible{border-color:#c9842a;background:#fff8ec}
.sf-a__in{flex:0 0 auto;display:flex;gap:8px;padding:8px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(14,42,36,.08);background:#fff}
.sf-a__in input[type=text]{flex:1;min-width:0;height:40px;border:1px solid rgba(14,42,36,.18);border-radius:10px;padding:0 10px;font:inherit;background:#fff;color:#0e2a24}
.sf-a__in input:focus{outline:2px solid #d4b06a;border-color:#d4b06a}
.sf-a__in button[type=submit]{height:40px;padding:0 14px;border:0;border-radius:10px;background:#0e2a24;color:#f4efe6;font:inherit;font-weight:650;cursor:pointer}
.sf-a__lead{margin-top:8px;display:flex;flex-direction:column;gap:8px}
.sf-a__lead label{font-size:13px}
.sf-a__lead input[type=text],.sf-a__lead input[type=tel]{width:100%;height:38px;border:1px solid rgba(14,42,36,.18);border-radius:8px;padding:0 10px;font:inherit}
.sf-a__consent{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.4}
.sf-a__consent input{margin-top:3px}
.sf-a__consent a{color:#99601b}
.sf-a__err{color:#8a1f11;font-size:12px}
.sf-a__ok{color:#0e2a24;font-size:13px}
.sf-a__hp{position:absolute;left:-9999px;height:0;overflow:hidden}
@media (max-width:480px){
  .sf-a{right:8px;bottom:8px;left:8px}
  .sf-a__panel{width:100%;height:min(640px,calc(100vh - 16px - env(safe-area-inset-bottom,0px)));border-radius:14px}
  .sf-a:not(.is-open){left:auto}
}
@media (prefers-reduced-motion:reduce){.sf-a__btn{transition:none}}
