.et-widget-linkgroups {
  .et-links-recursive-wrapper:not(.et-links-recursive-level-0) {
    font-size: max(0.9em, 12px);
  }
  .et-link-groups-group-name {
    hyphens: auto;
  }
  .et-link-groups-group-links {
    display: flex;
    row-gap: $grid-gutter-width / 2;
    a {
      display: block;
      hyphens: auto;
    }
  }
  .et-link-groups-wrapper {
    row-gap: $grid-gutter-width;
    &.et-link-groups-display-row {
      display: flex;
      flex-direction: column;
      &.et-with-parting-line {
        .et-links-recursive-wrapper.et-links-recursive-level-0:not(:last-child) {
          border-right: 1px solid currentColor;
        }
      }
      &.et-align-horizontal-center {
        .et-links-recursive-wrapper {
          text-align: center;
          &.col {
            margin-left: auto;
            margin-right: auto;
          }
        }
        .et-link-groups-group-name {
          text-align: center;
        }
      }
      &.et-align-horizontal-right {
        .et-links-recursive-wrapper {
          text-align: right;
          &.col {
            margin-left: auto;
          }
        }
        .et-link-groups-group-name {
          text-align: right;
        }
        .et-links-recursive-wrapper:not(.et-links-recursive-level-0) {
          padding-right: $grid-gutter-width / 2;
        }
      }
      &.et-align-horizontal-left {
        .et-links-recursive-wrapper:not(.et-links-recursive-level-0) {
          padding-left: $grid-gutter-width / 2;
        }
      }
    }
    &.et-link-groups-display-column {
      &.et-with-parting-line {
        .et-link-groups-group:not(:last-child) {
          border-right: 1px solid currentColor;
        }
      }
      .et-link-groups-group-links {
        flex-direction: column;
      }
      &.et-align-horizontal-center {
        .et-links-recursive-wrapper {
          text-align: center;
          &.col {
            margin-left: auto;
            margin-right: auto;
          }
        }
        .et-link-groups-group-name {
          text-align: center;
        }
      }
      &.et-align-horizontal-right {
        .et-links-recursive-wrapper {
          text-align: right;
          &.col {
            margin-left: auto;
          }
        }
        .et-link-groups-group-name {
          text-align: right;
        }
        .et-links-recursive-wrapper:not(.et-links-recursive-level-0) {
          padding-right: $grid-gutter-width / 2;
        }
      }
      &.et-align-horizontal-left {
        .et-links-recursive-wrapper:not(.et-links-recursive-level-0) {
          padding-left: $grid-gutter-width / 2;
        }
      }
    }
  }
}