/* Existing theme geometry stays intact. Shared controls inherit its native surface. */
body[data-menu-theme]:not([data-menu-theme="modern-theme-18"]):not([data-menu-theme="modern-theme-21"]) {
 --mi-other-panel:#fff;--mi-other-text:#202734;--mi-other-border:#d8dde5;--mi-other-muted:#596477;
}
body[data-menu-theme][dark="dark"],body[data-menu-theme="modern-theme-20"]:not(.light-mode) {
 --mi-other-panel:#20242b;--mi-other-text:#f8fafc;--mi-other-border:#49515e;--mi-other-muted:#c3cad5;
}
body:is([data-menu-theme="modern-theme-23"],[data-menu-theme="modern-theme-24"],[data-menu-theme="modern-theme-25"]) {
 --mi-other-panel:var(--mt23-card);--mi-other-text:var(--mt23-ink);--mi-other-muted:var(--mt23-muted);
}
/* Native selection controls keep one baseline and readable chosen values. */
body:is([data-menu-theme="classic-theme"],[data-menu-theme="modern-theme"],[data-menu-theme="modern-theme-19"],[data-menu-theme="modern-theme-20"],[data-menu-theme="modern-theme-22"],[data-menu-theme="modern-theme-23"],[data-menu-theme="modern-theme-24"],[data-menu-theme="modern-theme-25"],[data-menu-theme="modern-theme-26"]) :is(.quickad-variants,.quickad-extras,.mt23-item-modal,.mi-lunch-dialog,.mi-product-media-dialog) select {
 box-sizing:border-box;max-width:100%;min-width:0;min-height:42px;font:inherit;line-height:1.4;
 padding:9px 36px 9px 12px;border:1px solid var(--mi-other-border);border-radius:10px;
 color:var(--mi-other-text);background-color:var(--mi-other-panel);appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23768193' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-size:18px;background-position:right 12px center;background-repeat:no-repeat;
}
body.rtl[data-menu-theme] :is(.quickad-variants,.quickad-extras,.mt23-item-modal,.mi-lunch-dialog,.mi-product-media-dialog) select {padding-inline:12px 36px;background-position:left 12px center;}
body[data-menu-theme]:not([data-menu-theme="modern-theme-18"]):not([data-menu-theme="modern-theme-21"]) :is(.mi-lunch-dialog,.mi-product-media-dialog) {
 background:var(--mi-other-panel);color:var(--mi-other-text);
}
body[data-menu-theme]:not([data-menu-theme="modern-theme-18"]):not([data-menu-theme="modern-theme-21"]) :is(.mi-lunch-option,.mi-lunch-dialog footer,.mi-lunch-close,.mi-media-close) {background:var(--mi-other-panel);color:var(--mi-other-text);border-color:var(--mi-other-border);}
body[data-menu-theme]:not([data-menu-theme="modern-theme-18"]):not([data-menu-theme="modern-theme-21"]) :is(.mi-lunch-intro,.mi-lunch-choice-group legend small,.mi-lunch-status) {color:var(--mi-other-muted);}
body[data-menu-theme]:not([data-menu-theme="modern-theme-18"]):not([data-menu-theme="modern-theme-21"]) :is(.mi-lunch-choice-group,.mi-media-extra,.mi-media-head) {border-color:var(--mi-other-border);}
body[data-menu-theme]:not([data-menu-theme="modern-theme-18"]):not([data-menu-theme="modern-theme-21"]) .mi-lunch-option:has(input:checked) {background:var(--mi-brand);color:var(--mi-on-brand);border-color:var(--mi-brand);}
body[data-menu-theme]:not([data-menu-theme="modern-theme-18"]):not([data-menu-theme="modern-theme-21"]) :is(.mi-lunch-submit,.mi-media-apply) {background:var(--mi-brand);color:var(--mi-on-brand);}
body[data-menu-theme="modern-theme-20"] :is(.dish-modal-title,.dish-modal-description,.dish-modal-price) {overflow-wrap:anywhere;}
body:is([data-menu-theme="modern-theme-20"],[data-menu-theme="modern-theme-22"]) :is(.dish-modal-gallery-nav,.dish-modal-close-btn,.dish-modal-fullscreen-btn) {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:40px;min-height:40px;padding:8px;line-height:1;}
body[data-menu-theme="modern-theme-22"] .dish-modal-bottom-bar {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
body[data-menu-theme="modern-theme-22"] .dish-modal-bottom-bar :is(.dish-modal-bottom-unit-price,.dish-modal-qty-badge) {flex-shrink:0;}
body[data-menu-theme="modern-theme-22"] .mt22-dish-extras {display:inline-flex;align-items:center;justify-content:center;min-height:40px;max-width:100%;padding:8px 14px;border:1px solid var(--mi-other-border);border-radius:10px;background:var(--mi-other-panel);color:var(--mi-other-text);font:inherit;line-height:1.4;cursor:pointer;}
body:is([data-menu-theme="modern-theme-23"],[data-menu-theme="modern-theme-24"],[data-menu-theme="modern-theme-25"]) :is(.mt23-item-modal-title,.mt23-item-modal-desc,.mt23-item-modal-price) {min-width:0;overflow-wrap:anywhere;}
body:is([data-menu-theme="modern-theme-23"],[data-menu-theme="modern-theme-24"],[data-menu-theme="modern-theme-25"]) .mt23-item-modal-qty {display:flex;align-items:center;gap:8px;}
/* Image-only zoom: its controls never change the product detail size. */
.mi-theme-photo-viewer {position:fixed;inset:0;box-sizing:border-box;margin:0;width:100%;max-width:none;height:100%;max-height:none;padding:0;border:0;background:#11151b;color:#fff;overflow:hidden;z-index:2147483000;}
.mi-theme-photo-viewer:not([open]) {display:none!important;}
.mi-theme-photo-viewer::backdrop {background:rgba(0,0,0,.88);}
.mi-theme-photo-stage {position:absolute;inset:60px 10px 76px;display:grid;place-items:center;overflow:hidden;touch-action:none;user-select:none;}
.mi-theme-photo-stage[data-zoomed="true"] {cursor:grab;}
.mi-theme-photo-stage[data-dragging="true"] {cursor:grabbing;}
.mi-theme-photo-large {display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;will-change:transform;user-select:none;pointer-events:none;}
.mi-theme-photo-large[hidden] {display:none!important;}
.mi-theme-photo-button {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex-shrink:0;width:42px;height:42px;border:1px solid #626a76;border-radius:50%;padding:9px;background:#252b34;color:#fff;cursor:pointer;font:inherit;}
.mi-theme-photo-button svg {width:22px;height:22px;display:block;}
.mi-theme-photo-button:disabled {opacity:.4;cursor:default;}
.mi-theme-photo-button:focus-visible {outline:3px solid #9ecbff;outline-offset:3px;}
.mi-theme-photo-close {position:absolute;right:max(14px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));}
.mi-theme-photo-toolbar {position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;max-width:calc(100% - 24px);}
.mi-theme-photo-scale {min-width:48px;text-align:center;font:600 14px/1.4 system-ui,sans-serif;font-variant-numeric:tabular-nums;}
.mi-theme-photo-status {position:absolute;top:50%;left:16px;right:16px;transform:translateY(-50%);text-align:center;pointer-events:none;font:16px/1.5 system-ui,sans-serif;}
.mi-theme-photo-retry {position:absolute;left:50%;top:calc(50% + 44px);transform:translateX(-50%);width:auto;min-width:100px;border-radius:12px;}
.mi-theme-photo-retry[hidden] {display:none!important;}
@media(prefers-reduced-motion:reduce){.mi-theme-photo-large{will-change:auto;}}
