.assessment-config-presentation-section {
  .vertical-group,
  .horizontal-group,
  .question {
    display: block;

    &.skipped {
      display: none;
    }

    .outer-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;

      &:has(> *) {
        margin-bottom: 15px;
      }

      @media (max-width: 799px) {
        justify-content: space-between;
        flex-direction: row;
      }

      .header {
        flex-direction: column;
        display: flex;

        .title {
          font-size: 17px;
          font-weight: var(--weight-bold);
        }

        .description {
          margin-top: 4px;
          font-size: 14px;
          font-weight: var(--weight-light);
        }

        .disclaimer {
          margin-top: 12px;
          color: var(--color-text-tertiary);
          font-size: 11px;
          font-weight: var(--weight-light);
        }
      }

      .actions {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      i {
        font-size: 24px;
      }
    }

    &.level-1 {
      background: var(--color-bg-primary);
      border: solid 1px var(--color-border-secondary);
      border-radius: 4px;
      padding: 16px;
    }

    &.level-1, &.level-2, &.level-3, .node {
      margin-bottom: 35px;

      &:not(.skipped):not(:has(~ :where(.level-1, .level-2, .level-3, .node):not(.skipped))) {
        margin-bottom: 0;
      }
    }
  }

  .question {
    .inline-version {
      margin-top: 25px;
    }

    .actions-header {
      &:has(> *) {
        margin-top: 15px;
      }

      display: flex;
      justify-content: space-between;

      .expander {
        display: flex;
        align-items: center;
        cursor: pointer;
        color: var(--color-text-tertiary);
        font-size: 14px;
        user-select: none;

        i {
          margin-right: 4px;
        }

        span {
          font-weight: var(--weight-medium);
        }
      }

      .show-more {
        margin-left: 15px;
        display: flex;
        flex-shrink: 0;
        justify-content: flex-end;
        font-size: 14px;
        color: var(--color-bg-brand-solid);

        i {
          font-size: 11px;
        }
      }
    }

    .actions-wrapper {
      display: flex;
      flex-direction: column;

      .inline-explanation {
        margin-top: 12px;
        flex: 1;
        padding: 16px;
        background: var(--color-bg-secondary);
        border-radius: 4px;
        border: solid 1px var(--color-border-secondary);
      }

      .confirm-action {
        margin-top: 12px;
      }
    }
  }
}

@media (min-width: 800px) {
  .assessment-config-presentation-section {
    /* Because lack of space on mobile, horizontal groups are horizontal only on larger screens */
    .horizontal-group {
      .nodes {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;

        .node {
          flex: 1;
          margin-bottom: 0 !important;
        }
      }
    }
  }
}
