#mmai-tools-trigger-btn{position:fixed;right:18px;bottom:22px;z-index:999996;width:auto;min-width:0;max-width:190px;min-height:42px;padding:10px 15px;border-radius:999px;border:0;cursor:pointer;font-size:13px;line-height:1.1;background:#ff914d;color:#fff;display:flex;align-items:center;justify-content:center;gap:5px;font-weight:800;box-shadow:0 8px 22px rgba(15,23,42,.18),0 4px 10px rgba(255,145,77,.25);margin:0;transition:transform .18s ease,background .18s ease;white-space:nowrap}
#mmai-tools-trigger-btn:hover{transform:translateY(-1px);background:#f77f35}
#mmai-tools-trigger-btn:focus-visible{outline:3px solid rgba(255,145,77,.34);outline-offset:3px}

#mmai-live-widget{position:fixed;right:20px;bottom:70px;width:56%;height:80vh;max-width:1100px;min-width:520px;z-index:999999;font-family:'Segoe UI',Arial,sans-serif;background:#fff;border-radius:18px;box-shadow:0 10px 40px rgba(0,0,0,.3);overflow:hidden;border:1px solid #e2e8f0;box-sizing:border-box;display:none;flex-direction:column}
#mmai-live-widget.mmai-open{display:flex}
.mmai-widget-head{position:absolute;top:0;left:0;width:100%;height:65px;background:linear-gradient(120deg,#ff914d,#ffb36b);color:#fff;padding:0 25px;font-size:18px;font-weight:700;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;z-index:10}
.mmai-widget-head__actions{display:flex;align-items:center;gap:12px}
.mmai-reset-btn{font-size:13px;background:rgba(255,255,255,.2);color:#fff;padding:8px 15px;border-radius:20px;border:0;cursor:pointer;font-weight:700}
.mmai-widget-close{cursor:pointer;font-size:36px;line-height:1;padding:0 5px;border:0;background:transparent;color:#fff;min-width:44px;min-height:44px}
.mmai-widget-close:focus-visible,.mmai-reset-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}

.mmai-quick-actions{position:absolute;top:65px;left:0;width:100%;min-height:58px;display:flex;align-items:center;gap:8px;padding:9px 18px;box-sizing:border-box;background:#fff;border-bottom:1px solid #e8edf3;z-index:9;overflow-x:auto;scrollbar-width:none}
.mmai-quick-actions::-webkit-scrollbar{display:none}
.mmai-quick-btn{flex:0 0 auto;border:1px solid #dbe3ec;background:#f8fafc;color:#172033;border-radius:999px;padding:9px 14px;font-size:12.5px;font-weight:800;cursor:pointer;box-shadow:none;line-height:1.2;white-space:nowrap;min-height:40px}
.mmai-quick-btn:hover,.mmai-quick-btn.is-active{border-color:#ff914d;background:#fff5ee;color:#c95b16}
.mmai-quick-btn.mmai-primary-quick{background:#fff5ee;border-color:#ffc49d;color:#b95112}

#mmai-msg-container-widget{position:absolute;top:123px;left:0;width:100%;bottom:85px;overflow-y:auto;padding:30px;box-sizing:border-box;background:#fdfdfd;font-size:16px;scroll-behavior:smooth}
#mmai-orders-panel{position:absolute;top:123px;left:0;right:0;bottom:0;background:#f8fafc;z-index:8;display:none;overflow-y:auto;padding:22px;box-sizing:border-box}
#mmai-orders-panel.is-open{display:block}
.mmai-orders-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.mmai-orders-head h3{margin:0;color:#172033;font-size:20px}
.mmai-orders-back{border:1px solid #d8e0e8;background:#fff;color:#344054;border-radius:9px;padding:8px 12px;font-weight:700;cursor:pointer;min-height:40px}
.mmai-orders-note{color:#667085;font-size:13px;margin:0 0 14px}
.mmai-order-card{width:100%;text-align:left;border:1px solid #e0e6ed;border-radius:13px;background:#fff;margin:0 0 10px;padding:15px 16px;overflow:hidden;box-shadow:0 3px 10px rgba(15,23,42,.04);box-sizing:border-box}
.mmai-order-grid{display:grid;grid-template-columns:1fr auto;gap:8px 16px;align-items:center}
.mmai-order-no{font-size:16px;font-weight:900;color:#172033}
.mmai-order-date{color:#7a8494;font-size:12px;margin-top:3px}
.mmai-order-source{display:inline-block;margin-top:7px;padding:3px 7px;border-radius:999px;background:#eef3f8;color:#536174;font-size:10px;font-weight:800}
.mmai-order-status{padding:6px 9px;border-radius:999px;background:#eef8f1;color:#168a45;font-size:11px;font-weight:800;max-width:230px;text-align:center}
.mmai-order-total{margin-top:10px;color:#172033;font-weight:900}
.mmai-order-track{margin-top:10px;font-size:13px;color:#475467}
.mmai-order-track-btn,.mmai-login-btn{display:inline-block;margin-top:10px;padding:9px 13px;border-radius:9px;background:#168a45;color:#fff;text-decoration:none;font-weight:800;border:0;cursor:pointer}
.mmai-orders-empty,.mmai-orders-loading,.mmai-login-box{background:#fff;border:1px solid #e1e7ee;border-radius:13px;padding:22px;color:#475467;text-align:center}

.mmai-chat-footer{position:absolute;bottom:0;left:0;width:100%;height:85px;background:#fff;border-top:1px solid #eee;padding:15px 25px;box-sizing:border-box;display:flex;align-items:center;padding-bottom:calc(15px + env(safe-area-inset-bottom))}
.mmai-chat-footer input#mmai-msg-input-widget{flex:1;height:100%;padding:0 25px;border:1px solid #ddd;border-radius:30px;outline:none;font-size:16px;margin:0;box-sizing:border-box;min-width:0}
.mmai-chat-footer input#mmai-msg-input-widget:focus{border-color:#ff914d;box-shadow:0 0 0 3px rgba(255,145,77,.12)}
.mmai-chat-footer button#mmai-send-btn-widget{background:#22c55e;color:#fff;border:none;border-radius:30px;padding:0 35px;margin-left:15px;cursor:pointer;font-weight:700;font-size:16px;height:100%;transition:.3s;min-width:96px}
.mmai-chat-footer button#mmai-send-btn-widget:disabled{background:#94a3b8;cursor:not-allowed}
.mmai-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

.mmai-bubble-wrapper{width:100%;display:flex;margin-bottom:25px;flex-direction:column}
.mmai-bubble{max-width:88%;padding:18px 21px;border-radius:18px;line-height:1.62;overflow-wrap:anywhere;box-sizing:border-box}
.mmai-bubble.support{position:relative;align-self:flex-start;background:linear-gradient(180deg,#fff 0%,#fffdfb 100%);color:#263244;border:1px solid #e7e9ee;border-top:3px solid #ff914d;border-bottom-left-radius:7px;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.mmai-bubble.user{align-self:flex-end;background:linear-gradient(135deg,#ff914d,#ff8237);color:#fff;border-bottom-right-radius:5px;box-shadow:0 7px 18px rgba(255,145,77,.28)}
.mmai-bubble p{margin:0 0 12px}
.mmai-bubble p:last-child{margin-bottom:0}
.mmai-bubble.support strong,.mmai-bubble.support b{color:#172033;font-weight:850}
.mmai-bubble ul,.mmai-bubble ol{padding-left:22px;margin:10px 0 12px}
.mmai-bubble li{margin:5px 0;padding-left:2px}
.mmai-bubble li::marker{color:#ff7a21;font-weight:800}
.mmai-bubble table{border-collapse:separate;border-spacing:0;width:100%;margin:14px 0;font-size:14px;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff}
.mmai-bubble th,.mmai-bubble td{border:0;border-right:1px solid #edf0f3;border-bottom:1px solid #edf0f3;padding:10px 12px;text-align:left;color:#344054;vertical-align:top}
.mmai-bubble th:last-child,.mmai-bubble td:last-child{border-right:0}
.mmai-bubble tr:last-child td{border-bottom:0}
.mmai-bubble th{font-weight:850;background:#fff4eb;color:#9a4310}
.mmai-bubble tbody tr:nth-child(even) td{background:#fbfcfd}
.mmai-bubble a{overflow-wrap:anywhere;color:#d85f10;font-weight:750;text-decoration:none;border-bottom:1px solid rgba(216,95,16,.28)}
.mmai-bubble a:hover{color:#a94406;border-bottom-color:#a94406}
.mmai-answer-card{display:block;margin:-2px}
.mmai-answer-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.mmai-answer-badge{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border-radius:999px;background:#fff1e8;border:1px solid #ffd1b3;color:#a94b10;font-size:10px;font-weight:900;letter-spacing:.055em}
.mmai-answer-title{font-size:18px;line-height:1.25;font-weight:900;color:#172033}
.mmai-answer-lead{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#f8fafc;border:1px solid #e9edf2;color:#344054;line-height:1.62}
.mmai-answer-section{margin:14px 0 0;padding:13px 14px;border:1px solid #e8edf2;border-radius:12px;background:#fff}
.mmai-answer-section>strong{display:block;margin-bottom:6px}
.mmai-answer-callout{margin:14px 0 0;padding:12px 14px;border-radius:12px;border-left:4px solid #94a3b8;background:#f8fafc}
.mmai-answer-callout--warn{border-left-color:#f59e0b;background:#fffbeb;color:#854d0e}
.mmai-answer-callout--ok{border-left-color:#22c55e;background:#f0fdf4;color:#166534}
.mmai-answer-diagnostic .mmai-answer-badge{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.mmai-answer-tech .mmai-answer-badge{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.mmai-answer-service .mmai-answer-badge{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}
.mmai-answer-guide .mmai-answer-badge{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}
.mmai-wa-btn{display:inline-block;margin-top:12px;padding:12px 20px;background:#25d366;color:#fff;border-radius:20px;text-decoration:none;font-size:15px;font-weight:700;align-self:flex-start}

.mmai-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0;width:100%}
.mmai-product-card{display:flex;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.06);min-width:0}
.mmai-product-thumb{width:86px;height:86px;flex:0 0 86px;border-radius:10px;overflow:hidden;background:#f8fafc;border:1px solid #eef2f7;display:flex;align-items:center;justify-content:center}
.mmai-product-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.mmai-product-info{min-width:0;flex:1}
.mmai-product-name{font-weight:800;color:#111827;line-height:1.3;font-size:14px;text-decoration:none;display:block}
.mmai-product-sku{font-size:11px;color:#64748b;margin-top:4px}
.mmai-product-meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}
.mmai-product-price{font-weight:900;font-size:15px;color:#0f172a}
.mmai-product-stock{font-size:11px;font-weight:800;border-radius:999px;padding:4px 7px;background:#f1f5f9;color:#475569}
.mmai-product-stock.is-instock{background:#dcfce7;color:#166534}
.mmai-product-stock.is-outofstock{background:#fee2e2;color:#991b1b}
.mmai-product-link{display:inline-block;margin-top:9px;padding:7px 10px;border-radius:8px;background:#ff914d;color:#fff;text-decoration:none;font-size:12px;font-weight:800}
.mmai-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px;color:#172033}
.mmai-result-head span{font-size:10px;font-weight:800;color:#168a45;background:#eefaf2;border-radius:999px;padding:4px 7px}

.mmai-progress-card{align-self:flex-start;max-width:520px;width:min(90%,520px);background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:15px 17px;box-shadow:0 4px 12px rgba(15,23,42,.05)}
.mmai-progress-title{font-size:13px;font-weight:900;color:#172033;margin-bottom:10px}
.mmai-progress-list{display:flex;flex-direction:column;gap:7px}
.mmai-progress-step{display:flex;align-items:center;gap:9px;color:#94a3b8;font-size:12px;font-weight:700;line-height:1.35}
.mmai-progress-dot{width:18px;height:18px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;background:#f1f5f9;color:#94a3b8;font-size:10px}
.mmai-progress-step.is-active{color:#b95112}.mmai-progress-step.is-active .mmai-progress-dot{background:#fff1e8;color:#d46620;box-shadow:inset 0 0 0 1px #ffc79f;animation:mmaiProgressSpin 1s linear infinite}
.mmai-progress-step.is-done{color:#475467}.mmai-progress-step.is-done .mmai-progress-dot{background:#dcfce7;color:#166534}
@keyframes mmaiProgressSpin{from{transform:rotate(0)}to{transform:rotate(360deg)}}

@media(max-width:768px){
  #mmai-tools-trigger-btn{right:10px;bottom:calc(64px + env(safe-area-inset-bottom));max-width:145px;min-height:36px;padding:8px 11px;font-size:11.5px;box-shadow:0 6px 16px rgba(15,23,42,.16),0 3px 8px rgba(255,145,77,.22)}
  #mmai-live-widget{width:100%;height:100dvh;bottom:0;right:0;border-radius:0;max-width:none;min-width:0}
  .mmai-widget-head{padding:0 14px;font-size:16px}
  .mmai-reset-btn{padding:7px 10px;font-size:12px}
  .mmai-quick-actions{padding-left:10px;padding-right:10px}
  .mmai-quick-btn{font-size:11.5px;padding:8px 11px}
  #mmai-msg-container-widget{padding:18px 14px 24px;font-size:15px}
  .mmai-chat-footer{height:82px;padding:12px 10px calc(12px + env(safe-area-inset-bottom))}
  .mmai-chat-footer input#mmai-msg-input-widget{padding:0 15px;font-size:15px}
  .mmai-chat-footer button#mmai-send-btn-widget{padding:0 17px;margin-left:8px;font-size:14px;min-width:76px}
  .mmai-bubble{max-width:91%;padding:14px 16px}
  .mmai-product-grid{grid-template-columns:1fr}
  .mmai-product-thumb{width:74px;height:74px;flex-basis:74px}
  .mmai-orders-head{align-items:flex-start}.mmai-orders-note{font-size:12px}.mmai-order-grid{grid-template-columns:1fr}.mmai-order-status{justify-self:start;max-width:100%}
}

@media(prefers-reduced-motion:reduce){#mmai-tools-trigger-btn,.mmai-product-link,.mmai-chat-footer button{transition:none}.mmai-progress-step.is-active .mmai-progress-dot{animation:none}}

.cnc-product-quick-question-wrap{width:100%;margin:10px 0 0;box-sizing:border-box}
.cnc-product-quick-question-trigger{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;box-sizing:border-box;min-height:0;padding:9px 16px;border:0;border-radius:7px;background:#fd6905;color:#fff;font-size:14px;font-weight:800;line-height:1.15;cursor:pointer;box-shadow:0 3px 5px rgba(253,105,5,.18);transition:transform .2s ease,background .2s ease}
.cnc-product-quick-question-trigger svg{flex:0 0 auto;width:16px;height:16px}
.cnc-product-quick-question-trigger:hover{background:#e35c02;transform:translateY(-1px)}
@media(max-width:768px){.cnc-product-quick-question-wrap{margin:8px 0 0}.cnc-product-quick-question-trigger{padding:8px 12px;font-size:13.5px;border-radius:7px}}
@media(prefers-reduced-motion:reduce){.cnc-product-quick-question-trigger{transition:none}.cnc-product-quick-question-trigger:hover{transform:none}}
.cnc-product-quick-question-trigger:focus-visible{outline:3px solid rgba(255,106,0,.18);outline-offset:2px}
.cnc-product-quick-question-modal[hidden]{display:none!important}
.cnc-product-quick-question-modal{position:fixed;inset:0;z-index:1000001;display:grid;place-items:center;padding:18px;box-sizing:border-box}
.cnc-product-quick-question-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62)}
.cnc-product-quick-question-dialog{position:relative;z-index:1;width:min(100%,675px);padding:18px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28);box-sizing:border-box}
.cnc-product-quick-question-dialog h2{margin:0 34px 10px 0;color:#0f172a;font-size:20px;line-height:1.25}
.cnc-product-quick-question-close{position:absolute;top:8px;right:10px;width:40px;height:40px;border:0;background:transparent;color:#94a3b8;font-size:28px;line-height:1;cursor:pointer}
.cnc-product-quick-question-summary{margin-bottom:10px;padding:9px 10px;border:1px solid #dbe5f0;border-radius:9px;background:#f1f5f9;color:#475569;font-size:12px;line-height:1.4}
.cnc-product-quick-question-dialog textarea{display:block;width:100%;min-height:82px;resize:vertical;margin:0 0 12px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:14px;line-height:1.45;box-sizing:border-box}
.cnc-product-quick-question-dialog textarea:focus{outline:2px solid rgba(37,99,235,.15);border-color:#60a5fa}
.cnc-product-quick-question-send{display:flex;width:100%;min-height:42px;align-items:center;justify-content:center;padding:10px 16px;border:0;border-radius:999px;background:linear-gradient(135deg,#0ea5e9,#2563eb);color:#fff;font-size:15px;font-weight:800;cursor:pointer}
.cnc-product-quick-question-send:disabled{opacity:.6;cursor:wait}
.cnc-product-quick-question-answer{max-height:300px;overflow:auto;margin-top:12px;padding:14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:14px;line-height:1.6}
.cnc-product-quick-question-answer p{margin:0 0 9px}
.cnc-product-quick-question-answer p:last-child{margin-bottom:0}
.cnc-product-quick-question-answer ul,.cnc-product-quick-question-answer ol{margin:8px 0;padding-left:20px}
body.cnc-product-quick-question-open{overflow:hidden}
@media(max-width:600px){.cnc-product-quick-question-modal{padding:10px}.cnc-product-quick-question-dialog{width:100%;max-height:92dvh;overflow:auto;padding:15px;border-radius:13px}.cnc-product-quick-question-dialog h2{font-size:18px}.cnc-product-quick-question-summary{font-size:11.5px}.cnc-product-quick-question-dialog textarea{min-height:110px}}
