.red-packet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  border-top: 8px solid #f5f5f5;
}

.red-packet__title {
  font-size: 13px;
  color: #333;
}

.red-packet__button {
  height: 22px;
  padding: 0 9px;
  border: 1px solid #FF4000;
  border-radius: 11px;
  box-sizing: border-box;
  font-size: 12px;
  color: #FF4000;
  background-color: transparent;
  cursor: pointer;
}

// popup
.popup-mask {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, .6);
  z-index: 999;
}

.popup-mask--no {
  display: flex;
  align-items: center;
  justify-content: center;
}

// wechat
.pupup-wechat {
  position: relative;
  width: 290px;
  height: 102px;
  margin: 65px auto;
  padding: 20px 17px 0;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.popup-wechat__title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #333;
  text-align: center;
  line-height: 1;
}

.popup-wechat__desc {
  margin: 12px 0 0;
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 20px;
}

.popup-wechat__icon {
  position: absolute;
  top: -55px;
  right: -28px;
  width: 60px;
  height: 44px;
  background-image: url('./throw_icon.png');
  background-size: cover;
}

// wechat--no
.popup-password {
  text-align: center;
}

.popup-password__content {
  width: 290px;
  height: 220px;
  margin: 0 auto;
  padding: 20px 20px 0;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.popup-password__header {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  text-align: center;
  line-height: 1;
}

.popup-password__body {
  height: 110px;
  margin-top: 15px;
  margin-bottom: 13px;
  padding-top: 20px;
  border-radius: 6px;
  text-align: center;
  background-color: #F5FBFF;
}

.popup-passowrd__info {
  width: 210px;
  height: 30px;
  margin: 0 auto 15px;
  border: 1px solid #99D6FF;
  border-radius: 15px;
  box-sizing: border-box;
  font-size: 12px;
  color: #333;
  line-height: 30px;
  background-color: #fff;
}

.popup-password__success {
  margin: 0;
  padding-top: 9px;
  font-size: 13px;
  color: #0099FF;
  line-height: 1;
}

.popup-password__button--copy {
  width: 111px;
  height: 30px;
  padding: 0;
  border-style: none;
  border-radius: 15px;
  font-size: 13px;
  color: #fff;
  text-align: center;
  line-height: 30px;
  background-color: #0099FF;
  cursor: pointer;
}

.popup-password__footer {
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 16px;
}

.popup-password__button--close {
  display: block;
  margin-top: 25px;
  font-size: 26px;
  color: #fff;
}

// 拆 
.popup-packet {
  text-align: center;

  .popup-packet__title {
    padding-top: 196px;
  }  
}
.popup-packet__content {
  position: relative;
  width: 240px;
  height: 300px;
  background-image: url('./redb_chai_bj.png');
  background-size: cover;
}

.popup-packet__content--open, 
.popup-packet__content--money {
  background-image: url('./redb_money_bj.png');
}

.popup-packet__content--fragment {
  background-image: url('./redb_sp_bj.png');
}

.popup-packet__content--late {
  padding-top: 40px;
  background-image: url('./hb_bj.png');

  .popup-packet__label {
    font-size: 18px;
    color: #E67600;
  }

  .popup-packet__value {
    margin-top: 7px;
    font-size: 14px;
    color: #666;
    line-height: 19px;
  }

  .popup-packet__button--bundle {
    margin-top: 138px;
  }
}

.popup-packet__content--open, 
.popup-packet__content--money, 
.popup-packet__content--fragment {

  .popup-packet__label {
    padding-top: 20px;
  }

  .popup-packet__value {
    padding-top: 10px;
  }

  .popup-packet__tip {
    margin-top: 107px;
  }
  
  .popup-packet__button--bundle {
    margin-top: 28px;
  }
}

.popup-packet__title {
  margin: 0;
  font-size: 15px;
  color: #F9F8F1;
  text-align: center;
  line-height: 1;
}

.popup-packet__label {
  font-size: 15px;
  font-weight: 400;
  color: #EAA40B;
  text-align: center;
  line-height: 1;
}

.popup-packet__value {
  font-size: 28px;
  color: #FF3131;
  line-height: 1;
}

.popup-packet__value--unit {
  padding-left: 1px;
  font-size: 12px;
  color: #FF3131;
}

.popup-packet__tip {
  margin: 0;
  padding: 0 25px;
  font-size: 12px;
  color: #F9F8F1;
  text-align: center;
  line-height: 17px;
}

.popup-packet__button--split {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border-style: none;
  box-sizing: border-box;
  background-color: transparent;
  cursor: pointer;
  outline: none;
}

.popup-packet__button--bundle {
  padding: 0;
  width: 161px;
  height: 30px;
  border-style: none;
  border-radius: 15px;
  font-size: 13px;
  color: #2B2B2B;
  background-color: #F9DB4A;
  cursor: pointer;

  &[data-status="done"] {
    color: #fff;
    background-color: #ABABAB;
  }

  &[data-status='do'] {
    color: #fff;
    background-color: #0099FF;
  }
}

// form 
.popup-form {
  text-align: center;

  .popup-form__title {
    margin-bottom: 15px;
  }

  .popup-packet__button--bundle {
    margin-top: 5px;
  }
}

.popup-form__content {
  width: 290px;
  height: 257px;
  padding: 20px 20px 0;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.popup-form__title {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1;
}

.popup-form__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-bottom: 15px;
  
  .popup-form__ipt {
    flex: 1;
  }

  .popup-form__button--code {
    margin-left: 10px;
  }
}

.popup-form__button--num {
  display: block;
  position: relative;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #99D6FF;
  border-right-style: none;
  border-radius: 6px 0 0 6px;
  box-sizing: border-box;
  font-size: 14px;
  color: #333;
  line-height: 36px;

  &::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 14px;
    margin: auto 0;
    background-color: #AAAAAA;
  }

  .iconfont {
    font-size: 12px;
    color: #333;
  }
}

.popup-form__ipt {
  height: 36px;
  padding: 0 8px;
  border: 1px solid #99D6FF;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 12px;
  color: #999;
  line-height: 36px;
  outline: none;

  &[data-bdrs="0 6px 6px 0"] {
    border-radius: 0 6px 6px 0;
  }

  &[data-type="tel"] {
    border-left-style: none;
  }
}

.popup-form__tip {
  margin: 0;
  font-size: 12px;
  color: #FF3131;

  .iconfont {
    font-size: 15px;
    color: #FF3131;
  }
}

.popup-form__button--code {
  width: 110px;
  height: 36px;
  padding: 0;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 13px;
  color: #999;
  text-align: center;
  line-height: 36px;
  background-color: transparent;

  &[data-status='do'] {
    border-color: #0099FF;
    color: #0099FF;
  }
}

// 已领
.popup-done {
  text-align: center;

  .popup-done__desc {
    margin-top: 30px;
  }

  .popup-packet__button--bundle {
    margin-top: 15px;
  }
}

.popup-done__content {
  width: 290px;
  height: 162px;
  padding-top: 30px;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.popup-done__title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  text-align: center;
  line-height: 1;
}

.popup-done__title--overtime {
  font-size: 15px;
  color: #FF3131;

  .iconfont {
    color: #FF3131;
  }
}

.popup-done__desc {
  margin: 0;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1;
}

// bind
.popup-bind {
  text-align: center;
}

.popup-bind__content {
  width: 290px;
  padding-top: 20px;
  padding-bottom: 18px;
  border-radius: 10px;
  background-color: #fff;

  .popup-bind__desc {
    margin-top: 10px;
  }
}

.popup-bind__title {
  margin: 0;
  font-size: 14px;
  color: #333;
  text-align: center;
  line-height: 1;
}

.popup-bind__desc {
  margin: 0;
  padding: 0 20px;
  font-size: 12px;
  color: #666;
  text-align: left;
}

.popup-bind__list {
  padding: 0 0 10px;
}

.popup-bind__account {
  display: flex;
  align-items: center;
  height: 30px;
  margin: 0 52px;
  text-align: left;

  &:nth-child(n+2) {
    border-top: 1px solid #E5E5E5;
  }
}

.popup-bind__account--name {
  margin: 0;
  font-size: 12px;
  color: #999;
}

.icon-sina {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url('./sina.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-qq {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url('./qq.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
}

.popup-bind__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.popup-bind__button--cancle {
  width: 105px;
  height: 30px;
  border: 1px solid #0099FF;
  box-sizing: border-box;
  border-radius: 15px;
  font-size: 14px;
  color: #0099FF;
  background-color: transparent;
  cursor: pointer;
  outline: none;
}

.popup-bind__button--confirm {
  width: 105px;
  height: 30px;
  border-style: none;
  border-radius: 15px;
  box-sizing: border-box;
  font-size: 14px;
  color: #fff;
  background-color: #0099FF;
  cursor: pointer;
  outline: none;
}