/* يعمل فقط عندما لا يدعم المتصفح <dialog> (الصنف no-dialog يضيفه shop-compat.js) */
.no-dialog dialog{display:none;position:fixed;left:0;right:0;top:0;bottom:0;height:-webkit-fit-content;height:fit-content;z-index:100001;color:inherit;border:0;padding:0}
.no-dialog dialog:not(.sheet){margin:auto}
.no-dialog dialog.sheet{margin-left:auto;margin-right:auto}
.no-dialog dialog[open]:not(.sheet){display:block}
.dlg-backdrop{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,.45);z-index:100000}
/* تثبيت الشاشة: لا تغبيش على خلفية النافذة (يسبب تعليق الشاشة المغبّشة على بعض أجهزة آيفون) */
.sheet::backdrop,dialog::backdrop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(0,0,0,.45)}
.sheet-foot{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:var(--surface,#fff)}
a,button,[role=button],summary,label,select,input{touch-action:manipulation}

/* ===== إصلاح سفاري/آيفون: النافذة (السلة، المزيد، الطلب) كانت تفتح بارتفاع صفر =====
   السبب: flex:1 (أي flex-basis:0%) داخل حاوية ارتفاعها تلقائي يعتبره سفاري صفراً، بينما كروم يعتبره "حسب المحتوى".
   الحل: flex-basis:auto مع السماح بالتقلّص (min-height:0) فيتمرّر المحتوى الطويل داخل .sheet-scroll. */
.sheet .sheet-body{flex:0 1 auto;min-height:0}
.sheet .sheet-scroll{flex:0 1 auto;min-height:0;-webkit-overflow-scrolling:touch}
