/* Quantum MedTech — WordPress / OceanWP / Elementor compatibility */

html,
body.qm-site {
  background: #f8fafc;
  margin: 0;
}

body.qm-site {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  overflow-x: hidden;
}

body.qm-site #outer-wrap,
body.qm-site #wrap,
body.qm-site #main,
body.qm-site #content-wrap,
body.qm-site .content-area,
body.qm-site .site-main,
body.qm-site .entry,
body.qm-site .entry-content {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  float: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Hide OceanWP chrome only — never our Quantum header/footer */
body.qm-site #top-bar-wrap,
body.qm-site #footer,
body.qm-site #footer-widgets,
body.qm-site #footer-bottom,
body.qm-site #site-header-inner,
body.qm-site .page-header,
body.qm-site .sidebar-container,
body.qm-site .oceanwp-mobile-menu-icon,
body.qm-site #scroll-top,
body.qm-site .oceanwp-sticky-header-holder,
body.qm-site #site-header:not(.qm-wp-header) {
  display: none !important;
}

/* Force-show Quantum site chrome */
body.qm-site header.site-header.qm-wp-header,
body.qm-site .site-header.qm-wp-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

body.qm-site.admin-bar .site-header.qm-wp-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.qm-site.admin-bar .site-header.qm-wp-header {
    top: 46px !important;
  }
}

body.qm-site footer.site-footer {
  display: block !important;
}

/* Elementor wrappers must not add spacing/width constraints */
body.qm-site .elementor-section,
body.qm-site .elementor-container,
body.qm-site .elementor-column,
body.qm-site .elementor-widget-wrap,
body.qm-site .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

body.qm-site .elementor-widget:not(:last-child) {
  margin-bottom: 0 !important;
}

body.qm-site .elementor-element,
body.qm-site .e-con,
body.qm-site .e-con-inner {
  --padding-top: 0px !important;
  --padding-right: 0px !important;
  --padding-bottom: 0px !important;
  --padding-left: 0px !important;
  --gap: 0px !important;
  max-width: none !important;
}

body.qm-site .container {
  box-sizing: border-box;
}

body.qm-site a {
  text-decoration: none;
}

/*
 * Do NOT force height:auto on all images — that breaks:
 * .sol-command-devices img (object-fit contain in fixed box)
 * .about-split-media / product cards absolute overlays
 */
/* Keep footer logos fluid; header logo must keep fixed height from style.css */
body.qm-site .site-footer img {
  max-width: 100%;
  height: auto;
}

/* Prevent WP/theme img resets from blowing up the brand mark */
body.qm-site .site-header.qm-wp-header .header-container {
  height: 80px;
  align-items: center;
}

body.qm-site .site-header.qm-wp-header .brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

body.qm-site .site-header.qm-wp-header .brand-logo-img,
body.qm-site .site-header.qm-wp-header img.brand-logo-img {
  height: 46px !important;
  width: auto !important;
  max-height: 46px !important;
  max-width: 210px !important;
  object-fit: contain !important;
  display: block !important;
}

body.qm-site .site-header.qm-wp-header .site-nav,
body.qm-site .site-header.qm-wp-header .header-actions {
  display: flex;
  align-items: center;
}

body.qm-site .about-split-media,
body.qm-site .sol-command-devices,
body.qm-site .product-item-visual,
body.qm-site .catalog-card-visual,
body.qm-site .sol-visual-stage {
  position: relative;
}

/* Must stay absolute — do not flatten into the stage flex flow */
body.qm-site .sol-device-preview {
  position: absolute !important;
  right: 1.15rem !important;
  bottom: 0.95rem !important;
  z-index: 3 !important;
  width: 74px !important;
  height: 74px !important;
}

body.qm-site .sol-device-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-width: none !important;
}

body.qm-site .sol-bg-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

body.qm-site .sol-command-devices img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
}

body.qm-site .about-split-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.qm-site #product-specs-modal {
  z-index: 100000;
}

body.qm-site .floating-whatsapp-btn {
  z-index: 99999;
}

/* Protect clinical showcase cards from Elementor/OceanWP global img resets */
body.qm-site .section-showcase .showcase-slide {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

body.qm-site .section-showcase .showcase-slide-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body.qm-site .section-showcase .showcase-slide img,
body.qm-site .elementor .section-showcase .showcase-slide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

