/* Full-height mobile chat sheet; desktop quick-chat behavior is unchanged. */
@media (max-width: 600px) {
  html body .ehqc .ehqc-panel:not([hidden]),
  html body.eh-map-page .ehqc .ehqc-panel:not([hidden]),
  html body.eh-map-page .ehqc.ehqc-on-map .ehqc-panel:not([hidden]),
  html body.eh-map-page .ehqc.ehqc-map-launch-moved .ehqc-panel:not([hidden]) {
    position: fixed !important;
    z-index: 1450 !important;
    inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
    border: 1px solid #d9dfe7 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 12px 40px #17223445 !important;
  }

  html body .ehqc .ehqc-panel[hidden],
  html body.eh-map-page .ehqc .ehqc-panel[hidden],
  html body.eh-map-page .ehqc.ehqc-on-map .ehqc-panel[hidden],
  html body.eh-map-page .ehqc.ehqc-map-launch-moved .ehqc-panel[hidden] {
    display: none !important;
  }

  html body .ehqc .ehqc-panel > header {
    position: sticky !important;
    top: -16px !important;
    z-index: 2 !important;
    min-height: 52px !important;
    margin: -16px -16px 14px !important;
    padding: 9px 12px 9px 16px !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e8ed !important;
  }

  html body .ehqc .ehqc-window-actions {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  html body .ehqc .ehqc-window-actions button {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 8px !important;
  }

  html body .ehqc .ehqc-panel h2 {
    overflow-wrap: anywhere;
  }

  html body .ehqc .ehqc-panel .ehcl-transcript {
    min-height: 150px !important;
    max-height: min(44dvh, 420px) !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .ehqc .ehqc-panel .ehqc-form textarea {
    min-height: 120px !important;
    max-height: 32dvh !important;
    resize: vertical !important;
  }

  html body .ehqc .ehqc-panel .ehqc-auth a,
  html body .ehqc .ehqc-panel .ehqc-form button {
    min-height: 46px !important;
  }
}
