/* R45: targeted audit repairs. Preserve the approved full-bleed features. */
/* R46: isolate the compact checkout selector from general form styling. */
body.muf-modern.woocommerce-checkout .muf-checkout-offer .muf-checkout-offer__select {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 0;
  font-size: 12px !important;
  line-height: 1.4;
}
body.muf-modern.woocommerce-checkout .muf-checkout-offer__select > input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.muf-modern.woocommerce-checkout .muf-checkout-offer__select > span { min-width: 0; }
body.muf-modern.woocommerce-checkout.logged-in .ops-co-title::after {
  content: "Review your details and complete your order." !important;
}
body.muf-modern.woocommerce-checkout .muf-checkout-account-state {
  display: grid;
  grid-column: 1 / -1;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #e4e1d9;
  border-radius: 5px;
  background: #faf9f5;
  font-size: 12px;
  line-height: 1.45;
}
body.muf-modern.woocommerce-checkout .muf-checkout-account-state > span { color: #686b61; }
body.muf-modern .cmplz-cookiebanner:not(.cmplz-show),
body.muf-modern .cmplz-cookiebanner.cmplz-dismissed {
  display: none !important;
}
body.muf-modern .cmplz-cookiebanner.cmplz-show:not(.cmplz-dismissed) {
  display: grid !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  max-height: calc(100dvh - 24px) !important;
}
body.muf-modern .cmplz-cookiebanner .cmplz-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.muf-modern .cmplz-cookiebanner .cmplz-title {
  display: block !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
body.muf-modern .cmplz-cookiebanner .cmplz-close {
  display: grid !important;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
}
body.muf-modern .cmplz-cookiebanner .cmplz-close svg { width: 12px; }
body.muf-modern .cmplz-cookiebanner .cmplz-logo { display: none !important; }
body.muf-modern .cmplz-cookiebanner .cmplz-description[hidden] { display: none !important; }
body.muf-modern .cmplz-cookiebanner.is-managing .cmplz-description:not([hidden]) {
  font-size: 12px !important;
  line-height: 1.5 !important;
}
body.muf-modern .cmplz-cookiebanner .muf-cookie-privacy {
  display: inline-flex !important;
  visibility: visible !important;
}
body.muf-modern .cmplz-cookiebanner :is(.cmplz-btn,.muf-cookie-settings) {
  min-height: 44px !important;
  font-size: 12px !important;
}
body.muf-modern .cmplz-cookiebanner .cmplz-category-header { min-height: 44px; }
body.muf-modern .cmplz-cookiebanner .cmplz-category-title { font-size: 12px !important; }
/* Native switches need a real hit area; the plugin's label was zero-height. */
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox:has(input:not([disabled])) {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 44px;
}
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:not([disabled]) {
  display: block !important;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:not([disabled]) + .cmplz-label {
  display: block;
  width: 40px;
  height: 44px;
  cursor: pointer;
}
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:not([disabled]) + .cmplz-label::before { left: 6px; top: 14px; }
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:not([disabled]) + .cmplz-label::after { left: 10px; top: 16px; }
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:not([disabled]):checked + .cmplz-label::after { left: 22px; }
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:not(:checked) + .cmplz-label::before { background: #a5aaa2 !important; }
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:checked + .cmplz-label::before { background: #e99400 !important; }
body.muf-modern .cmplz-cookiebanner .cmplz-banner-checkbox input:focus-visible + .cmplz-label::before { outline: 2px solid #171a14; outline-offset: 3px; }
body.muf-modern :is(.muf-hotspot,.muf-home-knowledge__tile,.muf-policy-contents a):focus-visible {
  outline: 3px solid #e99400;
  outline-offset: 3px;
}

body.muf-modern.home .muf-hotspot--desk { left: 66%; top: 36.7%; right: auto; bottom: auto; }
body.muf-modern.home .muf-hotspot--chair { left: 80.7%; top: 44.1%; right: auto; bottom: auto; }
body.muf-modern.home .muf-hotspot--pedestal { left: 52.3%; top: 55.3%; right: auto; bottom: auto; }
body.muf-modern.home .muf-electric-showcase__cta--mobile { display: none !important; }
body.muf-modern.home .muf-inspection-revisit__copy h2 em {
  color: #f8b83e;
  font-style: normal;
}
body.muf-modern.home .muf-home-knowledge__grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
body.muf-modern.home .muf-home-knowledge__tile { aspect-ratio: 1.22 / 1; }

/* Policies: readable copy and a compact index instead of an empty sidebar. */
body.muf-modern .muf-policy-page .muf-shell { width: min(1180px,calc(100% - 36px)) !important; }
body.muf-modern .muf-policy-page__hero > .muf-shell > p:not(.muf-eyebrow) { max-width: 62ch; color: #d0d2ca; font-size: 15px; line-height: 1.6; }
body.muf-modern .muf-policy-page__layout > aside { max-height: calc(100dvh - 155px); overflow: auto; }
body.muf-modern .muf-policy-contents { margin-top: 24px; border-top: 1px solid #dcded7; padding-top: 16px; }
body.muf-modern .muf-policy-contents summary { cursor: pointer; font-size: 13px; font-weight: 800; }
body.muf-modern .muf-policy-contents nav { display: grid; gap: 2px; margin-top: 12px; }
body.muf-modern .muf-policy-contents nav a { display: block; padding: 7px 0; color: #4f534c; font-size: 12px; font-weight: 500; line-height: 1.45; }
body.muf-modern .muf-policy-page__layout > aside > a { display: block; margin-top: 12px; }
body.muf-modern .muf-policy-page__content { max-width: 78ch; min-width: 0; }
body.muf-modern .muf-policy-page__content h2 { scroll-margin-top: 140px; }
body.muf-modern .muf-policy-page__content p { font-size: 15px !important; line-height: 1.75 !important; }
body.muf-modern .muf-policy-page__content a { text-underline-offset: 3px; }

@media (max-width:980px) {
  body.muf-modern.home .muf-electric-showcase__copy > .muf-electric-showcase__cta { display: none !important; }
  body.muf-modern.home .muf-electric-showcase__cta--mobile {
    display: inline-flex !important;
    justify-self: center;
    margin-top: 0 !important;
    min-height: 44px !important;
  }
  body.muf-modern.home .muf-home-knowledge__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.muf-modern .muf-policy-page__content { max-width: none; }
}
@media (max-width:700px) {
  body.muf-modern.home .muf-inspection-revisit__copy h2 {
    max-width: none !important;
    width: 100% !important;
    font-size: clamp(25px,7.5vw,34px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
  }
  body.muf-modern.home .muf-inspection-title__first,
  body.muf-modern.home .muf-inspection-title__last { display: block; white-space: nowrap; }
  body.muf-modern.home .muf-inspection-revisit__copy > p:not(.muf-eyebrow) {
    max-width: 48ch;
    margin: 14px auto 0 !important;
    font-size: 14px !important;
  }
  body.muf-modern.home .muf-inspection-revisit__copy li { font-size: 12px !important; }
  body.muf-modern.home .muf-electric-showcase__layout { gap: 24px !important; }
  body.muf-modern.home .muf-home-knowledge__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.muf-modern.home .muf-home-knowledge__tile { aspect-ratio: 1.3 / 1; }
  body.muf-modern.home .muf-home-knowledge__tile:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2.65 / 1;
  }
  body.muf-modern.home .muf-home-knowledge__tile strong { font-size: 12px !important; }
  body.muf-modern.home .muf-home-knowledge { padding-bottom: 48px; }
  body.muf-modern .cmplz-cookiebanner.is-managing .cmplz-categories { grid-template-columns: 1fr !important; }
  body.muf-modern .muf-policy-page__hero { padding-block: 30px !important; }
  body.muf-modern .muf-policy-page__hero h1 { font-size: clamp(30px,8.4vw,38px) !important; line-height: 1.12 !important; }
  body.muf-modern .muf-policy-page__layout { gap: 26px !important; padding-block: 28px 40px !important; }
  body.muf-modern .muf-policy-page__layout > aside { position: static !important; padding: 18px !important; max-height: none; overflow: visible; }
  body.muf-modern .muf-policy-page__content h2 { font-size: 22px !important; line-height: 1.2 !important; margin-top: 28px !important; }
  body.muf-modern .muf-policy-page__content p { font-size: 14px !important; line-height: 1.7 !important; }
  body.muf-modern .muf-policy-grid,
  body.muf-modern .muf-policy-steps { grid-template-columns: 1fr !important; gap: 14px !important; }
  body.muf-modern .muf-policy-contents nav a { min-height: 40px; }
  body.muf-modern :is(.muf-guide-v7__header,.muf-compare-v7__header,.muf-howto-article__hero) .muf-v7-crumbs > span[aria-current] { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  body.muf-modern .muf-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body.muf-modern :is(.muf-electric-carousel__track,.muf-home-knowledge__tile img) { transition: none !important; }
}
