.mg-header .mg-smart-search{position:relative;overflow:visible;border-radius:14px;background:#f7f9f5;border-color:#d7e0d2;transition:border-color .18s,box-shadow .18s;font-family:Zain,Arial,sans-serif;z-index:30}
.mg-header .mg-smart-search:focus-within{border-color:#536f56;box-shadow:0 0 0 3px #536f561c;background:#fff}
.mg-smart-search input{font-family:inherit;outline:none;border-radius:14px!important}
.mg-smart-search input::placeholder{color:#6c7968;opacity:1}
.mg-smart-search>.mg-smart-panel{position:absolute;top:calc(100% + 10px);left:0;width:620px;max-width:calc(100vw - 40px);background:#fff;border:1px solid #dbe4d6;border-radius:18px;box-shadow:0 20px 65px #233b322b;color:#233b32;overflow:hidden;max-height:75dvh;overflow-y:auto;overscroll-behavior:contain;text-align:left;white-space:normal}
.mg-smart-panel[hidden],.mg-smart-all[hidden]{display:none!important}
.mg-smart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:linear-gradient(110deg,#edf2e7,#f8faf5);border-bottom:1px solid #e2e9dd}
.mg-smart-heading>div{display:grid;gap:2px}.mg-smart-eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:#637b5b}.mg-smart-heading strong{font-size:24px;line-height:1.15;font-weight:700}
.mg-search .mg-smart-close{padding:0;width:40px;height:40px;flex-shrink:0;border-radius:50%;background:#fff;border:1px solid #dbe4d6;font-size:27px;line-height:1}
.mg-smart-body{padding:14px 22px 4px;font-size:17px;line-height:1.35}.mg-smart-body p{margin:0 0 12px}.mg-smart-body:empty{display:none}.mg-smart-chips{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:14px}.mg-search .mg-smart-chip{padding:8px 13px;border:1px solid #dbe4d6;border-radius:30px;font:600 16px/1.2 Zain,Arial,sans-serif;background:#f5f8f1;min-height:40px}.mg-search .mg-smart-chip:hover{background:#e5eddf;border-color:#9eb493}
.mg-smart-results{display:grid;grid-template-columns:1fr 1fr;gap:8px;list-style:none;margin:0;padding:8px 14px 14px}.mg-smart-results:empty{display:none}.mg-smart-result{min-width:0}.mg-smart-result>a{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid #e6ebe2;border-radius:12px;text-decoration:none;color:#233b32;min-height:114px;transition:background .15s,border-color .15s}.mg-smart-result>a:hover,.mg-smart-result[aria-selected=true]>a{background:#f0f5e9;border-color:#8aa17d;outline:none}.mg-smart-result img{width:74px;height:74px;object-fit:contain;background:#fff;border-radius:8px}.mg-smart-result strong{font-size:16px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-weight:600}.mg-smart-result b{display:block;margin-top:6px;font-size:20px;line-height:1.1}.mg-smart-availability{display:block;font-size:13px;color:#59734c;line-height:1.2;margin-top:4px}.mg-smart-result.is-unavailable img{opacity:.5}.mg-smart-result.is-unavailable .mg-smart-availability{color:#7d7466}
.mg-smart-all{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 22px 16px;padding:12px 16px;border-radius:10px;background:#536f56;color:#fff;text-decoration:none;font-size:18px;font-weight:700}.mg-smart-all:hover{background:#344e3b;color:#fff}.mg-smart-tip{padding:12px 22px;border-top:1px solid #e6ebe2;background:#fafbf8;font-size:14px;color:#6c7968}.mg-search .mg-smart-original{display:block;padding:0;margin:8px 0 10px;font:inherit;text-decoration:underline;text-underline-offset:3px;text-align:left}.mg-smart-search :is(a,button):focus-visible{outline:2px solid #536f56;outline-offset:3px}
@media(max-width:1100px){.mg-smart-search>.mg-smart-panel{width:100%;max-width:100%}}
@media(max-width:700px){.mg-smart-heading{padding:15px 16px}.mg-smart-heading strong{font-size:22px}.mg-smart-body{padding-inline:16px}.mg-smart-results{grid-template-columns:1fr;padding:6px 10px 12px;gap:6px}.mg-smart-result>a{min-height:94px;grid-template-columns:68px minmax(0,1fr);padding:8px 10px}.mg-smart-result img{width:68px;height:68px}.mg-smart-result strong{-webkit-line-clamp:2}.mg-smart-all{margin-inline:16px}.mg-smart-tip{padding-inline:16px}.mg-smart-search>.mg-smart-panel{max-height:65dvh;border-radius:14px}.mg-header .mg-smart-search input{font-size:17px;padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.mg-header .mg-smart-search,.mg-smart-result>a{transition:none}}
.mg-smart-progress{padding:8px 22px;color:#536f56;font-size:15px;line-height:1.3;background:#f8faf5;border-bottom:1px solid #e6ebe2}
.mg-smart-progress[hidden]{display:none}
.mg-smart-search[data-search-loading] .mg-smart-results{opacity:.6;pointer-events:none}
.mg-smart-search[data-search-loading] .mg-smart-body{pointer-events:none}
