/* Premium Moto reference. Inherits the site's Persian font; no external font requests. */
/* Shared conversation layout: same navy answers and composer order as the app. */
.mmpda-widget.mmpda-widget{--mmpda-navy:#173b52;--mmpda-bg:#f5f6f9;box-shadow:none;border:0}
.mmpda-widget .mmpda-widget-header{position:relative;justify-content:center;background:transparent;color:#173b52;padding:28px 16px;text-align:center}
.mmpda-widget .mmpda-widget-header h2{color:#173b52;font-size:clamp(24px,5vw,34px)}
.mmpda-widget .mmpda-widget-header p{color:#68717e;font-size:16px}
.mmpda-widget .mmpda-agent-mark{display:none}
.mmpda-widget .mmpda-menu{position:absolute;inset-inline-end:12px;top:24px;margin:0}
.mmpda-widget .mmpda-menu summary{border:0;color:#536174;width:36px;height:36px;font-size:24px}
.mmpda-widget .mmpda-chat-body{padding:0 16px}
.mmpda-widget .mmpda-messages{max-height:none;overflow:visible;gap:24px;padding:0;min-height:0}
.mmpda-widget .mmpda-user{width:fit-content;max-width:85%;background:#e3e8ef;padding:18px 24px;border-radius:24px;align-self:flex-start}
.mmpda-widget .mmpda-assistant{background:#173b52;color:white;padding:28px;border:0;border-radius:28px;min-height:0}
.mmpda-widget .mmpda-assistant:before,.mmpda-widget .mmpda-welcome:before{display:none}
.mmpda-widget .mmpda-answer-text{color:white;font-size:16px;line-height:2}
.mmpda-widget .mmpda-response-label{color:#dae5ef;font-size:16px;margin-bottom:18px}
.mmpda-widget .mmpda-chat-question{font-size:16px;font-weight:800;line-height:2;white-space:pre-wrap;color:white;margin:16px 0}
.mmpda-widget .mmpda-welcome{background:transparent;border:0;padding:32px 12px;min-height:0;text-align:center}
.mmpda-widget .mmpda-welcome .mmpda-response-label{display:none}
.mmpda-widget .mmpda-welcome p{color:#68717e}
.mmpda-widget .mmpda-form{background:transparent;border:0;margin:24px 16px 0;padding:0}
.mmpda-widget .mmpda-input-shell{border-radius:26px;padding:12px;gap:12px;min-height:80px}
.mmpda-widget .mmpda-input-shell button{width:56px;height:56px;border-radius:50%;font-size:24px}
.mmpda-widget .mmpda-input-shell textarea{padding:10px;min-height:56px;font-size:16px}
.mmpda-widget .mmpda-alternatives{margin:32px 16px 0}
.mmpda-widget .mmpda-alternatives h3{font-size:18px;color:#173b52;margin-bottom:16px}
.mmpda-widget .mmpda-alternatives .mmpda-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mmpda-widget .mmpda-alternatives .mmpda-product{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;border-radius:24px}
.mmpda-widget .mmpda-alternatives .mmpda-product-media{width:100%;height:200px;border-radius:0;background:#fafafa}
.mmpda-widget .mmpda-alternatives .mmpda-product-media img{padding:20px;mix-blend-mode:normal}
.mmpda-widget .mmpda-alternatives .mmpda-product-body{padding:22px;flex-basis:auto}
.mmpda-widget .mmpda-alternatives .mmpda-price{font-size:17px}
.mmpda-widget .mmpda-alternatives .mmpda-recommendation{position:absolute;top:14px;right:14px;margin:0}
.mmpda-widget .mmpda-inline-products{margin-top:22px}
.mmpda-widget .mmpda-inline-products .mmpda-product{background:white;display:flex;flex-wrap:nowrap;border:0;border-radius:22px;padding:18px;gap:16px;min-height:0}
.mmpda-widget .mmpda-inline-products .mmpda-product-media{width:110px;height:110px;border-radius:16px;background:#f1f4f7}
.mmpda-widget .mmpda-inline-products .mmpda-product-body{padding:0;flex-basis:auto}
.mmpda-widget .mmpda-inline-products .mmpda-product-action{color:#236fa6;text-decoration:underline}
.mmpda-widget .mmpda-inline-products .mmpda-price{font-size:16px;color:#1d293b}
.mmpda-widget .mmpda-compatibility{font-size:11px;color:#536174}
@media(max-width:760px){.mmpda-widget .mmpda-alternatives .mmpda-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.mmpda-widget .mmpda-assistant{padding:22px 18px;border-radius:24px}.mmpda-widget .mmpda-inline-products .mmpda-product{padding:14px;gap:12px}.mmpda-widget .mmpda-inline-products .mmpda-product-media{width:82px;height:90px}.mmpda-widget .mmpda-alternatives .mmpda-products{grid-template-columns:minmax(0,1fr)}}
.mmpda-messages>*{flex-shrink:0}
.mmpda-widget{--mmpda-navy:#182337;--mmpda-bg:#f5f6f9;--mmpda-line:#e0e5ef;--mmpda-ink:#2b3549;--mmpda-muted:#66738a;--mmpda-red:#ef728d;direction:rtl;font-family:inherit;color:var(--mmpda-ink);background:var(--mmpda-bg);max-width:860px;min-width:0;margin:24px auto;border:1px solid var(--mmpda-line);border-radius:28px;isolation:isolate;box-shadow:0 12px 36px #18233708}
.mmpda-widget *{box-sizing:border-box}.mmpda-widget :is(button,input,textarea,summary,h2){font-family:inherit}.mmpda-widget button{cursor:pointer;text-transform:none;box-shadow:none}.mmpda-widget :is(button,a,input,textarea,summary):focus-visible{outline:3px solid #436bc1;outline-offset:4px}.mmpda-widget [hidden]{display:none!important}
.mmpda-widget-header{display:flex;align-items:center;gap:18px;background:var(--mmpda-navy);color:#fff;border-radius:27px 27px 0 0;padding:24px 30px}.mmpda-agent-mark{display:grid;place-items:center;width:68px;height:68px;background:#132238;border-radius:24px;font-size:24px;font-weight:800;flex-shrink:0}.mmpda-widget-header h2{color:#fff;font-size:24px;line-height:1.5;margin:0;font-weight:800;letter-spacing:.4px}.mmpda-widget-header p{margin:4px 0 0;color:#bec7d5;font-size:15px}.mmpda-menu{margin-inline-start:auto;position:relative}.mmpda-menu summary{list-style:none;border:1px solid #f5f6f9;border-radius:50%;width:56px;height:56px;display:grid;place-items:center;font-size:30px;line-height:1;cursor:pointer;letter-spacing:2px}.mmpda-menu summary::-webkit-details-marker{display:none}.mmpda-menu>div{position:absolute;inset-inline-end:0;top:66px;z-index:3;background:white;color:var(--mmpda-ink);padding:14px;border:1px solid var(--mmpda-line);border-radius:18px;width:240px;box-shadow:0 12px 30px #18233720}.mmpda-menu button{background:#eef2f7;color:var(--mmpda-ink);border:0;border-radius:10px;padding:10px 14px;width:100%;font-weight:700}.mmpda-menu span{display:block;margin-top:10px;font-size:12px;line-height:1.8}
.mmpda-chat-body{padding:24px 28px}.mmpda-context{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--mmpda-line);border-radius:28px;padding:20px 24px}.mmpda-context strong{font-size:16px;font-weight:800;display:block;line-height:1.8}.mmpda-motor-label{display:block;margin-top:8px;color:var(--mmpda-muted);font-size:13px;overflow-wrap:anywhere}.mmpda-status{background:#eaf7f0;color:#08764d;border-radius:23px;padding:14px 20px;white-space:nowrap;font-size:13px;font-weight:800}.mmpda-motor-details{font-size:13px;margin:12px 4px 18px;color:var(--mmpda-muted)}.mmpda-motor-details summary{cursor:pointer;min-height:32px;line-height:32px}.mmpda-motor-details label{display:block;margin:12px 0 8px;color:var(--mmpda-ink)}.mmpda-widget .mmpda-motor-input{width:100%;margin:0;background:#fff;border:1px solid var(--mmpda-line);border-radius:14px;padding:12px 14px;height:auto;color:var(--mmpda-ink)}.mmpda-motor-details small{display:block;margin-top:8px;line-height:1.8}.mmpda-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.mmpda-suggestions button{background:#fff;border:1px solid var(--mmpda-line);border-radius:999px;font-size:13px;line-height:1.8;padding:8px 16px;color:var(--mmpda-muted);min-height:40px}.mmpda-suggestions button:hover{border-color:var(--mmpda-navy);color:var(--mmpda-navy)}
.mmpda-messages{display:flex;flex-direction:column;gap:20px;min-height:200px;max-height:950px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 2px 12px}.mmpda-user{align-self:flex-start;background:#e8ecf3;border-radius:30px;width:87%;padding:24px 30px;white-space:pre-wrap;line-height:1.95;overflow-wrap:anywhere;font-size:17px}.mmpda-assistant,.mmpda-welcome{position:relative;width:100%;background:#fff;border:1px solid var(--mmpda-line);border-radius:30px;padding:24px 100px 30px 28px;min-height:170px}.mmpda-assistant:before,.mmpda-welcome:before{content:'+M';direction:ltr;position:absolute;right:12px;top:12px;display:grid;place-items:center;background:#132238;color:#fff;width:64px;height:64px;border-radius:22px;font-size:23px;font-weight:800}.mmpda-response-label{display:block;color:var(--mmpda-muted);font-weight:800;font-size:14px;margin:0 0 16px}.mmpda-answer-text,.mmpda-welcome p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:2;margin:0;color:var(--mmpda-ink)}.mmpda-followup{background:#edf2f7;border-radius:24px;padding:18px 24px;white-space:pre-wrap;line-height:1.9;font-size:15px}.mmpda-loading{padding:24px;color:var(--mmpda-muted);border-radius:24px;background:white;line-height:1.9}.mmpda-loading:before{content:'';display:inline-block;width:10px;height:10px;background:#66738a;border-radius:50%;margin-inline-end:10px;animation:mmpda-pulse 1s ease-in-out infinite}.mmpda-error{border:1px solid #f4a4b6;background:#fff5f7;color:#a51e42;border-radius:20px;padding:16px 20px;line-height:1.9;white-space:pre-wrap}.mmpda-retry{background:#fff;color:#a51e42;border:1px solid #e3a3b5;border-radius:999px;padding:8px 16px;margin-top:10px;display:block;min-height:40px}.mmpda-match-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;padding:24px 28px;border-radius:28px;background:#edf2f7}.mmpda-match-summary>strong{grid-column:1/-1;font-size:16px}.mmpda-match-summary small{color:var(--mmpda-muted);font-size:12px;line-height:1.8}.mmpda-match-summary span{display:block;margin-top:6px;line-height:1.8;font-size:13px}.mmpda-match-summary .mmpda-stock-count{color:#08764d;font-weight:800}.mmpda-products-title{margin:0;font-size:17px;font-weight:800;color:var(--mmpda-ink)}
.mmpda-products{display:grid;gap:14px;width:100%}.mmpda-product{position:relative;display:flex;align-items:center;gap:18px;min-width:0;min-height:158px;border:1px solid var(--mmpda-line);border-radius:28px;background:#fff;padding:14px;color:var(--mmpda-ink);text-decoration:none;transition:border-color .15s,box-shadow .15s}.mmpda-product:hover{color:var(--mmpda-ink);border-color:#8a97ad;box-shadow:0 5px 18px #1823370a}.mmpda-product.is-recommended{border-color:var(--mmpda-red);background:#fffafb}.mmpda-product-media{width:128px;height:128px;flex-shrink:0;background:#eaf0f7;border-radius:24px;display:grid;place-items:center;overflow:hidden}.mmpda-product-media img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.mmpda-product-placeholder{display:block;width:28px;height:82px;background:#acb8ca;clip-path:polygon(22% 0,78% 0,78% 15%,90% 15%,90% 27%,78% 27%,78% 69%,100% 69%,100% 78%,78% 78%,78% 90%,62% 90%,62% 100%,44% 100%,44% 90%,22% 90%,22% 78%,0 78%,0 69%,22% 69%,22% 27%,10% 27%,10% 15%,22% 15%)}.mmpda-product-body{min-width:0;display:grid;gap:10px;flex:1;padding:6px}.mmpda-product-body strong{font-size:16px;line-height:1.8;overflow-wrap:anywhere}.mmpda-product-action{color:#606c82;font-weight:700;font-size:13px}.mmpda-price{font-size:13px;font-weight:700}.mmpda-product small.is-stock{color:#08764d;font-size:12px}.mmpda-product small.is-out{color:#a51e42;font-size:12px}.mmpda-product small.is-unknown{color:var(--mmpda-muted);font-size:12px}.mmpda-recommendation{align-self:flex-start;padding:6px 14px;background:#fff0f4;color:#ad2044;font-size:11px;border-radius:999px;font-weight:800;white-space:nowrap}.mmpda-form{position:relative;z-index:2;background:#fff;border-top:1px solid var(--mmpda-line);border-radius:0 0 27px 27px;padding:22px 26px 18px;margin:0}.mmpda-input-shell{display:flex;align-items:center;gap:16px;border:1px solid #d6dce8;border-radius:40px;padding:12px 14px;min-height:96px;background:#fff}.mmpda-input-shell:focus-within{border-color:#647ca5;box-shadow:0 0 0 3px #436bc112}.mmpda-widget .mmpda-input-shell textarea{font-family:inherit;flex:1;min-width:0;min-height:32px;max-height:160px;height:auto;resize:none;outline:0;border:0!important;box-shadow:none!important;background:transparent;margin:0!important;padding:12px 18px;font-size:16px;line-height:1.8;color:var(--mmpda-ink)}.mmpda-input-shell textarea::placeholder{color:#78859b}.mmpda-widget .mmpda-input-shell button{background:var(--mmpda-navy);color:#fff;border:0;border-radius:26px;width:72px;height:72px;flex-shrink:0;font-size:32px;line-height:1;padding:0;min-width:0}.mmpda-input-shell button:hover{background:#293a54}.mmpda-input-shell button:disabled{opacity:.5;cursor:wait}.mmpda-composer-note{text-align:center;font-size:11px;color:var(--mmpda-muted);line-height:1.8;margin-top:12px}.mmpda-footer-note{text-align:center;font-size:12px;color:#78859b;margin-top:12px;line-height:1.8}
@keyframes mmpda-pulse{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.mmpda-widget *{animation:none!important;transition:none!important}}
@media(min-width:1000px){.mmpda-messages{max-height:800px}.mmpda-chat-body{padding:28px 34px}}
@media(max-width:360px){.mmpda-widget .mmpda-widget-header{padding:18px 12px;gap:8px}.mmpda-widget .mmpda-widget-header h2{font-size:18px}.mmpda-widget .mmpda-agent-mark{width:44px;height:44px;font-size:18px}.mmpda-widget .mmpda-menu summary{width:40px;height:40px}}
@media(max-width:600px){.mmpda-widget{margin:14px 0;border-radius:22px}.mmpda-widget-header{padding:20px 16px;gap:12px;border-radius:21px 21px 0 0}.mmpda-widget-header h2{font-size:20px}.mmpda-widget-header p{font-size:12px}.mmpda-agent-mark{width:52px;height:52px;border-radius:18px;font-size:20px}.mmpda-menu summary{width:44px;height:44px;font-size:25px}.mmpda-chat-body{padding:16px 12px}.mmpda-context{border-radius:22px;padding:16px 14px;gap:10px}.mmpda-context strong{font-size:13px}.mmpda-motor-label{font-size:11px}.mmpda-status{font-size:11px;padding:11px 12px}.mmpda-messages{gap:14px;max-height:1000px}.mmpda-user{font-size:15px;border-radius:24px;padding:20px;width:88%}.mmpda-assistant,.mmpda-welcome{padding:20px 70px 24px 18px;min-height:160px;border-radius:24px}.mmpda-assistant:before,.mmpda-welcome:before{width:44px;height:44px;border-radius:16px;font-size:18px}.mmpda-response-label{font-size:12px;margin-bottom:12px}.mmpda-answer-text,.mmpda-welcome p{font-size:15px;line-height:2}.mmpda-followup{padding:16px 18px;font-size:14px}.mmpda-match-summary{padding:20px 18px;gap:10px 14px;border-radius:24px}.mmpda-match-summary>strong{font-size:14px}.mmpda-product{gap:12px;min-height:130px;border-radius:24px;padding:10px;flex-wrap:wrap}.mmpda-product-media{width:90px;height:108px;border-radius:20px}.mmpda-product-body strong{font-size:14px}.mmpda-product-body{gap:7px;flex-basis:calc(100% - 110px);padding:3px}.mmpda-recommendation{margin-inline-start:102px;margin-top:-4px}.mmpda-form{padding:14px 12px;border-radius:0 0 21px 21px}.mmpda-input-shell{border-radius:30px;padding:9px;gap:7px;min-height:76px}.mmpda-widget .mmpda-input-shell textarea{font-size:16px;padding:8px}.mmpda-widget .mmpda-input-shell button{width:56px;height:56px;border-radius:20px;font-size:27px}.mmpda-composer-note{font-size:10px}}
