.ths-ai-chat-root{--ths-ai-bottom:96px;--ths-ai-vh:100vh;position:fixed;right:18px;bottom:var(--ths-ai-bottom);z-index:99990;font-family:inherit;color:#17324d;box-sizing:border-box}.ths-ai-chat-root *{box-sizing:border-box}.ths-ai-fab{border:0;border-radius:999px;background:#c58a3a;color:#fff;padding:12px 16px;box-shadow:0 14px 38px rgba(23,50,77,.22);display:flex;align-items:center;gap:9px;font-weight:700;cursor:pointer;min-height:46px;transition:transform .18s ease,box-shadow .18s ease}.ths-ai-fab:hover{transform:translateY(-1px);box-shadow:0 18px 45px rgba(23,50,77,.25)}.ths-ai-fab-dot{width:9px;height:9px;border-radius:99px;background:#fff;box-shadow:0 0 0 5px rgba(255,255,255,.2)}.ths-ai-panel{position:absolute;right:0;bottom:58px;width:min(390px,calc(100vw - 28px));height:min(590px,calc(var(--ths-ai-vh) - 142px));min-height:360px;background:#fff;border:1px solid rgba(23,50,77,.1);border-radius:24px;box-shadow:0 22px 70px rgba(23,50,77,.22);overflow:hidden;display:none;flex-direction:column;transform-origin:bottom right}.ths-ai-chat-root.is-open .ths-ai-panel{display:flex}.ths-ai-head{background:linear-gradient(180deg,#fff8ed,#fff);padding:16px 16px 12px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(183,134,69,.18);flex:0 0 auto}.ths-ai-head strong{display:block;font-size:16px;line-height:1.25;color:#17324d}.ths-ai-head small{display:block;margin-top:3px;color:#6f6258;font-size:12px}.ths-ai-close{width:32px;height:32px;border-radius:99px;border:1px solid rgba(23,50,77,.1);background:#fff;color:#17324d;font-size:22px;line-height:26px;cursor:pointer;flex:0 0 auto}.ths-ai-messages{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 14px;background:#fff;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.ths-ai-msg{display:flex;margin:0 0 10px}.ths-ai-msg>div{max-width:86%;padding:11px 13px;border-radius:17px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.ths-ai-assistant{justify-content:flex-start}.ths-ai-assistant>div{background:#f7f2ec;color:#5d5149;border-bottom-left-radius:6px}.ths-ai-user{justify-content:flex-end}.ths-ai-user>div{background:#17324d;color:#fff;border-bottom-right-radius:6px}.ths-ai-msg a{color:#b78645;font-weight:700;text-decoration:underline;text-underline-offset:2px}.ths-ai-user a{color:#fff}.ths-ai-inline-booking,.ths-ai-msg a.ths-ai-inline-booking{display:inline-flex;margin-top:6px;padding:10px 14px;border-radius:999px;background:#c58a3a;color:#fff!important;text-decoration:none;font-weight:700;box-shadow:0 8px 20px rgba(197,138,58,.2)}.ths-ai-form{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(23,50,77,.08);background:#fff;flex:0 0 auto}.ths-ai-form input{min-width:0;flex:1;border:1px solid rgba(23,50,77,.14);border-radius:999px;padding:11px 13px;font:inherit;color:#17324d;outline:none;background:#fff}.ths-ai-form input:focus{border-color:#b78645;box-shadow:0 0 0 3px rgba(183,134,69,.13)}.ths-ai-form button{border:0;border-radius:999px;padding:0 15px;background:#17324d;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}.ths-ai-form button:disabled,.ths-ai-form input:disabled{opacity:.58;cursor:wait}.ths-ai-loading>div{opacity:.85;display:flex;align-items:center;gap:8px}.ths-ai-typing{display:inline-flex;gap:3px;align-items:center}.ths-ai-typing i{width:5px;height:5px;border-radius:99px;background:#b78645;display:block;animation:thsAiTyping 1s infinite ease-in-out}.ths-ai-typing i:nth-child(2){animation-delay:.15s}.ths-ai-typing i:nth-child(3){animation-delay:.3s}.ths-ai-loading-text{font-size:12px;color:#6f6258}@keyframes thsAiTyping{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-3px);opacity:1}}@media(max-width:640px){.ths-ai-chat-root{right:12px;bottom:88px}.ths-ai-fab{padding:11px 14px;min-height:44px}.ths-ai-panel{right:-2px;bottom:56px;width:calc(100vw - 20px);height:min(560px,calc(var(--ths-ai-vh) - 120px));min-height:340px;border-radius:22px}.ths-ai-msg>div{font-size:13.5px;max-width:90%}.ths-ai-head{padding:14px 14px 11px}.ths-ai-form{padding:10px}.ths-ai-form button{padding:0 13px}}@media(max-width:390px){.ths-ai-chat-root{right:10px}.ths-ai-fab span:last-child{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ths-ai-panel{width:calc(100vw - 16px);right:-2px}.ths-ai-form input{padding-left:12px;padding-right:12px}.ths-ai-form button{min-width:54px;padding:0 11px}}@media(prefers-reduced-motion:reduce){.ths-ai-fab,.ths-ai-typing i{animation:none;transition:none}}

/* V10.39: place AI chat on the left so it does not cover Golden Hour / CTA rail. */
.ths-ai-chat-root{left:18px;right:auto;bottom:112px;z-index:99980}
.ths-ai-panel{left:0;right:auto;transform-origin:bottom left}
.ths-ai-fab{background:#c58a3a;color:#17324d;font-weight:800}
.ths-ai-menu-trigger,.ths-ai-msg a.ths-ai-menu-trigger{display:inline-flex;margin-top:6px;padding:10px 14px;border-radius:999px;background:#17324d;color:#fff!important;text-decoration:none;font-weight:800;box-shadow:0 8px 20px rgba(23,50,77,.18)}
.ths-ai-menu-modal{position:fixed;inset:0;z-index:100002;background:rgba(14,24,34,.72);display:none;align-items:center;justify-content:center;padding:18px}.ths-ai-menu-modal[aria-hidden="false"]{display:flex}.ths-ai-menu-modal img{max-width:min(94vw,900px);max-height:88vh;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.35);object-fit:contain}.ths-ai-menu-close{position:absolute;top:14px;right:14px;width:42px;height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.4);background:#fff;color:#17324d;font-size:28px;line-height:36px;cursor:pointer;font-weight:700}
@media(max-width:640px){.ths-ai-chat-root{left:10px;right:auto;bottom:118px}.ths-ai-panel{left:0;right:auto;width:calc(100vw - 20px)}.ths-ai-menu-modal{padding:10px}.ths-ai-menu-close{top:10px;right:10px}}

/* V10.41: compact conversion-friendly chat bubbles */
.ths-ai-msg{margin-bottom:8px}
.ths-ai-msg>div{line-height:1.42;padding:10px 12px}
.ths-ai-msg br+br{display:none}
.ths-ai-inline-booking,.ths-ai-msg a.ths-ai-inline-booking{display:inline-flex!important;align-items:center;justify-content:center;margin-top:8px;padding:9px 14px;border-radius:999px;background:#f36b21;color:#fff!important;text-decoration:none!important;font-weight:800;box-shadow:0 10px 22px rgba(243,107,33,.22)}
.ths-ai-msg a.ths-ai-inline-link[href*="/dat-lich"],.ths-ai-msg a.ths-ai-inline-link[href*="/booking"]{display:inline-flex!important;align-items:center;justify-content:center;margin-top:8px;padding:9px 14px;border-radius:999px;background:#f36b21;color:#fff!important;text-decoration:none!important;font-weight:800;box-shadow:0 10px 22px rgba(243,107,33,.22);font-size:0}
.ths-ai-msg a.ths-ai-inline-link[href*="/dat-lich"]::after,.ths-ai-msg a.ths-ai-inline-link[href*="/booking"]::after{content:'Đặt lịch';font-size:14px}
@media(max-width:640px){.ths-ai-msg>div{line-height:1.38}.ths-ai-messages{padding:12px 12px}.ths-ai-msg{margin-bottom:7px}}


/* V10.42: multilingual mobile polish */
.ths-ai-panel{height:min(560px,calc(var(--ths-ai-vh) - 150px));max-height:76vh;border-radius:22px}
.ths-ai-head{padding:14px 16px 11px}.ths-ai-head strong{font-size:15.5px}.ths-ai-head small{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:#b78645;font-weight:800}
.ths-ai-messages{padding:13px 13px 10px}.ths-ai-msg>div{max-width:84%;font-size:13.8px;line-height:1.42;padding:10px 12px}.ths-ai-user>div{background:#17324d;color:#fff}.ths-ai-assistant>div{background:#f7f2ec;color:#594c43}
.ths-ai-form{padding:10px 12px}.ths-ai-form input{border-radius:0;padding:10px 12px}.ths-ai-form button{min-width:58px}
.ths-ai-msg a.ths-ai-inline-link[href*="/dat-lich"],.ths-ai-msg a.ths-ai-inline-link[href*="/booking"]{font-size:14px!important}.ths-ai-msg a.ths-ai-inline-link[href*="/dat-lich"]::after,.ths-ai-msg a.ths-ai-inline-link[href*="/booking"]::after{content:none!important}
@media(max-width:640px){.ths-ai-panel{height:min(520px,calc(var(--ths-ai-vh) - 138px));max-height:74vh}.ths-ai-msg>div{max-width:88%;font-size:13.4px}.ths-ai-head small{font-size:11px}.ths-ai-form input{font-size:14px}}

/* V10.43: language onboarding lock */
.ths-ai-lang-row{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0;background:#fff;border-top:1px solid rgba(23,50,77,.05)}
.ths-ai-lang-row[hidden]{display:none!important}
.ths-ai-lang-row button{border:1px solid rgba(183,134,69,.28);background:#fff8ed;color:#17324d;border-radius:999px;padding:7px 10px;font-size:12.5px;font-weight:700;cursor:pointer;line-height:1;box-shadow:0 5px 16px rgba(23,50,77,.06)}
.ths-ai-lang-row button:hover{background:#f3e6d4;border-color:#b78645}
.ths-ai-chat-root[data-customer-lang="ar"] .ths-ai-messages,.ths-ai-chat-root[data-customer-lang="ar"] .ths-ai-form input{direction:rtl;text-align:right}
.ths-ai-chat-root[data-customer-lang="ar"] .ths-ai-user{justify-content:flex-start}.ths-ai-chat-root[data-customer-lang="ar"] .ths-ai-assistant{justify-content:flex-end}
@media(max-width:640px){.ths-ai-lang-row{padding:7px 10px 0;gap:5px}.ths-ai-lang-row button{font-size:12px;padding:7px 9px}}


/* V10.45: Messenger-style chat + clean action buttons */
.ths-ai-chat-root{left:16px;bottom:108px;right:auto;z-index:99988;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.ths-ai-panel{width:min(385px,calc(100vw - 26px));height:min(620px,calc(var(--ths-ai-vh) - 128px));border-radius:18px;border:1px solid rgba(23,50,77,.08);box-shadow:0 18px 48px rgba(15,23,42,.20);background:#fff;overflow:hidden}
.ths-ai-head{background:#fff;padding:13px 14px 12px;border-bottom:1px solid rgba(15,23,42,.08);align-items:center}.ths-ai-head strong{font-size:15px;font-weight:800;color:#17324d}.ths-ai-head small{font-size:11.5px;line-height:1.25;letter-spacing:.08em;color:#b78645;font-weight:800;max-width:260px}.ths-ai-close{width:34px;height:34px;background:#f8fafc;border:1px solid rgba(23,50,77,.1);font-size:20px;color:#17324d}.ths-ai-messages{background:#fff;padding:12px 12px 8px}.ths-ai-msg{gap:7px;align-items:flex-end;margin:0 0 8px}.ths-ai-avatar{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#17324d;color:#fff;font-size:12px;font-weight:800;box-shadow:0 4px 12px rgba(23,50,77,.18)}.ths-ai-msg>div{max-width:78%;padding:10px 12px;border-radius:18px;font-size:14px;line-height:1.42;box-shadow:none}.ths-ai-assistant>div{background:#f1f2f5;color:#2b2b2b;border-bottom-left-radius:5px}.ths-ai-user>div{background:#17324d;color:#fff;border-bottom-right-radius:5px}.ths-ai-form{padding:10px 12px 12px;gap:8px;background:#fff;border-top:1px solid rgba(15,23,42,.08)}.ths-ai-form input{height:40px;border-radius:20px;background:#f3f4f6;border:1px solid transparent;padding:0 14px;font-size:14px}.ths-ai-form input:focus{background:#fff;border-color:#b78645}.ths-ai-form button{height:40px;border-radius:999px;min-width:56px;padding:0 15px;background:#17324d;color:#fff;font-size:13px;font-weight:800}.ths-ai-fab{background:#c58a3a;color:#17324d;border-radius:999px;min-height:45px;padding:11px 17px;font-weight:900;box-shadow:0 12px 28px rgba(197,138,58,.28)}.ths-ai-inline-booking,.ths-ai-msg a.ths-ai-inline-booking,.ths-ai-msg a.ths-ai-inline-link[href*="/dat-lich"],.ths-ai-msg a.ths-ai-inline-link[href*="/booking"]{display:inline-flex!important;align-items:center;justify-content:center;width:auto;margin:8px 6px 0 0;padding:10px 16px;border-radius:999px;background:#f36b21;color:#fff!important;text-decoration:none!important;font-weight:900;box-shadow:0 8px 18px rgba(243,107,33,.24);font-size:14px!important;line-height:1.1}.ths-ai-map-button,.ths-ai-msg a.ths-ai-map-button{display:inline-flex!important;align-items:center;justify-content:center;margin:8px 6px 0 0;padding:10px 16px;border-radius:999px;background:#17324d;color:#fff!important;text-decoration:none!important;font-weight:900;box-shadow:0 8px 18px rgba(23,50,77,.18);font-size:14px!important;line-height:1.1}.ths-ai-action-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.ths-ai-msg br+br{display:none}.ths-ai-msg p{margin:0 0 6px}.ths-ai-msg ul{margin:5px 0;padding-left:17px}.ths-ai-msg li{margin:2px 0}
@media(max-width:640px){.ths-ai-chat-root{left:10px;bottom:116px}.ths-ai-panel{width:calc(100vw - 20px);height:min(570px,calc(var(--ths-ai-vh) - 135px));border-radius:18px}.ths-ai-msg>div{max-width:82%;font-size:13.7px}.ths-ai-head small{max-width:230px}.ths-ai-avatar{width:24px;height:24px;flex-basis:24px}.ths-ai-form input{font-size:14px}.ths-ai-inline-booking,.ths-ai-msg a.ths-ai-inline-booking,.ths-ai-map-button,.ths-ai-msg a.ths-ai-map-button{font-size:13.5px!important;padding:9px 14px}}

/* V10.59: guided service picker for faster concierge flow */
.ths-ai-quick-pick{padding:8px 12px 0;background:#fff;border-top:1px solid rgba(15,23,42,.06);flex:0 0 auto}
.ths-ai-quick-pick[hidden]{display:none!important}
.ths-ai-quick-grid{display:grid;grid-template-columns:1.15fr .75fr .95fr auto;gap:7px;align-items:end}
.ths-ai-quick-grid label{display:flex;flex-direction:column;gap:3px;min-width:0}
.ths-ai-quick-grid label span{font-size:10px;line-height:1.1;color:#b78645;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ths-ai-quick-grid select{width:100%;min-width:0;height:36px;border-radius:14px;border:1px solid rgba(23,50,77,.12);background:#fff;color:#17324d;font:inherit;font-size:12.5px;padding:0 9px;outline:none}
.ths-ai-quick-grid select:focus{border-color:#b78645;box-shadow:0 0 0 3px rgba(183,134,69,.12)}
.ths-ai-quick-send{height:36px;border:0;border-radius:999px;background:#f36b21;color:#fff;font-weight:900;font-size:12.5px;padding:0 12px;white-space:nowrap;cursor:pointer;box-shadow:0 7px 15px rgba(243,107,33,.18)}
@media(max-width:640px){.ths-ai-quick-pick{padding:8px 10px 0}.ths-ai-quick-grid{grid-template-columns:1.15fr .75fr;gap:6px}.ths-ai-quick-grid label:nth-child(3){grid-column:1 / 2}.ths-ai-quick-send{grid-column:2 / 3}.ths-ai-quick-grid select,.ths-ai-quick-send{height:34px;font-size:12px}.ths-ai-quick-grid label span{font-size:9.5px}}


/* V10.69: AI → Booking bridge buttons */
.ths-ai-bridge-hint{display:block;color:#6f6258;font-size:13px;line-height:1.35;margin-top:4px}
.ths-ai-msg a.ths-ai-bridge-booking{background:#f36b21!important;color:#fff!important}
.ths-ai-msg a.ths-ai-bridge-fill{background:#17324d!important;color:#fff!important}
.ths-ai-msg a.ths-ai-bridge-booking,.ths-ai-msg a.ths-ai-bridge-fill{margin-right:6px;margin-top:7px}


/* V10.72: final confirmation bridge buttons */
.ths-ai-msg a.ths-ai-bridge-edit{background:#fff!important;color:#17324d!important;border:1px solid rgba(23,50,77,.16);box-shadow:0 7px 16px rgba(23,50,77,.10)}
.ths-ai-msg a.ths-ai-bridge-app{background:#17324d!important;color:#fff!important}
.ths-ai-bridge-hint{font-weight:600;color:#6f6258}


/* V10.73: remove quick-select UI and polish chat closer to Messenger, without touching page modules. */
.ths-ai-quick-pick,.ths-ai-quick-grid,.ths-ai-quick-send{display:none!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important}
.ths-ai-panel{background:#fff;border-radius:20px;box-shadow:0 18px 46px rgba(15,23,42,.18)}
.ths-ai-messages{background:#fff;scrollbar-width:thin;scrollbar-color:rgba(23,50,77,.30) transparent}
.ths-ai-msg{display:flex;gap:7px;margin:0 0 8px;align-items:flex-end}
.ths-ai-user{justify-content:flex-end}.ths-ai-assistant{justify-content:flex-start}
.ths-ai-user .ths-ai-avatar{display:none}
.ths-ai-assistant .ths-ai-avatar{background:#17324d;color:#fff}
.ths-ai-msg>div{white-space:normal;word-break:break-word}
.ths-ai-assistant>div{background:#f1f2f5;border-radius:18px;border-bottom-left-radius:6px;color:#2f2a27}
.ths-ai-user>div{background:#17324d;border-radius:18px;border-bottom-right-radius:6px;color:#fff}
.ths-ai-form{background:#fff;border-top:1px solid rgba(15,23,42,.08)}
.ths-ai-form input{background:#f3f4f6;border-radius:999px;border:1px solid transparent;box-shadow:none}
.ths-ai-form input:focus{background:#fff;border-color:#b78645;box-shadow:0 0 0 3px rgba(183,134,69,.12)}
.ths-ai-form button{border-radius:999px;background:#17324d;color:#fff}
.ths-ai-msg a.ths-ai-inline-booking,.ths-ai-msg a.ths-ai-bridge-booking{background:#f36b21!important;color:#fff!important;border-radius:999px!important;box-shadow:0 10px 20px rgba(243,107,33,.22)!important}
.ths-ai-msg a.ths-ai-bridge-fill,.ths-ai-msg a.ths-ai-map-button{background:#17324d!important;color:#fff!important;border-radius:999px!important}
@media(max-width:640px){.ths-ai-panel{width:calc(100vw - 20px);height:min(570px,calc(var(--ths-ai-vh) - 135px))}.ths-ai-messages{padding:12px}.ths-ai-msg>div{max-width:82%}}


/* V10.97: AI Chat UI polish + receptionist launcher + Thera logo avatar */
.ths-ai-chat-root{left:16px!important;right:auto!important;bottom:104px!important;z-index:99990!important}
.ths-ai-fab{position:relative!important;display:inline-flex!important;align-items:center!important;gap:10px!important;min-height:54px!important;padding:8px 18px 8px 8px!important;border-radius:999px!important;background:linear-gradient(135deg,#d9993a,#f0bd66)!important;color:#17324d!important;border:1px solid rgba(255,255,255,.45)!important;box-shadow:0 16px 38px rgba(23,50,77,.24)!important;font-weight:900!important;letter-spacing:.01em!important;text-transform:none!important;overflow:visible!important}
.ths-ai-fab-dot{display:none!important}.ths-ai-fab-label{font-size:14px!important;line-height:1!important;white-space:nowrap!important;color:#17324d!important}.ths-ai-fab-hero{width:44px!important;height:44px!important;display:inline-flex!important;align-items:flex-end!important;justify-content:center!important;border-radius:50%!important;background:#fff8ed!important;box-shadow:inset 0 0 0 1px rgba(183,134,69,.18),0 8px 18px rgba(23,50,77,.16)!important;overflow:hidden!important;flex:0 0 44px!important}.ths-ai-fab-hero img{width:44px!important;height:44px!important;object-fit:contain!important;display:block!important}.ths-ai-fab:hover{transform:translateY(-2px)!important;box-shadow:0 20px 46px rgba(23,50,77,.28)!important}
.ths-ai-panel{border-radius:20px!important;border:1px solid rgba(23,50,77,.08)!important;box-shadow:0 18px 48px rgba(15,23,42,.20)!important;background:#fff!important}.ths-ai-head{background:#fff!important;border-bottom:1px solid rgba(15,23,42,.08)!important;padding:13px 14px!important;display:flex!important;align-items:center!important}.ths-ai-head-title{display:flex!important;align-items:center!important;min-height:34px!important}.ths-ai-head strong{font-size:16px!important;line-height:1.2!important;font-weight:850!important;color:#17324d!important;letter-spacing:0!important;text-transform:none!important}.ths-ai-head small{display:none!important}.ths-ai-close{width:36px!important;height:36px!important;border-radius:50%!important;background:#f8fafc!important;border:1px solid rgba(23,50,77,.10)!important;color:#17324d!important;line-height:30px!important}.ths-ai-avatar{width:28px!important;height:28px!important;flex:0 0 28px!important;background:#fff!important;border:1px solid rgba(183,134,69,.24)!important;padding:3px!important;box-shadow:0 5px 13px rgba(23,50,77,.12)!important;overflow:hidden!important}.ths-ai-avatar img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}.ths-ai-assistant>div{background:#f1f2f5!important;color:#2f2a27!important}.ths-ai-user>div{background:#17324d!important;color:#fff!important}
@media(max-width:640px){.ths-ai-chat-root{left:10px!important;right:auto!important;bottom:108px!important}.ths-ai-fab{min-height:50px!important;padding:7px 15px 7px 7px!important}.ths-ai-fab-hero{width:40px!important;height:40px!important;flex-basis:40px!important}.ths-ai-fab-hero img{width:40px!important;height:40px!important}.ths-ai-fab-label{font-size:13.5px!important}.ths-ai-panel{width:calc(100vw - 20px)!important}}


/* V10.99: hard-lock close buttons to exact center. Do not use raw line-height alignment. */
.ths-ai-close,
.ths-ai-menu-close{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  max-width:36px!important;
  max-height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  border-radius:50%!important;
  line-height:0!important;
  font-size:0!important;
  text-align:center!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
}
.ths-ai-close{
  position:relative!important;
  background:#f8fafc!important;
  border:1px solid rgba(23,50,77,.12)!important;
  color:#17324d!important;
  flex:0 0 36px!important;
}
.ths-ai-menu-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  background:#fff!important;
  border:1px solid rgba(255,255,255,.55)!important;
  color:#17324d!important;
}
.ths-ai-close .ths-ai-close-icon,
.ths-ai-menu-close .ths-ai-close-icon{
  width:14px!important;
  height:14px!important;
  display:block!important;
  flex:0 0 14px!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
}
.ths-ai-head{align-items:center!important;}
@media(max-width:640px){
  .ths-ai-close,.ths-ai-menu-close{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;}
  .ths-ai-menu-close{top:10px!important;right:10px!important;}
}

/* V11.00: Floating UI Compact System — smaller launcher, lower position, less content coverage. */
.ths-ai-chat-root{
  left:14px!important;
  right:auto!important;
  bottom:62px!important;
  z-index:99990!important;
}
.ths-ai-fab{
  min-height:46px!important;
  padding:6px 14px 6px 6px!important;
  gap:8px!important;
  transform-origin:bottom left!important;
  box-shadow:0 10px 26px rgba(23,50,77,.18)!important;
}
.ths-ai-fab:hover{transform:translateY(-1px)!important;}
.ths-ai-fab-hero{
  width:36px!important;
  height:36px!important;
  flex-basis:36px!important;
}
.ths-ai-fab-hero img{
  width:36px!important;
  height:36px!important;
}
.ths-ai-fab-label{
  font-size:13px!important;
  line-height:1!important;
}
.ths-ai-panel{
  bottom:54px!important;
}
@media(max-width:640px){
  .ths-ai-chat-root{
    left:10px!important;
    bottom:58px!important;
  }
  .ths-ai-fab{
    min-height:42px!important;
    padding:5px 12px 5px 5px!important;
    gap:7px!important;
  }
  .ths-ai-fab-hero{
    width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
  }
  .ths-ai-fab-hero img{
    width:34px!important;
    height:34px!important;
  }
  .ths-ai-fab-label{
    font-size:12.5px!important;
    max-width:112px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .ths-ai-panel{
    bottom:50px!important;
  }
}
