.networks-tab {
  &__content {
    display: flex;
    height: 100%;
    max-width: 739px;
    justify-content: space-between;

    @media screen and (max-width: $break-small) {
      margin-top: 0;
      flex-direction: column;
      overflow-x: hidden;
      align-items: center;
    }
  }

  &__body {
    padding-right: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;

    @media screen and (max-width: $break-small) {
      padding: 0;
    }
  }

  &__subheader {
    @include H4;

    padding: 16px 4px;
    border-bottom: 1px solid var(--alto);
    height: 72px;
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
  }

  &__subheader--break {
    margin-inline-start: 10px;
  }

  &__sub-header-text {
    @include H4;

    color: var(--ui-4);
    margin-right: 10px;
  }

  &__network-form {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: space-between;
    max-height: 465px;
    margin-top: 24px;

    .page-container__footer {
      border-top: none;

      @media screen and (max-width: $break-small) {
        width: 93%;
      }

      footer {
        padding: 10px 0;
      }
    }

    @media screen and (max-width: $break-small) {
      display: flex;
      flex: auto;
      max-width: 100%;
      max-height: 100%;
      align-items: center;
      width: 90%;
      margin-top: 10px;
    }
  }

  &__add-network-form {
    display: flex;
    flex-direction: column;
    max-height: 465px;
  }

  &__network-form-body {
    display: grid;
    grid-template-columns: 100%;
    width: 95%;

    &__view-only {
      width: 100%;
    }
  }

  &__add-network-form-body {
    display: grid;
    grid-template-columns: 48% 48%;
    // row-gap: 10%;
    column-gap: 5%;
    margin-top: 24px;
    width: 100%;
  }

  &__network-form-row {
    @media screen and (max-width: $break-small) {
      width: 99%;
    }
  }

  &__network-form-label {
    display: flex;
    align-items: center;
  }

  &__network-form-label-text {
    @include H6;

    color: #000;
    font-weight: bold;
  }

  &__network-form-label-tooltip {
    @include H7;

    margin-left: 5px;
  }

  &__networks-list {
    flex: 0.5 0 auto;
    max-width: 343px;
    margin-top: 24px;

    @media screen and (max-width: $break-small) {
      flex: 1;
      overflow-y: auto;
      max-width: 100vw;
      width: 100vw;
      margin-top: 0;
    }
  }

  &__networks-list-popup-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 23px;
    padding-bottom: 23px;
    border-top: 1px solid #d8d8d8;

    .button {
      width: 178px;
    }
  }

  &__add-network-header-button-wrapper {
    justify-content: center;

    .button {
      width: 138px;
      padding: 10px;
    }

    @media screen and (max-width: $break-small) {
      display: none;
    }
  }

  &__networks-list--selection {
    @media screen and (max-width: $break-small) {
      display: none;
    }
  }

  &__networks-list-item {
    display: flex;
    padding: 13px 0 13px 17px;
    position: relative;
    align-items: center;

    .color-indicator {
      &:hover {
        cursor: pointer;
      }

      @media screen and (max-width: $break-small) {
        margin: 0 4px 0 10px;
      }
    }

    @media screen and (max-width: $break-small) {
      padding: 20px 23px 21px 17px;
      border-bottom: 1px solid #d8d8d8;
      max-width: 351px;
    }
  }

  &__networks-list-item:last-of-type {
    @media screen and (max-width: $break-small) {
      border-bottom: none;
    }
  }

  &__networks-list-name {
    @include Paragraph;

    margin-left: 11px;
    color: #6a737d;
    width: 70%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    &:hover {
      cursor: pointer;
    }

    svg {
      margin-left: 10px;
      padding-top: 3px;
    }
  }

  &__networks-list-arrow {
    display: none;

    @media screen and (max-width: $break-small) {
      display: block;
      background-image: url('/images/caret-right.svg');
      width: 24px;
      height: 24px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      right: 10px;
      cursor: pointer;
      position: absolute;
      width: 24px;
      height: 24px;
      margin: 0 5px;

      [dir='rtl'] & {
        transform: rotate(180deg);
      }
    }
  }

  &__networks-list-name--selected {
    font-weight: bold;
    color: #000;
  }

  &__networks-list-name--disabled {
    font-weight: 300;
    color: #cdcdcd;
  }

  &__network-form-footer {
    display: flex;
    flex-flow: row nowrap;
    padding: 0.75rem 0;
    width: 95%;

    @media screen and (max-width: $break-small) {
      width: 93%;
    }

    .btn-secondary {
      margin-right: 0.375rem;
    }

    .btn-primary {
      margin-left: 0.375rem;
    }

    .btn-danger {
      margin-right: 3.75rem;
    }
  }

  &__add-network-form-footer {
    display: flex;
    flex-flow: row;
    padding: 0.75rem 0;
    width: 60%;

    .btn-secondary {
      margin-right: 0.5rem;
    }

    .btn-primary {
      margin-left: 0.5rem;
    }
  }
}
