/* MLS shared button treatment. Restore Test only through its body class.
   Reuses the real homepage banner; CSS crops it, leaving the original image intact. */
body.mls-buttons-v2{
 --mls-button-blue:#075b94;--mls-button-dark:#073d76;--mls-button-text:#074b7f;
 --mls-button-pale:#f2faff;--mls-button-line:#2785af;--mls-button-radius:8px;
 --mls-button-water:url("/wp-content/uploads/2020/06/banner_.png");
}
html body.mls-buttons-v2 :where(main,.mls-page-content,.hero,.mls-selection,.mls-range-panel,#mls-comparison,.mls-range-dialog) :is(a.button,button:not(.mls-chat-close),input[type=submit],.elementor-button,.wp-block-button__link,.mls-range-link,.mls-brochure-button){
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:8px!important;min-height:44px!important;height:auto!important;max-width:100%;padding:11px 21px!important;
 border:1px solid var(--mls-button-dark)!important;border-radius:var(--mls-button-radius)!important;
 background-color:var(--mls-button-dark)!important;
 background-image:linear-gradient(110deg,#073d76 0%,#075b94 64%,rgba(3,49,91,.72) 100%),var(--mls-button-water)!important;
 background-position:center,right 52%!important;background-size:100% 100%,180px auto!important;background-repeat:no-repeat!important;
 color:#fff!important;font-family:inherit!important;font-size:15px!important;font-weight:650!important;line-height:1.4!important;
 letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;text-align:center!important;
 white-space:normal!important;vertical-align:middle!important;box-shadow:0 2px 5px #073d761a!important;cursor:pointer;
 transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;
}
html body.mls-buttons-v2 :where(main,.mls-page-content,.hero,.mls-selection,.mls-range-panel,#mls-comparison,.mls-range-dialog) :is(a.button,button:not(.mls-chat-close),input[type=submit],.elementor-button,.wp-block-button__link,.mls-range-link,.mls-brochure-button):hover{
 background-image:linear-gradient(110deg,#052e5b 0%,#064c7e 64%,rgba(3,39,74,.80) 100%),var(--mls-button-water)!important;
 border-color:#052e5b!important;color:#fff!important;
}
/* Secondary actions: no water image, including filters and dynamically added steppers. */
html body.mls-buttons-v2 :is(.button.outline,.mls-basket-outline,.mls-basket-indicator,#mls-floating-basket,
 .mls-quote-navigation a.button,.mls-brochure-button,.mls-range-secondary,
 #mls-review-selection,#mls-clear-selection,#mls-close-compare,#mls-open-compare,
 .mls-range-heading button,.mls-compare-heading button,.brand-picker button,
 .mls-filter button,.mls-filters button,.catalogue-filters button,
 form[method=get] button,.mls-stepper>button.mls-step,.mls-stepper>input[type=number]){
 background:var(--mls-button-pale)!important;color:var(--mls-button-text)!important;
 border:1px solid var(--mls-button-line)!important;box-shadow:none!important;
}
html body.mls-buttons-v2 :is(.button.outline,.mls-basket-outline,.mls-basket-indicator,#mls-floating-basket,
 .mls-quote-navigation a.button,.mls-brochure-button,.mls-range-secondary,
 #mls-review-selection,#mls-clear-selection,#mls-close-compare,#mls-open-compare,
 .mls-range-heading button,.mls-compare-heading button,.brand-picker button,
 .mls-filter button,.mls-filters button,.catalogue-filters button,
 form[method=get] button,.mls-stepper>button.mls-step):hover{
 background:#dceff8!important;color:#063c68!important;border-color:#075b94!important;
}
html body.mls-buttons-v2 :is(.brand-picker button[aria-pressed=true],.mls-filter button[aria-pressed=true],.mls-filters button[aria-pressed=true]){
 background:#d3ebf7!important;border-color:#075b94!important;box-shadow:inset 0 0 0 1px #075b94!important;
}
html body.mls-buttons-v2 :is(.mls-basket-indicator,#mls-floating-basket){
 min-height:44px;padding:10px 16px;border-radius:24px;
}
html body.mls-buttons-v2 :is(.mls-basket-count,.mls-floating-count){background:#d3ebf7!important;color:#074b7f!important}
html body.mls-buttons-v2 .mls-stepper>button.mls-step{
 min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;
 border-radius:6px 0 0 6px!important;font-size:22px!important;line-height:1!important;
}
html body.mls-buttons-v2 .mls-stepper>button.mls-step:last-child{border-radius:0 6px 6px 0!important}
html body.mls-buttons-v2 .mls-stepper>input[type=number]{
 height:44px!important;min-height:44px!important;border-left:0!important;border-right:0!important;border-radius:0!important;
}
/* White separation plus a dark ring works on both the pale page and water hero. */
html body.mls-buttons-v2 :is(a.button,button,input[type=submit],.elementor-button,.wp-block-button__link,
 .mls-brochure-button,.mls-range-link,.mls-basket-indicator,#mls-floating-basket,input.qty,.mls-stepper input):focus-visible{
 outline:3px solid #003f78!important;outline-offset:3px!important;box-shadow:0 0 0 2px #fff!important;
}
html body.mls-buttons-v2 :is(button,input[type=submit]):disabled{
 opacity:.45!important;cursor:not-allowed!important;
}
html body.mls-buttons-v2 :is(button,input[type=submit]):disabled:hover{
 background-image:none!important;
}
.mls-quote-navigation{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px!important;margin:12px 0 24px!important}
.mls-quote-navigation a{margin:0!important}.summary form:has(input[name=mls_quote_product]){margin-bottom:0!important}
.summary form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:12px!important}.summary form.cart .quantity{margin:0!important}
.summary .mls-brochure-button{margin:8px 0 16px!important}.summary input.qty,#mls-quote-quantity{min-height:44px!important;margin:0!important}

/* Clear the floated name and email fields before laying out the review controls. */
.woocommerce #review_form #commentform > .g-recaptcha{clear:both;margin:12px 0 16px;max-width:100%;overflow-x:auto}
.woocommerce #review_form #commentform > .form-submit{clear:both}
.cta{display:flex;flex-wrap:wrap;gap:12px!important}.mls-selection-row,.mls-range-panel{gap:12px!important}
.mls-range-heading,.mls-compare-heading{gap:16px!important}.mls-page-content .elementor-button-wrapper{margin-top:12px;margin-bottom:12px}
html body.mls-buttons-v2 :is(.mls-selection,.mls-range-panel,#mls-comparison,.mls-range-dialog) :is(button,.mls-range-link){font-size:13px!important;padding:9px 12px!important}
html body.mls-buttons-v2 .mls-stepper>button.mls-step{padding:0!important}
@media(max-width:600px){
 html body.mls-buttons-v2 :is(main,.mls-page-content,.hero) :is(a.button,button,input[type=submit],.elementor-button){max-width:100%;overflow-wrap:anywhere}
 html body.mls-buttons-v2 :is(main,.mls-page-content,.hero) :is(a.button,button,input[type=submit],.elementor-button){background-size:100% 100%,145px auto!important}
 .mls-quote-navigation{align-items:flex-start!important}.mls-quote-navigation>a:not(.button){align-self:center}
}
@media(prefers-reduced-motion:reduce){html body.mls-buttons-v2 :is(a.button,button,input[type=submit]){transition:none!important}}
@media(forced-colors:active){
 html body.mls-buttons-v2 :is(a.button,button,input[type=submit],.mls-brochure-button,.mls-basket-indicator,#mls-floating-basket){background-image:none!important;border:1px solid ButtonText!important}
 html body.mls-buttons-v2 :is(a.button,button,input[type=submit]):focus-visible{outline:3px solid Highlight!important}
}

/* Native filter fields and the existing accessible brand disclosure share the outline. */
html body.mls-buttons-v2 .parts-controls :is(select,input[type=search],input[type=text],.brand-picker>summary){
 min-height:44px;background:var(--mls-button-pale)!important;color:var(--mls-button-text)!important;
 border:1px solid var(--mls-button-line)!important;border-radius:8px;
}
html body.mls-buttons-v2 .parts-controls :is(select,input,.brand-picker>summary):focus-visible{
 outline:3px solid #003f78!important;outline-offset:3px!important;box-shadow:0 0 0 2px #fff!important;
}
html body.mls-buttons-v2 .brand-picker[open]>summary{
 background:#dceff8!important;border-color:#075b94!important;
}
