@import '../../style/themes/index';

@secondary-basis: 240px;
@primary-basis: 480px;
@relative-size: 2;

@new-layout-prefix: ~'@{ant-prefix}-new-layout';

.@{new-layout-prefix} {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  margin-top: -24px;
  margin-left: -24px;

  &-heading {
    margin: 0;
    font-weight: 600;
    font-size: 17px;
    line-height: 24px;

    @media (min-width: @screen-sm-min) {
      font-size: 16px;
    }
  }

  &-text-container {
    > *:not(:first-child) {
      margin-top: 24px;
    }
  }

  &-section {
    flex: @relative-size @relative-size @primary-basis;
    min-width: 51%;
  }

  &-section-secondary {
    flex: 1 1 @secondary-basis;
    min-width: 0;
  }

  &-section-fullWidth {
    flex: 1 1 100%;
  }

  &-section-one-half {
    flex: 1 1 450px;
    min-width: 0;
  }

  &-section-one-third {
    flex: 1 1 240px;
    min-width: 0;
  }

  &-annotated-section {
    flex: 1 1 100%;
    min-width: 0;
  }

  &-section,
  &-annotated-section {
    max-width: calc(100% - 24px);
    margin-top: 24px;
    margin-left: 24px;

    + .@{new-layout-prefix}-annotated-section {
      @media (min-width: @screen-sm-min) {
        padding-top: 24px;
        border-top: 1px solid @divider-color;
      }
    }
  }

  &-annotation-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: -24px;
    margin-left: -24px;
  }

  &-annotation-content {
    flex: @relative-size @relative-size @primary-basis;
  }

  &-annotation {
    flex: 1 1 @secondary-basis;
    padding: 16px 24px 0;

    @media (min-width: @screen-sm-min) {
      padding: 16px 0 0;
    }

    @media (min-width: @screen-lg-min) {
      padding: 20px 24px 20px 0;
    }
  }

  &-annotation,
  &-annotation-content {
    min-width: 0;
    max-width: calc(100% - 24px);
    margin-top: 24px;
    margin-left: 24px;
  }

  &-annotation-description {
    color: rgba(109, 113, 117, 1);
  }
}
