/* Scoped to the store assistant: product selection stays on the existing product page. */
body.storefront .ai-panel{width:min(420px,calc(100vw - 24px));max-height:min(710px,calc(100dvh - 104px))}
body.storefront .ai-panel[hidden]{display:none}
body.storefront:has(.whatsapp:not(.hidden)) .ai-panel{max-height:min(710px,calc(100dvh - 168px))}
body.storefront .ai-header,body.storefront .ai-panel form,body.storefront .ai-privacy{flex-shrink:0}
body.storefront .ai-header{gap:12px;padding:12px 16px}
body.storefront .ai-header .icon-btn{min-width:40px;min-height:40px;justify-content:center}
body.storefront .ai-body{min-height:0;flex:1;overscroll-behavior:contain;scrollbar-gutter:stable;padding:14px}
body.storefront .ai-message{padding:12px;white-space:normal;line-height:1.55;overflow-wrap:anywhere}
body.storefront .ai-answer{white-space:pre-line}
body.storefront .ai-product-card{background:#fff;border:1px solid #bed9f0;border-radius:12px;margin-top:12px;padding:11px;color:#123c65}
body.storefront .ai-product-overview{display:grid;grid-template-columns:64px minmax(0,1fr);gap:11px;align-items:center}
body.storefront .ai-product-image{width:64px;height:64px;object-fit:contain;border:1px solid #e1ebf5;border-radius:8px;background:#fff}
body.storefront .ai-product-placeholder{display:flex;align-items:center;justify-content:center;font-size:11px;color:#526d8c}
body.storefront .ai-product-summary{min-width:0}
body.storefront .ai-product-summary b{display:block;font-size:13px;line-height:1.4}
body.storefront .ai-product-summary small{display:block;font-size:11px;color:#526d8c;margin:3px 0}
body.storefront .ai-product-price{display:block;color:#005acb;font-size:16px;line-height:1.5}
body.storefront .ai-product-card p{margin:8px 0 0;font-size:12px;line-height:1.45;letter-spacing:normal}
body.storefront .ai-product-availability{color:#205e58}
body.storefront .ai-product-variants{color:#526d8c}
body.storefront .ai-message .ai-product-link{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;margin-top:10px;border:1px solid #b5d6f8;border-radius:8px;padding:8px 10px;background:#eff7ff;color:#005acb;text-decoration:none;font-size:13px;font-weight:700}
body.storefront .ai-message .ai-product-link:hover{background:#e1f0ff}
body.storefront .ai-message .ai-product-link:focus-visible{outline:3px solid #0063dc;outline-offset:2px}
body.storefront .ai-panel form{align-items:center}
body.storefront .ai-panel form input{min-width:0;min-height:44px;font-size:16px}
body.storefront .ai-panel form .btn{flex-shrink:0;min-height:44px}
body.storefront .ai-human-link{font-size:12px}
@media(max-width:700px){
 body.storefront .ai-panel{right:12px;max-height:calc(100dvh - 92px)}
 body.storefront:has(.whatsapp:not(.hidden)) .ai-panel{max-height:calc(100dvh - 154px)}
}
@media(max-width:360px){
 body.storefront .ai-body{padding:10px}
 body.storefront .ai-product-card{padding:9px}
 body.storefront .ai-product-overview{grid-template-columns:52px minmax(0,1fr);gap:8px}
 body.storefront .ai-product-image{width:52px;height:52px}
}
@media(max-height:500px){
 body.storefront .ai-panel,body.storefront:has(.whatsapp:not(.hidden)) .ai-panel{bottom:10px;max-height:calc(100dvh - 20px)}
}
