.ds-divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: var(--bh-space-xxxs-1) solid var(--bh-border-subtle);
}

.ds-divider--dotted {
  border-top-style: dashed;
}

.ds-content-divider {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--bh-space-md-8);
  color: var(--bh-content-default);
  font-family: var(--bh-font-family);
  letter-spacing: 0;
}

.ds-content-divider *,
.ds-content-divider *::before,
.ds-content-divider *::after {
  box-sizing: border-box;
}

.ds-content-divider__rule {
  flex: 1 1 auto;
  min-width: var(--bh-space-5xl-24);
  border-top: var(--bh-space-xxxs-1) solid var(--bh-border-subtle);
}

.ds-content-divider--dotted .ds-content-divider__rule {
  border-top-style: dashed;
}

.ds-content-divider__label {
  flex: 0 0 auto;
  color: var(--bh-content-default);
  font-size: var(--bh-text-body-md-font-size);
  font-weight: var(--bh-font-weight-regular);
  line-height: var(--bh-text-body-md-line-height);
}

.ds-content-divider__button {
  min-height: calc(var(--bh-space-6xl-32) + var(--bh-space-xs-4));
  border: 0;
  border-radius: var(--bh-control-default);
  background: var(--bh-interactive-ghost-hover);
  color: var(--bh-content-default);
  padding: 0 var(--bh-space-3xl-16);
  font: inherit;
  font-size: var(--bh-text-body-md-font-size);
  font-weight: var(--bh-font-weight-medium);
  line-height: var(--bh-text-body-md-line-height);
  cursor: pointer;
}

.ds-content-divider__button:hover:not(:disabled) {
  background: var(--bh-interactive-soft-default);
}

.ds-content-divider__button:disabled {
  color: var(--bh-content-muted);
  cursor: not-allowed;
  opacity: var(--bh-opacity-65);
}

.ds-content-divider__button:focus-visible {
  outline: var(--bh-space-xxs-2) solid var(--bh-border-focus);
  outline-offset: var(--bh-space-xxs-2);
}
