@title-color: #7972FE;
@day-text-color: #333;
@selected-bgcolor: #7972FE;
@selected-text-color: #fff;

// mixin
.header-title-text (@height: 40px) {
  text-align: center;
  height: @height;
  line-height: @height;
  font-size: 14px;
  color: @title-color;
  &-split {
    color: @day-text-color;
  }
  &-end-not {
    color: #ddd;
  }
}
.footer-btn () {
  height: 62px;
  padding: 16px 16px 0 16px;
  box-shadow: 0 0 4px 0 rgba(158,155,218,0.22);
  z-index: 1;
}

// 公共样式
.ks-date-picker {
  &__body {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
  }
}

// 覆盖vant样式
.ks-date-picker {
  .van-calendar__body {
    height: 100%;
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .van-calendar__month-title {
    height: 40px;
    line-height: 40px;
    color: @day-text-color;
  }
  .van-calendar__day {
    color: @day-text-color;
  }
  .van-calendar__selected-day, .van-calendar__day--start, .van-calendar__day--end {
    color: @selected-text-color;
    background-color: @selected-bgcolor;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .van-calendar__day--start-end {
    color: @selected-text-color;
    background-color: @selected-bgcolor;
    width: 54px;
    height: 44px;
    line-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .van-calendar__day--middle:after {
    top: 3px;
    bottom: 3px;
  }
  .van-calendar__day--start, .van-calendar__day--end {
    position: relative;
  }
  .van-calendar__day--start::after {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 85%;
    content: " ";
    background-color: rgba(121,114,254,.1);
  }
  .van-calendar__day--end::after {
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 85%;
    content: " ";
    background-color: rgba(121,114,254,.1);
  }
  .van-calendar__bottom-info {
    font-size: 10px;
    line-height: 10px;
    font-weight: 300;
    bottom: 3px;
    position: absolute;
    right: 0;
    left: 0;
  }
  .van-calendar__confirm {
    height: 44px;
    line-height: 44px;
    margin-top: 0;
  }
}
