/* Machines Market Design System 1.0 – zentrale Frontend-Basis */
:root{
 --mm-color-blue:#262F40;--mm-color-yellow:#F5C518;--mm-color-yellow-hover:#EFAE00;
 --mm-color-petrol:#2E6B75;--mm-color-bg:#F7F8F9;--mm-color-border:#CFD4D7;
 --mm-color-white:#FFF;--mm-color-black:#111;--mm-color-muted:#5F6670;
 --mm-font-heading:"Oxanium",sans-serif;--mm-font-body:"Open Sans",sans-serif;
 --mm-radius-button:6px;--mm-radius-card:8px;--mm-content-width:1600px;
 --mm-gap:24px;--mm-transition:180ms ease;--mm-button-height:48px;--mm-card-border:1px;--mm-card-padding:20px;--mm-image-ratio:4/3;--mm-machines-desktop:4;--mm-machines-laptop:3;--mm-machines-tablet:2;--mm-machines-mobile:1;
 /* Abwärtskompatibilität für Manager-Module */
 --mmm-accent:#F5C518;--mmm-accent-hover:#EFAE00;--mmm-petrol:#2E6B75;
 --mmm-dark:#262F40;--mmm-light:#CFD4D7;--mmm-border:#CFD4D7;--mmm-radius:8px;
}
.mm-core-container,.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page{
 width:min(calc(100% - 48px),var(--mm-content-width));margin-inline:auto;
}
.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,
.mmm-market input,.mmm-market select,.mmm-market textarea,.mmm-market button,
.mmm-detail input,.mmm-detail select,.mmm-detail textarea,.mmm-detail button{
 font-family:var(--mm-font-body);
}
.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page{color:var(--mm-color-black)}
.mmm-market h1,.mmm-market h2,.mmm-market h3,.mmm-market h4,
.mmm-detail h1,.mmm-detail h2,.mmm-detail h3,.mmm-detail h4,
.mmm-dealer-profile h1,.mmm-dealer-profile h2,.mmm-dealer-profile h3,.mmm-dealer-profile h4,
.mmm-directory-content h1,.mmm-directory-content h2,.mmm-directory-content h3,.mmm-directory-content h4{
 font-family:var(--mm-font-heading);color:var(--mm-color-black);
}
/* Buttons */
.mm-core-button,.mmm-button,.mm-machine-button,.mmm-alert-button,
.mmm-filter button[type=submit],.mmm-form button[type=submit],.mmm-inquiry-form button[type=submit],
.mmm-purchase-actions .mmm-button,.mmm-wrap .button-primary{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
 min-height:var(--mm-button-height)!important;padding:11px 20px!important;border:1px solid var(--mm-color-yellow)!important;
 border-radius:var(--mm-radius-button)!important;background:var(--mm-color-yellow)!important;
 color:var(--mm-color-white)!important;box-shadow:none!important;font-family:var(--mm-font-body)!important;
 font-size:15px!important;font-weight:700!important;line-height:1.2!important;text-decoration:none!important;cursor:pointer!important;
 transition:background-color var(--mm-transition),border-color var(--mm-transition)!important;
}
.mm-core-button:hover,.mmm-button:hover,.mm-machine-button:hover,.mmm-alert-button:hover,
.mmm-filter button[type=submit]:hover,.mmm-form button[type=submit]:hover,.mmm-inquiry-form button[type=submit]:hover,
.mmm-purchase-actions .mmm-button:hover,.mmm-wrap .button-primary:hover{
 background:var(--mm-color-yellow-hover)!important;border-color:var(--mm-color-yellow-hover)!important;color:#fff!important;
}
/* Maschinenraster: 4 / 3 / 2 / 1 */
.mmm-grid.machinesmarket-grid,.mmm-grid.machinesmarket-machines,.mmm-grid.mm-latest-machines{
 display:grid!important;grid-template-columns:repeat(var(--mm-machines-desktop),minmax(0,1fr))!important;gap:var(--mm-gap)!important;align-items:stretch!important;
}
/* Maschinenkarten */
.mm-machine-card,.mmm-card.mm-machine-card,.mmm-saved-card{
 display:flex!important;flex-direction:column!important;height:100%!important;min-width:0!important;overflow:hidden!important;
 border:var(--mm-card-border) solid var(--mm-color-border)!important;border-radius:var(--mm-radius-card)!important;
 background:#fff!important;box-shadow:none!important;color:var(--mm-color-black)!important;
}
.mm-machine-image,.mmm-card-image{
 display:block!important;width:100%!important;height:auto!important;min-height:0!important;flex:0 0 auto!important;
 margin:0!important;padding:0!important;overflow:hidden!important;background:var(--mm-color-bg)!important;
 aspect-ratio:var(--mm-image-ratio)!important;border:0!important;
}
.mm-machine-image img,.mmm-card-image img,.mmm-saved-card img,.mmm-saved-placeholder{
 display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;
 margin:0!important;padding:0!important;aspect-ratio:var(--mm-image-ratio)!important;object-fit:cover!important;object-position:center!important;
 background:var(--mm-color-bg)!important;
}
.mmm-placeholder{width:100%!important;height:100%!important;aspect-ratio:var(--mm-image-ratio)!important;background:var(--mm-color-bg)!important}
.mm-machine-content,.mmm-card-body,.mmm-saved-body{display:flex!important;flex:1!important;flex-direction:column!important;padding:var(--mm-card-padding)!important;color:#111!important}
.mmm-card h3,.mm-machine-card h3,.mmm-saved-card h3{color:#111!important;font-family:var(--mm-font-heading)!important;font-size:18px!important;line-height:1.35!important}
.mmm-card h3 a,.mm-machine-card h3 a,.mmm-card-meta,.mmm-card-meta a,.mmm-saved-card h3 a{color:#111!important}
.mmm-eyebrow,.mm-machine-label{color:#111!important;font-size:13px!important;font-weight:700!important}
.mmm-price,.mm-machine-price,.mmm-saved-price,.mmm-detail-price,.mmm-estimated-value strong{
 color:var(--mm-color-petrol)!important;font-family:var(--mm-font-heading)!important;font-weight:700!important;
}
/* Kartenaktionen: Hauptbutton plus zwei kompakte Icons */
.mmm-card-actions{display:flex!important;align-items:stretch!important;gap:8px!important;margin-top:auto!important;width:100%!important}
.mmm-card-actions>.mmm-button,.mmm-card-actions>.mm-machine-button{flex:1 1 auto!important;min-width:0!important;margin:0!important}
.mmm-card-actions .mmm-card-tools{display:flex!important;flex:0 0 auto!important;gap:8px!important;margin:0!important}
.mmm-card-tools{display:flex!important;gap:8px!important;margin-top:10px!important;flex-wrap:nowrap!important}
.mmm-tool-btn.mmm-icon-btn{
 position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 48px!important;width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;
 border:1px solid var(--mm-color-border)!important;border-radius:var(--mm-radius-button)!important;
 background:#fff!important;color:var(--mm-color-blue)!important;box-shadow:none!important;
}
.mmm-tool-btn.mmm-icon-btn:hover{background:var(--mm-color-bg)!important;border-color:var(--mm-color-blue)!important;color:var(--mm-color-blue)!important}
.mmm-tool-btn.mmm-icon-btn.is-active{background:#fff!important;border-color:var(--mm-color-yellow)!important;color:var(--mm-color-yellow)!important}
.mmm-tool-btn.mmm-icon-btn.mmm-fav-toggle.is-active svg{fill:var(--mm-color-yellow)!important;stroke:var(--mm-color-yellow)!important}
.mmm-tool-btn.mmm-icon-btn.mmm-compare-toggle.is-active{background:var(--mm-color-yellow)!important;color:var(--mm-color-blue)!important}
/* Allgemeine Kästen und Formulare */
.mmm-filter,.mmm-inquiry-wrap,.mmm-detail-facts,.mmm-technical,.mmm-alert-card,.mmm-machine-tools,
.mmm-panel,.mmm-card:not(.mm-machine-card){border-radius:var(--mm-radius-card)!important;box-shadow:none!important}
.mmm-filter{background:var(--mm-color-bg)!important;border:1px solid var(--mm-color-border)!important}
.mmm-inquiry-wrap{background:var(--mm-color-blue)!important;color:#fff!important;border:0!important}
.mmm-inquiry-wrap h1,.mmm-inquiry-wrap h2,.mmm-inquiry-wrap h3,.mmm-inquiry-wrap p,.mmm-inquiry-wrap label,.mmm-inquiry-wrap .mmm-section-heading span{color:#fff!important}
.mmm-purchase-offer-wrap{background:var(--mm-color-yellow)!important;color:#111!important}
.mmm-purchase-offer-wrap h1,.mmm-purchase-offer-wrap h2,.mmm-purchase-offer-wrap h3,.mmm-purchase-offer-wrap p,.mmm-purchase-offer-wrap label{color:#111!important}
.mmm-filter input,.mmm-filter select,.mmm-filter textarea,.mmm-inquiry-form input,.mmm-inquiry-form select,.mmm-inquiry-form textarea,
.mmm-form input,.mmm-form select,.mmm-form textarea{
 min-height:48px!important;border:1px solid var(--mm-color-border)!important;border-radius:var(--mm-radius-button)!important;
 background:#fff!important;color:#111!important;box-shadow:none!important;
}
.mmm-filter input:focus,.mmm-filter select:focus,.mmm-filter textarea:focus,.mmm-inquiry-form input:focus,.mmm-inquiry-form textarea:focus{
 outline:0!important;border-color:var(--mm-color-yellow)!important;box-shadow:0 0 0 3px rgba(245,197,24,.22)!important;
}
/* Nur echte Sonderhervorhebungen in Petrol */
.mmm-detail-price,.mmm-estimated-value strong,.mmm-price,.mm-machine-price,.mmm-saved-price{color:var(--mm-color-petrol)!important}
/* Keine zufälligen Schatten */
.mmm-card,.mmm-detail-summary,.mmm-detail-media,.mmm-detail-section,.mmm-dealer-card,.mmm-dealer-hero,.mmm-inquiry-wrap{box-shadow:none!important}
@media(max-width:1279px){.mmm-grid.machinesmarket-grid,.mmm-grid.machinesmarket-machines,.mmm-grid.mm-latest-machines{grid-template-columns:repeat(var(--mm-machines-laptop),minmax(0,1fr))!important}}
@media(max-width:1024px){
 .mm-core-container,.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page{width:min(calc(100% - 40px),1024px)}
 .mmm-grid.machinesmarket-grid,.mmm-grid.machinesmarket-machines,.mmm-grid.mm-latest-machines{grid-template-columns:repeat(var(--mm-machines-tablet),minmax(0,1fr))!important;gap:20px!important}
}
@media(max-width:767px){
 .mm-core-container,.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page{width:calc(100% - 32px)}
 .mmm-grid.machinesmarket-grid,.mmm-grid.machinesmarket-machines,.mmm-grid.mm-latest-machines{grid-template-columns:repeat(var(--mm-machines-mobile),minmax(0,1fr))!important;gap:18px!important}
 .mm-machine-content,.mmm-card-body,.mmm-saved-body{padding:16px!important}
 .mmm-card-actions{gap:6px!important}.mmm-card-actions .mmm-card-tools{gap:6px!important}
 .mmm-tool-btn.mmm-icon-btn{flex-basis:46px!important;width:46px!important;height:46px!important;min-height:46px!important}
}


/* 3.5.0 – zentrale Farb- und Hover-Variablen */
:root{
 --mm-color-heading:var(--mm-color-black);
 --mm-color-dark-text:var(--mm-color-white);
 --mm-color-button-text:var(--mm-color-white);
 --mm-color-button-hover-text:var(--mm-color-white);
 --mm-button-hover-transform:translateY(-2px);
 --mm-button-hover-shadow:0 4px 12px rgba(0,0,0,.18);
}
.mm-core-button,.mmm-button,.mm-machine-button,.mmm-alert-button,
.mmm-filter button[type=submit],.mmm-form button[type=submit],.mmm-inquiry-form button[type=submit]{
 color:var(--mm-color-button-text)!important;
 transition:background-color var(--mm-transition),border-color var(--mm-transition),color var(--mm-transition),transform var(--mm-transition),box-shadow var(--mm-transition)!important;
}
.mm-core-button:hover,.mm-core-button:focus-visible,.mmm-button:hover,.mmm-button:focus-visible,
.mm-machine-button:hover,.mm-machine-button:focus-visible,.mmm-alert-button:hover,.mmm-alert-button:focus-visible,
.mmm-filter button[type=submit]:hover,.mmm-filter button[type=submit]:focus-visible,
.mmm-form button[type=submit]:hover,.mmm-form button[type=submit]:focus-visible,
.mmm-inquiry-form button[type=submit]:hover,.mmm-inquiry-form button[type=submit]:focus-visible{
 color:var(--mm-color-button-hover-text)!important;
 transform:var(--mm-button-hover-transform)!important;
 box-shadow:var(--mm-button-hover-shadow)!important;
}
.mmm-market h1,.mmm-market h2,.mmm-market h3,.mmm-market h4,.mmm-market h5,.mmm-market h6,
.mmm-detail h1,.mmm-detail h2,.mmm-detail h3,.mmm-detail h4,.mmm-detail h5,.mmm-detail h6,
.mmm-dealer-profile h1,.mmm-dealer-profile h2,.mmm-dealer-profile h3,.mmm-dealer-profile h4,
.mmm-directory-content h1,.mmm-directory-content h2,.mmm-directory-content h3,.mmm-directory-content h4{
 color:var(--mm-color-heading)!important;
}
.mmm-inquiry-wrap,.mmm-inquiry-wrap h1,.mmm-inquiry-wrap h2,.mmm-inquiry-wrap h3,.mmm-inquiry-wrap h4,
.mmm-inquiry-wrap p,.mmm-inquiry-wrap label{color:var(--mm-color-dark-text)!important}
/* Höhere Spezifität als ältere Manager-Regeln auf Start-, Händler- und Listenansichten */
.page .mmm-market .machinesmarket-grid,
.page .mmm-market .machinesmarket-machines,
.mmm-all-machines-page .machinesmarket-grid,
.mmm-market .mm-latest-machines,
.mmm-market .machinesmarket-latest-machines{
 grid-template-columns:repeat(var(--mm-machines-desktop),minmax(0,1fr))!important;
 gap:var(--mm-gap)!important;
}
.mmm-market .mmm-card,.mmm-all-machines-page .mmm-card{
 border:var(--mm-card-border) solid var(--mm-color-border)!important;
 border-radius:var(--mm-radius-card)!important;
 box-shadow:none!important;
}
.mmm-market .mmm-card-image{
 width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;flex-basis:auto!important;
 margin:0!important;aspect-ratio:var(--mm-image-ratio)!important;
}
.mmm-market .mmm-card-image img{
 width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;
 aspect-ratio:var(--mm-image-ratio)!important;object-fit:cover!important;
}
@media(max-width:1279px){
 .page .mmm-market .machinesmarket-grid,.page .mmm-market .machinesmarket-machines,.mmm-all-machines-page .machinesmarket-grid,.mmm-market .mm-latest-machines,.mmm-market .machinesmarket-latest-machines{grid-template-columns:repeat(var(--mm-machines-laptop),minmax(0,1fr))!important}
}
@media(max-width:1024px){
 .page .mmm-market .machinesmarket-grid,.page .mmm-market .machinesmarket-machines,.mmm-all-machines-page .machinesmarket-grid,.mmm-market .mm-latest-machines,.mmm-market .machinesmarket-latest-machines{grid-template-columns:repeat(var(--mm-machines-tablet),minmax(0,1fr))!important}
}
@media(max-width:767px){
 .page .mmm-market .machinesmarket-grid,.page .mmm-market .machinesmarket-machines,.mmm-all-machines-page .machinesmarket-grid,.mmm-market .mm-latest-machines,.mmm-market .machinesmarket-latest-machines{grid-template-columns:repeat(var(--mm-machines-mobile),minmax(0,1fr))!important}
}

/* =========================================================
   3.6.0 – verbindliche Button-Darstellung in allen Frontend-Modulen
   Gleiche Variablen für Startseite, Listen, Details und Vorschau.
   ========================================================= */
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page,.mmm-packages-page,.mmm-portal-wrap) :is(a,button,input[type="submit"],input[type="button"]).mmm-button,
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) :is(a,button).mm-machine-button,
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) :is(a,button).mmm-alert-button,
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) .mmm-filter :is(button[type="submit"],input[type="submit"]),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) .mmm-form :is(button[type="submit"],input[type="submit"]),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) .mmm-inquiry-form :is(button[type="submit"],input[type="submit"]),
.elementor a.mmm-button,
.elementor button.mmm-button,
.elementor a.mm-machine-button,
.elementor button.mm-machine-button {
  background-color:var(--mm-color-yellow)!important;
  background-image:none!important;
  border-color:var(--mm-color-yellow)!important;
  color:var(--mm-color-button-text,#fff)!important;
  -webkit-text-fill-color:var(--mm-color-button-text,#fff)!important;
  text-decoration:none!important;
}

:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page,.mmm-packages-page,.mmm-portal-wrap) :is(a,button,input[type="submit"],input[type="button"]).mmm-button :is(span,strong,small,i,em,svg),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) :is(a,button).mm-machine-button :is(span,strong,small,i,em,svg),
.elementor :is(a,button).mmm-button :is(span,strong,small,i,em,svg),
.elementor :is(a,button).mm-machine-button :is(span,strong,small,i,em,svg) {
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}

:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page,.mmm-packages-page,.mmm-portal-wrap) :is(a,button,input[type="submit"],input[type="button"]).mmm-button:is(:hover,:focus,:focus-visible),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) :is(a,button).mm-machine-button:is(:hover,:focus,:focus-visible),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) :is(a,button).mmm-alert-button:is(:hover,:focus,:focus-visible),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) .mmm-filter :is(button[type="submit"],input[type="submit"]):is(:hover,:focus,:focus-visible),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) .mmm-form :is(button[type="submit"],input[type="submit"]):is(:hover,:focus,:focus-visible),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) .mmm-inquiry-form :is(button[type="submit"],input[type="submit"]):is(:hover,:focus,:focus-visible),
.elementor :is(a,button).mmm-button:is(:hover,:focus,:focus-visible),
.elementor :is(a,button).mm-machine-button:is(:hover,:focus,:focus-visible) {
  background-color:var(--mm-color-yellow-hover)!important;
  background-image:none!important;
  border-color:var(--mm-color-yellow-hover)!important;
  color:var(--mm-color-button-hover-text,#fff)!important;
  -webkit-text-fill-color:var(--mm-color-button-hover-text,#fff)!important;
  transform:var(--mm-button-hover-transform,none)!important;
  box-shadow:var(--mm-button-hover-shadow,none)!important;
}

/* Linkzustände dürfen die Button-Schriftfarbe nicht überschreiben. */
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page,.mmm-packages-page) a.mmm-button:is(:link,:visited),
:where(.mmm-market,.mmm-detail,.mmm-dealer-profile,.mmm-directory-content,.mmm-engagement-page,.mmm-all-machines-page) a.mm-machine-button:is(:link,:visited),
.elementor a.mmm-button:is(:link,:visited),
.elementor a.mm-machine-button:is(:link,:visited) {
  color:var(--mm-color-button-text,#fff)!important;
  -webkit-text-fill-color:var(--mm-color-button-text,#fff)!important;
}

/* Nur klar bezeichnete Sonderbuttons behalten ihre semantische Darstellung. */
:is(.mmm-button-whatsapp,.mmm-whatsapp-button,a[href*="wa.me"].mmm-button,a[href*="api.whatsapp.com"].mmm-button) {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}


/* =========================================================
   Machines Market unified cards + detail view (3.7.0)
   ========================================================= */

/* No shadows anywhere in the public Machines Market UI, including hover/focus. */
.mmm-market *, .mmm-detail *, .mmm-dealer-profile *,
.mmm-market *::before, .mmm-market *::after,
.mmm-detail *::before, .mmm-detail *::after,
.mmm-dealer-profile *::before, .mmm-dealer-profile *::after {
  box-shadow:none!important;
}

/* The grid gap only exists between cards – never as extra grid padding outside. */
.mmm-market .machinesmarket-grid,
.mmm-market .machinesmarket-machines,
.mmm-market .mm-latest-machines,
.mmm-all-machines-page .machinesmarket-grid {
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Card heading and compact actions share one row. */
.mmm-card-heading-row {
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  margin:6px 0 12px!important;
}
.mmm-card-heading-row h3 {
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  color:var(--mm-color-yellow)!important;
}
.mmm-card-heading-row h3 a,
.mmm-market .mmm-card h3,
.mmm-market .mmm-card h3 a,
.mmm-market .mm-machine-card h3,
.mmm-market .mm-machine-card h3 a {
  color:var(--mm-color-yellow)!important;
}
.mmm-card-heading-row .mmm-card-tools {
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

/* Icon actions: compact blue outline, blue hover, yellow active. */
.mmm-market .mmm-tool-btn.mmm-icon-btn,
.mmm-card-heading-row .mmm-tool-btn.mmm-icon-btn {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  margin:0!important;
  border:2px solid var(--mm-color-blue)!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--mm-color-blue)!important;
  box-shadow:none!important;
  transform:none!important;
}
.mmm-market .mmm-tool-btn.mmm-icon-btn:hover,
.mmm-market .mmm-tool-btn.mmm-icon-btn:focus-visible,
.mmm-card-heading-row .mmm-tool-btn.mmm-icon-btn:hover,
.mmm-card-heading-row .mmm-tool-btn.mmm-icon-btn:focus-visible {
  border-color:var(--mm-color-blue)!important;
  background:var(--mm-color-blue)!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
.mmm-market .mmm-tool-btn.mmm-icon-btn.is-active,
.mmm-market .mmm-tool-btn.mmm-icon-btn[aria-pressed="true"],
.mmm-card-heading-row .mmm-tool-btn.mmm-icon-btn.is-active,
.mmm-card-heading-row .mmm-tool-btn.mmm-icon-btn[aria-pressed="true"] {
  border-color:var(--mm-color-yellow)!important;
  background:var(--mm-color-yellow)!important;
  color:var(--mm-color-blue)!important;
  box-shadow:none!important;
}
.mmm-market .mmm-tool-btn.mmm-icon-btn.is-active:hover,
.mmm-market .mmm-tool-btn.mmm-icon-btn[aria-pressed="true"]:hover {
  border-color:var(--mm-color-yellow-hover)!important;
  background:var(--mm-color-yellow-hover)!important;
  color:var(--mm-color-blue)!important;
}
.mmm-market .mmm-tool-btn.mmm-icon-btn svg,
.mmm-card-heading-row .mmm-tool-btn.mmm-icon-btn svg {
  width:18px!important;
  height:18px!important;
}
.mmm-market .mmm-tool-btn.mmm-icon-btn.mmm-fav-toggle.is-active svg,
.mmm-market .mmm-tool-btn.mmm-icon-btn.mmm-fav-toggle[aria-pressed="true"] svg {
  fill:currentColor!important;
  stroke:currentColor!important;
}

/* Main CTA stays alone at the card bottom. */
.mmm-market .mmm-card-body > .mmm-button,
.mmm-market .mmm-card-body > .mm-machine-button {
  width:100%!important;
  margin-top:auto!important;
}
.mmm-market .mmm-card-actions {
  display:block!important;
  width:100%!important;
  margin-top:auto!important;
}
.mmm-market .mmm-card-actions > .mmm-button,
.mmm-market .mmm-card-actions > .mm-machine-button {
  width:100%!important;
}
.mmm-market .mmm-card-actions > .mmm-card-tools { display:none!important; }

/* Single-machine page follows exactly the same color and surface rules. */
body.single-mmm_machine .mmm-detail {
  color:var(--mm-color-black)!important;
}
body.single-mmm_machine .mmm-detail-hero,
body.single-mmm_machine .mmm-detail-media,
body.single-mmm_machine .mmm-detail-summary,
body.single-mmm_machine .mmm-detail-section,
body.single-mmm_machine .mmm-inquiry-wrap,
body.single-mmm_machine .mmm-detail-keyfacts div,
body.single-mmm_machine .mmm-detail-facts dl div,
body.single-mmm_machine .mmm-detail-dealer-mini {
  box-shadow:none!important;
}
body.single-mmm_machine .mmm-detail-hero {
  border:1px solid var(--mm-color-border)!important;
  border-left:1px solid var(--mm-color-border)!important;
  border-radius:var(--mm-radius-card)!important;
  background:#fff!important;
}
body.single-mmm_machine .mmm-detail-media {
  background:var(--mm-color-bg)!important;
  border-color:var(--mm-color-border)!important;
}
body.single-mmm_machine .mmm-detail-summary {
  background:#fff!important;
  color:var(--mm-color-black)!important;
}
body.single-mmm_machine .mmm-detail-summary h2 {
  color:var(--mm-color-heading)!important;
}
body.single-mmm_machine .mmm-detail-eyebrow {
  color:var(--mm-color-yellow)!important;
}
body.single-mmm_machine .mmm-section-heading span {
  color:var(--mm-color-blue)!important;
}
body.single-mmm_machine .mmm-detail-media { position:relative!important; }
body.single-mmm_machine .mmm-detail-media-tools { position:absolute!important;top:14px!important;right:14px!important;z-index:5!important;display:flex!important;gap:8px!important; }
body.single-mmm_machine .mmm-detail-media-tools .mmm-icon-btn { width:42px!important;height:42px!important;min-width:42px!important;background:rgba(255,255,255,.94)!important;box-shadow:none!important; }
body.single-mmm_machine .mmm-detail-price {
  color:var(--mm-color-petrol)!important;
}
body.single-mmm_machine .mmm-detail-keyfacts div,
body.single-mmm_machine .mmm-detail-facts dl div,
body.single-mmm_machine .mmm-detail-dealer-mini {
  border:1px solid var(--mm-color-border)!important;
  background:var(--mm-color-bg)!important;
}
body.single-mmm_machine .mmm-detail-section,
body.single-mmm_machine .mmm-inquiry-wrap {
  border:1px solid var(--mm-color-border)!important;
  border-radius:var(--mm-radius-card)!important;
  background:#fff!important;
}
body.single-mmm_machine .mmm-detail .mmm-button,
body.single-mmm_machine .mmm-detail button[type="submit"] {
  border:0!important;
  border-radius:var(--mm-radius-button)!important;
  background:var(--mm-color-yellow)!important;
  color:var(--mm-color-button-text)!important;
  box-shadow:none!important;
  transform:none!important;
}
body.single-mmm_machine .mmm-detail .mmm-button:hover,
body.single-mmm_machine .mmm-detail .mmm-button:focus,
body.single-mmm_machine .mmm-detail button[type="submit"]:hover,
body.single-mmm_machine .mmm-detail button[type="submit"]:focus {
  background:var(--mm-color-yellow-hover)!important;
  color:var(--mm-color-button-hover-text)!important;
  box-shadow:none!important;
  transform:none!important;
}

@media(max-width:767px){
  .mmm-card-heading-row{gap:8px!important}
  .mmm-market .mmm-tool-btn.mmm-icon-btn,
  .mmm-card-heading-row .mmm-tool-btn.mmm-icon-btn{
    flex-basis:32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important
  }
}

/* PDF / Exposé action */
body.single-mmm_machine .mmm-share-expose,body.single-mmm_machine a.mmm-share-expose:link,body.single-mmm_machine a.mmm-share-expose:visited{background:var(--mm-color-pdf,#D32F2F)!important;border-color:var(--mm-color-pdf,#D32F2F)!important;color:var(--mm-color-pdf-text,#fff)!important;box-shadow:none!important}
body.single-mmm_machine .mmm-share-expose:hover,body.single-mmm_machine .mmm-share-expose:focus{background:var(--mm-color-pdf-hover,#B71C1C)!important;border-color:var(--mm-color-pdf-hover,#B71C1C)!important;color:var(--mm-color-pdf-text,#fff)!important;box-shadow:none!important;transform:none!important}
@media(max-width:680px){body.single-mmm_machine .mmm-detail-media-tools{top:10px!important;right:10px!important}body.single-mmm_machine .mmm-detail-media-tools .mmm-icon-btn{width:38px!important;height:38px!important;min-width:38px!important}}
