@import "@styles/theme.scss";

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-box {
  @extend .flex;
  position: relative;
  top: 0;
  padding: 25px 35px;
  width: 100%;
  z-index: 999;
  background: white;

  .search {
    width: 62%;
    height: 60px;
    border-radius: 34px;
    background: rgba(245, 245, 245, 0.58);
    @extend .flex;
    justify-content: flex-start;

    &-icon {
      font-size: 32px;
      color: rgba(0, 0, 0, 0.45);
      font-weight: bold;
      margin: 0 20px;
    }

    &-input {
      font-size: 28px;
      line-height: 60px;
    }
  }

  .location {
    @extend .flex;
    height: 60px;
    width: 200px;
    border-radius: 34px;
    justify-content: center;
    background: rgba(245, 245, 245, 0.58);

    &-text {
      font-size: 28px;
      padding-left: 20px;
    }

    &-icon {
      color: black;
      font-size: 26px;
      font-weight: bold;
      display: block;
      margin-top: 10px;
      animation: bigger 1s ease 3 both;
    }
  }
}

.filter {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 999;

  .tab {
    display: flex;
    align-items: center;
    position: relative;
    background: #F9F9F9;

    &-item {
      width: 25%;
      height: 100px;
      display: flex;
      justify-content: center;
      align-items: center;

      .iconfont {
        font-size: 34px;
        margin-left: 10px;
        color: #ccc;
      }
    }

    .selected {
      color: $icon-color2;

      .iconfont {
        color: $icon-color2;
      }
    }
  }

  .panel {
    height: 500px;
    overflow: hidden;
    position: relative;
    background: white;

    .row {
      height: 100px;
      line-height: 100px;
      border-bottom: solid 1px $border-color-light;
      padding: 0 80px;
      background: #F9F9F9;

      &:last-child {
        border-bottom: none;
      }
    }

    .active {
      @extend .flex;
      background: rgba(255, 199, 12, 0.05);
      color: $icon-color2;

      .iconfont {
        font-size: 32px;
        font-weight: bold;
      }
    }
  }

  .confirm {
    border-top: solid 1px $border-color-light;
    @extend .flex;
    justify-content: space-around;
    padding: 30px 20px;
    position: relative;
    background: white;
    width: 100%;

    .price-input {
      width: 200px;
      border: solid 1px $border-color-light;
      height: 80px;
      line-height: 80px;
      text-align: center;
      border-radius: 10px;
    }

    &-btn {
      background: $primary-color;
      border-radius: 8px;
      color: white;
      width: 200px;
      height: 80px;
      margin: 0;
      padding: 0;
      font-size: 32px;
    }

    .normal {
      width: 600px;
    }
  }
}


.unfold {
  .mask {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    left: 0;
    top: 0;
  }
}

.price {
  @extend .flex;
  align-items: flex-start;

  .menu {
    width: 200px;

    &-item {
      height: 100px;
      line-height: 100px;
      text-align: center;
      border-bottom: solid 1px $border-color-light;
    }

    .selected {
      color: $icon-color2
    }
  }

  .content {
    width: 550px;
    height: 500px;
    border-left: solid 1px $border-color-light;
    padding-left: 50px;
    background: #F9F9F9;

    .price-item {
      height: 100px;
      line-height: 100px;
      border-bottom: solid 1px $border-color-light;
      padding: 0 20px;

      &:last-child {
        border-bottom: none;
      }
    }

    .selected {
      @extend .flex;
      background: rgba(255, 199, 12, 0.05);
      color: $icon-color2;

      .iconfont {
        font-size: 32px;
        font-weight: bold;
      }
    }
  }
}