:root {
  --mf4-ink: #173126;
  --mf4-muted: #5d6f66;
  --mf4-green: #087f49;
  --mf4-green-dark: #075f39;
  --mf4-mint: #eaf6ef;
  --mf4-cream: #fffdf7;
  --mf4-warm: #fff6dc;
  --mf4-line: #d6e5dc;
  --mf4-danger: #a33b2f;
  --mf4-shadow: 0 18px 42px rgba(23, 49, 38, 0.1);
}

#mobile-treatment-v2-root[hidden] { display: none !important; }

body.mobile-treatment-v2-active {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 0, rgba(232, 178, 26, 0.12), transparent 32rem),
    #f4f8f5;
}

body.mobile-treatment-v2-active > .site-header,
body.mobile-treatment-v2-active > .mobile-nav,
body.mobile-treatment-v2-active > .category-filter-bar,
body.mobile-treatment-v2-active > .page-shell { display: none !important; }

.mf4-shell { color: var(--mf4-ink); font-family: "Trebuchet MS", sans-serif; }
.mf4-shell *, .mf4-shell *::before, .mf4-shell *::after { box-sizing: border-box; }
.mf4-shell a { color: inherit; }
.mf4-shell button, .mf4-shell input { font: inherit; }

.mf4-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  padding: 8px max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(8, 127, 73, 0.14);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(16px);
}

.mf4-logo { display: block; width: 116px; height: 44px; object-fit: contain; }
.mf4-header-actions { display: flex; gap: 8px; }
.mf4-icon-button {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mf4-line);
  border-radius: 15px;
  background: #fff;
  color: var(--mf4-ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.mf4-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font: 800 12px/1 Arial, sans-serif;
}

.mf4-main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.mf4-shell.mf4-menu-open { overflow: hidden; }
.mf4-section-nav {
  position: sticky;
  top: 64px;
  z-index: 38;
  display: flex;
  gap: 8px;
  padding: 9px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--mf4-line);
  background: rgba(244, 248, 245, 0.96);
  scrollbar-width: none;
}
.mf4-section-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mf4-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mf4-green-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.mf4-breadcrumbs, .mf4-section, .mf4-hero { max-width: 1180px; margin-inline: auto; }
.mf4-breadcrumbs {
  padding: 14px 18px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mf4-muted);
  font-size: 12px;
  font-weight: 700;
}
.mf4-breadcrumbs a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; color: var(--mf4-green); text-decoration: none; }

.mf4-hero { padding: 22px 18px 6px; display: grid; gap: 18px; }
.mf4-eyebrow {
  display: block;
  color: var(--mf4-green);
  font: 900 11px/1.25 Arial, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.mf4-title, .mf4-section h2, .mf4-section h3 {
  margin: 0;
  font-family: Georgia, serif;
  letter-spacing: -0.025em;
}
.mf4-title { margin-top: 8px; font-size: clamp(31px, 9vw, 56px); line-height: 1.02; }
.mf4-lead { margin: 14px 0; color: var(--mf4-muted); font-size: 17px; line-height: 1.55; }
.mf4-badges { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 4px; }
.mf4-badges span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #b7dbc5;
  border-radius: 999px;
  background: var(--mf4-mint);
  color: var(--mf4-green-dark);
  font: 800 12px/1 Arial, sans-serif;
}

.mf4-offer {
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--mf4-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--mf4-shadow);
}
.mf4-offer small, .mf4-sticky small { display: block; color: var(--mf4-muted); font: 800 11px/1.3 Arial, sans-serif; }
.mf4-price { display: block; margin-top: 4px; font: 900 27px/1 Arial, sans-serif; }
.mf4-primary {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  background: var(--mf4-green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 127, 73, 0.2);
  font-weight: 900;
  cursor: pointer;
}
.mf4-primary:hover { background: var(--mf4-green-dark); }
.mf4-offer .mf4-primary { display: none; }
.mf4-hero-media { margin: 0; overflow: hidden; border: 1px solid var(--mf4-line); border-radius: 24px; background: #fff; }
.mf4-hero-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }

.mf4-section { padding: 28px 18px; border-top: 1px solid var(--mf4-line); scroll-margin-top: 122px; }
.mf4-section-heading { margin-bottom: 18px; }
.mf4-section-heading .mf4-eyebrow { margin-bottom: 7px; }
.mf4-section h2 { font-size: clamp(27px, 7vw, 42px); line-height: 1.08; }
.mf4-section-intro { margin: 8px 0 0; color: var(--mf4-muted); }
.mf4-signal-grid, .mf4-product-list, .mf4-addon-list { display: grid; gap: 10px; }
.mf4-signal {
  padding: 17px;
  border: 1px solid var(--mf4-line);
  border-radius: 18px;
  background: #fff;
}
.mf4-signal strong { display: block; margin-bottom: 5px; }
.mf4-signal p { margin: 0; color: var(--mf4-muted); font-size: 14px; }
.mf4-signal--medical { border-color: #e7d5a0; background: var(--mf4-warm); }

.mf4-product {
  min-height: 116px;
  padding: 12px;
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--mf4-line);
  border-radius: 18px;
  background: #fff;
}
.mf4-product img { width: 86px; height: 90px; object-fit: contain; border-radius: 12px; background: #f7faf8; }
.mf4-product h3 { font-size: 18px; line-height: 1.2; }
.mf4-product p { margin: 6px 0 0; color: var(--mf4-muted); font-size: 13px; }
.mf4-product-role { color: var(--mf4-green) !important; font-weight: 800; }

.mf4-addon {
  position: relative;
  min-height: 112px;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 2px dashed #d6b968;
  border-radius: 18px;
  background: #fffaf0;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.mf4-addon:hover { border-color: #a98218; }
.mf4-addon:focus-within { outline: 3px solid rgba(8, 127, 73, 0.2); outline-offset: 2px; }
.mf4-addon.is-selected { border-style: solid; border-color: var(--mf4-green); background: var(--mf4-mint); box-shadow: 0 10px 24px rgba(8, 127, 73, 0.1); }
.mf4-addon h3 { font-size: 18px; }
.mf4-addon-kind { margin-bottom: 6px; color: #785800; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.mf4-addon-action { min-width: 82px; text-align: right; }
.mf4-addon-action strong { display: block; margin-bottom: 9px; color: #775500; }
.mf4-addon-choice { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-weight: 900; }
.mf4-addon-action input { width: 23px; height: 23px; accent-color: var(--mf4-green); }

.mf4-choice-list { display: grid; gap: 12px; }
.mf4-variant-group { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.mf4-variant-group legend { margin-bottom: 4px; color: var(--mf4-ink); font-size: 17px; font-weight: 900; }
.mf4-choice {
  min-height: 74px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  border: 1px solid var(--mf4-line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}
.mf4-choice:hover { border-color: #6db58f; }
.mf4-choice:focus-within { outline: 3px solid rgba(8, 127, 73, 0.2); outline-offset: 2px; }
.mf4-choice.is-selected { border-color: var(--mf4-green); background: var(--mf4-mint); box-shadow: 0 10px 24px rgba(8, 127, 73, 0.1); }
.mf4-choice-control { min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 900; }
.mf4-choice-control input { width: 23px; height: 23px; flex: 0 0 auto; accent-color: var(--mf4-green); }
.mf4-choice > strong { align-self: center; color: var(--mf4-green-dark); white-space: nowrap; }
.mf4-choice-items { grid-column: 1 / -1; margin: 0; padding-left: 22px; color: var(--mf4-muted); font-size: 13px; line-height: 1.45; }
.mf4-config-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff2dc; color: #765000; font-weight: 800; }

.mf4-review-list { display: grid; gap: 10px; }
.mf4-review { margin: 0; padding: 17px; border: 1px solid var(--mf4-line); border-radius: 18px; background: #fff; }
.mf4-review p { margin: 0; color: var(--mf4-ink); line-height: 1.5; }
.mf4-review footer { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mf4-review footer strong { font-size: 13px; }
.mf4-review footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--mf4-green-dark); font-size: 12px; font-weight: 900; text-decoration: none; }

.mf4-details { border: 1px solid var(--mf4-line); border-radius: 17px; background: #fff; }
.mf4-details + .mf4-details { margin-top: 9px; }
.mf4-details summary { min-height: 52px; padding: 14px 16px; display: flex; align-items: center; cursor: pointer; font-weight: 900; }
.mf4-details-content { padding: 0 16px 16px; color: var(--mf4-muted); }
.mf4-details-content h4 { margin: 14px 0 5px; color: var(--mf4-ink); }
.mf4-details-content p, .mf4-details-content ul { margin: 7px 0; }
.mf4-details-content li + li { margin-top: 6px; }
.mf4-medical-disclaimer {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid #d49a16;
  border-radius: 0 14px 14px 0;
  background: var(--mf4-warm);
  color: #654f1d;
  font-size: 13px;
  line-height: 1.5;
}

.mf4-support {
  padding: 20px;
  border: 1px solid #b7dbc5;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4fbf7, #fffdf7);
}
.mf4-support p { margin: 8px 0 16px; color: var(--mf4-muted); }
.mf4-support a { min-height: 48px; display: inline-flex; align-items: center; color: var(--mf4-green-dark); font-weight: 900; }

.mf4-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  min-height: 78px;
  padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--mf4-line);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 -8px 24px rgba(20, 50, 38, 0.12);
}
.mf4-sticky strong { font: 900 21px/1.2 Arial, sans-serif; }
.mf4-sticky .mf4-primary { min-width: 145px; }
.mf4-exit { min-height: 44px; display: inline-flex; align-items: center; margin-top: 8px; color: var(--mf4-muted); font-size: 12px; }

.mf4-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  padding: 12px 16px;
  transform: translate(-50%, 18px);
  opacity: 0;
  border-radius: 999px;
  background: var(--mf4-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
  pointer-events: none;
}
.mf4-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.mf4-toast a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mf4-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  background: rgba(14, 32, 24, 0.5);
}
.mf4-menu-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 71;
  width: min(88vw, 360px);
  padding: 20px;
  transform: translateX(105%);
  transition: transform 0.24s ease;
  background: var(--mf4-cream);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
}
.mf4-menu-drawer.is-open { transform: none; }
.mf4-menu-heading { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.mf4-menu-heading strong { font: 700 25px/1 Georgia, serif; }
.mf4-menu-close { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--mf4-mint); color: var(--mf4-green-dark); font-size: 26px; cursor: pointer; }
.mf4-menu-drawer nav { display: grid; }
.mf4-menu-drawer nav a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mf4-line);
  color: var(--mf4-ink);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}
.mf4-menu-help { margin-top: 22px; padding: 16px; border-radius: 17px; background: var(--mf4-mint); }
.mf4-menu-help strong, .mf4-menu-help span { display: block; }
.mf4-menu-help span { margin-top: 5px; color: var(--mf4-muted); font-size: 13px; }

@media (min-width: 760px) {
  .mf4-header { min-height: 76px; padding-inline: 32px; }
  .mf4-logo { width: 145px; height: 54px; }
  .mf4-hero { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); padding: 42px 28px 12px; }
  .mf4-hero-media { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .mf4-signal-grid { grid-template-columns: repeat(3, 1fr); }
  .mf4-product-list { grid-template-columns: 1fr 1fr; }
  .mf4-review-list { grid-template-columns: repeat(3, 1fr); }
  .mf4-section { padding: 42px 28px; }
  .mf4-section-nav { top: 76px; justify-content: center; }
}

@media (max-width: 389px) {
  .mf4-title { font-size: 34px; }
  .mf4-lead { margin-block: 11px; font-size: 15px; line-height: 1.45; }
  .mf4-hero, .mf4-section { padding-inline: 14px; }
  .mf4-section { padding-block: 24px; }
  .mf4-section h2 { font-size: 28px; }
  .mf4-offer { padding: 12px; }
  .mf4-offer .mf4-primary { padding-inline: 13px; }
  .mf4-addon { grid-template-columns: 1fr; }
  .mf4-addon-action { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .mf4-addon-action strong { margin: 0; }
  .mf4-choice { grid-template-columns: 1fr; }
  .mf4-choice > strong { justify-self: start; }
  .mf4-sticky { gap: 9px; padding-inline: max(10px, env(safe-area-inset-left)); }
  .mf4-sticky .mf4-primary { min-width: 0; padding-inline: 14px; }
}

@media (min-width: 1040px) {
  body.mobile-treatment-v2-active { padding-bottom: 0; }
  .mf4-main { padding-bottom: 32px; }
  .mf4-hero { grid-template-columns: minmax(420px, 1fr) 440px 250px; align-items: center; }
  .mf4-hero-media { grid-column: 2; grid-row: 1; }
  .mf4-offer { grid-column: 3; grid-row: 1; display: block; position: sticky; top: 96px; padding: 22px; }
  .mf4-offer .mf4-price { margin-bottom: 18px; font-size: 34px; }
  .mf4-offer .mf4-primary { width: 100%; }
  .mf4-offer .mf4-primary { display: block; }
  .mf4-sticky { display: none; }
  .mf4-section { scroll-margin-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .mf4-shell *, .mf4-shell *::before, .mf4-shell *::after { scroll-behavior: auto !important; transition: none !important; }
}
