
.sponly {
  display: block !important;
}

@media screen and (min-width: 768px) {
  .sponly {
      display: none !important;
  }
}

.pconly {
  display: none !important;
}

@media screen and (min-width: 768px) {
  .pconly {
      display: block !important;
  }
}

*:not(input) {
  -ms-user-select: none;
}

#campaignCodeBtn {
  background: url('../image/btn_code.png') no-repeat;
  background-size: contain;
  width: 174px;
  height: 51px;
  position: absolute;
  top: 420px;
  right: 20px;
  z-index: 10001;
  cursor: pointer;
}

#campaignCode {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10051;
  right: 0;
  bottom: 0;
}

#campaignCode .codeBox {
  position: fixed;
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%); */
  width: 586px;
  height: 740px;
  background: #ffffff;
}

#campaignCode .codeBox .title {
  background: #003145;
  color: #ffffff;
  height: 53.33px;
  line-height: 53.33px;
  font-size: 17.06px;
  padding-left: 28.44px;
}

#campaignCode .codeBox .title .i {
  display: inline;
}

#campaignCode .codeBox .title .i img {
  width: 32.71px;
  height: 32.71px;
  vertical-align: middle;
}

#campaignCode .codeBox .title .t {
  display: inline;
  padding-left: 0.5em;
}

#campaignCode .codeBox .content {
  padding: 17px;
}

#campaignCode .codeBox .subtitle {
  background: #ececec;
  color: #000000;
  height: 42.66px;
  line-height: 42.66px;
  font-size: 17.06px;
  padding-left: 14.22px;
}

#campaignCode .output {
  background: #ecf4f7;
  padding: 17px 11px;
  margin-bottom: 17px;
}

#campaignCode .codeBox .subtitle.outputtitle {
  background: #d4e0e5;
}

#campaignCode .input {
  background: #faf7f2;
  padding: 17px 11px;
}

#campaignCode .codeBox .subtitle.inputtitle {
  background: #e9e6df;
}

#campaignCode .codeBox .subtitle .i {
  display: inline;
}

#campaignCode .codeBox .subtitle .i img {
  width: 31.28px;
  height: 20.62px;
  vertical-align: text-bottom;
}

#campaignCode .codeBox .subtitle .t {
  display: inline;
  padding-left: 0.5em;
}

#campaignCode .codeBox p {
  font-size: 12.8px;
  line-height: 21.33px;
}

#campaignCode .codeBox table {
  margin: 12.8px 0 0;
  border: 0;
}

#campaignCode .codeBox table th {
  text-align: center;
  font-size: 11.37px;
  padding-bottom: 0.5em;
  padding-left: 0.3em;
}

#campaignCode .codeBox table .code {
  font-size: 22.75px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  width: 83.51px;
  height: 42.66px;
  line-height: 42.66px;
  background: #d4e0e5;
  color: #003145;
  border-radius: 7.11px;
}
#campaignCode .codeBox table .code.mr {
  margin-right: 5.33px;
}
/* codeKeta font-size */
#campaignCode.codeKeta6 .codeBox table .code {
  font-size: 21px;
}
#campaignCode.codeKeta7 .codeBox table .code {
  font-size: 19px;
}
#campaignCode.codeKeta8 .codeBox table .code {
  font-size: 17px;
}
#campaignCode.codeKeta9 .codeBox table .code {
  font-size: 15px;
}
#campaignCode.codeKeta10 .codeBox table .code {
  font-size: 13px;
}
#campaignCode.codeKeta11 .codeBox table .code {
  font-size: 11px;
}
#campaignCode.codeKeta12 .codeBox table .code {
  font-size: 9px;
}

#campaignCode .codeBox table.simcode {
  margin-bottom: 25.6px;
}

#campaignCode .codeBox table.simcode .code input {
  font-size: 22.75px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  width: 83.51px;
  height: 42.66px;
  background: #ececec;
  border-radius: 0;
  border: 1px solid #999999;
}
/* codeKeta font-size */
#campaignCode.codeKeta6 .codeBox table.simcode .code input {
  font-size: 21px;
}
#campaignCode.codeKeta7 .codeBox table.simcode .code input {
  font-size: 19px;
}
#campaignCode.codeKeta8 .codeBox table.simcode .code input {
  font-size: 17px;
}
#campaignCode.codeKeta9 .codeBox table.simcode .code input {
  font-size: 15px;
}
#campaignCode.codeKeta10 .codeBox table.simcode .code input {
  font-size: 13px;
}
#campaignCode.codeKeta11 .codeBox table .code {
  font-size: 11px;
}
#campaignCode.codeKeta12 .codeBox table .code {
  font-size: 9px;
}

#campaignCode .codeBox table.keypad td input {
  font-size: 11.37px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  width: 71.11px;
  height: 42.66px;
  line-height: 42.66px;
  background: #e5eaec;
  color: #000000;
  border: 0;
  border-radius: 7.11px;
  margin-bottom: 14.22px;
}

#campaignCode .codeBox table.keypad {
  margin-bottom: 6.4px;
  margin-bottom: 12.8px;
}

#campaignCode .codeBox table.keypad td input:focus {
  outline: none;
}

#campaignCode .codeBox table.keypad .numkey {
  margin-right: 13px;
}

#campaignCode .codeBox table.keypad .delkey {
  width: 106.66px;
  background: #b0b0b0;
  color: #ffffff;
}

#campaignCode .codeBox table.keypad .clearkey {
  width: 106.66px;
  background: #b0b0b0;
  color: #ffffff;
}

#campaignCode .codeBox .ctrl {
  overflow: hidden;
}

#campaignCode .codeBox .btn_cancel {
  float: right;
  font-size: 11.37px;
  color: #333333;
  display: block;
  position: relative;
  text-decoration: none;
  padding-left: 2.3em;
  height: 42.66px;
  line-height: 42.66px;
}
#campaignCode .codeBox .btn_cancel:before {
  content: '';
  background: url(../image/ico_code_cancel.png) no-repeat;
  background-size: contain;
  width: 15.64px;
  height: 15.64px;
  position: absolute;
  top: 50%;
  left: 0.3em;
  transform: translate(0, -50%);
}

#campaignCode .codeBox .ctrl .btn_submit {
  font-size: 12.8px;
  background: #003145;
  color: #ffffff;
  display: block;
  position: relative;
  text-decoration: none;
  line-height: 15.64px;
  text-align: center;
  width: 259.55px;
  height: 42.66px;
  line-height: 42.66px;
  margin: 0 auto;
}

#campaignCode .codeBox .ctrl .btn_submit:before {
  content: '';
  background: url(../image/ico_code_rep.png) no-repeat;
  background-size: contain;
  width: 9.95px;
  height: 17.06px;
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translate(0, -50%);
}

#campaignCode .codeBox .codectrl {
  display: none;
  border-top: 1px solid #d4e0e5;
  margin-top: 10px;
  padding-top: 10px;
  text-align: center;
}

#campaignCode .codeBox .codecopy {
  font-size: 12.8px;
  background: #003145;
  color: #ffffff;
  display: inline-block;
  position: relative;
  text-decoration: none;
  text-align: center;
  width: 150.02px;
  height: 39.816px;
  line-height: 39.816px;
  margin: 0 1em 0;
  padding-left: 1em;
}
#campaignCode .codeBox .codecopy:before {
  content: '';
  background: url(../image/ico_copy.png) no-repeat;
  background-size: contain;
  width: 17.064px;
  height: 17.064px;
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translate(0, -50%);
}

#campaignCode .codeBox .codemail {
  font-size: 12.8px;
  background: #003145;
  color: #ffffff;
  display: inline-block;
  position: relative;
  text-decoration: none;
  text-align: center;
  width: 147.2px;
  height: 39.816px;
  line-height: 39.816px;
  margin: 0 1em 0;
  padding-left: 1em;
}
#campaignCode .codeBox .codemail:before {
  content: '';
  background: url(../image/ico_mail.png) no-repeat;
  background-size: contain;
  width: 19.197px;
  height: 15.642px;
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translate(0, -50%);
}

@media screen and (max-width: 767px) {
  .code-visible #config {
    position: absolute;
  }

  #campaignCode {
    position: relative;
    top: -24vw;
  }

  #campaignCode .codeBox {
    width: 89.333vw;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }

  #campaignCode .codeBox .title {
    height: 10.667vw;
    line-height: 10.667vw;
    font-size: 3.2vw;
    padding-left: 2.933vw;
  }

  #campaignCode .codeBox .title .i img {
    width: 7.467vw;
    height: 7.467vw;
  }

  #campaignCode .codeBox .content {
    padding: 2.667vw;
  }

  #campaignCode .output {
    padding: 2.667vw;
    margin-bottom: 2.667vw;
  }

  #campaignCode .input {
    padding: 2.667vw;
    margin-bottom: 2.667vw;
  }

  #campaignCode .codeBox .subtitle {
    height: 9.6vw;
    line-height: 9.6vw;
    font-size: 4.267vw;
    padding-left: 1.867vw;
  }

  #campaignCode .codeBox .subtitle .i img {
    width: 9.067vw;
    height: 5.6vw;
  }

  #campaignCode .codeBox p {
    font-size: 3.2vw;
    line-height: 4.8vw;
    margin-bottom: 0;
  }

  #campaignCode .codeBox table {
    margin: 0;
  }

  #campaignCode .codeBox table th {
    text-align: left;
    padding-top: 2.667vw;
    font-size: 3.2vw;
    padding-bottom: 0;
  }

  #campaignCode .codeBox table .code {
    font-size: 5.333vw;
    width: 24.267vw;
    height: 9.6vw;
    line-height: 9.6vw;
    border-radius: 0.5em;
  }
  #campaignCode .codeBox table .code.mr {
    margin-right: 2.667vw;
  }

  #campaignCode .codeBox table.simcode {
    margin-bottom: 0;
  }

  #campaignCode .codeBox table.simcode .code input {
    font-size: 5.333vw;
    width: 24.267vw;
    height: 9.6vw;
    line-height: 9.6vw;
  }

  #campaignCode .codeBox .ctrl {
    overflow: hidden;
  }

  #campaignCode .codeBox .btn_cancel {
    float: none;
    width: 100%;
    margin-top: 3vw;
    text-align: center;
    padding-left: 0;
    margin-bottom: 2.667vw;
  }
  #campaignCode .codeBox .btn_cancel:before {
    left: 50%;
    transform: translate(-320%, -50%);
  }

  #campaignCode .codeBox .ctrl .btn_submit {
    float: none;
    width: 100%;
    margin-top: 5vw;
  }

  #campaignCode .codeBox .ctrl .btn_submit:before {
    content: '';
    background: url(../image/ico_code_rep.png) no-repeat;
    background-size: contain;
    width: 9.95px;
    height: 17.06px;
    position: absolute;
    top: 50%;
    left: 1em;
    transform: translate(0, -50%);
  }

  #campaignCode .codectrl {
    display: flex;
    justify-content: space-between;
  }

  #campaignCode .codeBox .codecopy {
    font-size: 10px;
    width: 44%;
    height: 9.37vw;
    line-height: 9.37vw;
    margin: 0;
  }
  #campaignCode .codeBox .codecopy:before {
    width: 4.687vw;
    height: 4.687vw;
  }

  #campaignCode .codeBox .codemail {
    font-size: 10px;
    width: 44%;
    height: 9.37vw;
    line-height: 9.37vw;
    margin: 0;
  }
  #campaignCode .codeBox .codemail:before {
    width: 5.33vw;
    height: 4.42vw;
  }
}
