#luh-ia-root{font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;position:fixed;right:22px;bottom:22px;z-index:999999;color:#243042}#luh-ia-root *{box-sizing:border-box}#luh-ia-root button{cursor:pointer}#luh-ia-root .cai-launch{border:0;border-radius:50px;background:var(--cai-primary,#243b55);color:white;padding:14px 18px;box-shadow:0 8px 24px #0003;font-weight:700}#luh-ia-root .cai-panel{position:absolute;right:0;bottom:65px;width:min(390px,calc(100vw - 24px));height:min(590px,calc(100dvh - 110px));background:#fff;border:1px solid #dfe5ed;border-radius:17px;box-shadow:0 12px 45px #0003;overflow:hidden;display:flex;flex-direction:column}#luh-ia-root .cai-panel[hidden]{display:none}#luh-ia-root header{background:var(--cai-primary,#243b55);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:16px}#luh-ia-root .cai-close{color:white;background:none;border:0;font-size:25px}#luh-ia-root .cai-feed{padding:14px;flex:1;overflow:auto;background:#f7f9fc}#luh-ia-root .cai-msg{background:#fff;border:1px solid #e2e7ef;border-radius:12px;padding:10px 12px;margin:0 0 10px;max-width:90%;white-space:pre-wrap}#luh-ia-root .cai-msg.user{margin-left:auto;background:#e7effa}#luh-ia-root .cai-product{display:flex;gap:10px;background:#fff;padding:10px;border:1px solid #e2e7ef;border-radius:12px;margin-bottom:9px}#luh-ia-root .cai-product img{width:66px;height:75px;object-fit:contain}#luh-ia-root .cai-product>div{min-width:0;flex:1}#luh-ia-root .cai-product a{color:#1d426f;font-weight:650;text-decoration:none}#luh-ia-root .cai-product p{margin:4px 0}#luh-ia-root .cai-product small{color:#667085}#luh-ia-root .cai-actions{display:flex;gap:10px;align-items:center;margin-top:7px}#luh-ia-root .cai-actions button,#luh-ia-root .cai-form button,#luh-ia-root .cai-coupon button{border:0;background:var(--cai-primary,#243b55);color:white;border-radius:8px;padding:8px 10px}#luh-ia-root .cai-quick{display:flex;gap:8px;padding:8px 12px}#luh-ia-root .cai-quick button{border:1px solid #d5dfe9;background:#fff;border-radius:20px;padding:6px 12px}#luh-ia-root .cai-form,#luh-ia-root .cai-coupon{display:flex;gap:6px;padding:6px 12px}#luh-ia-root input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:9px;font:inherit}#luh-ia-root footer{text-align:center;padding:10px}#luh-ia-root footer a{color:#1d426f;font-weight:700}@media(max-width:480px){#luh-ia-root{right:12px;bottom:12px}#luh-ia-root .cai-panel{bottom:58px}}

#luh-ia-root.cai-left{left:22px;right:auto}#luh-ia-root.cai-left .cai-panel{left:0;right:auto}#luh-ia-root .cai-launch{max-width:calc(100vw - 32px)}#luh-ia-root .cai-quick button{white-space:nowrap}#luh-ia-root .cai-product p{overflow-wrap:anywhere}@media(max-width:480px){#luh-ia-root.cai-left{left:12px;right:auto}}
/* 0.5.1 — responsive commerce experience */
#luh-ia-root .cai-panel{height:min(650px,calc(100dvh - 100px));transition:width .2s ease,height .2s ease;}
#luh-ia-root .cai-panel.cai-expanded{width:min(840px,calc(100vw - 30px));height:min(850px,calc(100dvh - 35px));}
#luh-ia-root .cai-header{flex-shrink:0;gap:12px;min-height:60px}
#luh-ia-root .cai-header-actions{display:flex;align-items:center;gap:5px}
#luh-ia-root .cai-header-actions button{border:0;background:transparent;color:#fff;font-size:24px;width:36px;height:36px;line-height:1;border-radius:8px}
#luh-ia-root .cai-header-actions button:hover,#luh-ia-root .cai-header-actions button:focus-visible{background:#ffffff22}
#luh-ia-root .cai-tabs{display:flex;flex-shrink:0;background:#fff;border-bottom:1px solid #e4e9f0;padding:0 12px;gap:4px}
#luh-ia-root .cai-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:#5d6b7d;padding:11px 12px;font:inherit;font-weight:600}
#luh-ia-root .cai-tab.is-active{border-bottom-color:var(--cai-primary,#243b55);color:var(--cai-primary,#243b55)}
#luh-ia-root .cai-count{background:#e8edf6;border-radius:20px;padding:2px 6px;margin-left:4px}
#luh-ia-root .cai-chat,#luh-ia-root .cai-cart-view{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
#luh-ia-root .cai-chat[hidden],#luh-ia-root .cai-cart-view[hidden]{display:none}
#luh-ia-root .cai-feed{min-height:0}
#luh-ia-root .cai-product{align-items:flex-start;padding:9px;gap:10px}
#luh-ia-root .cai-thumb{width:56px;min-width:56px;height:70px;display:flex;align-items:center;justify-content:center;background:#f5f7fa;border:1px solid #e9edf3;border-radius:7px;overflow:hidden}
#luh-ia-root .cai-thumb img,#luh-ia-root .cai-product .cai-thumb img{display:block;width:100%;height:100%;object-fit:contain}
#luh-ia-root .cai-product-name,#luh-ia-root .cai-item-name{display:block;overflow-wrap:anywhere}
#luh-ia-root .cai-product .cai-actions{flex-wrap:wrap}
#luh-ia-root .cai-cart-content{flex:1;min-height:0;overflow:auto;background:#f7f9fc;padding:12px}
#luh-ia-root .cai-cart-item{display:flex;align-items:flex-start;gap:10px;padding:12px;background:#fff;border:1px solid #e3e9f1;border-radius:12px;margin-bottom:9px}
#luh-ia-root .cai-cart-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
#luh-ia-root .cai-cart-details small{color:#667085}
#luh-ia-root .cai-cart-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#luh-ia-root .cai-stepper{display:flex;align-items:center;border:1px solid #d7dfeb;border-radius:8px;overflow:hidden}
#luh-ia-root .cai-stepper button{background:#fff;color:#26384e;border:0;padding:4px 10px;font-size:17px}
#luh-ia-root .cai-stepper span{min-width:20px;text-align:center}
#luh-ia-root .cai-remove{background:transparent;border:0;color:#8b3643;font-size:12px;padding:5px}
#luh-ia-root .cai-item-subtotal{font-size:13px}
#luh-ia-root .cai-cart-bottom{border-top:1px solid #e4e9f0;background:#fff;padding:10px 12px;display:flex;flex-direction:column;gap:8px;flex-shrink:0}
#luh-ia-root .cai-cart-bottom .cai-coupon{padding:0}
#luh-ia-root .cai-totals>div{display:flex;justify-content:space-between;gap:8px;padding:2px 0}
#luh-ia-root .cai-totals small{color:#667085;font-size:11px;display:block;margin-top:5px}
#luh-ia-root .cai-checkout{display:block;text-align:center;background:var(--cai-primary,#243b55);color:#fff;text-decoration:none;border-radius:8px;padding:11px;font-weight:700}
#luh-ia-root .cai-cart-link{text-align:center;color:#244c7a;text-decoration:none;font-size:12px}
#luh-ia-root .cai-empty{text-align:center;padding:35px 10px;color:#56657a}
#luh-ia-root .cai-empty small{color:#718096}
#luh-ia-root .is-loading{opacity:.55;pointer-events:none}
@media(max-width:600px){#luh-ia-root .cai-panel,#luh-ia-root .cai-panel.cai-expanded{position:fixed;inset:0!important;width:100vw;height:100dvh;max-height:none;border-radius:0;border:0}#luh-ia-root .cai-header{padding-top:max(12px,env(safe-area-inset-top))}#luh-ia-root .cai-cart-bottom{padding-bottom:max(10px,env(safe-area-inset-bottom))}}

/* 0.5.2 — persistent, collapsible WooCommerce cart summary */
#luh-ia-root .cai-cart-dock{flex-shrink:0;background:#fff;border-top:1px solid #e0e7f0;box-shadow:0 -3px 10px #192a4210}
#luh-ia-root .cai-cart-dock[hidden],#luh-ia-root .cai-cart-dock-details[hidden]{display:none!important}
#luh-ia-root .cai-cart-dock-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:10px 13px;background:#fff;border:0;color:#1c2b43;text-align:left;font:inherit}
#luh-ia-root .cai-dock-label{font-weight:700;flex:1;min-width:0}
#luh-ia-root .cai-dock-count{font-weight:400;font-size:12px;color:#667085}
#luh-ia-root .cai-dock-total{font-size:13px;white-space:nowrap}
#luh-ia-root .cai-dock-arrow{font-size:18px;color:#667085;transition:transform .15s}
#luh-ia-root .cai-cart-dock-toggle[aria-expanded=true] .cai-dock-arrow{transform:rotate(180deg)}
#luh-ia-root .cai-cart-dock-details{padding:0 12px 10px;border-top:1px solid #eef1f6}
#luh-ia-root .cai-cart-dock-items{max-height:180px;overflow-y:auto;overscroll-behavior:contain}
#luh-ia-root .cai-dock-item{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #f0f2f6;font-size:12px}
#luh-ia-root .cai-dock-image{width:42px;height:52px;flex:0 0 42px;border:1px solid #e8edf3;border-radius:5px;overflow:hidden;background:#f8fafc}
#luh-ia-root .cai-dock-image img{display:block;width:100%;height:100%;object-fit:contain}
#luh-ia-root .cai-dock-item-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#luh-ia-root .cai-dock-item-info a{color:#1c426e;text-decoration:none;font-weight:650;overflow-wrap:anywhere}
#luh-ia-root .cai-dock-item-info small{color:#667085}
#luh-ia-root .cai-dock-item>strong{white-space:nowrap;font-size:12px}
#luh-ia-root .cai-dock-open{display:block;width:100%;border:1px solid #d4deeb;border-radius:8px;background:#f8fafd;color:#1c2b43;font-weight:700;padding:9px;margin-top:9px}
#luh-ia-root .cai-dock-open:hover{background:#eaf0f8}
#luh-ia-root .cai-cart-dock-toggle:focus-visible,#luh-ia-root .cai-dock-open:focus-visible{outline:2px solid #315ea0;outline-offset:-2px}

/* 0.5.3 — compact, interactive cart with real WooCommerce product thumbnails */
#luh-ia-root .cai-dock-item{align-items:flex-start}
#luh-ia-root .cai-dock-item-info{gap:4px}
#luh-ia-root .cai-dock-item-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:3px}
#luh-ia-root .cai-dock-stepper{display:inline-flex;align-items:center;border:1px solid #d5deea;border-radius:6px;overflow:hidden;background:#fff}
#luh-ia-root .cai-dock-stepper button{border:0;background:#f7f9fc;color:#1c2b43;min-width:25px;min-height:25px;font-size:15px;padding:2px 5px}
#luh-ia-root .cai-dock-stepper button:disabled{opacity:.35;cursor:not-allowed}
#luh-ia-root .cai-dock-stepper span{min-width:24px;text-align:center;font-weight:650;font-size:12px}
#luh-ia-root .cai-dock-remove{border:0;background:transparent;color:#9b3346;font-size:11px;padding:3px 1px}
#luh-ia-root .cai-dock-breakdown{padding:7px 0;border-top:1px solid #edf1f6;font-size:12px}
#luh-ia-root .cai-dock-breakdown>div{display:flex;justify-content:space-between;gap:8px;padding:2px 0}
#luh-ia-root .cai-dock-breakdown>div:last-of-type{font-weight:700;color:#1c2b43}
#luh-ia-root .cai-dock-breakdown small{display:block;margin-top:5px;font-size:10px;color:#667085}
#luh-ia-root .cai-dock-error{font-size:11px;color:#9b3346}
#luh-ia-root .cai-cart-dock-items{max-height:min(200px,25dvh)}
#luh-ia-root .cai-cart-dock-details{max-height: min(320px,42dvh);overflow-y:auto;overscroll-behavior:contain}
#luh-ia-root .cai-panel.cai-expanded{max-height:calc(100dvh - 35px)}
@media(min-width:601px){#luh-ia-root .cai-panel.cai-expanded{width:min(840px,calc(100vw - 30px));height:min(850px,calc(100dvh - 35px))}}

/* 0.5.6: one cart entry point, accessible controls and consolidated checkout */
#luh-ia-root .cai-cart-dock-toggle{min-height:48px;padding:10px 13px;gap:10px;transition:background-color .16s,color .16s}
#luh-ia-root .cai-cart-dock-toggle:hover{background:#f0f5fb;color:#14243d}
#luh-ia-root .cai-cart-dock-toggle:focus-visible{outline:3px solid #4c78ad;outline-offset:-3px;background:#eef4fb}
#luh-ia-root .cai-dock-arrow{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#e9eff7;color:#1c2b43;transition:transform .18s,background-color .18s,color .18s}
#luh-ia-root .cai-cart-dock-toggle:hover .cai-dock-arrow,#luh-ia-root .cai-cart-dock-toggle:focus-visible .cai-dock-arrow{background:#1c2b43;color:#fff}
#luh-ia-root .cai-dock-arrow svg{display:block;stroke:currentColor}
#luh-ia-root .cai-cart-dock-toggle[aria-expanded=true] .cai-dock-arrow{transform:rotate(180deg)}
#luh-ia-root .cai-cart-dock-details{padding:6px 12px 12px;max-height:min(360px,47dvh)}
#luh-ia-root .cai-cart-dock-items{max-height:min(190px,23dvh)}
#luh-ia-root .cai-dock-coupon{display:flex;gap:7px;margin-top:10px}
#luh-ia-root .cai-dock-coupon input{min-width:0;flex:1;padding:8px 9px}
#luh-ia-root .cai-dock-coupon button{border:0;border-radius:8px;padding:8px 11px;background:var(--cai-primary,#243b55);color:#fff;font:inherit;font-weight:650}
#luh-ia-root .cai-dock-links{display:flex;flex-direction:column;gap:8px;margin-top:10px;text-align:center}
#luh-ia-root .cai-dock-checkout{display:block;background:var(--cai-primary,#243b55);color:#fff!important;text-decoration:none;border-radius:9px;padding:11px 12px;font-weight:700}
#luh-ia-root .cai-dock-checkout:hover{filter:brightness(1.13)}
#luh-ia-root .cai-dock-cartlink{color:#244c7a;text-decoration:none;font-size:12px;font-weight:650}
#luh-ia-root .cai-dock-stepper button:hover:not(:disabled){background:#e5ecf5}
#luh-ia-root .cai-dock-remove:hover{text-decoration:underline;color:#842339}
#luh-ia-root .cai-dock-error:empty{display:none}
#luh-ia-root .cai-dock-error:not(:empty){padding:7px;background:#fff2f3;border-radius:6px}
#luh-ia-root .cai-panel .cai-feed{min-height:100px}
@media(max-width:600px){#luh-ia-root .cai-cart-dock-details{max-height:42dvh}}

/* 0.6.0 — preserve useful conversation space while the cart is open */
#luh-ia-root .cai-cart-dock-details{max-height:min(300px,39dvh)}
#luh-ia-root .cai-cart-dock-items{max-height:min(150px,18dvh)}
#luh-ia-root .cai-panel .cai-feed{min-height:150px}
#luh-ia-root .cai-panel.cai-expanded .cai-cart-dock-details{max-height:min(440px,50dvh)}
#luh-ia-root .cai-panel.cai-expanded .cai-cart-dock-items{max-height:220px}
@media(max-width:600px){#luh-ia-root .cai-cart-dock-details{max-height:38dvh}#luh-ia-root .cai-panel .cai-feed{min-height:120px}}

/* 0.6.1 — cleaner premium shopping interaction */
#luh-ia-root .cai-product{border-radius:13px;box-shadow:0 2px 10px rgba(20,37,58,.035)}
#luh-ia-root .cai-product .cai-actions button{transition:background-color .16s,transform .16s}
#luh-ia-root .cai-product .cai-actions button:hover{transform:translateY(-1px)}
#luh-ia-root .cai-feed{scrollbar-width:thin;scrollbar-color:#aebaca transparent}
#luh-ia-root .cai-dock-item-info a:hover{text-decoration:underline}

/* 0.6.5 — compact product comparison, no duplicated cart navigation */
#luh-ia-root .cai-compare-bar{display:flex;align-items:center;gap:7px;padding:9px 11px;border-top:1px solid #e4e9ef;background:#f5f8fc;flex-wrap:wrap}
#luh-ia-root .cai-compare-bar[hidden]{display:none}
#luh-ia-root .cai-compare-count{font-size:12px;color:#344761;font-weight:700;flex:1}
#luh-ia-root .cai-compare-bar button{border:1px solid #cbd5e2;background:white;color:#253d5b;padding:7px 10px;border-radius:8px;font-size:12px;cursor:pointer;font-weight:650}
#luh-ia-root .cai-compare-bar .cai-compare-run{background:var(--cai-primary,#18283f);color:white;border-color:transparent}
#luh-ia-root .cai-compare-bar button:disabled{opacity:.48;cursor:not-allowed}
#luh-ia-root .cai-compare-select{font-size:11px!important;border:1px solid #b8c7d9!important;background:#f3f6fb!important;color:#233e5b!important;padding:5px 7px!important;border-radius:7px!important}
#luh-ia-root .cai-compare-select.is-selected{background:#dfece8!important;border-color:#7fb5a5!important;color:#175944!important}
#luh-ia-root .cai-compare-result{display:flex;gap:10px;padding:11px;background:white;border:1px solid #e2e8f0;border-radius:12px;margin:8px 0;box-shadow:0 2px 8px rgba(10,28,52,.04)}
#luh-ia-root .cai-compare-result>a{flex:none;width:55px}
#luh-ia-root .cai-compare-result img{width:55px;height:70px;object-fit:contain;border-radius:5px}
#luh-ia-root .cai-compare-result>div{min-width:0;display:flex;flex-direction:column;gap:4px;flex:1}
#luh-ia-root .cai-compare-result .cai-compare-name{font-weight:700;font-size:13px;line-height:1.35;color:#1b3654;text-decoration:none}
#luh-ia-root .cai-compare-result strong{font-size:13px;color:#172e4c}
#luh-ia-root .cai-compare-result small{font-size:11px;color:#536477}
#luh-ia-root .cai-compare-result p{font-size:11px;color:#4a5d73;line-height:1.4;margin:2px 0}
#luh-ia-root .cai-compare-result .cai-compare-details{font-size:11px;color:#254d76;text-decoration:none}

/* 0.6.6: visible selection, clear comparison flow, theme-independent quick buttons */
#luh-ia-root .cai-compare-bar{display:flex!important;flex-direction:column;align-items:stretch;gap:7px;padding:10px 12px;background:#edf3fa!important;border-top:1px solid #cbd9e9;flex:0 0 auto;max-height:155px;overflow:auto}
#luh-ia-root .cai-compare-bar[hidden]{display:none!important}
#luh-ia-root .cai-compare-summary{width:100%;display:flex;flex-direction:column;gap:5px}
#luh-ia-root .cai-compare-count{font-size:12px;color:#1c2b43!important}
#luh-ia-root .cai-compare-hint{font-size:11px;color:#425b79!important}
#luh-ia-root .cai-compare-picked{display:flex;gap:5px;flex-wrap:wrap}
#luh-ia-root .cai-compare-chip{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1px solid #c9d6e7;border-radius:7px;padding:3px 5px;max-width:100%;font-size:11px;color:#203c5c}
#luh-ia-root .cai-compare-chip span{max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#luh-ia-root .cai-compare-chip button{padding:0 4px!important;background:transparent!important;color:#8c2943!important;border:0!important;font-size:17px!important;line-height:1!important}
#luh-ia-root .cai-compare-bar>.cai-compare-run{order:2;min-height:34px;background:#1c2b43!important;color:#fff!important;font-weight:700}
#luh-ia-root .cai-compare-bar>.cai-compare-clear{order:3;align-self:center;background:transparent!important;color:#294a70!important;border:0!important;padding:2px 8px}
#luh-ia-root .cai-quick button,#luh-ia-root .cai-quick button:hover,#luh-ia-root .cai-quick button:focus,#luh-ia-root .cai-quick button:active{background:#fff!important;color:#1c3657!important;border:1px solid #c8d7e8!important;box-shadow:none!important;text-shadow:none!important;opacity:1!important;font-weight:600!important}
#luh-ia-root .cai-quick button:hover,#luh-ia-root .cai-quick button:focus-visible{background:#eaf1f9!important;color:#122943!important}
#luh-ia-root .cai-product .cai-actions{gap:6px}
#luh-ia-root .cai-product .cai-compare-select{color:#1b3e63!important;background:#edf3fa!important;border:1px solid #b5c8dd!important}
#luh-ia-root .cai-product .cai-compare-select.is-selected{background:#dceee8!important;color:#14513f!important;border-color:#85b8a4!important}

/* 0.8.0 - Pedido autenticado e rastreio */
#luh-ia-root .cai-order-card{display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}#luh-ia-root .cai-order-card small{opacity:.8}#luh-ia-root .cai-order-card a{font-weight:700;color:#183e7a;text-decoration:underline}

/* v0.8.1: confirmação explícita das operações de carrinho */
#luh-ia-root .cai-action-confirm{display:flex;flex-direction:column;gap:10px}
#luh-ia-root .cai-action-buttons{display:flex;gap:8px;flex-wrap:wrap}
#luh-ia-root .cai-action-buttons button{background:#243b55;color:#fff;border:1px solid #243b55;border-radius:9px;padding:8px 12px;cursor:pointer;font-weight:600}
#luh-ia-root .cai-action-buttons button+button{background:#f4f6f9;color:#243b55;border-color:#d9e1e9}
#luh-ia-root .cai-action-buttons button:disabled{opacity:.55;cursor:not-allowed}

/* v0.8.2: layout responsivo de comparação; sem rolagem horizontal */
#luh-ia-root .cai-chat,#luh-ia-root .cai-feed{min-width:0;max-width:100%;overflow-x:hidden!important}
#luh-ia-root .cai-feed{overflow-y:auto;overscroll-behavior:contain}
#luh-ia-root .cai-product,#luh-ia-root .cai-compare-result{min-width:0;max-width:100%;width:100%}
#luh-ia-root .cai-product .cai-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
#luh-ia-root .cai-product .cai-actions>*{max-width:100%;white-space:normal;flex:0 0 auto}
#luh-ia-root .cai-product .cai-actions a{overflow-wrap:anywhere}
#luh-ia-root .cai-compare-bar{display:flex!important;flex-direction:column;align-items:stretch;gap:5px;padding:8px 12px;max-height:116px;overflow-x:hidden!important;overflow-y:auto;min-width:0;flex-shrink:0}
#luh-ia-root .cai-compare-bar[hidden]{display:none!important}
#luh-ia-root .cai-compare-summary{min-width:0;gap:3px}
#luh-ia-root .cai-compare-picked{display:flex;flex-wrap:nowrap;overflow-x:hidden;gap:4px;min-width:0}
#luh-ia-root .cai-compare-chip{min-width:0;max-width:100%;flex-shrink:1}
#luh-ia-root .cai-compare-chip span{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#luh-ia-root .cai-compare-bar>.cai-compare-run{order:2;min-height:30px;padding:5px 9px;width:100%}
#luh-ia-root .cai-compare-bar>.cai-compare-clear{order:3;padding:0 6px;font-size:11px}
#luh-ia-root .cai-compare-hint{font-size:10px}
#luh-ia-root .cai-quick{min-width:0;flex-wrap:wrap}
#luh-ia-root .cai-quick button{max-width:100%}
#luh-ia-root .cai-form{min-width:0}
@media(max-width:480px){#luh-ia-root .cai-panel{max-width:calc(100vw - 24px)}#luh-ia-root .cai-product img{max-width:100%}}

/* v0.8.3: corrigir regressao: largura do painel nao pode ser limitada pelo launcher. */
#luh-ia-root .cai-panel{box-sizing:border-box;max-width:calc(100vw - 24px)!important;min-width:0;overflow-x:hidden!important}
#luh-ia-root .cai-panel.cai-expanded{max-width:calc(100vw - 30px)!important}
#luh-ia-root .cai-panel .cai-chat,#luh-ia-root .cai-panel .cai-feed{width:100%;min-width:0}
@media(max-width:600px){#luh-ia-root .cai-panel,#luh-ia-root .cai-panel.cai-expanded{max-width:100vw!important;width:100vw!important}}

/* v0.8.5: informações dentro da conversa, sem navegação obrigatória */
#luh-ia-root .cai-product-details{width:100%;max-width:100%;min-width:0;background:#fff;border:1px solid #dce5ef;border-radius:13px;padding:13px;margin:8px 0 12px;overflow-wrap:anywhere;box-shadow:0 2px 12px #10233b0a}
#luh-ia-root .cai-product-details>strong{display:block;font-size:14px;color:#192e49;margin-bottom:9px}
#luh-ia-root .cai-details-head{display:flex;align-items:center;gap:12px;margin-bottom:9px}
#luh-ia-root .cai-details-head img{width:72px;height:88px;object-fit:contain;flex:none}
#luh-ia-root .cai-details-head>div{display:flex;flex-direction:column;gap:5px;min-width:0}
#luh-ia-root .cai-product-details p{font-size:12px;line-height:1.55;color:#43536a;margin:7px 0;white-space:pre-wrap}
#luh-ia-root .cai-details-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:12px}
#luh-ia-root .cai-details-actions button{border:0;border-radius:8px;background:var(--cai-primary,#243b55);color:white;padding:9px 12px;cursor:pointer}
#luh-ia-root .cai-details-actions a{font-size:12px;color:#254d76;text-decoration:none}
#luh-ia-root .cai-actions .cai-more{background:#f0f5fb!important;color:#1b3e63!important;border:1px solid #b5c8dd!important}

/* v0.8.6 — Header icons: exact center alignment, independent of Electro theme styles. */
#luh-ia-root .cai-header-actions{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0}
#luh-ia-root .cai-header-actions .cai-expand,#luh-ia-root .cai-header-actions .cai-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;flex:0 0 40px;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0!important;padding:0!important;line-height:1!important;appearance:none;-webkit-appearance:none;border:0!important;border-radius:9px!important;background:transparent;color:#fff;box-shadow:none!important;transform:none!important}
#luh-ia-root .cai-header-actions button svg{display:block!important;position:static!important;width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;margin:0!important;padding:0!important;transform:none!important;pointer-events:none}
#luh-ia-root .cai-header-actions button:hover,#luh-ia-root .cai-header-actions button:focus-visible{background:#ffffff22!important}
#luh-ia-root .cai-header-actions button:focus-visible{outline:2px solid #fff!important;outline-offset:-3px}

/* v0.8.7: uniform product actions, without forcing overflow on small screens. */
#luh-ia-root .cai-product .cai-actions{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap}
#luh-ia-root .cai-product .cai-actions button,#luh-ia-root .cai-product .cai-actions .cai-compare-select{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;height:38px!important;padding:7px 10px!important;font-size:12px!important;line-height:1.2!important;border-radius:8px!important;white-space:nowrap!important;font-weight:600!important}

/* v0.8.8 — shipping rates from native WooCommerce cart packages */
#luh-ia-root .cai-shipping-options{display:flex;flex-direction:column;gap:9px;padding:12px 0;border-top:1px solid #e2e7ef;min-width:0}
#luh-ia-root .cai-shipping-options>strong{font-size:13px;color:#1b2940}
#luh-ia-root .cai-shipping-options>small{font-size:11px;line-height:1.45;color:#64748b}
#luh-ia-root .cai-shipping-option{display:flex;align-items:center;gap:8px;min-width:0;padding:9px;border:1px solid #dce4ef;border-radius:10px;cursor:pointer;font-size:12px}
#luh-ia-root .cai-shipping-option input{flex:none;width:16px;height:16px;accent-color:#1b2940}
#luh-ia-root .cai-shipping-option span{min-width:0;flex:1;overflow-wrap:anywhere}
#luh-ia-root .cai-shipping-option strong{white-space:nowrap;font-size:12px}
#luh-ia-root .cai-shipping-option:has(input:checked){border-color:#1b2940;background:#f1f5fa}

/* v0.8.9 — CEP inline, sem alterar largura do painel */
#luh-ia-root .cai-shipping-cep{display:flex;gap:8px;min-width:0;align-items:center;margin:3px 0}
#luh-ia-root .cai-shipping-cep input{min-width:0;flex:1;width:0;box-sizing:border-box;padding:10px;border:1px solid #cbd5e1;border-radius:9px;font-size:13px}
#luh-ia-root .cai-shipping-cep button{flex:none;padding:10px 12px;border:0;border-radius:9px;background:#1b2940;color:white;font-size:12px;cursor:pointer}

/* Opt-in de recuperação de carrinho */
#luh-ia-root .cai-recovery-consent{padding:10px 12px;border-top:1px solid #e1e7f0;font-size:12px;color:#24334a;line-height:1.5}#luh-ia-root .cai-recovery-consent label{display:inline;cursor:pointer}#luh-ia-root .cai-recovery-consent input{vertical-align:middle;margin-right:4px}#luh-ia-root .cai-recovery-consent small{display:block;color:#67758a;margin-top:4px}

/* v0.9.21: atendimento humano opcional */
.cai-quick .cai-wa-human{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border-radius:9px;background:#e8f7ed;color:#17643c;text-decoration:none;font-size:12px;font-weight:700;border:1px solid #b7e5c8}.cai-quick .cai-wa-human:hover{background:#d6f1df;color:#115332}

/* v0.9.23: passagem de contexto para atendimento humano */
.cai-quick button.cai-wa-human{cursor:pointer;font-family:inherit}
.cai-handoff-overlay{position:fixed;inset:0;z-index:2147483646;background:rgba(21,35,56,.58);display:flex;align-items:center;justify-content:center;padding:16px}
.cai-handoff-dialog{width:min(440px,100%);max-height:min(85vh,700px);overflow:auto;background:#fff;color:#26374e;border-radius:17px;padding:20px;box-shadow:0 22px 70px rgba(0,0,0,.22);font:14px/1.5 system-ui,sans-serif}
.cai-handoff-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#1c2b43;font-size:18px}
.cai-handoff-close{background:transparent;border:0;font-size:27px;cursor:pointer;color:#526d82}
.cai-handoff-dialog p,.cai-handoff-dialog small{color:#607188}
.cai-handoff-check{display:flex;align-items:center;gap:9px;padding:9px 0;font-size:13px;cursor:pointer}
.cai-handoff-check input{accent-color:#2d8061}
.cai-handoff-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f6fa;border:1px solid #dfe6ed;border-radius:11px;padding:12px;margin:10px 0;font-size:12px;max-height:220px;overflow:auto}
.cai-handoff-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:17px}
.cai-handoff-actions button{padding:10px 14px;border-radius:9px;cursor:pointer;font-weight:650;border:1px solid #d5e0eb;background:#fff;color:#27374d}
.cai-handoff-actions .cai-handoff-send{background:#23784f;color:white;border-color:#23784f}
.cai-handoff-actions button:focus-visible,.cai-handoff-close:focus-visible{outline:3px solid #94b9ff;outline-offset:2px}

/* v0.9.25 — cupom validado no WooCommerce durante a continuidade do atendimento */
#luh-ia-root .cai-handoff-offer{padding:12px 14px;margin:10px 0;border:1px solid #dbe4ed;border-radius:12px;background:#f7f9fc;color:#24334c}
#luh-ia-root .cai-handoff-offer strong{display:block;font-size:13px;margin-bottom:5px}
#luh-ia-root .cai-handoff-offer p{font-size:12px;line-height:1.5;margin:0 0 9px}
#luh-ia-root .cai-handoff-coupon-row{display:flex;gap:7px;align-items:center}
#luh-ia-root .cai-handoff-coupon-code{flex:1;min-width:0;background:white;border:1px solid #cbd5e1;border-radius:8px;padding:9px;font-size:13px}
#luh-ia-root .cai-handoff-coupon-apply{border:0;background:#27374d;color:#fff;border-radius:8px;padding:10px 12px;cursor:pointer}
#luh-ia-root .cai-handoff-coupon-apply:disabled{opacity:.55;cursor:wait}
#luh-ia-root .cai-handoff-coupon-status{font-size:12px;margin:8px 0;line-height:1.4}

/* v0.9.26: premium handoff, sticky controls, compact card and mobile safe area */
#luh-ia-root .cai-handoff-overlay{padding:14px;z-index:2147483646}
#luh-ia-root .cai-handoff-dialog{box-sizing:border-box;width:min(490px,100%);max-height:min(88dvh,740px);padding:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dbe4ed;border-radius:22px;box-shadow:0 26px 80px #15233840;background:#fff}
#luh-ia-root .cai-handoff-heading{flex-shrink:0;padding:18px 20px;background:#fff;border-bottom:1px solid #edf1f6;gap:10px}
#luh-ia-root .cai-handoff-title{display:flex;gap:12px;align-items:center;min-width:0}
#luh-ia-root .cai-handoff-title strong{display:block;font-size:17px;line-height:1.25}
#luh-ia-root .cai-handoff-title small{display:block;color:#738199;font-size:11px;font-weight:400;margin-top:4px}
#luh-ia-root .cai-handoff-icon{display:grid;place-items:center;background:#27374d;color:#e5c18c;border-radius:12px;width:40px;height:40px;flex-shrink:0;font-size:21px}
#luh-ia-root .cai-handoff-close{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border:1px solid #e5eaf0;border-radius:10px;background:#f5f7fa;color:#27374d;font-size:23px}
#luh-ia-root .cai-handoff-body{padding:17px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
#luh-ia-root .cai-handoff-intro{font-size:12px;color:#697b92;margin:0 0 14px}
#luh-ia-root .cai-handoff-summary{padding:13px;background:#f5f8fb;border:1px solid #e4eaf2;border-radius:12px;margin-bottom:12px;font-size:12px}
#luh-ia-root .cai-handoff-summary strong{display:block;margin-bottom:6px;color:#27374d}
#luh-ia-root .cai-handoff-products{display:grid;gap:4px;color:#607188}
#luh-ia-root .cai-handoff-options{display:grid;gap:0;border:1px solid #e4eaf2;border-radius:12px;padding:5px 13px}
#luh-ia-root .cai-handoff-check{display:flex;align-items:center;gap:12px;padding:11px 0;margin:0;font-size:12px;line-height:1.35;color:#27374d;font-weight:600}
#luh-ia-root .cai-handoff-options .cai-handoff-check+.cai-handoff-check{border-top:1px solid #edf1f6}
#luh-ia-root .cai-handoff-check input{width:16px;height:16px;flex-shrink:0;accent-color:#267c61;margin:0}
#luh-ia-root .cai-handoff-check small{display:block;font-size:11px;color:#7b8899;font-weight:400;margin-top:2px}
#luh-ia-root details.cai-handoff-offer{display:block;margin:12px 0;background:#f8fafc;padding:0 13px;border:1px solid #e4eaf2;border-radius:12px}
#luh-ia-root .cai-handoff-offer summary{padding:13px 0;font-size:12px;font-weight:700;cursor:pointer;color:#27374d}
#luh-ia-root .cai-handoff-offer p{margin:0 0 10px}
#luh-ia-root .cai-handoff-offer .cai-handoff-check{margin:6px 0}
#luh-ia-root .cai-handoff-preview-title{font-size:12px;font-weight:700;color:#27374d;margin-top:15px}
#luh-ia-root .cai-handoff-preview{max-height:155px;margin:8px 0 0;font-size:12px;line-height:1.65;padding:13px;background:#f5f8fb;border-color:#e4eaf2}
#luh-ia-root .cai-handoff-footnote{font-size:11px;color:#77869a;margin:11px 0 0}
#luh-ia-root .cai-handoff-actions{flex-shrink:0;position:relative;margin:0;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid #e8edf3;background:#fff;display:flex;justify-content:flex-end;gap:9px}
#luh-ia-root .cai-handoff-actions .cai-handoff-send{background:#27374d;border-color:#27374d;color:#fff}
@media(max-width:480px){#luh-ia-root .cai-handoff-overlay{padding:8px}#luh-ia-root .cai-handoff-dialog{max-height:92dvh;border-radius:18px}#luh-ia-root .cai-handoff-heading{padding:14px}#luh-ia-root .cai-handoff-body{padding:14px}#luh-ia-root .cai-handoff-actions{padding:12px 14px}}

/* v0.9.27: atendimento simples, sem etapa de recuperação */
#luh-ia-root .cai-handoff-simple{max-height:min(85dvh,520px)}
#luh-ia-root .cai-handoff-simple .cai-handoff-body{padding:22px 20px 18px}
#luh-ia-root .cai-handoff-simple .cai-handoff-intro{font-size:13px;line-height:1.6;margin-bottom:17px}
#luh-ia-root .cai-handoff-simple .cai-handoff-check{justify-content:flex-start;gap:13px;text-align:left;font-size:13px;padding:14px 2px}
#luh-ia-root .cai-handoff-simple .cai-handoff-check span{flex:1}
#luh-ia-root .cai-handoff-simple .cai-handoff-note{font-size:12px;line-height:1.6;color:#697b92;margin:16px 0 0}
#luh-ia-root .cai-handoff-simple .cai-handoff-send{background:#267c61;border-color:#267c61}
@media(max-width:480px){#luh-ia-root .cai-handoff-simple .cai-handoff-actions{flex-wrap:wrap}#luh-ia-root .cai-handoff-simple .cai-handoff-send{flex:1}}

/* v0.9.30: single scroll surface for the compact cart drawer. */
#luh-ia-root .cai-cart-dock-details{max-height:min(390px,55dvh);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
#luh-ia-root .cai-cart-dock-items{max-height:none!important;overflow:visible!important;overscroll-behavior:auto}
#luh-ia-root .cai-dock-item-info{min-width:0}
@media(max-width:480px){#luh-ia-root .cai-cart-dock-details{max-height:min(360px,48dvh)}}
