
#newpack-ai-v3-root{position:fixed;left:18px;bottom:18px;z-index:999999;font-family:Arial,Helvetica,sans-serif}
.np3-launcher{display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#0f3b78,#1f9b6b);color:#fff;border:none;border-radius:999px;padding:14px 18px;cursor:pointer;box-shadow:0 10px 28px rgba(4,22,61,.28);font-weight:700}
.np3-launcher small{display:block;font-size:11px;font-weight:600;opacity:.86}
.np3-panel{width:380px;max-width:calc(100vw - 24px);height:min(720px,calc(100vh - 40px));background:#eef2f7;border-radius:24px;overflow:hidden;box-shadow:0 18px 44px rgba(7,18,44,.32);display:none;flex-direction:column;border:1px solid rgba(255,255,255,.55)}
.np3-panel.open{display:flex}
.np3-header{padding:18px 20px;background:linear-gradient(135deg,#082a5e 0%,#0f3b78 52%,#16835f 100%);color:#fff;position:relative;box-shadow:inset 0 -1px 0 rgba(255,255,255,.08)}
.np3-header .kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;opacity:1;color:#d7ecff}
.np3-header h3{margin:6px 44px 6px 0;font-size:22px;line-height:1.2;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.12)}
.np3-header p{margin:0;opacity:1;line-height:1.55;font-size:14px;color:#eef7ff}
.np3-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border-radius:50%;border:none;background:rgba(255,255,255,.20);color:#fff;font-size:22px;cursor:pointer;backdrop-filter:blur(2px)}
.np3-body{flex:1;overflow:auto;padding:14px;background:#eef2f7}
.np3-quick{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.np3-chip{border:none;background:#fff;color:#113563;padding:9px 12px;border-radius:999px;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 1px 0 rgba(0,0,0,.05)}
.np3-message{margin-bottom:12px;display:flex}
.np3-message.user{justify-content:flex-end}
.np3-bubble{max-width:86%;padding:14px 15px;border-radius:18px;line-height:1.7;font-size:15px;white-space:pre-wrap;word-wrap:break-word}
.np3-message.bot .np3-bubble{background:#fff;color:#1d2c43;border:1px solid #d7dfeb;border-top-left-radius:8px}
.np3-message.user .np3-bubble{background:#1f4f88;color:#fff;border-top-right-radius:8px}
.np3-products{display:grid;gap:10px;margin-top:10px}
.np3-product{background:#fff;border:1px solid #d7dfeb;border-radius:16px;padding:12px 14px}
.np3-product strong{display:block;color:#173b6c;margin-bottom:4px}
.np3-product div{font-size:13px;color:#4d607c;line-height:1.55}
.np3-footer{padding:12px 12px 14px;background:#eef2f7;border-top:1px solid #dce3ee;position:sticky;bottom:0}
.np3-actions{display:flex;gap:10px;margin-bottom:10px}
.np3-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#1f9b6b;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
.np3-link.alt{background:#1f4f88}
.np3-form{display:flex;gap:10px;align-items:flex-end;padding-bottom:2px}
.np3-input{flex:1;min-height:50px;max-height:124px;resize:vertical;border:1px solid #c8d3e2;border-radius:18px;padding:12px 16px;font-size:15px;background:#fff;color:#1d2c43}
.np3-send{border:none;background:#1f4f88;color:#fff;border-radius:16px;padding:0 18px;height:52px;font-size:15px;font-weight:700;cursor:pointer;min-width:82px}
.np3-typing{font-size:13px;color:#5f7190;padding:4px 2px 0}
html[dir="rtl"] #newpack-ai-v3-root{left:auto;right:18px}
html[dir="rtl"] .np3-header h3{margin-right:0;margin-left:44px}
html[dir="rtl"] .np3-close{right:auto;left:16px}
html[dir="rtl"] .np3-message.user{justify-content:flex-start}
html[dir="rtl"] .np3-message.bot{justify-content:flex-end}
html[dir="rtl"] .np3-message.bot .np3-bubble{border-top-left-radius:18px;border-top-right-radius:8px}
html[dir="rtl"] .np3-message.user .np3-bubble{border-top-right-radius:18px;border-top-left-radius:8px}
@media (max-width:640px){#newpack-ai-v3-root{left:10px;right:10px;bottom:10px}.np3-panel{width:auto;height:min(84vh,720px)}.np3-launcher{width:100%;justify-content:center}.np3-bubble{max-width:92%}.np3-footer{padding:10px 10px 12px}.np3-form{gap:8px}.np3-send{min-width:78px;height:50px}}

.np3-product{width:100%;text-align:left;cursor:pointer;background:#fff;font:inherit}
.np3-product:hover{border-color:#2a5ea5;box-shadow:0 4px 12px rgba(14,39,89,.10)}
.np3-product.selected{border-color:#2a5ea5;box-shadow:0 0 0 2px rgba(42,94,165,.12)}
html[dir="rtl"] .np3-product{text-align:right}
.np3-product-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.np3-product-select,.np3-product-quote,.np3-quote-cancel{border:none;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:800;cursor:pointer}
.np3-product-select{background:#1f4f88;color:#fff}
.np3-product-quote{background:#1f9b6b;color:#fff}
.np3-quote-cancel{background:#dce3ee;color:#263b58}
.np3-quote-form{background:#fff;border:1px solid #d7dfeb;border-radius:16px;padding:12px;margin:10px 0;display:grid;gap:8px;box-shadow:0 4px 12px rgba(14,39,89,.08)}
.np3-quote-form strong{color:#173b6c;margin-bottom:2px}
.np3-quote-form input,.np3-quote-form textarea{width:100%;box-sizing:border-box;border:1px solid #c8d3e2;border-radius:12px;padding:10px 12px;font:inherit;font-size:14px;background:#fff;color:#1d2c43}
.np3-quote-actions{display:flex;gap:8px;align-items:center;justify-content:flex-start;flex-wrap:wrap}
.np3-quote-actions .np3-send{height:auto;min-width:0;padding:10px 14px;border-radius:999px;font-size:13px}
html[dir="rtl"] .np3-quote-actions{justify-content:flex-end}
.np3-quote-wizard label{display:block;color:#263b58;font-weight:800;font-size:13px;line-height:1.5}
.np3-step{font-size:12px;color:#5f7190;font-weight:800;background:#eef2f7;border-radius:999px;padding:4px 9px;width:max-content}
.np3-selected-line{font-size:13px;color:#173b6c;background:#eef7ff;border:1px solid #d7e8fb;border-radius:12px;padding:8px 10px;line-height:1.5}

/* v4.0 Product Detail Experience */
.np3-product-title{display:flex;gap:8px;align-items:center;color:#173b6c;margin-bottom:6px}
.np3-product-use{margin-top:7px;background:#f3fbf7;border:1px solid #d8f0e6;color:#166345!important;border-radius:12px;padding:7px 9px;font-weight:700}
.np3-product-detail,.np3-compare-box{background:#fff;border:1px solid #d7dfeb;border-radius:20px;padding:14px;margin:12px 0;box-shadow:0 10px 26px rgba(14,39,89,.10);overflow:hidden}
.np3-product-detail{border-top:4px solid #1f9b6b}
.np3-detail-head{display:flex;align-items:flex-start;gap:10px;background:linear-gradient(135deg,#f6fbff,#f2fff8);border:1px solid #e2edf8;border-radius:16px;padding:12px;margin-bottom:12px}
.np3-detail-icon{width:38px;height:38px;min-width:38px;border-radius:12px;background:linear-gradient(135deg,#1f4f88,#1f9b6b);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 16px rgba(31,79,136,.18)}
.np3-detail-head strong{display:block;color:#0f3565;font-size:16px;line-height:1.35}
.np3-detail-head small{display:block;color:#5f7190;font-size:12px;line-height:1.45;margin-top:3px}
.np3-detail-section{margin:12px 0;background:#fbfdff;border:1px solid #e4ebf4;border-radius:16px;padding:12px}
.np3-detail-section h4{margin:0 0 8px;color:#173b6c;font-size:14px}
.np3-detail-section ul{margin:0;padding-left:19px;color:#263b58;line-height:1.65;font-size:13px}
.np3-detail-section p{margin:0;color:#263b58;line-height:1.6;font-size:13px}
html[dir="rtl"] .np3-detail-section ul{padding-left:0;padding-right:19px}
.np3-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.np3-detail-grid>div{background:#f7f9fc;border:1px solid #e1e8f1;border-radius:15px;padding:10px 8px;text-align:center;min-height:72px;display:flex;flex-direction:column;justify-content:center;gap:3px}
.np3-detail-grid span{font-size:20px;line-height:1}
.np3-detail-grid b{font-size:11px;color:#5a6b84;line-height:1.3}
.np3-detail-grid em{font-style:normal;color:#0f3565;font-weight:900;font-size:13px;line-height:1.25}
.np3-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.np3-detail-actions button{border:none;border-radius:999px;padding:10px 11px;font-size:12px;font-weight:900;cursor:pointer;line-height:1.2;box-shadow:0 4px 10px rgba(14,39,89,.08)}
.np3-detail-quote{background:#1f9b6b;color:#fff}.np3-detail-ask{background:#1f4f88;color:#fff}.np3-detail-compare{background:#eef5ff;color:#174577;border:1px solid #d4e3f4!important}.np3-detail-back{background:#eef2f7;color:#263b58}
.np3-compare-box{border-top:4px solid #1f4f88}.np3-compare-box>strong{display:block;color:#173b6c;margin-bottom:10px}.np3-compare-box p{margin:0;color:#263b58;line-height:1.6;font-size:13px}
.np3-compare-list{display:grid;gap:8px}.np3-compare-list button{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #e1e8f1;background:#f8fbff;border-radius:14px;padding:10px 11px;cursor:pointer;text-align:left;font:inherit}
html[dir="rtl"] .np3-compare-list button{text-align:right}.np3-compare-list button:hover{border-color:#1f4f88;box-shadow:0 5px 14px rgba(31,79,136,.10)}.np3-compare-list b{color:#173b6c;font-size:13px}.np3-compare-list span{color:#1f9b6b;font-size:12px;font-weight:800;text-align:end}
@media (max-width:420px){.np3-detail-grid{grid-template-columns:1fr}.np3-detail-actions{grid-template-columns:1fr}.np3-detail-head strong{font-size:15px}}

/* v4.1 Better Auto Scroll UX */
.np3-body{scroll-behavior:smooth}
.np3-products,.np3-product-detail,.np3-compare-box,.np3-quote-form{scroll-margin-top:12px;scroll-margin-bottom:110px}
.np3-product{scroll-margin-top:12px;scroll-margin-bottom:110px}
.np3-jump-results{display:inline-flex;align-items:center;justify-content:center;margin:0 0 10px;border:none;border-radius:999px;background:#ffffff;color:#1f4f88;border:1px solid #d7dfeb;font-size:12px;font-weight:900;padding:8px 12px;box-shadow:0 4px 12px rgba(14,39,89,.08);cursor:pointer}
.np3-jump-results[hidden]{display:none!important}
.np3-jump-results:hover{background:#eef5ff;border-color:#1f4f88}

/* v4.2 Polished Results UX */
.np3-body{position:relative}
.np3-jump-results{position:sticky;bottom:10px;z-index:8;margin:10px auto 2px;display:flex;width:max-content;max-width:calc(100% - 24px);background:linear-gradient(135deg,#ffffff,#f5fbff);color:#174577;border:1px solid #cfe0f2;box-shadow:0 10px 24px rgba(14,39,89,.14);backdrop-filter:blur(4px);transition:opacity .18s ease,transform .18s ease,background .18s ease}
.np3-jump-results:hover{background:#eef7ff;transform:translateY(-1px)}
.np3-product.first-highlight{border:2px solid #2ecc71!important;box-shadow:0 0 0 3px rgba(46,204,113,.10),0 10px 24px rgba(46,204,113,.20)!important;animation:npFirstPulse 1.1s ease-in-out 2}
@keyframes npFirstPulse{0%{box-shadow:0 0 0 0 rgba(46,204,113,.24)}70%{box-shadow:0 0 0 8px rgba(46,204,113,0)}100%{box-shadow:0 0 0 0 rgba(46,204,113,0)}}
