$dividerPrefix: amos-divider;

.#{$dividerPrefix} {
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
  list-style: none;
  background: #e8e8e8;
  box-sizing: border-box;

  &,
  .#{$dividerPrefix}-vertical {
    position: relative;
    top: -0.06em;
    display: inline-block;
    width: 1px;
    height: 0.9em;
    margin: 0 8px;
    vertical-align: middle;
  }

  &-horizontal {
    display: block;
    width: 100%;
    height: 1px;
    margin: 24px 0;
  }

  &-horizontal.#{$dividerPrefix}-with-text {
    display: table;
    margin: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #52575c;
    text-align: center;
    white-space: nowrap;
    background: transparent;

    &::before,
    &::after {
      position: relative;
      top: 50%;
      display: table-cell;
      width: 50%;
      border-top: 1px solid #e8e8e8;
      content: '';
      transform: translateY(50%);
    }
  }

  &-inner-text {
    display: inline-block;
    padding: 0 24px;
  }

  &-dashed {
    background: none;
    border-top: 1px dashed #e8e8e8;
  }
}
