.nut-theme-dark {
  .nb-address {
    &__header {
      color: $dark-color;

      &__title {
        color: $dark-color;
      }
    }

    .custom-address {
      .region-tab {
        color: $dark-color;
      }
      .region-con {
        .region-group {
          .region-item {
            color: $dark-color;
          }
        }
      }
    }

    .exist-address {
      .exist-address-group {
        .exist-ul {
          .exist-item {
            color: $dark-color;
          }
        }
      }

      .choose-other {
        border-top: 1px solid $dark-background;
      }
    }
    &-custom-buttom {
      border-top: 1px solid $dark-background;
    }
  }
}

.nb-address {
  display: block;
  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 17px;
    padding: 0 20px;
    text-align: center;
    font-weight: bold;
    color: #333;
    line-height: 20px;
    &__title {
      display: block;
      color: #262626;
      font-size: 18px;
    }
  }

  // 请选择
  .nb-address__custom {
    display: block;
    .nb-address__region-tab {
      position: relative;
      margin-top: 32px;
      padding: 0 20px;
      display: flex;
      font-size: 13px;
      color: #1d1e1e;

      .nb-address__tab-item {
        min-width: 2px;
        margin-right: 30px;
        display: block;
        &.active {
          font-weight: bold;
        }

        span {
          display: inline-block;
          max-width: 100px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      .nb-address__tab-line {
        position: absolute;
        bottom: -10px;
        left: 20px;
        display: inline-block;
        margin-top: 5px;
        width: 26px;
        height: 3px;
        background: $address-region-tab-line;
        transition: 0.2s all linear;
      }
    }

    .nb-address__region-con {
      display: block;
      margin: 20px 20px 0;
      .nb-address__region-group {
        padding-top: 15px;
        height: 270px;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 0;
        .nb-address__region-item {
          display: flex;
          align-items: center;
          margin-bottom: 20px;
          font-size: $font-size-1;
          color: #333;
         
          .nb-address__region-item--icon {
            margin-right: 6px;
          }
          .nb-address__region-item--loading{
            margin-right: 6px;

          }
        }
        .active {
          font-weight: bold;
        }
        .loading_box {
          height: 70%;
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          .nut-icon-loading {
            color: $primary-color;
          }
        }
      }
    }

    .hot-title {
      font-size: 12px;
      color: #999;
      margin: 20px 0 0 20px;
    }

    .hot-citys {
      display: flex;
      flex-wrap: wrap;
      margin-left: 20px;

      li {
        height: 25px;
        padding: 0 15px;
        line-height: 25px;
        border-radius: 25px;
        margin: 10px 10px 0 0;
        text-align: center;
        background: #f7f7f7;
        font-size: 12px;
        color: #333;
      }
    }

    .nb-address__elevator-group {
      display: flex;
      margin-top: 20px;
      .active {
        font-weight: bold;
      }
      .nut-elevator__list__item__name--highcolor {
        color: #333;
      }

      .nb-address__region-item {
        display: flex;
        align-items: center;
        font-size: $font-size-1;
        color: #333;
        .nb-address__region-item--icon {
          margin-right: 6px;
        }
        .nb-address__region-item--loading{
          margin-right: 6px;

        }
      }
    }
  }

  // 配送至
  .nb-address__exist {
    display: block;
    margin-top: 15px;

    .nb-address__exist-group {
      padding: 15px 20px 0;
      height: 279px;
      overflow-y: scroll;

      .nb-address__exist-ul {
        box-sizing: border-box;
        padding: 0;
        .nb-address__exist-item {
          margin-bottom: 20px;
          font-size: $font-size-1;
          line-height: 14px;
          color: $black;
          &.active {
            font-weight: bold;
          }

          > div {
            display: flex;
            align-items: center;
          }
          .nb-address__exist-item-icon {
            margin-right: 9px;
          }
          span {
            display: inline-block;
            flex: 1;
          }
        }
      }
    }

    .nb-address__choose-other {
      width: 100%;
      height: 54px;
      padding: 6px 0px 0;
      border-top: 1px solid #f2f2f2;
      &-btn {
        width: 90%;
        height: 42px;
        line-height: 42px;
        margin: auto;
        text-align: center;
        background: $button-primary-background-color;
        border-radius: 21px;
        font-size: 15px;
        color: $white;
      }
    }
  }
}
