:root{--th-ai-bg:#f5f6f7;--th-ai-card:#fff;--th-ai-text:#161616;--th-ai-muted:#667085;--th-ai-line:#e2e5e9;--th-ai-primary:#111;--th-ai-success:#087a45;--th-ai-danger:#b42318;--th-ai-radius:18px}
.th-ai-launcher{position:fixed;right:22px;bottom:22px;z-index:99990;display:flex;align-items:center;gap:9px;padding:14px 18px;border:0;border-radius:999px;background:var(--th-ai-primary);color:#fff;font:inherit;font-weight:750;cursor:pointer;box-shadow:0 16px 40px rgba(0,0,0,.25)}
.th-ai-launcher-badge{display:none;min-width:22px;height:22px;padding:0 6px;align-items:center;justify-content:center;border-radius:999px;background:#fff;color:#111;font-size:12px}.th-ai-launcher-badge.has-items{display:inline-flex}
.th-ai-panel{position:fixed;right:18px;bottom:88px;z-index:99991;display:none;width:min(500px,calc(100vw - 24px));height:min(760px,calc(100dvh - 104px));overflow:hidden;border:1px solid rgba(0,0,0,.14);border-radius:24px;background:var(--th-ai-bg);box-shadow:0 28px 90px rgba(0,0,0,.32);color:var(--th-ai-text);font-family:inherit}.th-ai-panel.open{display:flex;flex-direction:column}
.th-ai-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:74px;padding:14px 16px 14px 20px;background:#111;color:#fff}.th-ai-head-title{display:flex;flex-direction:column}.th-ai-head-title strong{font-size:17px}.th-ai-head-title span{font-size:12px;opacity:.75;margin-top:2px}.th-ai-head-actions{display:flex;gap:7px}.th-ai-icon-btn{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:23px;cursor:pointer}
.th-ai-body{flex:1;overflow:auto;padding:18px 16px 12px;scroll-behavior:smooth}.th-ai-flow{min-height:1px}.th-ai-msg{max-width:91%;margin:0 0 12px;padding:13px 15px;border:1px solid var(--th-ai-line);border-radius:17px;background:#fff;line-height:1.48;font-size:15px;white-space:pre-wrap}.th-ai-msg.user{margin-left:auto;background:#111;color:#fff;border-color:#111}.th-ai-msg.notice{border-color:#b7e4cc;background:#effaf4;color:#075f37}.th-ai-msg.error{border-color:#f3b7b2;background:#fff1f0;color:#8f1710}.th-ai-msg small{display:block;margin-top:6px;color:var(--th-ai-muted)}
.th-ai-menu,.th-ai-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 14px}.th-ai-menu button,.th-ai-options button,.th-ai-suggestion{min-height:46px;padding:10px 11px;border:1px solid #d4d8dd;border-radius:13px;background:#fff;color:#202124;font:inherit;font-size:13px;font-weight:650;text-align:left;cursor:pointer;transition:.15s}.th-ai-menu button:hover,.th-ai-options button:hover,.th-ai-suggestion:hover{border-color:#111;transform:translateY(-1px)}.th-ai-options.one{grid-template-columns:1fr}.th-ai-step-title{margin:2px 0 9px;font-size:14px;font-weight:750}.th-ai-progress{height:4px;margin:0 0 12px;border-radius:99px;background:#e1e4e8;overflow:hidden}.th-ai-progress i{display:block;height:100%;background:#111}
.th-ai-mini-form,.th-ai-card-form,.th-ai-request-form,.th-ai-order-form{display:grid;gap:10px}.th-ai-field{display:grid;gap:5px}.th-ai-field label{font-size:12px;font-weight:700;color:#3c4148}.th-ai-field input,.th-ai-field select,.th-ai-field textarea{width:100%;box-sizing:border-box;border:1px solid #cfd4da;border-radius:11px;background:#fff;padding:11px 12px;color:#161616;font:inherit;font-size:14px;outline:none}.th-ai-field input:focus,.th-ai-field select:focus,.th-ai-field textarea:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.07)}.th-ai-field textarea{min-height:84px;resize:vertical}.th-ai-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.th-ai-help{font-size:11px;color:var(--th-ai-muted);line-height:1.4}.th-ai-check{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.4}.th-ai-check input{margin-top:2px}
.th-ai-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 13px;border:1px solid #111;border-radius:11px;background:#111;color:#fff!important;text-decoration:none!important;font:inherit;font-size:13px;font-weight:750;cursor:pointer}.th-ai-btn.secondary{background:#fff;color:#111!important}.th-ai-btn.ghost{border-color:#d5d9de;background:transparent;color:#222!important}.th-ai-btn:disabled{opacity:.5;cursor:not-allowed}.th-ai-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.th-ai-products{display:grid;gap:12px;margin:4px 0 14px}.th-ai-product{overflow:hidden;border:1px solid var(--th-ai-line);border-radius:18px;background:#fff}.th-ai-product-top{display:grid;grid-template-columns:112px 1fr;gap:13px;padding:13px}.th-ai-product-image{width:112px;height:132px;object-fit:contain;border-radius:12px;background:#f4f5f6}.th-ai-product-label{display:inline-block;margin-bottom:7px;padding:4px 7px;border-radius:999px;background:#eef0f2;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.th-ai-product h4{margin:0 0 5px;font-size:16px;line-height:1.25}.th-ai-price{font-size:16px;font-weight:800}.th-ai-stock{margin-top:5px;color:var(--th-ai-success);font-size:12px;font-weight:700}.th-ai-specs{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin:10px 0 0;font-size:12px}.th-ai-specs span{color:var(--th-ai-muted)}.th-ai-reason{margin:10px 0 0;font-size:12px;line-height:1.45;color:#3f454d}.th-ai-product-controls{padding:12px 13px;border-top:1px solid var(--th-ai-line);background:#fafbfc}.th-ai-product-controls .th-ai-grid-2{grid-template-columns:1fr 1fr}.th-ai-product-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.th-ai-compare-label{display:flex;align-items:center;gap:6px;font-size:12px}.th-ai-product-links{display:flex;gap:7px;flex-wrap:wrap}
.th-ai-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 13px}.th-ai-suggestion{min-height:auto;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:600}.th-ai-compare-bar{display:none;position:sticky;bottom:0;z-index:3;align-items:center;justify-content:space-between;gap:9px;margin:10px 0 0;padding:10px 12px;border-radius:14px;background:#111;color:#fff}.th-ai-compare-bar.open{display:flex}.th-ai-compare-bar button{border:1px solid #fff;border-radius:9px;background:#fff;color:#111;padding:7px 10px;font-weight:750;cursor:pointer}
.th-ai-modal{position:absolute;inset:0;z-index:20;display:none;align-items:flex-end;background:rgba(0,0,0,.5)}.th-ai-modal.open{display:flex}.th-ai-modal-card{width:100%;max-height:86%;overflow:auto;border-radius:22px 22px 0 0;background:#fff;padding:17px}.th-ai-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.th-ai-modal-close{border:0;background:transparent;font-size:26px;cursor:pointer}.th-ai-compare-table{width:100%;border-collapse:collapse;font-size:12px}.th-ai-compare-table th,.th-ai-compare-table td{padding:8px;border:1px solid var(--th-ai-line);vertical-align:top}.th-ai-compare-table th{background:#f5f6f7;text-align:left}
.th-ai-form-card{margin:4px 0 14px;padding:15px;border:1px solid var(--th-ai-line);border-radius:18px;background:#fff}.th-ai-form-card h3{margin:0 0 5px;font-size:17px}.th-ai-form-card>p{margin:0 0 13px;color:var(--th-ai-muted);font-size:12px;line-height:1.45}.th-ai-summary{margin:10px 0;padding:12px;border:1px solid #cfd4da;border-radius:12px;background:#f8f9fa;font-size:12px}.th-ai-summary dl{display:grid;grid-template-columns:115px 1fr;gap:5px;margin:0}.th-ai-summary dt{font-weight:750}.th-ai-summary dd{margin:0;word-break:break-word}
.th-ai-typing{display:inline-flex;gap:5px}.th-ai-typing i{width:7px;height:7px;border-radius:50%;background:#777;animation:th-ai-pulse 1.1s infinite}.th-ai-typing i:nth-child(2){animation-delay:.15s}.th-ai-typing i:nth-child(3){animation-delay:.3s}@keyframes th-ai-pulse{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.th-ai-compose{display:flex;gap:9px;padding:12px;border-top:1px solid #dfe2e6;background:#fff}.th-ai-compose input{flex:1;min-width:0;height:50px;border:1px solid #cfd4da;border-radius:15px;padding:0 14px;font:inherit;font-size:14px;outline:none}.th-ai-compose input:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.07)}.th-ai-compose button{min-width:76px;border:0;border-radius:14px;background:#111;color:#fff;font:inherit;font-weight:750;cursor:pointer}.th-ai-compose button:disabled{opacity:.55}.th-ai-bottom-tools{display:flex;justify-content:space-between;align-items:center;padding:0 13px 10px;background:#fff}.th-ai-text-btn{border:0;background:transparent;color:#6b7280;font:inherit;font-size:11px;text-decoration:underline;cursor:pointer}
.th-ai-honeypot{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:640px){.th-ai-launcher{right:12px;bottom:12px}.th-ai-panel{right:5px;bottom:5px;width:calc(100vw - 10px);height:calc(100dvh - 10px);max-height:none;border-radius:20px}.th-ai-body{padding:15px 12px}.th-ai-menu{grid-template-columns:1fr}.th-ai-product-top{grid-template-columns:92px 1fr}.th-ai-product-image{width:92px;height:118px}.th-ai-grid-2{grid-template-columns:1fr}.th-ai-product-controls .th-ai-grid-2{grid-template-columns:1fr 1fr}.th-ai-specs{grid-template-columns:1fr}.th-ai-compose{padding:10px}.th-ai-compose input{height:52px}}

/* V7.1.0 – mobile viewport, overflow and persistent UI hardening */
.th-ai-root{position:relative;width:0;height:0;max-width:100%;overflow:visible}
.th-ai-root,.th-ai-root *{-webkit-tap-highlight-color:transparent}
.th-ai-panel,
.th-ai-panel * ,
.th-ai-launcher,
.th-ai-launcher *{box-sizing:border-box}
.th-ai-panel{max-width:calc(100vw - 24px);max-width:calc(100dvw - 24px);isolation:isolate;contain:layout paint style}
.th-ai-panel *{min-width:0;max-width:100%}
.th-ai-panel img,.th-ai-panel svg,.th-ai-panel video,.th-ai-panel canvas{height:auto;max-width:100%}
.th-ai-head-title,.th-ai-product-top>div,.th-ai-product-footer,.th-ai-product-links,.th-ai-actions,.th-ai-summary dd{min-width:0}
.th-ai-head-title strong,.th-ai-head-title span,.th-ai-product h4,.th-ai-reason,.th-ai-msg,.th-ai-help,.th-ai-field label,.th-ai-summary dd,.th-ai-btn,.th-ai-menu button,.th-ai-options button{overflow-wrap:anywhere;word-break:normal}
.th-ai-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-x:hidden}
.th-ai-flow,.th-ai-products,.th-ai-product,.th-ai-product-top,.th-ai-product-controls,.th-ai-form-card,.th-ai-summary{width:100%;max-width:100%}
.th-ai-product-footer{flex-wrap:wrap;align-items:flex-start}
.th-ai-product-links{justify-content:flex-end}
.th-ai-product-links .th-ai-btn{flex:1 1 auto}
.th-ai-field input,.th-ai-field select,.th-ai-field textarea{min-width:0;max-width:100%}
.th-ai-compose{min-width:0}
.th-ai-compose input{width:0;min-width:0}
.th-ai-launcher{max-width:calc(100vw - 24px);max-width:calc(100dvw - 24px)}
.th-ai-launcher>span:first-child{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-ai-modal-card{box-sizing:border-box;max-width:100%;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.th-ai-compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px;margin:12px 0}
.th-ai-compare-card{min-width:0;padding:13px;border:1px solid var(--th-ai-line);border-radius:15px;background:#fff}
.th-ai-compare-card h4{margin:0 0 10px;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.th-ai-compare-card dl{display:grid;grid-template-columns:minmax(86px,.8fr) minmax(0,1.2fr);gap:0;margin:0;font-size:12px}
.th-ai-compare-card dt,.th-ai-compare-card dd{margin:0;padding:7px 0;border-top:1px solid var(--th-ai-line);overflow-wrap:anywhere}
.th-ai-compare-card dt{padding-right:8px;font-weight:750;color:#4b5563}
.th-ai-compare-card dd{text-align:right}
html.th-ai-chat-open,body.th-ai-chat-open{overscroll-behavior:none}

@media(max-width:640px){
 html.th-ai-chat-open,body.th-ai-chat-open{overflow:hidden!important;touch-action:none}
 .th-ai-launcher{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));min-height:48px;padding:12px 15px;font-size:14px}
 .th-ai-panel{left:0;right:0;top:auto;bottom:0;width:auto;max-width:none;height:var(--th-ai-vv-height,100dvh);max-height:100dvh;border-width:0;border-radius:0;box-shadow:none;contain:layout paint style}
 .th-ai-head{flex:0 0 auto;min-height:64px;padding:calc(10px + env(safe-area-inset-top)) 10px 10px 14px;gap:8px}
 .th-ai-head-title strong{font-size:16px;line-height:1.25}
 .th-ai-head-title span{font-size:11px}
 .th-ai-head-actions{flex:0 0 auto;gap:6px}
 .th-ai-icon-btn{width:44px;height:44px;border-radius:11px}
 .th-ai-body{padding:14px 11px 10px;overflow-x:hidden}
 .th-ai-msg{max-width:94%;padding:12px 13px;font-size:14px}
 .th-ai-menu,.th-ai-options{grid-template-columns:minmax(0,1fr);gap:8px}
 .th-ai-menu button,.th-ai-options button{width:100%;min-height:48px;padding:11px 12px;font-size:14px}
 .th-ai-grid-2,.th-ai-product-controls .th-ai-grid-2{grid-template-columns:minmax(0,1fr)}
 .th-ai-product-top{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:11px}
 .th-ai-product-image{width:84px;height:106px}
 .th-ai-product h4{font-size:15px}
 .th-ai-price{font-size:15px;overflow-wrap:anywhere}
 .th-ai-specs{grid-template-columns:minmax(0,1fr)}
 .th-ai-product-controls{padding:11px}
 .th-ai-product-footer{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .th-ai-product-links{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:8px}
 .th-ai-product-links .th-ai-btn,.th-ai-actions .th-ai-btn{width:100%}
 .th-ai-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 .th-ai-field input,.th-ai-field select,.th-ai-field textarea{font-size:16px}
 .th-ai-form-card{padding:13px}
 .th-ai-summary dl{grid-template-columns:minmax(0,1fr);gap:2px}
 .th-ai-summary dt{margin-top:7px}
 .th-ai-summary dd{padding-bottom:4px}
 .th-ai-compose{flex:0 0 auto;gap:8px;padding:9px 9px 8px;background:#fff}
 .th-ai-compose input{height:48px;padding:0 12px;border-radius:13px;font-size:16px}
 .th-ai-compose button{flex:0 0 auto;min-width:82px;min-height:48px;padding:0 12px;border-radius:13px}
 .th-ai-bottom-tools{flex:0 0 auto;gap:8px;padding:0 11px calc(8px + env(safe-area-inset-bottom));background:#fff}
 .th-ai-bottom-tools .th-ai-text-btn{min-height:32px;text-align:left}
 .th-ai-bottom-tools .th-ai-text-btn:last-child{text-align:right}
 .th-ai-modal{position:fixed;inset:0;align-items:flex-end;padding-top:env(safe-area-inset-top)}
 .th-ai-modal-card{width:100%;max-height:calc(var(--th-ai-vv-height,100dvh) - 18px - env(safe-area-inset-top));padding:15px 12px calc(15px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0}
 .th-ai-compare-grid{grid-template-columns:minmax(0,1fr)}
 .th-ai-compare-card dl{grid-template-columns:minmax(82px,.75fr) minmax(0,1.25fr)}
 .th-ai-compare-bar{flex-wrap:wrap}
 .th-ai-compare-bar button{min-height:40px}
}

@media(max-width:360px){
 .th-ai-head{padding-left:10px}
 .th-ai-head-title span{display:none}
 .th-ai-icon-btn{width:40px;height:40px}
 .th-ai-body{padding-left:8px;padding-right:8px}
 .th-ai-product-top{grid-template-columns:72px minmax(0,1fr);gap:8px;padding:9px}
 .th-ai-product-image{width:72px;height:92px}
 .th-ai-compose{padding-left:7px;padding-right:7px}
 .th-ai-compose button{min-width:72px;padding:0 9px;font-size:12px}
 .th-ai-bottom-tools{padding-left:8px;padding-right:8px}
 .th-ai-text-btn{font-size:10px}
}

@media(max-height:520px) and (orientation:landscape){
 .th-ai-head{min-height:54px;padding-top:7px;padding-bottom:7px}
 .th-ai-head-title span{display:none}
 .th-ai-icon-btn{width:40px;height:40px}
 .th-ai-body{padding-top:9px}
 .th-ai-bottom-tools{display:none}
}

/* V7.2.0 – compact desktop panel and edge minimization */
.th-ai-edge-tab,
.th-ai-edge-tab *{box-sizing:border-box}
.th-ai-edge-tab{position:fixed;right:0;top:50%;z-index:99992;display:none;width:42px;min-height:126px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 6px;border:1px solid rgba(255,255,255,.22);border-right:0;border-radius:14px 0 0 14px;background:#111;color:#fff;font:inherit;font-weight:750;cursor:pointer;box-shadow:0 14px 34px rgba(0,0,0,.28);transform:translateY(-50%)}
.th-ai-edge-tab:hover,.th-ai-edge-tab:focus-visible{width:46px;outline:2px solid rgba(17,17,17,.28);outline-offset:2px}
.th-ai-edge-arrow{font-size:25px;line-height:1}
.th-ai-edge-label{display:block;writing-mode:vertical-rl;transform:rotate(180deg);font-size:12px;letter-spacing:.04em;white-space:nowrap}
.th-ai-root.is-open .th-ai-launcher,
.th-ai-root.is-minimized .th-ai-launcher{display:none!important}
.th-ai-root.is-minimized .th-ai-edge-tab{display:flex}
.th-ai-root.is-open .th-ai-edge-tab{display:none!important}
.th-ai-minimize-btn{font-size:28px;line-height:1}

@media(min-width:641px){
 .th-ai-panel{width:min(460px,calc(100vw - 24px));height:min(720px,calc(100dvh - 104px))}
}

@media(max-width:640px){
 .th-ai-edge-tab{right:0;top:52%;width:38px;min-height:108px;padding:9px 5px;border-radius:13px 0 0 13px}
 .th-ai-edge-tab:hover,.th-ai-edge-tab:focus-visible{width:40px}
 .th-ai-edge-label{font-size:11px}
 .th-ai-edge-arrow{font-size:23px}
}

@media(max-width:360px){
 .th-ai-head-actions{gap:4px}
 .th-ai-icon-btn{width:38px;height:38px}
 .th-ai-head-title strong{font-size:15px}
}

/* V7.2.1 – jediný spúšťač na pravom okraji, bez spodného plávajúceho tlačidla */
.th-ai-launcher{display:none!important}
.th-ai-root:not(.is-open) .th-ai-edge-tab{display:flex!important}
.th-ai-root.is-open .th-ai-edge-tab{display:none!important}
.th-ai-edge-tab{overflow:visible}
.th-ai-edge-badge{position:absolute;left:-7px;top:-7px;display:none;min-width:22px;height:22px;padding:0 6px;align-items:center;justify-content:center;border:2px solid #fff;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;line-height:1;box-shadow:0 4px 12px rgba(0,0,0,.22)}
.th-ai-edge-badge.has-items{display:inline-flex}
@media(max-width:640px){
 .th-ai-edge-tab{right:0!important;bottom:auto!important}
}
