
#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;min-height:0}
.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-thread{padding-bottom:12px}
.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:relative;bottom:auto;flex-shrink:0;z-index:3}
.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:9px 10px 10px}.np3-actions{margin-bottom:8px}.np3-link{padding:9px 13px;font-size:13px}.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:relative;bottom:auto;z-index:4;margin:0 auto 10px;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 6px 16px rgba(14,39,89,.12);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)}}


/* v4.3.1 footer fix: footer is no longer sticky, so WhatsApp/Email buttons do not cover chat messages. */

/* v5.0 Smart Sales Assistant */
.np3-smart-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px;align-items:center}
.np3-smart-actions button{border:1px solid #d5e1ee;background:#fff;color:#173b6c;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 4px 12px rgba(14,39,89,.07);line-height:1.25}
.np3-smart-actions button:hover{background:#eef7ff;border-color:#1f4f88;transform:translateY(-1px)}
.np3-chip-main{background:#eef7ff!important;border-color:#cfe0f2!important;color:#174577!important;font-weight:900!important}
.np3-detail-choose{background:#1f9b6b;color:#fff}
.np3-detail-not{background:#fff4f4;color:#9a2d2d;border:1px solid #ffd6d6!important}
.np3-detail-sample{background:#f7fbff;color:#174577;border:1px solid #d4e3f4!important}

/* v5.2 Desktop UX polish: wider/shorter panel, smaller contact buttons, cleaner bottom composer */
@media (min-width:641px){
  .np3-panel{width:440px;max-width:calc(100vw - 36px);height:min(680px,calc(100vh - 48px));border-radius:22px}
  .np3-header{padding:15px 20px 14px}
  .np3-header h3{font-size:21px;margin-top:4px;margin-bottom:4px}
  .np3-header p{font-size:13.5px;line-height:1.45}
  .np3-close{width:36px;height:36px;top:14px;right:14px;font-size:20px}
  html[dir="rtl"] .np3-close{right:auto;left:14px}
  .np3-body{padding:13px 16px 10px}
  .np3-bubble{font-size:14.5px;padding:12px 14px;line-height:1.65}
  .np3-footer{padding:10px 14px 12px}
  .np3-actions{gap:8px;margin-bottom:8px}
  .np3-link{padding:8px 13px;font-size:12.5px;min-height:20px}
  .np3-form{gap:9px}
  .np3-input{min-height:46px;border-radius:16px;padding:10px 15px;font-size:14.5px;resize:none}
  .np3-send{height:48px;min-width:74px;border-radius:15px;font-size:14.5px;padding:0 16px}
  .np3-product-actions button,.np3-detail-actions button{padding:9px 11px;font-size:12px}
}
.np3-thread{padding-bottom:18px}
.np3-products,.np3-product-detail,.np3-compare-box,.np3-quote-form{scroll-margin-bottom:145px}
.np3-product{scroll-margin-bottom:145px}
.np3-actions .np3-link{line-height:1.1;white-space:nowrap}
@media (max-width:640px){
  .np3-actions{gap:8px;margin-bottom:8px}
  .np3-link{padding:8px 12px;font-size:12.5px}
  .np3-panel{height:min(82vh,700px)}
  .np3-header{padding:14px 18px 13px}
  .np3-header h3{font-size:20px}
}


/* v5.2.2 Compact footer UX: more chat space, contact buttons beside composer on desktop */
@media (min-width:641px){
  .np3-panel{width:520px;max-width:calc(100vw - 36px);height:min(660px,calc(100vh - 48px));}
  .np3-header{padding:12px 18px 11px;}
  .np3-header .kicker{font-size:11px;}
  .np3-header h3{font-size:20px;margin:3px 42px 3px 0;}
  .np3-header p{font-size:13px;line-height:1.35;}
  .np3-body{padding:12px 16px 8px;}
  .np3-footer{padding:8px 14px 10px;display:flex;align-items:flex-end;gap:8px;}
  .np3-actions{order:2;display:flex;gap:6px;margin:0;flex:0 0 auto;}
  .np3-form{order:1;flex:1 1 auto;min-width:0;gap:8px;}
  .np3-link{padding:7px 10px;font-size:12px;min-height:18px;}
  .np3-input{min-height:44px;max-height:92px;border-radius:15px;padding:10px 14px;}
  .np3-send{height:46px;min-width:66px;border-radius:14px;padding:0 14px;}
  .np3-thread{padding-bottom:8px;}
  .np3-products,.np3-product-detail,.np3-compare-box,.np3-quote-form,.np3-product{scroll-margin-bottom:105px;}
}
@media (max-width:640px){
  .np3-footer{padding:7px 10px 9px;}
  .np3-actions{margin-bottom:6px;}
  .np3-link{padding:7px 10px;font-size:12px;}
  .np3-input{min-height:46px;resize:none;}
  .np3-send{height:48px;min-width:70px;}
  .np3-thread{padding-bottom:10px;}
}

/* v5.3: First Result is a compact footer action beside WhatsApp/Email */
.np3-actions .np3-jump-results{
  position:relative!important;display:inline-flex;align-items:center;justify-content:center;
  margin:0!important;width:auto!important;max-width:none!important;
  padding:7px 10px!important;min-height:18px;border-radius:999px;
  background:linear-gradient(135deg,#ffffff,#f5fbff);color:#174577;
  border:1px solid #cfe0f2;font-size:12px;font-weight:900;
  box-shadow:0 4px 10px rgba(14,39,89,.08);white-space:nowrap;cursor:pointer;
}
.np3-actions .np3-jump-results:hover{background:#eef7ff;transform:translateY(-1px)}
@media (max-width:640px){.np3-actions .np3-jump-results{padding:7px 9px!important;font-size:11.5px}}


/* v5.5 Complaint Recovery Wizard */
.np3-complaint-box{background:#fff;border:1px solid #dbe8f5;border-radius:18px;padding:12px;margin:10px 0;box-shadow:0 8px 24px rgba(21,55,92,.08)}
.np3-complaint-box strong{display:block;color:#12385e;margin-bottom:6px;font-size:14px}
.np3-complaint-box p{margin:0 0 10px;color:#45627c;font-size:12.5px;line-height:1.45}
.np3-complaint-options{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.np3-complaint-options button{border:1px solid #cfe0f2;background:#f7fbff;color:#174577;border-radius:999px;padding:7px 9px;font-size:12px;font-weight:800;cursor:pointer;transition:.16s ease}
.np3-complaint-options button:hover{transform:translateY(-1px);background:#eef7ff}
.np3-complaint-options button.selected{background:#174577;color:#fff;border-color:#174577;box-shadow:0 5px 12px rgba(23,69,119,.18)}
.np3-complaint-notes{width:100%;box-sizing:border-box;border:1px solid #cfe0f2;border-radius:14px;padding:10px 12px;resize:vertical;font-family:inherit;font-size:13px;outline:none;margin:2px 0 8px;background:#fff}
.np3-complaint-notes:focus{border-color:#1d6fb8;box-shadow:0 0 0 3px rgba(29,111,184,.10)}
.np3-complaint-actions{display:flex;gap:8px;align-items:center;justify-content:flex-start}
.np3-complaint-send,.np3-complaint-clear{border:0;border-radius:14px;padding:9px 12px;font-weight:900;cursor:pointer;font-size:12.5px}
.np3-complaint-send{background:#16a34a;color:#fff}.np3-complaint-clear{background:#eef4fb;color:#174577}

.np3-quote-prev{border:0;border-radius:18px;padding:9px 14px;font-weight:800;cursor:pointer;background:#eef4fb;color:#154a82}
.np3-field-hint{font-size:12px;color:#51657a;margin-top:6px;line-height:1.5}
.np3-quote-summary{background:#f7fbff;border:1px solid #d7e6f7;border-radius:16px;padding:12px;margin:10px 0;line-height:1.7}
.np3-quote-summary strong{display:block;margin-bottom:6px;color:#123f70}
/* v5.9.4 quick-action hierarchy */
.np3-quick{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;padding:14px 14px 10px;}
.np3-chip-main{font-weight:800;min-width:145px;}
.np3-chip-product{font-weight:700;}
.np3-chip-muted{opacity:.82;}
