/**
 * MY MOBILE — shared static foundation
 * Presentation-layer layout recovery for the Elementor HTML mirror.
 * Does not change copy, URLs, prices, or SEO fields.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.mm-static,
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--mm-font-sans, "Geist Variable", "Segoe UI", system-ui, sans-serif);
  font-size: var(--mm-fs-body, 1.0625rem);
  font-weight: var(--mm-fw-body, 425);
  line-height: var(--mm-lh-body, 1.6);
  color: #14252b;
  background: #f2f6f8;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ——— Shared content axis (header + main) ——— */
:root {
  --mm-content-max: 1180px;
  --mm-gutter: 20px;
  --mm-teal: #0b7d74;
  --mm-ink: #14252b;
  --mm-muted: #3d535c;
  --mm-line: #c9d5db;
  --mm-surface: #ffffff;
}

.site-container,
.mm-static .devicemaster-content-wrap,
.mm-static .container.page,
.mm-static #content > .row > [class*="col-"],
.mm-static .site-main,
.mm-static .elementor-location-header .e-con-boxed > .e-con-inner,
.mm-static .elementor-location-footer .e-con-boxed > .e-con-inner,
.mm-static header.elementor-location-header .e-con-boxed > .e-con-inner,
.mm-static footer.elementor-location-footer .e-con-boxed > .e-con-inner,
.mm-static .elementor-location-header > .e-con.e-con-boxed,
.mm-static .elementor-location-footer > .e-con.e-con-boxed {
  width: min(100% - (var(--mm-gutter) * 2), var(--mm-content-max)) !important;
  max-width: var(--mm-content-max) !important;
  margin-inline: auto !important;
  float: none !important;
  padding-inline: 0 !important;
}

/* Full-bleed header/footer backgrounds stay edge-to-edge; inners share axis */
.mm-static .elementor-location-header,
.mm-static .elementor-location-footer,
.mm-static header.elementor-location-header,
.mm-static footer.elementor-location-footer {
  width: 100% !important;
  max-width: 100% !important;
}

.mm-static .elementor,
body.mm-static .elementor,
.mm-static [data-elementor-type="wp-page"],
.mm-static [data-elementor-type="wp-post"],
.mm-static .entry-content,
.mm-static article.post,
.mm-static .post-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

@media (max-width: 480px) {
  :root {
    --mm-gutter: 16px;
  }
}

body.mm-static > .elementor,
.mm-static main > .elementor,
.mm-static .mm-main > .elementor {
  width: min(100% - (var(--mm-gutter) * 2), var(--mm-content-max)) !important;
  max-width: var(--mm-content-max) !important;
  margin-inline: auto !important;
}

.mm-static .e-con-boxed > .e-con-inner,
.mm-static .e-con.e-con-boxed,
.mm-static .e-con-inner,
.mm-static .elementor .e-con,
.mm-static .elementor .e-con-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  box-sizing: border-box !important;
}

/* ——— Section rhythm ——— */
.mm-static .site-section,
.mm-static .elementor > .e-con.e-parent {
  padding-block: clamp(1.75rem, 4vw, 3.5rem);
}

.mm-static .elementor > .e-con.e-parent + .e-con.e-parent {
  border-top: 1px solid rgba(201, 213, 219, 0.55);
}

/* Kill Elementor spacer chrome that creates absurd gaps */
.mm-static .elementor-widget-spacer,
.mm-static .elementor-spacer,
.mm-static .elementor-spacer-inner {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mm-static .e-con:empty,
.mm-static .e-con-inner:empty,
.mm-static .elementor-widget-container:empty,
.mm-static .elementor-element:empty {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Elementor entrance animations without Elementor JS */
.mm-static .elementor-invisible,
.mm-static .elementor-widget.elementor-invisible,
.mm-static [data-settings*="_animation"].elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Owl / CEA carousels → static responsive grids (no owl JS) */
.mm-static .owl-carousel,
.mm-static .cea-carousel.owl-carousel {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: 1.25rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mm-static .owl-carousel .owl-stage-outer,
.mm-static .owl-carousel .owl-stage,
.mm-static .owl-carousel .owl-item {
  display: contents !important;
  width: auto !important;
  transform: none !important;
}

.mm-static .owl-carousel-item,
.mm-static .owl-item {
  width: 100% !important;
  float: none !important;
  display: block !important;
}

.mm-static .owl-nav,
.mm-static .owl-dots,
.mm-static .owl-carousel .owl-nav,
.mm-static .owl-carousel .owl-dots {
  display: none !important;
}

.mm-static .blog-inner,
.mm-static .elementor-widget-ceaposts .blog-inner {
  height: 100%;
  padding: 1.1rem 1.15rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: 10px;
}

.mm-static .elementor-absolute,
.mm-static .elementor-widget.elementor-absolute {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

.mm-static .elementor-background-overlay {
  display: none !important;
}

/* ——— Typography ——— */
.mm-static :is(h1, h2, h3, h4, .elementor-heading-title) {
  font-family: var(--mm-display, var(--mm-font-sans, "Geist Variable", sans-serif));
  color: var(--mm-ink);
  letter-spacing: var(--mm-tracking-h2, -0.03em);
  line-height: var(--mm-lh-heading, 1.18);
  margin: 0 0 0.65rem;
  font-weight: var(--mm-fw-h2, 700);
}

.mm-static h1,
.mm-static h1.elementor-heading-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.mm-static h2,
.mm-static h2.elementor-heading-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.mm-static h3,
.mm-static h3.elementor-heading-title {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

.mm-static p,
.mm-static li,
.mm-static .elementor-widget-text-editor,
.mm-static .elementor-icon-list-text {
  font-size: 1.0625rem;
  color: var(--mm-ink);
}

/* Dark shell footer owns its own palette — do not force body ink onto it */
.mm-static .mm-shell-footer p,
.mm-static .mm-shell-footer li,
.mm-static .mm-shell-footer span,
.mm-static .mm-shell-footer small {
  color: inherit;
}

.mm-static .elementor-widget-text-editor p {
  max-width: 72ch;
}

/* Footer description under logo — readable contrast */
.mm-static .elementor-location-footer .elementor-widget-text-editor,
.mm-static .elementor-location-footer .elementor-widget-text-editor p,
.mm-static .elementor-location-footer .elementor-icon-list-text,
.mm-static footer .elementor-widget-text-editor,
.mm-static footer .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.88) !important;
  opacity: 1 !important;
}

.mm-static .elementor-location-footer a,
.mm-static footer a {
  color: rgba(255, 255, 255, 0.95);
}

/* ——— Buttons / CTAs ——— */
.mm-static .elementor-button,
.mm-static a.elementor-button,
.mm-static .elementor-button-link,
.mm-static .mm-inline-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px !important;
  min-width: 44px;
  padding: 0.7rem 1.25rem !important;
  border-radius: 6px !important;
  background: var(--mm-teal) !important;
  color: #fff !important;
  font-weight: 650 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  border: 1.5px solid var(--mm-teal) !important;
  line-height: 1.2 !important;
  width: auto !important;
  max-width: 100%;
  white-space: normal !important;
  box-shadow: none !important;
}

.mm-static .elementor-button:hover,
.mm-static a.elementor-button:hover {
  background: #08655e !important;
  border-color: #08655e !important;
  color: #fff !important;
}

.mm-static .elementor-widget-button + .elementor-widget-button a.elementor-button,
.mm-static .elementor-button + .elementor-button {
  background: #fff !important;
  color: var(--mm-teal) !important;
}

.mm-static .elementor-widget-button {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 0.6rem 0.6rem 0 !important;
  vertical-align: top;
}

/* CTA / button groups: horizontal wrap, not 140px columns */
.mm-static .e-con.e-flex:has(> .elementor-widget-button),
.mm-static .e-con-inner.e-flex:has(> .elementor-widget-button),
.mm-static [id$="-btns"],
.mm-static [id*="-btns"],
.mm-static [id$="-cta"] .e-con.e-flex:has(> .elementor-widget-button),
.mm-static #mm-home-hero-btns,
.mm-static #mm-home-cta .e-con.e-flex,
.mm-static #ps-cta .e-con.e-flex,
.mm-static #apple-cta .e-con.e-flex {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.mm-static #mm-home-cta .e-con.e-flex,
.mm-static #ps-cta .e-con.e-flex,
.mm-static #apple-cta .e-con.e-flex,
.mm-static [id$="-cta"] > .e-con-inner {
  justify-content: center !important;
  text-align: center;
}

.mm-static #mm-home-cta .elementor-heading-title,
.mm-static [id$="-cta"] .elementor-heading-title {
  margin-bottom: 0.5rem;
}

.mm-static #mm-home-cta .elementor-widget-text-editor,
.mm-static [id$="-cta"] .elementor-widget-text-editor {
  margin-bottom: 0.85rem;
}

/* ——— CORE: restore Elementor flex/grid ——— */
/*
 * Default: vertical stack. Product/home “left columns” mix widgets + nested
 * containers; forcing row there crushed long copy into ~175px cells (P0).
 * Horizontal layout only when direct children are layout containers (e-con)
 * or explicit button groups.
 */
.mm-static .e-con.e-flex,
.mm-static .e-con-inner.e-flex,
.mm-static .elementor-container {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 0.85rem !important;
  width: 100% !important;
}

.mm-static .e-con.e-flex:has(> .e-con):not(:has(> .elementor-widget)),
.mm-static .e-con-inner.e-flex:has(> .e-con):not(:has(> .elementor-widget)),
.mm-static .elementor-container:has(> .elementor-column) {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

.mm-static .e-con.e-flex:has(> .elementor-widget-button):not(:has(> .e-con)),
.mm-static .e-con-inner.e-flex:has(> .elementor-widget-button):not(:has(> .e-con)) {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.mm-static .e-con.e-flex > .e-con,
.mm-static .e-con-inner.e-flex > .e-con,
.mm-static .elementor-container > .elementor-column {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

/* Product hero: explicit 2-col row + readable left stack */
.mm-static #mm-hero-row,
.mm-static #mm-prod-hero #mm-hero-row,
.mm-static #mm-prod-hero > .e-con-inner > #mm-hero-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.mm-static #mm-hero-left {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  flex: 1 1 58% !important;
  min-width: min(100%, 280px) !important;
  max-width: 100% !important;
  gap: 0.65rem !important;
}

.mm-static #mm-hero-image-col {
  flex: 0 1 38% !important;
  min-width: min(100%, 240px) !important;
  max-width: 100% !important;
}

.mm-static #mm-prod-hero .mm-prod-hero-desc,
.mm-static #mm-prod-hero .mm-prod-hero-desc p,
.mm-static #mm-hero-left .elementor-widget-html,
.mm-static #mm-hero-left .elementor-widget {
  width: 100% !important;
  max-width: 100% !important;
}

.mm-static #mm-prod-hero .mm-prod-hero-desc p {
  max-width: 62ch;
}

.mm-static #mm-prod-hero-adv,
.mm-static #mm-prod-hero #mm-prod-hero-adv,
body.mm-static #mm-prod-hero #mm-prod-hero-adv {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(52px, auto) !important;
  gap: 0.65rem !important;
  width: 100% !important;
  height: auto !important;
  min-height: 120px !important;
  max-height: none !important;
  margin: 0.35rem 0 0.75rem !important;
  align-content: start !important;
  align-items: stretch !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

.mm-static #mm-prod-hero #mm-prod-hero-adv > .e-con,
.mm-static #mm-prod-hero #mm-prod-hero-adv > .e-con.e-child,
.mm-static #mm-prod-hero-adv > .e-con {
  flex: none !important;
  width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 0.65rem 0.75rem !important;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: 8px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.mm-static #mm-prod-hero #mm-prod-hero-adv > .e-con .elementor-heading-title,
.mm-static #mm-prod-hero-adv h4.elementor-heading-title {
  margin: 0 !important;
  font-size: 0.92rem !important;
  text-align: center;
}

.mm-static #mm-prod-hero-cta,
.mm-static #mm-home-hero-btns,
body.mm-static #mm-home-hero #mm-home-hero-btns,
body.mm-static #mm-prod-hero #mm-prod-hero-cta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: flex-start !important;
  gap: 0.65rem !important;
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  margin: 0.35rem 0 0.75rem !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

.mm-static #mm-prod-hero-cta > .elementor-widget-button,
.mm-static #mm-home-hero-btns > .elementor-widget-button,
body.mm-static #mm-home-hero #mm-home-hero-btns > .elementor-widget-button {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block !important;
  height: auto !important;
}

@media (max-width: 480px) {
  body.mm-static #mm-home-hero #mm-home-hero-btns,
  body.mm-static #mm-prod-hero #mm-prod-hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.mm-static #mm-home-hero #mm-home-hero-btns > .elementor-widget-button,
  body.mm-static #mm-prod-hero #mm-prod-hero-cta > .elementor-widget-button,
  body.mm-static #mm-home-hero #mm-home-hero-btns .elementor-button,
  body.mm-static #mm-prod-hero #mm-prod-hero-cta .elementor-button {
    width: 100% !important;
  }
}

.mm-static #mm-hero-left > .elementor-widget,
.mm-static #mm-home-hero-left > .elementor-widget {
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  z-index: 1;
}

.mm-static .mm-prod-hero-phone-wrap,
.mm-static #mm-hero-left .mm-prod-hero-phone,
.mm-static #mm-home-hero-left .elementor-widget:has(a[href^="tel:"]),
body.mm-static #mm-home-hero-left .elementor-widget:has(a[href^="tel:"]) {
  margin-top: 0.75rem !important;
  clear: both;
  position: relative !important;
  z-index: 1;
  display: block !important;
  height: auto !important;
}

/* Woo gallery: Elementor/Woo JS normally fades this in */
.mm-static .woocommerce-product-gallery,
.mm-static .woocommerce-product-gallery--with-images {
  opacity: 1 !important;
  transition: none !important;
  max-width: 100%;
}

.mm-static .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Exactly 2 columns → split / hero (layout rows only) */
.mm-static .e-con.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)),
.mm-static .e-con-inner.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)) {
  flex-wrap: nowrap !important;
  gap: clamp(1.25rem, 3vw, 2.5rem) !important;
  align-items: center !important;
}

.mm-static .e-con.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)) > .e-con,
.mm-static .e-con-inner.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)) > .e-con {
  flex: 1 1 45% !important;
}

/*
 * Contentless parallel column (no media/text/CTA):
 * collapse so long copy is not trapped beside a huge empty pane.
 */
.mm-static .e-con.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget))
  > .e-con:not(
    :has(
      img[src]:not([src=""]),
      video,
      iframe,
      svg,
      p,
      li,
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      .elementor-heading-title,
      .elementor-button,
      a.elementor-button,
      table,
      form,
      .elementor-icon-list-items,
      .cea-feature-box,
      .elementor-image-box-wrapper,
      .woocommerce-product-gallery
    )
  ) {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.mm-static .e-con.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)):has(
    > .e-con:not(
        :has(
          img[src]:not([src=""]),
          video,
          iframe,
          svg,
          p,
          li,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          .elementor-heading-title,
          .elementor-button,
          a.elementor-button,
          table,
          form,
          .elementor-icon-list-items,
          .cea-feature-box,
          .elementor-image-box-wrapper,
          .woocommerce-product-gallery
        )
      )
  )
  > .e-con:has(
    img[src]:not([src=""]),
    video,
    iframe,
    svg,
    p,
    li,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .elementor-heading-title,
    .elementor-button,
    a.elementor-button,
    table,
    form,
    .elementor-icon-list-items,
    .cea-feature-box,
    .elementor-image-box-wrapper,
    .woocommerce-product-gallery
  ) {
  flex: 1 1 100% !important;
  max-width: 72ch !important;
  width: 100% !important;
}

/* 3+ columns → card/grid row (layout containers only) */
.mm-static .e-con.e-flex:has(> .e-con + .e-con + .e-con):not(:has(> .elementor-widget)),
.mm-static .e-con-inner.e-flex:has(> .e-con + .e-con + .e-con):not(:has(> .elementor-widget)) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
}

/* Exactly 3 → 3 columns on desktop */
@media (min-width: 900px) {
  .mm-static .e-con.e-flex:has(> .e-con:nth-child(3):last-child),
  .mm-static .e-con-inner.e-flex:has(> .e-con:nth-child(3):last-child),
  .mm-static .e-con.e-flex:has(> .e-con + .e-con + .e-con):not(:has(> .e-con:nth-child(4))),
  .mm-static .e-con-inner.e-flex:has(> .e-con + .e-con + .e-con):not(:has(> .e-con:nth-child(4))) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* Exactly 4 → 2×2 (avoid 3+1 orphan) */
  .mm-static .e-con.e-flex:has(> .e-con:nth-child(4):last-child),
  .mm-static .e-con-inner.e-flex:has(> .e-con:nth-child(4):last-child),
  .mm-static .e-con.e-flex:has(> .e-con + .e-con + .e-con + .e-con):not(:has(> .e-con:nth-child(5))),
  .mm-static .e-con-inner.e-flex:has(> .e-con + .e-con + .e-con + .e-con):not(:has(> .e-con:nth-child(5))) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Exactly 5 → 3+2 (avoid cramped 5-across and 4+1 orphan) */
  .mm-static .e-con.e-flex:has(> .e-con:nth-child(5):last-child):not(:has(> .elementor-widget)),
  .mm-static .e-con-inner.e-flex:has(> .e-con:nth-child(5):last-child):not(:has(> .elementor-widget)),
  .mm-static .e-con.e-flex:has(> .e-con + .e-con + .e-con + .e-con + .e-con):not(:has(> .e-con:nth-child(6))):not(:has(> .elementor-widget)),
  .mm-static .e-con-inner.e-flex:has(> .e-con + .e-con + .e-con + .e-con + .e-con):not(:has(> .e-con:nth-child(6))):not(:has(> .elementor-widget)) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* 6+ → comfortable multi-column without forcing orphans */
  .mm-static .e-con.e-flex:has(> .e-con:nth-child(6)),
  .mm-static .e-con-inner.e-flex:has(> .e-con:nth-child(6)) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)) !important;
  }
}

@media (min-width: 1100px) {
  .mm-static .e-con.e-flex:has(> .e-con:nth-child(6)),
  .mm-static .e-con-inner.e-flex:has(> .e-con:nth-child(6)) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
  }
}

@media (max-width: 899px) {
  .mm-static .e-con.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)),
  .mm-static .e-con-inner.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)),
  .mm-static #mm-hero-row {
    flex-wrap: wrap !important;
    flex-direction: column !important;
  }

  .mm-static .e-con.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)) > .e-con,
  .mm-static .e-con-inner.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)):not(:has(> .elementor-widget)) > .e-con,
  .mm-static #mm-hero-left,
  .mm-static #mm-hero-image-col {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mm-static .e-con.e-flex:has(> .e-con + .e-con + .e-con):not(:has(> .elementor-widget)),
  .mm-static .e-con-inner.e-flex:has(> .e-con + .e-con + .e-con):not(:has(> .elementor-widget)) {
    grid-template-columns: 1fr !important;
  }
}

.mm-static .e-con,
.mm-static .e-con-inner,
.mm-static .elementor-widget,
.mm-static .elementor-widget-container {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.mm-static .elementor-widget {
  margin: 0 0 0.85rem !important;
}

.mm-static .elementor-widget:last-child {
  margin-bottom: 0 !important;
}

/* Brand / product cards */
.mm-static .mm-brand-card-link,
.mm-static a.mm-brand-card-link,
.mm-static .elementor-widget-image-box,
.mm-static .product,
.mm-static li.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 0.85rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--mm-ink);
  min-height: 0;
}

.mm-static .mm-brand-card-logo,
.mm-static img.mm-brand-card-logo {
  max-height: 44px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

/* Model cards: emphasize names, align media + CTA */
.mm-static .elementor-widget-image-box .elementor-image-box-title,
.mm-static .mm-brand-card-link .elementor-heading-title,
.mm-static [id*="grid"] .elementor-heading-title,
.mm-static [id*="models"] .elementor-heading-title,
.mm-static [id*="modelle"] .elementor-heading-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.mm-static [id*="grid"] .elementor-widget-image img,
.mm-static [id*="models"] .elementor-widget-image img,
.mm-static [id*="modelle"] .elementor-widget-image img {
  margin-inline: auto;
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.mm-static ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 1rem 0 !important;
}

@media (min-width: 900px) {
  .mm-static ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1100px) {
  .mm-static ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Product single — readable description, no sidebar trap */
.mm-static .woocommerce div.product {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .mm-static .woocommerce div.product {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.mm-static .product .summary,
.mm-static .woocommerce-product-details__short-description,
.mm-static .elementor-widget-woocommerce-product-content,
.mm-static .elementor-widget-theme-post-content {
  max-width: 72ch;
  width: 100%;
}

.mm-static .elementor-widget-sidebar,
.mm-static .widget-area,
.mm-static aside.sidebar {
  max-width: 100%;
}

/* Images */
.mm-static img[src=""],
.mm-static img:not([src]),
.mm-static img[src*="unsplash.com"] {
  display: none !important;
}

.mm-static img {
  border-radius: 8px;
}

.mm-static .e-con.e-flex:has(> .e-con + .e-con):not(:has(> .e-con + .e-con + .e-con)) > .e-con:last-child img {
  width: 100%;
  object-fit: cover;
}

/* Tables / legal — overflow on wrapper, keep real table layout */
.mm-static .mm-table-wrap,
.mm-static .table-responsive,
.mm-static .woocommerce table.shop_attributes,
.mm-static .entry-content > .wp-block-table {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.mm-static table {
  width: 100%;
  border-collapse: collapse;
  display: table;
  max-width: 100%;
}

.mm-static .elementor-widget-text-editor,
.mm-static .entry-content {
  overflow-wrap: anywhere;
}

.mm-static .tpl-legal .elementor,
.mm-static.mm-family-legal .elementor {
  max-width: 820px;
}

/* FAQ */
.mm-static .elementor-accordion-item,
.mm-static .elementor-toggle-item {
  border: 1px solid var(--mm-line);
  border-radius: 8px;
  background: var(--mm-surface);
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
}

.mm-static .elementor-tab-content,
.mm-static .elementor-accordion-content,
.mm-static .elementor-toggle-content {
  display: none;
  margin-top: 0.55rem;
}

/* Focus */
.mm-static a:focus-visible,
.mm-static button:focus-visible,
.mm-static .elementor-button:focus-visible {
  outline: 3px solid #1a4f66;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mm-static * {
    transition: none !important;
    animation: none !important;
  }
}

.mm-static .site-header,
.mm-static header .e-con-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sticky header shells must be full-bleed so the inner axis can center */
body.mm-static #site-header .sticky-outer,
body.mm-static #site-header .sticky-head,
body.mm-static #site-header .header-navbar,
body.mm-static #site-header .header-navbar.navbar {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* Theme normally toggles mobilebar via JS — restore with CSS breakpoints */
@media (max-width: 1024px) {
  body.mm-static .header-navbar,
  body.mm-static #site-header .header-navbar {
    display: none !important;
  }
  body.mm-static .header-mobilebar,
  body.mm-static #site-header .header-mobilebar {
    display: block !important;
    line-height: 60px;
    background: var(--mm-surface, #fff);
  }
  body.mm-static .sticky-outer,
  body.mm-static .sticky-head,
  body.mm-static #site-header .sticky-outer,
  body.mm-static #site-header .sticky-head {
    min-height: 60px;
  }
  body.mm-static .header-mobilebar .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
    color: var(--mm-text, #14252b);
  }
}
@media (min-width: 1025px) {
  body.mm-static .header-mobilebar,
  body.mm-static #site-header .header-mobilebar {
    display: none !important;
  }
  body.mm-static .header-navbar,
  body.mm-static #site-header .header-navbar {
    display: block !important;
  }
}

/* Theme header/topbar share the same content axis as main */
body.mm-static #site-header .header-navbar > .container-fluid,
body.mm-static #site-header .container-fluid,
body.mm-static #site-header .container,
body.mm-static .site-header .container-fluid,
body.mm-static .site-header .container,
body.mm-static .header-topbar .container-fluid,
body.mm-static .header-topbar .container,
body.mm-static .header-top .container-fluid,
body.mm-static .header-top .container,
body.mm-static .top-bar .container-fluid,
body.mm-static .top-bar .container,
body.mm-static .site-footer .container,
body.mm-static .site-footer .container-fluid,
body.mm-static .footer-top .container,
body.mm-static .footer-top .container-fluid {
  width: min(100% - (var(--mm-gutter) * 2), var(--mm-content-max)) !important;
  max-width: var(--mm-content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Full-width Elementor templates still share the content axis */
body.mm-static.elementor-template-full-width .elementor,
body.mm-static .elementor-location-single .elementor,
body.mm-static.single-product .elementor {
  width: min(100% - (var(--mm-gutter) * 2), var(--mm-content-max)) !important;
  max-width: var(--mm-content-max) !important;
  margin-inline: auto !important;
}

body.mm-static.elementor-template-full-width .elementor > .e-con.e-parent,
body.mm-static.single-product .elementor > .e-con.e-parent {
  width: 100% !important;
  max-width: 100% !important;
}

.mm-static #content,
.mm-static .site-main,
.mm-static .devicemaster-content-wrap,
.mm-static .container,
.mm-static .entry-content {
  width: 100%;
  max-width: var(--mm-content-max);
  margin-inline: auto;
}

.mm-static .devicemaster-content-wrap.container,
.mm-static .container.page {
  padding-inline: 0;
}

/*
 * Style-only Elementor shells: explicit ID allowlist only.
 * Do not use broad :has() / [id$="-styles"] — that can hide real content.
 * Styles inside these shells remain in the DOM and still apply.
 */
.mm-static #mm-overflow-styles,
.mm-static #ps-styles,
.mm-static #mm-ds-styles,
.mm-static #mm-home-styles,
.mm-static #mm-safe-faqpage-schema {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Dark archive title band: compact, shared content axis */
body.mm-static .page-title-wrap,
.mm-static .page-title-wrap {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.mm-static .page-title-wrap .container,
body.mm-static .page-title-wrap .container-fluid,
body.mm-static .page-title-wrap .page-title-inner,
body.mm-static .page-title-wrap .page-title-elements,
body.mm-static .page-title-wrap > * {
  display: block !important;
  width: min(100% - (var(--mm-gutter) * 2), var(--mm-content-max)) !important;
  max-width: var(--mm-content-max) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

body.mm-static .page-title-wrap .page-title,
body.mm-static .page-title-wrap h1 {
  margin: 0 0 0.35rem !important;
  font-size: clamp(1.55rem, 3vw, 2.4rem) !important;
  line-height: 1.15 !important;
}

@media (max-width: 767px) {
  body.mm-static .page-title-wrap {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }

  body.mm-static .page-title-wrap .page-title,
  body.mm-static .page-title-wrap h1 {
    font-size: 1.45rem !important;
  }
}

/* Apple / console hubs: tighten title → models spacing */
.mm-static #apple-hero,
.mm-static #playstation-hero,
.mm-static #nintendo-hero,
.mm-static #xbox-hero {
  padding-top: clamp(1rem, 2.5vw, 2rem) !important;
  padding-bottom: clamp(1rem, 2vw, 1.75rem) !important;
}

.mm-static #apple-grid-iphone,
.mm-static #apple-grid-ipad,
.mm-static #apple-grid-watch,
.mm-static #playstation-models,
.mm-static [id*="-grid-"] {
  padding-top: clamp(0.75rem, 2vw, 1.5rem) !important;
}

/* Model card titles: never clip long names */
.mm-static [id*="grid"] .elementor-heading-title,
.mm-static [id*="models"] .elementor-heading-title,
.mm-static [id*="modelle"] .elementor-heading-title {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* Home hero: reduce dead air under main block */
.mm-static #mm-home-hero {
  padding-bottom: clamp(1rem, 2.5vw, 2rem) !important;
}

.mm-static #mm-home-hero-row {
  align-items: flex-start !important;
}

/* Green closing CTA: balanced text + buttons */
.mm-static #mm-home-cta > .e-con-inner,
.mm-static #ps-cta > .e-con-inner,
.mm-static #apple-cta > .e-con-inner,
.mm-static [id$="-cta"] > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0.75rem !important;
}

@media (min-width: 900px) {
  .mm-static #mm-home-cta > .e-con-inner > .e-con,
  .mm-static #ps-cta > .e-con-inner > .e-con,
  .mm-static #apple-cta > .e-con-inner > .e-con {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center !important;
    gap: 1.5rem !important;
    text-align: left !important;
    width: 100% !important;
  }

  .mm-static #mm-home-cta .e-con.e-flex:has(> .elementor-widget-button),
  .mm-static #ps-cta .e-con.e-flex:has(> .elementor-widget-button),
  .mm-static #apple-cta .e-con.e-flex:has(> .elementor-widget-button) {
    justify-content: flex-end !important;
  }
}

/* Product description readable on small phones */
@media (max-width: 480px) {
  .mm-static #mm-prod-hero .mm-prod-hero-desc p,
  .mm-static #mm-hero-left {
    max-width: 100% !important;
  }

  .mm-static #mm-prod-hero {
    padding-inline: 0.25rem;
  }
}

/* Footer logo description contrast (theme already dark; reinforce) */
.mm-static #site-footer .mm-ft-desc,
.mm-static .mm-global-footer .mm-ft-desc {
  color: #d5d9d5 !important;
  opacity: 1 !important;
}
