/* Production modal integrity: one predictable scroll container on every viewport. */
.customer-editor-backdrop {
  align-items: start !important;
  justify-items: center !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.customer-editor {
  display: flex !important;
  flex-direction: column !important;
  max-height: calc(100dvh - 32px) !important;
  margin: auto 0 !important;
  overflow: hidden !important;
}

.customer-editor > header {
  flex: 0 0 auto;
}

.customer-editor > form {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px) {
  .customer-editor-backdrop {
    padding: 4px !important;
  }

  .customer-editor {
    max-height: calc(100dvh - 8px) !important;
    width: 100% !important;
  }
}
