/* REALsnap 23.5 — iOS focus zoom and horizontal overflow correction.
 * Do not disable user zoom or change viewport accessibility settings.
 */
@media (max-width: 850px) {
  /* iOS Safari and iOS Chrome zoom text controls below 16px when focused. */
  html body #snaap-chat-root #snaap-message-input,
  html body #snaap-chat-root .snaap-composer textarea,
  html body #snaap-chat-root .snaap-search-wrap input,
  html body #snaap-chat-root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  html body #snaap-chat-root textarea,
  html body #snaap-chat-root select {
    font-size: 16px !important;
    line-height: 1.35;
    -webkit-text-size-adjust: 100%;
  }
  /* Containers must never enlarge the layout viewport. */
  body:has(#snaap-chat-root) { max-width: 100%; overflow-x: clip; }
  #snaap-chat-root,
  #snaap-chat-root .snaap-chat-main,
  #snaap-chat-root .snaap-chat-header,
  #snaap-chat-root .snaap-message-list,
  #snaap-chat-root .snaap-composer,
  #snaap-chat-root .snaap-message,
  #snaap-chat-root .snaap-message-content {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  #snaap-chat-root .snaap-composer { width: 100%; }
  #snaap-chat-root .snaap-composer textarea {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
  #snaap-chat-root .snaap-message-list {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }
  #snaap-chat-root .snaap-message,
  #snaap-chat-root .snaap-message a,
  #snaap-chat-root .snaap-snap-filename {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  #snaap-chat-root img,
  #snaap-chat-root video { max-width: 100%; }
}
