/*
 * JSON editors for Provider Product multipart text fields.
 * Scoped to generated helper classes; the API still receives text parts.
 */

.swagger-ui .kt-json-form-editor {
  width: min(100%, 780px);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.swagger-ui .kt-json-form-editor__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.swagger-ui .kt-json-form-editor__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  color: #1e3a5f;
  background: #e8eef7;
  font: 700 11px/1.4 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.swagger-ui .kt-json-form-editor__state {
  color: #64748b;
  font: 500 11px/1.4 "Segoe UI", system-ui, sans-serif;
  text-align: right;
}

.swagger-ui .kt-json-form-editor__state.is-invalid {
  color: #b42318;
}

.swagger-ui .kt-json-form-editor__textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 12px 14px;
  color: #0f172a;
  background: #ffffff;
  font: 500 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  tab-size: 2;
  white-space: pre;
}

.swagger-ui .kt-json-form-editor__textarea:focus {
  box-shadow: inset 0 0 0 2px #3355d1;
}

.swagger-ui .kt-json-form-editor__textarea.is-invalid {
  background: #fff7f7;
  box-shadow: inset 0 0 0 2px #cf3b3b;
}

.swagger-ui .kt-json-source-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 720px) {
  .swagger-ui .kt-json-form-editor__toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .swagger-ui .kt-json-form-editor__state {
    text-align: left;
  }
}
