.nut-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;
    }
  }

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

      .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;
        }
      }

      .region-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;
      }
    }

    .region-con {
      display: block;
      margin: 20px 0 0;
      position: relative;
      .region-group {
        height: 270px;
        overflow-y: auto;

        .region-item {
          font-size: $font-size-1;
          color: #333;
          &-code {
            position: relative;
            height: 35px;
            line-height: 35px;
            font-size: $font-size-2;
            color: $title-color;
            padding: 0 20px;
            font-weight: 500;
            &:after {
              content: ' ';
              width: 100%;
              height: 1px;
              position: absolute;
              left: 0;
              bottom: 0;
              background-color: $help-color;
            }
          }
          &-name {
            display: flex;
            align-items: center;
            padding: 0 20px;
            height: 30px;
            line-height: 30px;
            &.active {
              font-weight: bold;
            }
          }

          .region-item-icon {
            margin-right: 6px;
          }
        }
      }
      &-current-code {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        line-height: 45px;
        border-radius: 50%;
        background: $white;
        box-shadow: 0 3px 3px 1px rgba(240, 240, 240, 1);
        text-align: center;
      }
      &-codes-wrapper {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        padding: 15px 0;
        background-color: #eeeff2;
        border-radius: 6px;
        text-align: center;
        z-index: 10;
      }
      &-codes {
        &-item {
          padding: 3px;
          font-size: $font-size-0;
        }
      }
    }
  }

  // 配送至
  .exist-address {
    display: block;
    margin-top: 15px;

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

      .exist-ul {
        .exist-item {
          width: 100%;
          display: flex;
          align-items: center;
          margin-bottom: 20px;
          font-size: $font-size-1;
          line-height: 14px;
          color: #333;
          &.active {
            font-weight: bold;
          }
          .exist-item-icon {
            width: 15px;
            margin-right: 9px;
          }
          &-info {
            flex: 1;
            &-top {
              display: flex;
              justify-content: space-between;
              margin-bottom: 10px;
              color: #292929;
              font-size: 14px;
            }
          }
          span {
            display: inline-block;
            flex: 1;
          }
        }
      }
    }

    .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;
      }
    }
  }
}
