/* MasterPalm Patch 255
   Targeted recovery after patch 254:
   - keep patch 253 contact stylesheet loaded, but override /contact to a light industrial shell
   - keep /request-quote untouched
   - make /pages and /pages/{slug} light/white instead of the old graphite page shell
   - protect B2B footer CTA alignment if global CSS is out of order
*/

/* Contact: light industrial shell. Excludes request quote because that page is already correct. */
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page){
  background:#f3f4f6!important;
  color:#111827!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) #site-main,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-industrial-contact,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-workspace{
  background:#f3f4f6!important;
  color:#111827!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-hero{
  min-height:330px!important;
  padding:78px 0 38px!important;
  background:linear-gradient(105deg,rgba(255,255,255,.97) 0%,rgba(248,250,252,.95) 50%,rgba(255,235,222,.92) 100%),linear-gradient(135deg,#fff,#eef0f3)!important;
  color:#111827!important;
  border-bottom:1px solid rgba(17,24,39,.08)!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-hero[style*="--mp-contact-hero-image"]{
  background-image:linear-gradient(105deg,rgba(255,255,255,.96) 0%,rgba(248,250,252,.94) 52%,rgba(255,235,222,.88) 100%),var(--mp-contact-hero-image)!important;
  background-size:cover,cover!important;
  background-position:center,center!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-hero:after{
  border-color:rgba(200,16,26,.14)!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-breadcrumb,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-breadcrumb a,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-kicker,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-title,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-lead,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-lead strong{
  color:#111827!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-breadcrumb{color:#64748b!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-kicker:before{background:#d71920!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-response-card{
  background:#fff!important;
  border:1px solid rgba(17,24,39,.10)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.10)!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-response-card strong{color:#111827!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-response-card span{color:#4b5563!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-workspace{
  padding:34px 0 70px!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-workspace:before{
  background:linear-gradient(90deg,rgba(17,24,39,.035) 1px,transparent 1px),linear-gradient(180deg,rgba(17,24,39,.025) 1px,transparent 1px)!important;
  background-size:42px 42px!important;
  opacity:.65!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-console,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-inquiry-console{
  background:#fff!important;
  border:1px solid rgba(17,24,39,.10)!important;
  box-shadow:0 22px 58px rgba(15,23,42,.10)!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-console-head{
  border-bottom:1px solid rgba(17,24,39,.08)!important;
  background:linear-gradient(180deg,#fff,#f8fafc)!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-console-head h2{color:#111827!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-console-head span,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-office-group-title{color:#d71920!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-card{
  background:#f8fafc!important;
  color:#374151!important;
  border:1px solid rgba(17,24,39,.10)!important;
  box-shadow:none!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-card h3{color:#111827!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-card p,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-lines{color:#4b5563!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-card.is-active,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-card.active{
  background:linear-gradient(135deg,#fff1ed,#fff)!important;
  border-color:rgba(215,25,32,.38)!important;
  color:#111827!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-branch-meta span,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-office-credential{
  background:#fff!important;
  border-color:rgba(17,24,39,.10)!important;
  color:#111827!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-office-credential strong{color:#d71920!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-map-plate{
  background:#fff!important;
  border:1px solid rgba(17,24,39,.10)!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-map-plate__head{
  background:#111827!important;
  border-bottom:0!important;
  color:#fff!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-map-plate__head a{color:#fff!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-map-selected{color:#4b5563!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-map-selected strong{color:#111827!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-field label{color:#374151!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-field input,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-field textarea,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-field select,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-inquiry-console .form-control,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-inquiry-console .form-select{
  background:#fff!important;
  color:#111827!important;
  border:1px solid rgba(17,24,39,.14)!important;
  box-shadow:none!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-field input[readonly]{background:#f3f4f6!important;color:#111827!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-field input::placeholder,
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-field textarea::placeholder{color:#9ca3af!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-route-note{color:#4b5563!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-feature-strip{
  border-color:rgba(17,24,39,.10)!important;
  background:rgba(17,24,39,.08)!important;
}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-feature{background:#fff!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-feature strong{color:#111827!important;}
body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-feature span{color:#4b5563!important;}

/* Pages index/detail: light shell for /pages and /pages/{slug}. */
body.site-masterpalm.mp-pages-page{
  background:#f3f4f6!important;
  color:#111827!important;
}
body.site-masterpalm.mp-pages-page #site-main,
body.site-masterpalm.mp-pages-page .mp-page-hero,
body.site-masterpalm.mp-pages-page .mp-section,
body.site-masterpalm.mp-pages-page .mp-section-dark,
body.site-masterpalm.mp-pages-page .ses-inner-content,
body.site-masterpalm.mp-pages-page .ses-inner-block-gallery{
  background:#f3f4f6!important;
  color:#111827!important;
}
body.site-masterpalm.mp-pages-page .mp-page-hero{
  padding:74px 0 34px!important;
  background:linear-gradient(135deg,#fff 0%,#f8fafc 62%,#fff1ed 100%)!important;
  border-bottom:1px solid rgba(17,24,39,.08)!important;
}
body.site-masterpalm.mp-pages-page .mp-page-hero h1,
body.site-masterpalm.mp-pages-page .mp-page-hero p,
body.site-masterpalm.mp-pages-page .mp-breadcrumb,
body.site-masterpalm.mp-pages-page .mp-breadcrumb a,
body.site-masterpalm.mp-pages-page .ses-inner-copy,
body.site-masterpalm.mp-pages-page .ses-richtext,
body.site-masterpalm.mp-pages-page .ses-richtext h1,
body.site-masterpalm.mp-pages-page .ses-richtext h2,
body.site-masterpalm.mp-pages-page .ses-richtext h3,
body.site-masterpalm.mp-pages-page .ses-richtext p,
body.site-masterpalm.mp-pages-page .ses-inner-section-title{
  color:#111827!important;
}
body.site-masterpalm.mp-pages-page .mp-breadcrumb{color:#64748b!important;}
body.site-masterpalm.mp-pages-page .mp-service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}
body.site-masterpalm.mp-pages-page .mp-service-card{
  min-height:220px;
  padding:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,250,252,.94)),var(--mp-bg,none)!important;
  background-size:cover!important;
  border:1px solid rgba(17,24,39,.10)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.09)!important;
  color:#111827!important;
  text-decoration:none!important;
}
body.site-masterpalm.mp-pages-page .mp-service-card strong{color:#111827!important;}
body.site-masterpalm.mp-pages-page .mp-service-card p{color:#4b5563!important;}
body.site-masterpalm.mp-pages-page .mp-service-card em{color:#d71920!important;}
body.site-masterpalm.mp-pages-page .ses-inner-container,
body.site-masterpalm.mp-pages-page .mp-header-container{
  max-width:1180px!important;
  width:min(1180px,calc(100vw - 32px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.site-masterpalm.mp-pages-page .ses-inner-copy{
  background:#fff!important;
  border:1px solid rgba(17,24,39,.10)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
  padding:clamp(22px,3vw,42px)!important;
}
body.site-masterpalm.mp-pages-page .ses-inner-tile,
body.site-masterpalm.mp-pages-page .ses-inner-tile.has-gradient{
  background:#fff!important;
  border:1px solid rgba(17,24,39,.10)!important;
  color:#111827!important;
}
body.site-masterpalm.mp-pages-page .ses-inner-tile__copy strong,
body.site-masterpalm.mp-pages-page .ses-inner-tile__copy em,
body.site-masterpalm.mp-pages-page .ses-inner-tile__number{color:#111827!important;}
body.site-masterpalm.mp-pages-page .ses-inner-tile__button{background:#d71920!important;color:#fff!important;}

/* B2B footer CTA alignment guard. */
.site-masterpalm .mpb2b-footer-cta-copy{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  flex-wrap:wrap!important;
}
.site-masterpalm .mpb2b-footer-cta-copy > span{
  display:block!important;
  min-width:min(520px,100%)!important;
}
.site-masterpalm .mpb2b-footer-cta-copy > span > strong,
.site-masterpalm .mpb2b-footer-cta-copy > span > span{
  display:block!important;
}
.site-masterpalm .mpb2b-footer-cta-copy > span > strong{margin-bottom:4px!important;line-height:1.1!important;}
.site-masterpalm .mpb2b-footer-cta-copy .mpb2b-btn{white-space:nowrap!important;}

/* Product SKU row guard after removing duplicate Model/SKU display. */
.site-masterpalm .mpb2b-model-row{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.site-masterpalm .mpb2b-model-row span strong{margin-right:6px!important;}

@media(max-width: 900px){
  body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-hero-inner,
  body.site-masterpalm.mp-contact-page:not(.mp-request-quote-page) .mp-contact-body{grid-template-columns:1fr!important;}
}

/* Patch 256: cart coupon/shipping tools must occupy their own row below the mini cart summary. */
.site-masterpalm .mpb2b-cart-layout-fixed{
  align-items:start!important;
}
.site-masterpalm .mpb2b-cart-layout-fixed .mpb2b-cart-main,
.site-masterpalm .mpb2b-cart-layout-fixed .mpb2b-summary{
  min-width:0!important;
}
.site-masterpalm .mpb2b-cart-tools-row{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  margin-top:0!important;
  clear:both!important;
}
.site-masterpalm .mpb2b-cart-tool-box{
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
.site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row input,
.site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row select{
  min-width:150px!important;
  flex:1 1 180px!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row button{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
@media(max-width:1100px){
  .site-masterpalm .mpb2b-cart-layout-fixed{
    grid-template-columns:minmax(0,1fr) 360px!important;
    gap:18px!important;
  }
}
@media(max-width:900px){
  .site-masterpalm .mpb2b-cart-layout-fixed{
    grid-template-columns:1fr!important;
  }
  .site-masterpalm .mpb2b-cart-tools-row{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:560px){
  .site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row input,
  .site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row select,
  .site-masterpalm .mpb2b-cart-tool-box .mpb2b-box-row button{
    width:100%!important;
  }
}


/* MasterPalm Patch 257 - Zelle QR checkout display */
.site-masterpalm .mpb2b-payment-panel[hidden]{display:none!important;}
.site-masterpalm .mpb2b-zelle-panel{border-color:rgba(234,88,12,.32)!important;box-shadow:0 20px 54px rgba(234,88,12,.12)!important;}
.site-masterpalm .mpb2b-zelle-layout{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:18px;align-items:center;margin-top:12px;}
.site-masterpalm .mpb2b-zelle-qr-card{background:linear-gradient(180deg,#fff,#fff7ed);border:1px solid rgba(234,88,12,.24);border-radius:18px;padding:14px;text-align:center;box-shadow:0 16px 36px rgba(15,23,42,.08);}
.site-masterpalm .mpb2b-zelle-qr-card img{display:block;width:100%;max-width:190px;margin:0 auto;border-radius:12px;background:#fff;}
.site-masterpalm .mpb2b-zelle-qr-label{font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#c2410c;margin-bottom:10px;}
.site-masterpalm .mpb2b-zelle-copy .mpb2b-alert{margin-bottom:10px;}
@media (max-width:767px){.site-masterpalm .mpb2b-zelle-layout{grid-template-columns:1fr}.site-masterpalm .mpb2b-zelle-qr-card img{max-width:220px}}

/* MasterPalm Patch 258 - Zelle QR + cart reference improvements */
.mpb2b-zelle-panel{
  background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 58%,#fff7ed 100%)!important;
  border-color:#fed7aa!important;
}
.mpb2b-zelle-reference{
  display:grid;
  gap:.35rem;
  margin:0 0 18px;
  padding:16px 18px;
  border:2px dashed #ea580c;
  border-radius:16px;
  background:#fff!important;
  color:#111827!important;
  box-shadow:0 12px 30px rgba(124,45,18,.10);
}
.mpb2b-zelle-reference span{
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#9a3412!important;
}
.mpb2b-zelle-reference strong{
  display:block;
  font-size:clamp(1.55rem,3vw,2.45rem);
  line-height:1;
  letter-spacing:.08em;
  color:#111827!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
.mpb2b-zelle-reference em{
  font-style:normal;
  color:#4b5563!important;
  font-weight:700;
}
.mpb2b-zelle-layout{
  display:grid!important;
  grid-template-columns:minmax(320px,1fr) minmax(280px,1fr)!important;
  gap:22px!important;
  align-items:stretch!important;
}
.mpb2b-zelle-qr-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:18px!important;
  border:1px solid #fdba74!important;
  border-radius:20px!important;
  background:rgba(255,247,237,.78)!important;
  box-shadow:0 18px 44px rgba(124,45,18,.12)!important;
}
.mpb2b-zelle-qr-label{
  margin:0 0 12px!important;
  font-weight:900!important;
  color:#7c2d12!important;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.mpb2b-zelle-qr-image-box{
  width:100%!important;
  min-height:360px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:22px!important;
  border:1px solid rgba(17,24,39,.10)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 6px rgba(255,255,255,.65),0 12px 26px rgba(17,24,39,.10)!important;
}
.mpb2b-zelle-qr-image-box img,
.mpb2b-zelle-qr-card img{
  display:block!important;
  width:min(100%,420px)!important;
  max-width:420px!important;
  height:auto!important;
  max-height:480px!important;
  object-fit:contain!important;
  background:#fff!important;
  border:0!important;
  border-radius:8px!important;
  padding:0!important;
}
.mpb2b-zelle-copy{
  min-width:0!important;
  color:#111827!important;
}
.mpb2b-zelle-memo-reminder{
  margin:14px 0 0!important;
  padding:12px 14px!important;
  border-radius:12px!important;
  background:#111827!important;
  color:#fff!important;
  font-weight:800!important;
}
.mpb2b-zelle-memo-reminder strong{
  color:#f97316!important;
  letter-spacing:.05em;
}
.mpb2b-zelle-panel input[name="zelle_reference"][readonly]{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important;
  font-weight:900!important;
  color:#111827!important;
  background:#fff!important;
  border:2px solid #f97316!important;
  letter-spacing:.06em;
}
@media (max-width:991.98px){
  .mpb2b-zelle-layout{grid-template-columns:1fr!important;}
  .mpb2b-zelle-qr-image-box{min-height:280px!important;}
  .mpb2b-zelle-qr-image-box img,.mpb2b-zelle-qr-card img{max-width:340px!important;}
}
