@font-face {
  font-family: "MMA Inter";
  src: url("./inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "MMA Montserrat";
  src: url("./montserrat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --mma-white: #ffffff;
  --mma-surface: #ffffff;
  --mma-silver: #c0c4cc;
  --mma-steel: #8a9099;
  --mma-graphite: #1f2328;
  --mma-blue: #12304d;
  --mma-blue-hover: #1d456c;
  --mma-ice: #dcebff;
  --mma-muted: var(--mma-graphite);
  --mma-line: #d4d7dc;
  --mma-body: "MMA Inter", Arial, sans-serif;
  --mma-display: "MMA Montserrat", Arial, sans-serif;
  --mma-radius: 6px;
  --mma-hero-gradient: linear-gradient(115deg, var(--mma-white) 0%, var(--mma-ice) 100%);
}

/* Keep footer typography consistent across native, catalogue and account pages. */
@layer mma-clinical {
  /* Keep labels and nested icons readable on every navy action. */
  html body :is(.mma-action, .mma-consult-button, .mma-cart-primary,
    .zdp-button-primary, .zdp-button-light, .zdp-contact-primary,
    .zdp-consulting-button--primary, .zdp-catalogue-more-button,
    .hl-add-to-cart-btn, .hl-choose-options-btn, .zdp-variant-add-to-cart,
    .hl-checkout-btn, .hl-continue-btn, #make-payment, #view-cart-btn,
    #add-to-cart-btn, #zdp-calculator-v2 .reset, .button:not(.outline)),
  html body :is(.mma-action, .mma-consult-button, .mma-cart-primary,
    .zdp-button-primary, .zdp-button-light, .zdp-contact-primary,
    .zdp-consulting-button--primary, .zdp-catalogue-more-button,
    .hl-add-to-cart-btn, .hl-choose-options-btn, .zdp-variant-add-to-cart,
    .hl-checkout-btn, .hl-continue-btn, #make-payment, #view-cart-btn,
    #add-to-cart-btn, #zdp-calculator-v2 .reset, .button:not(.outline)) :is(span, strong, em, i, svg) {
    color: var(--mma-silver) !important;
    -webkit-text-fill-color: var(--mma-silver) !important;
  }
  body .mma-home-product-image,
  body .zdp-pd-breadcrumb-live a {
    color: var(--mma-graphite) !important;
  }
  body .zdp-catalogue-more-button {
    background: var(--mma-blue) !important;
    color: var(--mma-silver) !important;
    border-color: var(--mma-blue) !important;
  }
  body .zdp-catalogue-more-button:focus-visible {
    outline: 2px solid var(--mma-blue);
    outline-offset: 4px;
  }
  @media (hover: hover) and (pointer: fine) {
    body .zdp-catalogue-more-button:hover {
      background: var(--mma-blue-hover) !important;
      border-color: var(--mma-blue-hover) !important;
    }
  }
  body footer {
    color: var(--mma-graphite) !important;
    font-family: var(--mma-body) !important;
    -webkit-font-smoothing: antialiased;
  }
  body footer :is(p, li, a, small, span) {
    font-family: var(--mma-body) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }
  body footer p {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    text-wrap: pretty;
  }
  body footer a:not(.mma-brand) {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
  }
  body footer :is(h2, h3) {
    color: var(--mma-graphite) !important;
    font: 600 14px/1.5 var(--mma-body) !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    margin: 0 0 16px !important;
  }
  body footer small,
  body footer .zdp-footer-bottom,
  body footer .zdp-footer-bottom :is(a, span) {
    font: 400 12px/1.65 var(--mma-body) !important;
    letter-spacing: normal !important;
  }
  body .zdp-footer {
    padding-block: clamp(40px, 5vw, 64px) 24px !important;
  }
  body .zdp-footer-main {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, .8fr) minmax(130px, .7fr) minmax(180px, 1fr) minmax(210px, 1.2fr) !important;
    column-gap: clamp(24px, 3vw, 48px) !important;
    row-gap: 36px !important;
    align-items: start !important;
    padding-bottom: 36px !important;
  }
  body .zdp-footer-main > * { min-width: 0; }
  body .zdp-footer-brand > p {
    max-width: 34ch !important;
    margin: 18px 0 14px !important;
  }
  body .zdp-footer-column > p {
    max-width: 38ch !important;
    margin: 0 0 16px !important;
  }
  body .zdp-footer-column > a {
    display: block !important;
    width: fit-content;
    max-width: 100%;
    padding-block: 4px !important;
    margin: 0 0 4px !important;
  }
  body .zdp-footer-brand > .zdp-text-link {
    font-weight: 500 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-block: 6px;
  }
  body .zdp-footer-bottom {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px 24px !important;
    border-top: 1px solid var(--mma-line) !important;
    padding-top: 22px !important;
  }
  body .zdp-footer-bottom > div { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  body .zdp-footer-service-label { font-size: 12px !important; font-weight: 500 !important; }
  body .mma-account-footer p { max-width: 48ch !important; }
  body .mma-catalogue-page > footer { padding-block: 28px !important; }
  html[data-mma-page="home"] body :is(#zdp-compliance, #zdp-featured) {
    background: var(--mma-hero-gradient) !important;
  }
  html[data-mma-page="home"] body #zdp-featured :is(.zdp-featured-grid, .zdp-featured-visual, .zdp-featured-copy, .zdp-featured-image) {
    background: transparent !important;
  }
  html[data-mma-page="home"] body #zdp-featured .zdp-featured-image {
    background: var(--mma-white) !important;
  }
  html[data-mma-page="home"] body #zdp-featured,
  html[data-mma-page="home"] body #zdp-featured :is(.zdp-featured-grid, .zdp-featured-image) {
    border-color: var(--mma-silver) !important;
  }
  html[data-mma-page="home"] body #zdp-featured .zdp-featured-image::after {
    background: var(--mma-silver) !important;
  }
  body #zdp-standards {
    position: relative;
    isolation: isolate;
    background: var(--mma-white) !important;
  }
  body #zdp-standards::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--mma-hero-gradient) !important;
    opacity: 1;
    transition: opacity 1600ms ease;
  }
  body #zdp-standards.mma-standard-ready:not(.mma-standard-visible.mma-scroll-forward)::before {
    opacity: 0;
  }
  body #zdp-standards article.mma-standard-ready {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 900ms cubic-bezier(.23, 1, .32, 1), transform 900ms cubic-bezier(.23, 1, .32, 1);
    transition-delay: var(--mma-standard-delay, 0ms);
  }
  body #zdp-standards article.mma-standard-visible,
  body #zdp-standards article:focus-within {
    opacity: 1 !important;
    transform: none !important;
  }
  /* A white overlay fades away when scrolling down, returning on upward scroll. */
  body #zdp-compliance {
    position: relative !important;
    isolation: isolate;
  }
  body #zdp-compliance::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none;
    background: var(--mma-white) !important;
    opacity: 1;
    transition: opacity 1600ms ease;
  }
  body #zdp-compliance.mma-standard-ready.mma-standard-visible.mma-scroll-forward::after {
    opacity: 0;
  }
  body #zdp-compliance .zdp-research-grid {
    position: relative;
    z-index: 1;
  }
  body #zdp-compliance.mma-standard-ready .zdp-research-grid {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 900ms cubic-bezier(.23, 1, .32, 1), transform 900ms cubic-bezier(.23, 1, .32, 1);
  }
  body #zdp-compliance.mma-standard-visible .zdp-research-grid,
  body #zdp-compliance:focus-within .zdp-research-grid {
    opacity: 1 !important;
    transform: none;
  }
  body #zdp-compliance:focus-within .zdp-research-grid { transition: none !important; }
  @media (prefers-reduced-motion: reduce) {
    body #zdp-standards::before { opacity: 1 !important; transition: none !important; }
    body #zdp-standards article { opacity: 1 !important; transform: none !important; transition: none !important; }
    body #zdp-compliance::after { opacity: 1 !important; transition: none !important; }
    body #zdp-compliance .zdp-research-grid { opacity: 1 !important; transform: none !important; transition: none !important; }
  }
  @media (max-width: 1200px) {
    body .zdp-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    body .zdp-footer-brand { grid-column: 1 / -1 !important; }
    body .zdp-footer-brand > p { max-width: 56ch !important; }
    body .zdp-footer-column:last-child { grid-column: span 2 !important; }
    body .zdp-footer-column:last-child > p { max-width: 60ch !important; }
  }
  @media (max-width: 600px) {
    body .zdp-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 24px !important; }
    body .zdp-footer-column:nth-last-child(2),
    body .zdp-footer-column:last-child { grid-column: 1 / -1 !important; }
    body .zdp-footer-column > a { padding-block: 7px !important; }
    body .zdp-footer-bottom { align-items: flex-start !important; flex-direction: column !important; }
    body .zdp-footer-bottom > div { gap: 12px 20px; }
  }
}

html body {
  --headlinefont: var(--mma-display);
  --contentfont: var(--mma-body);
  --hl-font-family: var(--mma-body);
  background: var(--mma-white);
  color: var(--mma-graphite);
  font-family: var(--mma-body);
}

html body :is(.zdp-fragment, .zdp-site-header, .zdp-footer, .zdp-catalogue) {
  --zdp-bg: var(--mma-surface) !important;
  --zdp-surface: var(--mma-white) !important;
  --zdp-surface-muted: var(--mma-ice) !important;
  --zdp-primary: var(--mma-graphite) !important;
  --zdp-secondary: var(--mma-muted) !important;
  --zdp-accent: var(--mma-graphite) !important;
  --zdp-cta: var(--mma-blue) !important;
  --zdp-cta-ink: var(--mma-silver) !important;
  --zdp-text: var(--mma-graphite) !important;
  --zdp-muted: var(--mma-muted) !important;
  --zdp-border: var(--mma-line) !important;
  --zdp-hero-bg: var(--mma-ice) !important;
  --zdp-hero-ink: var(--mma-graphite) !important;
  --zdp-hero-muted: var(--mma-muted) !important;
  --zdp-hero-border: var(--mma-line) !important;
  --zdp-stage: var(--mma-surface) !important;
  --zdp-footer: var(--mma-ice) !important;
  --zdp-footer-ink: var(--mma-graphite) !important;
  --zdp-footer-muted: var(--mma-muted) !important;
  --zdp-shadow: 0 24px 64px rgb(31 35 40 / 9%) !important;
  font-family: var(--mma-body) !important;
}

html body :is(.zdp-fragment, .zdp-footer, .zdp-catalogue) :is(h1, h2, h3, h4),
html body :is(.zdp-site-nav, .zdp-nav),
html:root body #zdp-catalogue-title,
html:root body :is(#zdp-ghl-catalog-products, #featured-products-y1LBqK-mbP, #featured-products-IxOpciiEWYU) .hl-product-list-product-name {
  font-family: var(--mma-display) !important;
  font-weight: 600 !important;
  color: var(--mma-graphite) !important;
}

html body :is(.zdp-fragment, .zdp-footer, .zdp-catalogue) :is(p, li, input, select, textarea),
html:root body :is(.zdp-site-nav, .zdp-nav) a {
  color: var(--mma-graphite) !important;
  font-family: var(--mma-body) !important;
}

html:root body :is(#zdp-catalogue-controls, #zdp-ghl-catalog-products) :is(p:not(.hl-product-list-product-name), input, select, label) {
  font-family: var(--mma-body) !important;
}

html body :is(.zdp-header, .zdp-site-header)[class] {
  background: var(--mma-white) !important;
  border-color: var(--mma-line) !important;
}

html body :is(.zdp-announcement, .zdp-site-announcement)[class] {
  background: var(--mma-ice) !important;
  color: var(--mma-graphite) !important;
}

html body :is(.zdp-announcement, .zdp-site-announcement) :is(span, a) {
  color: inherit !important;
}

html body a:is(.zdp-brand, .zdp-site-brand).mma-brand {
  display: inline-block !important;
  flex: 0 0 auto;
  width: clamp(122px, 18vw, 157px) !important;
  height: 58px !important;
  background: url("./main-logo.svg") center / contain no-repeat !important;
}

html body a.mma-brand > * {
  display: none !important;
}

html body :is(.zdp-footer, [data-zdp-site-footer]) a.mma-brand {
  width: 190px !important;
  height: 72px !important;
}

html body footer.zdp-footer[class] {
  background: var(--mma-ice) !important;
  color: var(--mma-graphite) !important;
}

html body footer.zdp-footer[class] :is(a, h3, p, small, .zdp-footer-bottom) {
  color: var(--mma-graphite) !important;
}

html body footer.zdp-footer[class] a:hover {
  color: var(--mma-graphite) !important;
  text-decoration: underline;
}

html body :is(a, button).zdp-button:is(.zdp-button-primary, .zdp-button-light),
html:root body :is(.product-list-container, .c-store-product-detail, .pdp-modal-container, #zdp-ghl-catalog-products) button:is(.hl-add-to-cart-btn, .hl-choose-options-btn, .zdp-variant-add-to-cart),
html:root body #zdp-compliance .zdp-button-light,
html:root body :is(.zdp-contact-primary, .zdp-consulting-button--primary),
html body #make-payment {
  background: var(--mma-blue) !important;
  border-color: var(--mma-blue) !important;
  color: var(--mma-silver) !important;
  border-radius: var(--mma-radius) !important;
  font-family: var(--mma-display) !important;
  font-weight: 600 !important;
}

html body :is(a, button).zdp-button:is(.zdp-button-primary, .zdp-button-light):hover,
html:root body :is(.product-list-container, .c-store-product-detail, .pdp-modal-container, #zdp-ghl-catalog-products) button:is(.hl-add-to-cart-btn, .hl-choose-options-btn, .zdp-variant-add-to-cart):hover,
html:root body #zdp-compliance .zdp-button-light:hover,
html:root body :is(.zdp-contact-primary, .zdp-consulting-button--primary):hover,
html body #make-payment:hover {
  background: var(--mma-blue-hover) !important;
}

html body .product-list-container .hl-product-list-product-name {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

html body .product-list-container .hl-add-to-cart-btn {
  border-radius: var(--mma-radius);
  font-family: var(--mma-body) !important;
}

html body :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #527dad !important;
  outline-offset: 3px;
}

html[data-mma-page="home"] body #zdp-top {
  background: var(--mma-hero-gradient) !important;
}

html[data-mma-page="home"] body #zdp-top .zdp-hero-grid {
  min-height: 0 !important;
  padding-block: clamp(48px, 6vw, 84px) !important;
}

/* GHL can render catalogue cards again after the initial HTML loads. */
html:root body :is(.product-list-container > *, .relative):has(> a:is(
  [href*="/product/fortivo-" i],
  [href*="/product/6aa0e84c7cec7087e4fa8133"],
  [href*="/product/6aa0e7fa03e4021af0668628"],
  [href*="/product/6aa0e791e3877eaf5cf3e7fe"],
  [href*="/product/6aa0e68e7cec7087e4fa3f4c"],
  [href*="/product/6aa0e627bc2c36595c447f52"],
  [href*="/product/6aa0e5707cec7087e4fa13c0"]
)) {
  display: none !important;
}

html[data-mma-page="home"] body #zdp-top .zdp-hero-copy h1 {
  color: var(--mma-graphite) !important;
  font-family: var(--mma-display) !important;
  font-size: clamp(34px, 4vw, 61px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.08 !important;
}

html[data-mma-page="home"] body #zdp-top .zdp-hero-copy h1 em {
  color: var(--mma-graphite) !important;
  font: inherit !important;
}

html[data-mma-page="home"] body #zdp-top .zdp-hero-product {
  border-color: var(--mma-line) !important;
  border-radius: var(--mma-radius) !important;
  background: var(--mma-white) !important;
  overflow: hidden;
}

html[data-mma-page="home"] body #zdp-top .zdp-specimen-stage {
  min-height: 0 !important;
  background: var(--mma-ice) !important;
}

html[data-mma-page="home"] body #zdp-top .zdp-hero-product--retatrutide,
html[data-mma-page="home"] body #zdp-top .zdp-hero-product--retatrutide > .zdp-specimen-stage {
  background: transparent !important;
}

html[data-mma-page="home"] body #zdp-top .zdp-hero-product--retatrutide > .zdp-hero-product-info {
  background: var(--mma-white) !important;
}

html[data-mma-page="home"] body .zdp-category-hint {
  display: none !important;
}

html body .zdp-research-cta[class] {
  background: var(--mma-ice) !important;
  color: var(--mma-graphite) !important;
}

html body .zdp-research-cta[class] :is(h2, p) {
  color: var(--mma-graphite) !important;
}

html[data-mma-page="order-support"] body {
  background: var(--mma-surface);
}

html[data-mma-page="order-support"] body header a {
  display: inline-block;
  width: 153px;
  height: 57px;
  background: url("./main-logo.svg") left / contain no-repeat;
  font-size: 0;
}

html[data-mma-page="order-support"] body :is(h1, small) {
  color: var(--mma-graphite);
  font-family: var(--mma-display);
}

html[data-mma-page="order-support"] body .button:not(.outline) {
  background: var(--mma-blue);
  border: 1px solid var(--mma-blue);
  color: var(--mma-silver);
}

html[data-mma-page="order-support"] body .button:not(.outline):hover {
  background: var(--mma-blue-hover);
}

/* Shared surfaces for the original store and the standalone content pages. */
html:root body :is(.zdp-library, .zdp-article, .zdp-legal__content, .zdp-contact-page,
  .zdp-consulting-page, #zdp-calculator-v2, .c-store-product-detail,
  .c-store-cart, .c-store-checkout, .c-store-thank-you) {
  background-color: var(--mma-white);
  color: var(--mma-graphite);
  font-family: var(--mma-body);
}

html:root body :is(.zdp-library, .zdp-article, .zdp-legal__hero, .zdp-legal__content,
  .zdp-contact-page, .zdp-consulting-page, #zdp-calculator-v2, .c-store-product-detail,
  .c-store-cart, .c-store-checkout, .c-store-thank-you) :is(h1, h2, h3, .checkout-heading) {
  color: var(--mma-graphite) !important;
  font-family: var(--mma-display) !important;
  font-weight: 600 !important;
}

html:root body :is(.zdp-consulting-hero, .zdp-legal__hero, #zdp-catalogue-controls) {
  background: linear-gradient(110deg, var(--mma-white), var(--mma-ice)) !important;
}

html:root body :is(.zdp-library__card-inner, .zdp-consulting-focus-item, .zdp-consulting-step,
  .product-list-container > .relative, #zdp-calculator-v2 .card) {
  border-radius: var(--mma-radius);
  border-color: var(--mma-line);
}

html:root body :is(.c-store-checkout, .c-store-cart) :is(.hl-checkout-input, input:not([type="checkbox"], [type="radio"]), select, textarea) {
  background-color: var(--mma-white);
  color: var(--mma-graphite);
  border-color: var(--mma-line);
  border-radius: var(--mma-radius);
  font-family: var(--mma-body);
}

.mma-cart-status {
  position: fixed;
  inset-inline-start: 20px;
  inset-block-end: 20px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--mma-graphite);
  background: var(--mma-white);
  border: 1px solid var(--mma-line);
  border-radius: var(--mma-radius);
  box-shadow: 0 6px 24px rgb(31 35 40 / 12%);
  font: 600 14px/1.4 var(--mma-body);
  pointer-events: none;
}

.mma-cart-status:empty {
  padding: 0;
  border: 0;
  box-shadow: none;
}

@keyframes mma-reveal {
  from { opacity: 0.68; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .mma-reveal {
    animation: mma-reveal 420ms cubic-bezier(.2, .7, .3, 1);
  }

  html:root body :is(.zdp-button-primary, .zdp-button-light, .zdp-contact-primary,
    .zdp-consulting-button--primary, .hl-add-to-cart-btn, .hl-choose-options-btn,
    .zdp-variant-add-to-cart, #make-payment, .button:not(.outline)) {
    transition: translate 150ms ease, background-color 150ms ease, box-shadow 150ms ease !important;
  }

  @media (hover: hover) {
    html:root body :is(.zdp-button-primary, .zdp-button-light, .zdp-contact-primary,
      .zdp-consulting-button--primary, .hl-add-to-cart-btn, .hl-choose-options-btn,
      .zdp-variant-add-to-cart, #make-payment, .button:not(.outline)):hover:not(:disabled, [aria-disabled="true"]) {
      translate: 0 -2px;
      box-shadow: 0 5px 12px rgb(18 48 77 / 18%);
    }
  }

  html:root body :is(.zdp-button-primary, .zdp-button-light, .zdp-contact-primary,
    .zdp-consulting-button--primary, .hl-add-to-cart-btn, .hl-choose-options-btn,
    .zdp-variant-add-to-cart, #make-payment, .button:not(.outline)):active:not(:disabled, [aria-disabled="true"]) {
    translate: 0 1px;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  html body #featured-products-y1LBqK-mbP .product-list-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html body .product-list-container .hl-add-to-cart-wrapper.zdp-has-stepper {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .product-list-container .hl-add-to-cart-btn {
    padding-inline: 8px !important;
    font-size: 12px !important;
  }

  html body a:is(.zdp-brand, .zdp-site-brand).mma-brand {
    height: 48px !important;
  }

}
img[src="/brand/no-product-photo.svg"] {
  visibility: hidden;
}

/* Temporarily hide Account in desktop headers and mobile navigation. */
@layer mma-clinical {
  html body .zdp-site-account-link,
  html body header a[href^="/account"],
  html body .zdp-site-menu a[href^="/account"] {
    display: none !important;
  }
}

/* One visible cart icon; native controls remain mounted for GHL state. */
@layer mma-clinical {
  html body:has([data-mma-cart-link]) .c-nav-cart,
  html body [data-mma-cart-count][hidden] { display: none !important; }
}
