/* Mobile touch layout. Deliberately scoped away from desktop and print. */
@media screen and (max-width:700px){
 :root{--mobile-gutter:16px;--mobile-radius:18px}
 body{font-size:14px;line-height:1.5;-webkit-text-size-adjust:100%}
 *,*::before,*::after{box-sizing:border-box}
 button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
 button,a{touch-action:manipulation}
 input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{font-size:16px!important;max-width:100%;border-radius:12px!important;min-height:46px}
 input[type=checkbox],input[type=radio]{width:20px;height:20px;flex-shrink:0}
 button:focus-visible,a:focus-visible{outline:2px solid var(--theme-primary,#397765);outline-offset:3px}
 dialog{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;border-radius:22px!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#81958944 transparent}
 dialog::backdrop{background:#172f3b66;backdrop-filter:blur(5px)}
 dialog :is(.dialog-head,.catalog-order-head,.form-head){position:sticky;top:0;z-index:5;background:var(--theme-background,#fafcfb);padding:18px!important;border-bottom:1px solid #81958926}
 dialog :is(.dialog-head,.catalog-order-head,.form-head) h2{font-size:20px!important;line-height:1.3;margin:0}
 dialog :is(.dialog-head,.catalog-order-head,.form-head) button{min-width:44px;min-height:44px;flex-shrink:0}
 dialog :is(.dialog-body,.catalog-order-body){padding:18px!important;min-width:0}
 dialog :is(.form-actions,.dialog-actions){display:flex;flex-wrap:wrap;gap:10px;padding:16px!important}
 dialog :is(.form-actions,.dialog-actions)>button{min-height:46px;flex:1 1 130px;white-space:normal}
 .order-alert-toast{top:76px;right:12px}
}
