#orderModal .mg-modal-heading,#orderModal .mg-modal-scroll{display:contents}
@media(max-width:820px),(max-height:700px){
 #orderModal.mg-modal-ready{inset:auto 0 auto 0;top:var(--mg-modal-top,0px);height:100vh;height:100dvh;height:var(--mg-modal-height,100dvh);display:flex;align-items:flex-start;justify-content:center;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:hidden;box-sizing:border-box}
 #orderModal.mg-modal-ready .modal-box{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(560px,100%);min-height:0;max-height:100%;padding:0;overflow:hidden;border-radius:14px;overscroll-behavior:contain}
 #orderModal.mg-modal-ready .mg-modal-heading{display:flex;align-items:flex-start;gap:8px;padding:12px 12px 6px;background:rgba(14,20,35,.97);position:relative;z-index:2}
 #orderModal.mg-modal-ready .mg-modal-heading h2{flex:1;min-width:0;margin:0;padding:0;font-size:clamp(23px,6vw,28px);line-height:1.06}
 #orderModal.mg-modal-ready .modal-close{position:static;flex:0 0 44px;width:44px;height:44px;margin:0;display:grid;place-items:center;font-size:27px;line-height:1;touch-action:manipulation}
 #orderModal.mg-modal-ready .mg-modal-scroll{display:block;min-height:0;padding:6px 12px 12px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:10px}
 #orderModal.mg-modal-ready .modal-subtitle{font-size:13px;line-height:1.3;margin:0 0 9px;max-width:none;text-wrap:initial}
 #orderModal.mg-modal-ready .order-form{gap:7px}
 #orderModal.mg-modal-ready .order-form label{gap:3px}
 #orderModal.mg-modal-ready .order-form label span{font-size:13px;line-height:1.25}
 #orderModal.mg-modal-ready .order-form input,#orderModal.mg-modal-ready .order-form select,#orderModal.mg-modal-ready .order-form textarea{min-height:40px;font-size:16px;line-height:1.25;padding:8px 10px;border-radius:8px}
 #orderModal.mg-modal-ready .order-form textarea{height:64px;min-height:64px;max-height:120px}
 #orderModal.mg-modal-ready .smart-captcha-shell{margin:1px 0 0;padding:0;border:0;background:none;border-radius:0;height:var(--mg-captcha-height,80px);min-height:var(--mg-captcha-height,80px);overflow:visible}
 #orderModal.mg-modal-ready .smart-captcha-box{width:125%;min-height:100px;transform:scale(.8);transform-origin:top left}
 #orderModal.mg-modal-ready .form-note{margin:0;font-size:11px;line-height:1.35}
 #orderModal.mg-modal-ready .form-status{margin:0;font-size:13px;line-height:1.3;min-height:0}
 #orderModal.mg-modal-ready .form-status:empty{display:none}
 #orderModal.mg-modal-ready .order-form .btn.big{width:100%;min-height:44px;padding:9px 10px;font-size:16px;line-height:1.25}
}
