.mep-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-width:560px;max-height:90vh;max-height:90dvh;margin:auto;padding:0;border:1px solid #e5e0d5;border-radius:22px;background:#fffdf7;color:#25251f;box-shadow:0 24px 90px #0005;font:16px/1.5 system-ui,-apple-system,sans-serif;overflow:auto;overscroll-behavior:contain;text-align:left}
.mep-dialog::backdrop{background:rgba(20,23,18,.65);backdrop-filter:blur(3px)}
.mep-dialog *{box-sizing:border-box}
.mep-dialog .mep-header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:2;padding:18px 20px;background:#fffdf7;border-bottom:1px solid #eae6dc}
.mep-dialog .mep-title{margin:0;padding:0;border:0;color:#25251f;font:700 22px/1.25 system-ui,-apple-system,sans-serif;letter-spacing:-.4px;text-transform:none;overflow-wrap:anywhere}
.mep-dialog .mep-body{padding:20px;display:flex;flex-direction:column;gap:16px}
.mep-dialog p{margin:0;font:inherit;color:inherit}
.mep-dialog .mep-description{white-space:pre-line}
.mep-dialog .mep-photo{display:flex;justify-content:center;align-items:center;min-height:120px;background:#f0eee6;border-radius:14px;overflow:hidden}
.mep-dialog .mep-photo img{display:block;width:100%;max-height:340px;max-height:min(340px,42dvh);object-fit:contain;margin:0;border:0;border-radius:0}
.mep-dialog .mep-muted{color:#6b6c62;font-size:14px}
.mep-dialog .mep-small{font-size:12px;text-align:center}
.mep-dialog .mep-price{font-size:24px;font-weight:750}
.mep-dialog .mep-allergens{display:flex;flex-wrap:wrap;gap:7px}
.mep-dialog .mep-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e3e0d6;border-radius:20px;background:#fff;font-size:12px}
.mep-dialog .mep-chip img{width:22px;height:22px;object-fit:contain}
.mep-dialog button,.mep-launcher{font:600 15px/1.3 system-ui,-apple-system,sans-serif;text-transform:none;letter-spacing:normal;cursor:pointer;box-shadow:none}
.mep-dialog .mep-button{display:block;width:100%;min-height:48px;padding:13px 18px;margin:0;border:1px solid #ddd6b3;border-radius:12px;background:#fff;color:#28291e;white-space:normal}
.mep-dialog .mep-primary{background:#fce107;border-color:#e6ce00;color:#24240e}
.mep-dialog .mep-primary:hover{background:#f3d900}
.mep-dialog .mep-secondary{background:transparent;border-color:#dcd8cb}
.mep-dialog .mep-close{flex:0 0 44px;width:44px;height:44px;margin:0;padding:0;border:1px solid #dfddd3;border-radius:50%;background:#fff;color:#25251f;font-size:28px}
.mep-dialog button:disabled{opacity:.5;cursor:not-allowed}
.mep-dialog button:focus-visible,.mep-launcher:focus-visible,.mep-dialog input:focus-visible{outline:3px solid #2f7250;outline-offset:3px}
.mep-dialog .mep-prices{display:flex;flex-direction:column;gap:8px;margin:0;padding:12px;border:1px solid #ddd8c9;border-radius:12px}
.mep-dialog .mep-prices legend{padding:0 5px;font-size:14px;font-weight:600}
.mep-dialog .mep-prices label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.mep-dialog input[type=radio]{width:18px;height:18px;accent-color:#776900;flex:0 0 auto}
.mep-dialog .mep-unavailable,.mep-dialog .mep-warning{padding:12px;border-radius:10px;background:#fff1df;color:#783c0d;font-size:14px}
.mep-dialog .mep-notes{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none}
.mep-dialog .mep-notes li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 0;border-bottom:1px solid #e6e2d7;list-style:none}
.mep-dialog .mep-notes strong{display:block;overflow-wrap:anywhere}
.mep-dialog .mep-notes small{display:block;color:#6b6c62}
.mep-dialog .mep-line-price{font-weight:600;white-space:nowrap}
.mep-dialog .mep-remove{grid-column:1/-1;justify-self:start;min-height:44px;padding:6px 0;margin:0;border:0;background:none;color:#8c2e23;font-size:13px;text-decoration:underline}
.mep-dialog .mep-total{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;border-radius:12px;background:#f0eee4;font-size:19px}
.mep-dialog .mep-empty{padding:20px 0;text-align:center;color:#6b6c62}
.mep-dialog .mep-live:not(:empty){position:sticky;bottom:0;margin:0;padding:14px 20px;background:#e8f4e9;border-top:1px solid #bcd8bf;color:#205b29;font-size:14px}
.mep-launcher{position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:99999;max-width:calc(100vw - 32px);min-height:46px;padding:12px 18px;border:1px solid #c4ae00;border-radius:30px;background:#fce107;color:#202016;box-shadow:0 5px 20px #0002}
@media(max-width:480px){.mep-dialog{border-radius:18px}.mep-dialog .mep-header{padding:14px 16px}.mep-dialog .mep-title{font-size:20px}.mep-dialog .mep-body{padding:16px}.mep-launcher{font-size:14px}}

.mep-dialog .mep-order,.mep-dialog .mep-order-preview{display:flex;flex-direction:column;gap:14px}
.mep-dialog .mep-order label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.mep-dialog .mep-order input,.mep-dialog .mep-order select{width:100%;min-height:46px;border:1px solid #c9c6b8;border-radius:8px;padding:10px;background:#fff;color:#25251f;font:16px system-ui,sans-serif}
.mep-dialog .mep-order label[hidden]{display:none}
.mep-dialog .mep-message{margin:0;padding:14px;background:#f1efe5;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.5 system-ui,sans-serif}
.mep-dialog a.mep-button{text-align:center;text-decoration:none}
body.mep-pilot-active #openPreferitiPopup .badge:not(.mep-badge),body.mep-pilot-active #openPreferiti .badge:not(.mep-badge),body.mep-pilot-active .mep-open-notes .badge:not(.mep-badge){display:none!important}
body.mep-pilot-active .mep-badge-host{position:relative!important;overflow:visible!important}
body.mep-pilot-active .mep-badge{position:absolute!important;top:-8px!important;right:-8px!important;left:auto!important;bottom:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:21px!important;height:21px!important;padding:0 5px!important;border:2px solid #fff!important;border-radius:20px!important;background:#d82332!important;color:#fff!important;font:700 11px/1 system-ui,sans-serif!important;z-index:3;pointer-events:none}
body.mep-pilot-active .mep-badge[hidden]{display:none!important}
.mep-dialog .mep-quantity{display:flex;align-items:center;gap:12px;grid-column:1/-1}
.mep-dialog .mep-qty{width:44px;height:44px;padding:0;border:1px solid #c9c6b8;border-radius:10px;background:#fff;color:#25251f;font-size:22px}
.mep-dialog .mep-note-button{justify-self:start;grid-column:1/-1;min-height:44px;border:1px solid #ddd8c9;border-radius:9px;background:#fff;color:#25251f;padding:8px 12px}
.mep-dialog .mep-notes-editor,.mep-dialog .mep-saved-note{grid-column:1/-1}
.mep-dialog .mep-notes-editor[hidden]{display:none}
.mep-dialog .mep-notes-editor label{display:grid;gap:6px;font-size:14px}
.mep-dialog .mep-notes-editor textarea{width:100%;padding:10px;border:1px solid #c9c6b8;border-radius:8px;background:#fff;color:#25251f;font:16px/1.4 system-ui,sans-serif;resize:vertical}
.mep-dialog .mep-saved-note{font-size:13px;color:#65665b;white-space:pre-wrap}
.mep-dialog .mep-costs{display:flex;flex-direction:column;gap:8px;padding:14px;background:#f1efe5;border-radius:12px}

#mep-dialog .mep-whatsapp{background:#128c46;color:#fff;border-color:#128c46;display:inline-flex;align-items:center;justify-content:center;gap:9px}#mep-dialog .mep-whatsapp:hover{background:#086b32;color:#fff}.mep-wa-icon{display:inline-flex;width:24px;height:24px;flex-shrink:0}.mep-wa-icon svg{width:100%;height:100%}.mep-order-preview{scroll-margin-top:16px}.mep-sent-confirm{padding:16px;margin-top:16px;border:1px solid #128c46;border-radius:12px}
