/* Preserve each theme's accent, including custom colors and existing transforms. */
html body :is(button,input[type="submit"],input[type="button"],input[type="reset"],a[role="button"],a.mes-button,a.mes-nav-cta,a.mes-footer-action,a.mes-provider-button,a.mes-rp-popup-link,a.mes-order-primary,a.mes624-call-link,a.mes-error-secondary):not(:disabled):not([aria-disabled="true"]):active {
 filter: brightness(.82) !important;
}
html body .mes-resume-upload input[type="file"]::file-selector-button:active { filter:brightness(.82); }

/* Footer CTA and menu PDF have higher-specificity theme hover rules. */
html body:not(.mes-dashboard-page) .mes-footer-column a.mes-text-link[href]:active,
html body:not(.mes-dashboard-page) .mes-footer-column a.mes-footer-action[href]:active,
html body.mes-public-menu-page:not(.mes-dashboard-page) .mes-minimal-pdf a.mes-button[href]:active,
html body:not(.mes-dashboard-page) a.mes-home-link-button[href]:active {
 filter:brightness(.82)!important;
 transform:translateY(3px)!important;
 box-shadow:none!important;
}
@media(prefers-reduced-motion:reduce){
 html body:not(.mes-dashboard-page) .mes-footer-column a.mes-text-link[href]:active,
 html body:not(.mes-dashboard-page) .mes-footer-column a.mes-footer-action[href]:active,
 html body.mes-public-menu-page:not(.mes-dashboard-page) .mes-minimal-pdf a.mes-button[href]:active,
 html body:not(.mes-dashboard-page) a.mes-home-link-button[href]:active {transform:none!important;transition:none!important;}
}

/* Public click feedback: independent translate preserves centered/fixed controls and existing transforms. */
html body:not(.mes-dashboard-page) .mes659-comment-close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #e5e5e5;border-radius:50%;background:#fff;color:#222;cursor:pointer;box-shadow:0 2px 8px #00000010;}
html body:not(.mes-dashboard-page) .mes624-comment-modal h3{padding-right:40px;}
html body:not(.mes-dashboard-page) .mes659-comment-close:hover{background:#f5f5f5;}
@supports (translate:0 2px){
 html body:not(.mes-dashboard-page) :is(a[href],button,input[type="submit"],input[type="button"],[role="button"],.mes-minimal-dish-card[data-order-dish],.mes-featured-dish):not(:disabled):not([aria-disabled="true"]):active {translate:0 2px!important;}
 /* Avoid stacking card and child movements when pressing a card action. */
 html body:not(.mes-dashboard-page) :is(.mes-minimal-dish-card[data-order-dish],.mes-featured-dish):has(:is(a,button,[role="button"]):active):active {translate:none!important;}
 /* Existing theme transforms may lift or lower buttons: normalize those, but retain fixed-control centering. */
 html body:not(.mes-dashboard-page) :is(a.mes-button,a.mes-text-link,a.mes-footer-action,a.mes-home-link-button,a.mes-nav-cta,button.mes-order-primary,.mes624-comment-actions button,.mes659-comment-close):active {transform:none!important;}
}
@media(prefers-reduced-motion:reduce){html body:not(.mes-dashboard-page) :is(a[href],button,input[type="submit"],input[type="button"],[role="button"],.mes-minimal-dish-card[data-order-dish],.mes-featured-dish):active{translate:none!important;}}
