/* AMX Mobile Fixes 1.0.0 */

/* Prevent horizontal scroll while keeping safe behavior */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* modern */
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* Basic responsive media */
img, video, canvas, svg, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Common builder containers */
.container, .container-fluid, .row, [class*="col-"],
.site, .site-content, .content-area, .entry-content,
.elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap,
.wp-block-group, .wp-site-blocks {
  max-width: 100%;
  overflow-x: hidden;
}

/* Avoid negative margins breaking mobile width */
[class*="row"] {
  margin-left: max(min(var(--amxmf-row-ml, 0), 0), -15px);
  margin-right: max(min(var(--amxmf-row-mr, 0), 0), -15px);
}

/* Stick floating widgets inside safe area on iPhone/iPad */
:root {
  --amx-edge-pad: max(env(safe-area-inset-right), 12px);
}
.amxmf-float-fix, .sticky-widget, .floating-button, .chat-widget, .back-to-top {
  right: var(--amx-edge-pad) !important;
}

/* Disable oversize transforms pushing layout */
.amx-overflow-fixed {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Typography zoom consistency */
html { -webkit-text-size-adjust: 100%; }
