/* Helper editor only: compact layout; existing state and save handlers stay unchanged. */
#settingsSection [data-settings-dialog] .settings-editor-modal[data-presentation-key^="helper:"] {
  display:block; width:min(720px,100%); height:auto; min-height:0; padding:24px; box-sizing:border-box;
}
html body:not(.is-dashboard-login-page) #settingsSection .settings-editor-modal [data-business-helper-editor] {
  display:block; height:auto; min-height:0; padding:0 !important; margin:0; border:0; background:transparent; box-shadow:none;
}
#settingsSection .settings-editor-modal [data-business-helper-editor] h4 { margin:0 0 20px; font-size:18px; }
#settingsSection .settings-editor-modal [data-business-helper-editor] .shop-form-section {
  margin:0; gap:18px 20px; align-items:start; grid-auto-rows:max-content;
}
#settingsSection .settings-editor-modal [data-business-helper-editor] .permission-check {
  display:flex; align-items:center; align-self:end; gap:8px; min-height:38px; margin:0;
}
#settingsSection .settings-editor-modal [data-business-helper-editor] .helper-editor-actions {
  display:flex; justify-content:flex-end; align-items:center; gap:10px; margin:22px 0 0; padding:16px 0 0; border-top:1px solid #e5e5ed;
}
#settingsSection .settings-editor-modal [data-business-helper-editor] .helper-editor-actions button {
  flex:0 0 auto; width:auto; min-width:76px; min-height:36px; height:36px; margin:0; padding:6px 20px;
}
#settingsSection .settings-editor-modal [data-business-helper-editor] .helper-editor-actions button.primary { background:#087cf0; border-color:#087cf0; color:#fff; }
/* The helper dialog deliberately uses borders without elevated surfaces. */
html body:not(.is-dashboard-login-page) #settingsSection [data-settings-dialog] .settings-editor-modal[data-presentation-key^="helper:"],
html body:not(.is-dashboard-login-page) #settingsSection [data-business-helper-editor],
html body:not(.is-dashboard-login-page) #settingsSection [data-settings-dialog] .settings-editor-modal [data-business-helper-editor] :is(input,button,select,.settings-themed-select-menu,.settings-themed-select) {
  box-shadow:none !important; text-shadow:none !important;
}
/* Reset the shared anchor selector's horizontal flex basis inside a vertical label. */
html body:not(.is-dashboard-login-page) #settingsSection [data-settings-dialog] .settings-editor-modal [data-business-helper-editor] .settings-themed-select.settings-anchor-select { flex:0 0 auto !important; height:auto; min-height:0; }
@media (max-width:768px) {
  html body.is-mobile-viewport:not(.is-dashboard-login-page) #settingsSection [data-settings-dialog] .settings-editor-modal[data-presentation-key^="helper:"] { padding:20px; }
  html body.is-mobile-viewport:not(.is-dashboard-login-page) #settingsSection [data-business-helper-editor] .shop-form-section { grid-template-columns:1fr; gap:14px; }
}

#settingsSection [data-business-helper-management] [data-business-helper-notice]:empty { display:none; }
#settingsSection [data-business-helper-management] .settings-shop-table-actions button { width:auto; min-height:32px; margin:3px 4px 3px 0; padding:5px 10px; box-shadow:none; }
#settingsSection [data-business-helper-editor] .helper-callback-field { grid-column:1 / -1; }
#settingsSection [data-business-helper-editor] .helper-callback-control { display:flex; gap:8px; min-width:0; align-items:center; }
#settingsSection [data-business-helper-editor] .helper-callback-control input { min-width:0; flex:1; }
#settingsSection [data-business-helper-editor] .helper-callback-control button { flex:none; width:auto; margin:0; }
