/* -- popup --*/
.mg-popup {
  width: 100%;
  position: relative;
  background: #FFF;
  margin: 35px auto;
  padding: 25px 20px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.mg-popup {
  zoom: 1;
}

.mg-popup:after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.mg-popup .pp-container {
  width: 100%;
}

.mg-popup .content-title {
  width: 100%;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  font-weight: bold;
  margin-bottom: 20px;
  color: #a0489c;
}

.mg-popup .content-txt {
  width: 100%;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #676767;
}

.mg-popup .mp-btn-block {
  width: 100%;
  position: relative;
  text-align: center;
  margin-top: 30px;
}

.mg-popup .mp-btn-block .btn {
  width: auto;
  min-width: 150px;
  margin: 0 8px;
  padding: 0 20px;
  height: 45px;
  line-height: 45px;
  color: white;
  font-size: 20px;
}

.mg-popup .mfp-close {
  color: transparent;
  width: 16px;
  height: 16px;
  line-height: 31px;
  text-align: center;
  font-size: 40px;
  top: 20px;
  right: 20px;
  background: transparent url('../images/events/ic-cancel.png') center center / contain no-repeat;
  opacity: 0.8;
  transition: 0.3s;
}

.mg-popup .mfp-close:hover {
  opacity: 0.8;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
}

.mg-popup .df-table {
  display: table;
  width: 100%;
}

.mg-popup .df-table dl {
  display: table-row;
}

.mg-popup .df-table dt, .mg-popup .df-table dd {
  display: table-cell;
  padding: 7px 10px;
  font-size: 15px;
  line-height: 1.4;
  vertical-align: middle;
}

.mg-popup .mp-tip {
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  text-align: left;
}

.mg-popup .red {
  color: #ec4040;
}

.mg-popup .blue {
  color: #0D64CD;
}

.temp-popup {
  width: 500px;
  text-align: center;
}

.temp-popup .tp-txt {
  font-size: 15px;
  line-height: 1.6;
  color: #676767;
}

.basic-popup {
  width: 500px;
  text-align: center;
}

.basic-popup .tp-txt {
  font-size: 15px;
  line-height: 1.6;
  color: #676767;
}

/* 綠界電子發票服務申請 */
.ecinv-apply-popup {
  width: 100%;
  max-width: 504px;
  border-radius: 8px;
  padding: 40px 40px;
}
.ecinv-apply-popup .red {
  color: #F00;
}
.ecinv-apply-popup .pp-title {
  width: 100%;
  color: #333;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  font-weight: bold;
  margin-bottom: 24px;
}
.ecinv-apply-popup .eap-list {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.ecinv-apply-popup .el-box {
  width: 200px;
  margin-right: 24px;
}
.ecinv-apply-popup .el-box:last-child {
  margin-right: 0;
}
.ecinv-apply-popup .el-box .elb-btn {
  width: 100%;
  height: 137px;
  border-radius: 8px;
  background: #588C3F;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  transition: .2s;
}
.ecinv-apply-popup .el-box .elb-btn.on-touch {
  background: #477234;
}
.ecinv-apply-popup .el-box .elb-btn.ebb-2 {
  background: #1C8060;
}
.ecinv-apply-popup .el-box .elb-btn.ebb-2.on-touch {
  background: #17644c;
}
.ecinv-apply-popup .el-box .elb-btn .ebb-ic {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}
.ecinv-apply-popup .el-box .elb-btn .ebb-ic img {
  width: 100%;
  display: block;
}
.ecinv-apply-popup .el-box .elb-btn .ebb-txt {
  font-size: 15px;
  line-height: 1.5;
  color: #FFF;
}
.ecinv-apply-popup .el-box .elb-tip {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin-top: 8px;
  padding-left: 8px;
}
.ecinv-apply-popup .el-box .elb-tip.red {
  color: #F00;
}

@media (max-width: 568px) {
  .ecinv-apply-popup {
    max-width: 335px;
  }
  .ecinv-apply-popup .eap-list {
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
  }
  .ecinv-apply-popup .el-box {
    margin-right: 0;
    margin-bottom: 24px;
  }
  .ecinv-apply-popup .el-box:last-child {
    margin-bottom: 0;
  }
}