/* F45 — portal-level B24 deal sync config. Single-panel layout (no sidebar). */

.bxint-page {
  background: #fff;
  color: #111827;
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}

.bxint-page--single {
  max-width: 860px;
}

.bxint-settings {
  padding: 24px;
}

.bxint-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}

.bxint-settings-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 760;
}

.bxint-settings-subtitle {
  margin: 8px 0 0;
  max-width: 640px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.bxint-save {
  flex-shrink: 0;
  border: 1px solid var(--brand-primary);
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.bxint-save:disabled {
  cursor: default;
  opacity: 0.56;
}

.bxint-status {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  min-height: 0;
}

.bxint-status.is-error {
  color: #b91c1c;
}

.bxint-form-mount {
  padding-top: 18px;
}

.bxint-form-mount .ref-section {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.bxint-form-mount .ref-section-title {
  display: none;
}

.bxint-form-mount .ref-bitrix-stage-map {
  margin-bottom: 16px;
}

.bxint-error-inline {
  margin: 0 0 12px;
  max-width: none;
  text-align: left;
}

.bxint-empty,
.bxint-loading,
.bxint-error {
  margin: 48px auto;
  max-width: 520px;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}

.bxint-error {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .bxint-settings-head {
    flex-direction: column;
    gap: 12px;
  }

  .bxint-save {
    width: 100%;
  }
}
