/*
 * Easy Orders — mobile horizontal overflow fix
 * Add this AFTER the existing landing-page custom CSS.
 * Desktop styles remain unchanged because these rules only apply below 768px.
 */

@media screen and (max-width: 767px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  /* Keep media within the mobile viewport */
  img,
  video,
  iframe {
    max-width: 100% !important;
  }

  img {
    height: auto;
  }

  /* Let common flex containers shrink and wrap on mobile */
  .css-pdin8h,
  .muirtl-new-1ubuq2d {
    width: 100%;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  /* Prevent long text and controls from forcing extra width */
  h1,
  h2,
  h3,
  p,
  a,
  button {
    overflow-wrap: anywhere;
  }

  button {
    max-width: 100%;
    white-space: normal !important;
  }

  /* Constrain section-level layout without changing desktop */
  section,
  main,
  header,
  footer {
    max-width: 100%;
    min-width: 0;
  }

  /* Common content wrappers */
  .ql-container,
  .ql-editor {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .ql-editor {
    overflow-wrap: anywhere;
  }

  .ql-editor img {
    display: block;
    width: auto;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
}

@media screen and (max-width: 480px) {
  .ql-editor {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
