.agreement-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.service-agreement-box {
  z-index: 3000;
}

.service-agreement {
  height: 10.08rem;
  width: 8.666667rem;
  padding: 0 0.533333rem;
  background-color: #fff;
  border-radius: 0.133333rem;
}

.service-agreement .service-title {
  width: 100%;
  background-color: #fff;
  border-radius: 0.266667rem;
  line-height: 1.653333rem;
  text-align: center;
  font-size: 0.533333rem;
  color: #333;
  z-index: 10;
}

.service-agreement .service-content {
  position: relative;
  height: 8rem;
  margin-top: 1.653333rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.service-agreement .frame {
  width: 100%;
}

.service-agreement .close {
  position: absolute;
  top: 0.533333rem;
  right: 0.533333rem;
  width: 0.506667rem;
  height: 0.506667rem;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAASBJREFUSA21lj8OgjAUh63Mchq4APECJp5B4AJcBXB3M3Fy8wg4uXgBE2dGFuyPUMK/tq9QX0IbyOv3FdLXwpIk2ZVluc+y7LaxGFEUHVzXfWwBr+v6GobhyRYfLDDBdoqieHue9+XwFP2TxxpRO9GUM+I8zy8OYIDakIzgZ7AbgQ3JHHwgWCORwSeCJRIVfFZgItHBpQKKhAJXClQSKhwMhkYXfWCbK9Z5sxRV40kCAHoS3KKItHAkbtH8M7pCU0l6s4953p1f5G1FK+jD8VlMtxWlYAwXb2kikQpkcFPJrEAHN5FMBFQ4VTIQmMIpkk6wFK6TNIK1cJWE4fTHAc2TyOUvgLJeTJgxdnSCIPhUVVXggJYNMH2OOvF9/4Xflh+hkjaF2VB9+QAAAABJRU5ErkJggg==) no-repeat;
  background-size: cover;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
  z-index: 20;
}

.service-agreement .close:active {
  -webkit-transform: rotateZ(90deg);
          transform: rotateZ(90deg);
}

.service-agreement .content {
  padding: 0.666667rem 0.533333rem 0.666667rem 0.8rem;
  white-space: normal;
  font-size: 0.373333rem;
  color: #888888;
  line-height: 0.64rem;
  text-align: justify;
}

.service-agreement .content p {
  color: #2A2A2A;
  margin-bottom: 0.213333rem;
  text-indent: -0.266667rem;
}

.service-agreement .content p:last-child {
  margin-bottom: 0;
}

.bottom-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  padding: 0.32rem 0 0.373333rem 0;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
          justify-content: center;
}

.bottom-btns .cancel-btn,
.bottom-btns .continue-btn {
  width: 3.146667rem;
  display: inline-block;
  height: 1.013333rem;
  font-size: 0.426667rem;
  border-radius: 0.506667rem;
}

.bottom-btns .cancel-btn {
  margin-right: 0.373333rem;
  background: #F5F5FA;
  color: #0087FF;
}

.bottom-btns .continue-btn {
  background-image: -webkit-linear-gradient(right, #0087FF 0%, #2BBFFB 100%);
  background-image: linear-gradient(270deg, #0087FF 0%, #2BBFFB 100%);
  color: #fff;
}

.service-agreement .automatic {
  color: #323746;
  padding: 0 0.4rem;
  font-size: 0.373333rem;
}

.service-automatic {
  height: auto;
  max-height: 10.933333rem;
  padding: 0;
}

.service-automatic .service-content {
  height: auto;
}

.unpaid-container {
  z-index: 1001;
}

.unpaid-container .service-agreement {
  height: auto;
  width: 7.2rem;
}

.unpaid-container .service-agreement .service-content {
  height: auto;
  margin: 0;
}

.unpaid-container .service-agreement .unpaid-tips {
  font-size: 0.426667rem;
  color: #323746;
  letter-spacing: 0;
  text-align: center;
  line-height: 0.64rem;
  margin: 1.2rem 0 0.613333rem 0;
}

.unpaid-container .service-agreement .unpaid-tips .countdown {
  color: #FE353D;
}

.unpaid-container .bottom-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  padding: 0.32rem 0 0.373333rem 0;
}

.unpaid-container .bottom-btns button {
  border: 0;
}

.unpaid-container .bottom-btns .cancel-btn,
.unpaid-container .bottom-btns .continue-btn {
  width: 3.146667rem;
  display: inline-block;
  height: 1.013333rem;
  font-size: 0.426667rem;
  border-radius: 0.506667rem;
}

.unpaid-container .bottom-btns .cancel-btn {
  margin-right: 0.373333rem;
  background: #F5F5FA;
  color: #0087FF;
}

.unpaid-container .bottom-btns .continue-btn {
  background-image: -webkit-linear-gradient(right, #0087FF 0%, #2BBFFB 100%);
  background-image: linear-gradient(270deg, #0087FF 0%, #2BBFFB 100%);
  color: #fff;
}