@mixin attribution() {
  .esri-attribution {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    margin-right: var(--arcgis-layout-overlay-space-right, 0);
    margin-left: var(--arcgis-layout-overlay-space-left, 0);
    background-color: var(--calcite-color-transparent-tint, $background-color);
    line-height: 16px; // TODO: refactor to let Attribution inherit line-height.
    color: var(--calcite-color-text-1, currentColor);
    font-size: var(--calcite-font-size--2, $font-size--small);
  }

  /* Used by the new Attribution to be positioned */
  .esri-view-attribution {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    contain: paint;
  }

  .esri-attribution__link {
    color: currentColor;

    &:hover,
    &:active,
    &:visited,
    &:focus {
      color: currentColor;
    }
  }

  .esri-attribution__sources {
    flex: 1 0;
    align-self: flex-start;
    padding: 0 4px 0 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: var(--calcite-font-weight-light, $font-weight--light);
  }

  .esri-attribution__sources[role="button"] {
    font-size: 1em;
  }

  .esri-attribution__powered-by {
    align-self: flex-end;
    padding: 0 16px 0 4px;
    text-align: right;
    white-space: nowrap;
    font-weight: var(--calcite-font-weight-normal, $font-weight);
  }

  .esri-attribution--open {
    z-index: 2;
  }

  .esri-attribution__sources--open {
    white-space: normal;
  }
}

@if $include_Attribution == true {
  @include attribution();
}
