/* Machines Market | Brand guidelines | 2026 design unification
   Official palette: yellow #F4DA3A, teal #006D77, black #000,
   charcoal #222, gray #888, light gray #DDD, canvas #F6F6F6, white #FFF.
   Oxanium 600 headings, Open Sans body; spacing 8/16/24/32/40/48/64/80. */
:root{
 --mm-color-yellow:#f4da3a;--mm-color-yellow-hover:#e1c429;--mm-color-petrol:#006d77;
 --mm-color-blue:#222222;--mm-color-bg:#f6f6f6;--mm-color-border:#dddddd;
 --mm-color-muted:#888888;--mm-color-black:#000;--mm-color-white:#fff;
 --mm-color-button-text:#222;--mm-color-button-hover-text:#222;
 --mmm-accent:#f4da3a;--mmm-accent-hover:#e1c429;--mmm-petrol:#006d77;
 --mmm-dark:#222;--mmm-light:#ddd;--mmm-border:#ddd;
 --mm-radius-button:4px;--mm-radius-card:8px;--mm-button-height:44px;
 --mm-gap:24px;--mm-card-padding:20px;
 --mm-gold:#f4da3a;--mm-primary:#f4da3a;--mm-accent:#f4da3a;
}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-wrap,.mm-core-container,.mm-shop,.mm-campaigns,.mm-chat-widget,.mmpl-theme){
 --mm-color-yellow:#f4da3a;--mm-color-yellow-hover:#e1c429;--mm-color-petrol:#006d77;
 --mm-color-blue:#222;--mm-color-bg:#f6f6f6;--mm-color-border:#ddd;
 --mmm-accent:#f4da3a;--mmm-accent-hover:#e1c429;--mmm-petrol:#006d77;
 --mmm-dark:#222;--mmm-border:#ddd;--mm-gold:#f4da3a;
 color:#222;font-family:'Open Sans',Arial,sans-serif;
}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mmpl-theme) :is(h1,h2,h3,h4,h5,h6){font-family:'Oxanium','Open Sans',Arial,sans-serif;font-weight:600;letter-spacing:normal;overflow-wrap:break-word}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop) :is(h1){font-size:clamp(32px,4vw,56px);line-height:1.11}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop) :is(h2){font-size:clamp(27px,3vw,48px);line-height:1.12}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop) :is(h3){font-size:clamp(24px,2.4vw,40px);line-height:1.15}
/* Primary CTAs: consistent yellow, legible charcoal text, no gradients or lift effects */
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mm-chat-widget,.mmpl-theme)
:is(button[type=submit],input[type=submit],.button-primary,.btn-primary,.mm-btn-primary,.mmm-button,.mm-machine-button,.mm-core-button,.mmm-alert-button,.mmpl-btn,.mmpl-sell-btn,.mmpl-chat-toggle,.mmpl-chat-body form button,.mm-chat-send,.mm-chat-launcher,.elementor-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button):not(.mmm-icon-btn):not(.mmm-tool-btn):not(.mmpl-chat-close):not(.mmpl-mobile-toggle):not(.mm-chat-close){
 background:#f4da3a!important;background-image:none!important;border:1px solid #f4da3a!important;
 border-radius:4px!important;color:#222!important;-webkit-text-fill-color:#222!important;
 font-family:'Open Sans',Arial,sans-serif!important;font-weight:700!important;font-size:16px!important;
 line-height:22px!important;min-height:44px;padding:10px 18px!important;box-shadow:none!important;
 text-shadow:none!important;text-decoration:none!important;transform:none!important;
 transition:background-color .15s ease,border-color .15s ease!important;cursor:pointer;
}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mm-chat-widget,.mmpl-theme)
:is(button[type=submit],input[type=submit],.button-primary,.btn-primary,.mm-btn-primary,.mmm-button,.mm-machine-button,.mm-core-button,.mmm-alert-button,.mmpl-btn,.mmpl-sell-btn,.mmpl-chat-toggle,.mmpl-chat-body form button,.mm-chat-send,.mm-chat-launcher,.elementor-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button):not(.mmm-icon-btn):not(.mmm-tool-btn):not(.mmpl-chat-close):not(.mmpl-mobile-toggle):not(.mm-chat-close):hover{
 background:#e1c429!important;border-color:#e1c429!important;color:#222!important;-webkit-text-fill-color:#222!important;box-shadow:none!important;transform:none!important;
}
/* Links, secondary actions and utility buttons */
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mmpl-theme) a:not([class*="button"]):not([class*="btn"]):not(.mmpl-brand):hover{color:#006d77}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mmpl-theme)
:is(.mmm-tool-btn,.mmm-icon-btn,.mmpl-chat-close,.mmpl-mobile-toggle){box-shadow:none!important;border-radius:4px!important}
/* Form controls and search filters */
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mm-chat-widget,.mmpl-theme)
:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea){
 border:1px solid #ddd!important;border-radius:4px!important;background-color:#fff!important;
 color:#222!important;font-family:'Open Sans',Arial,sans-serif!important;font-size:16px!important;
 min-height:44px!important;box-shadow:none!important;max-width:100%;
}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mm-chat-widget,.mmpl-theme)
:is(input,select,textarea,button,a):focus-visible{outline:3px solid #006d77!important;outline-offset:2px!important}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mmpl-theme)
:is(input,select,textarea):focus{border-color:#006d77!important;box-shadow:0 0 0 2px #006d7722!important}
/* Product cards, filters and panels */
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop)
:is(.mmm-filter,.mmm-inquiry-wrap,.mmm-detail-section,.mmm-detail-facts,.mmm-technical,.mmm-card,.mmm-machine-tools,.mmm-panel,.mmm-saved-card){border-color:#ddd!important;border-radius:8px!important;box-shadow:none!important}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop)
:is(.mmm-filter,.mmm-detail-facts,.mmm-technical,.mmm-panel){background:#f6f6f6!important;color:#222!important}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop)
:is(.mmm-card,.mmm-saved-card,.mmm-detail-section){background:#fff!important}
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop) :is(.mmm-price,.mmm-detail-price,.mmm-saved-price,.mm-machine-price){color:#006d77!important}
/* Detail photography constrained without cutting off a whole machine */
body.single-mmm_machine .mmm-detail :is(.mmm-detail-media,.mmm-detail-gallery,.mmm-detail-image,.mmm-main-image){max-width:min(100%,760px);margin-inline:auto;box-shadow:none!important;border-color:#ddd!important}
body.single-mmm_machine .mmm-detail :is(.mmm-detail-media,.mmm-detail-gallery,.mmm-detail-image,.mmm-main-image) img{display:block;max-width:100%!important;max-height:500px!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:center!important;margin-inline:auto}
/* Chat carries identical button/color/form design */
:where(.mmpl-theme,.mm-chat-widget,.mm-ai-chat,.mmm-chat-widget) :is(.mmpl-chat-title,.mm-chat-header,.mmm-chat-header){background:#f4da3a!important;color:#222!important}
:where(.mmpl-theme,.mm-chat-widget,.mm-ai-chat,.mmm-chat-widget) :is(.mmpl-chat-panel,.mm-chat-panel,.mmm-chat-panel){border-color:#ddd!important;border-radius:8px!important}
/* Mobile: preserve working plugin layout while ensuring tap targets and horizontal safety */
@media(max-width:767px){
 :where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mmpl-theme){overflow-wrap:anywhere}
 :where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mm-shop,.mmpl-theme) :is(button[type=submit],input[type=submit],.mmm-button,.mm-machine-button,.mmpl-btn){min-height:44px!important}
 body.single-mmm_machine .mmm-detail :is(.mmm-detail-media,.mmm-detail-gallery,.mmm-detail-image,.mmm-main-image) img{max-height:320px!important}
}
@media(prefers-reduced-motion:reduce){:where(.mmm-market,.mmm-detail,.mmpl-theme) *{transition-duration:.01ms!important}}
