/* Native menu dialogs share viewport geometry across both theme shells.
   Explicit margins also override CSS resets that move showModal() to (0, 0). */
.menu-design dialog.product-dialog,
.menu-design dialog.image-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    overscroll-behavior: contain;
}
.menu-design dialog.product-dialog {
    max-height: 90vh;
    max-height: min(90dvh, calc(100dvh - 24px));
}
.menu-design dialog.image-dialog {
    width: fit-content;
    height: fit-content;
    max-width: 94vw;
    max-height: 92vh;
}
.menu-design :is(.dialog-close, .image-dialog-close) {
    min-width: 44px;
    min-height: 44px;
}
