.popup {
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  z-index: 999;
  overflow: hidden;
  overflow-y: auto;
}

.popup * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.popup__pd .popup__close-pd {
  width: 40px;
  height: 40px;
  top: 3%;
  left: 50%;
  transform: translate(-50%, 0);
  display: block;
  background: url(https://storage-asset.msi.com/event/2022/cnd/dying_light2/images/icon-close.svg)
    center center no-repeat;
  background-size: cover;
  position: absolute;
  z-index: 5;
  opacity: 0.8;
}
.popup__pd .popup__close-pd:hover {
  opacity: 1;
}
.popup__title {
  text-align: center;
  display: block;
  font-size: 35px;
  margin-bottom: 20px;
  font-weight: bold;
}

.popup__inner {
  text-align: left;
  vertical-align: middle;
  position: relative;
  width: 90%;
  max-width: 960px;
  margin: auto;
}

.popup__body {
  padding: 15px;
}

.popup__content {
  position: relative;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  /* border: 2px solid #ed9b33; */
  padding: 40px 0;
  position: relative;
  background-color: #000000;
  border-radius: 10px;
  box-shadow: 0 0 2px #ffd78d, 0 0 23px inset rgba(187, 128, 40, 0.8);
  overflow: auto;
}

.popup__content ul {
  margin-left: 20px;
  padding: 0 0 10px;
}

.popup__content ul li {
  list-style: circle;
}

.popup__content .terms__title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #916c42;
  color: #bd8b52;
}

.popup__content a {
  color: #b65f38;
}

.popup__content a:hover {
  text-decoration: none;
  color: #dd794a;
}

.popup__content .terms ul li {
  list-style: disc;
  padding: 8px 0;
}

.popup__content .terms ul li ol {
  margin-left: 20px;
}

.popup__content .terms ul li ol li {
  list-style: lower-roman;
  padding: 3px 0;
}

.popup__content .terms .pd__category {
  margin: 25px 0 10px;
  padding: 5px 15px;
  font-weight: bold;
  border: #fff 1px solid;
  display: inline-block;
}

.popup__content .terms dl {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  border-bottom: rgba(255, 255, 255, 0.3) 1px solid;
  padding: 10px 0 20px;
}

.popup__content .terms dl dt {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: calc(50% - 2px);
  font-size: 13px;
}

@media (min-width: 992px) {
  .popup__content {
    padding: 40px 20px;
  }

  .popup__content .terms dl dt {
    width: calc(25% - 2px);
  }
}

#popup-howToRedeem .popup__close {
  position: absolute;
  top: 4%;
  right: 2%;
  filter: brightness(0.5);
}

#popup-howToRedeem .popup__inner {
  width: 90%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup__content .popup__content__redeem {
  padding: 0 10px;
}

@media (min-width: 768px) {
  #popup-howToRedeem .popup__close {
    top: 6%;
    right: 2%;
  }
}

@media (min-width: 996px) {
  #popup-howToRedeem .popup__close {
    top: 6%;
    right: 4%;
  }
}

/* T&C pd list */
.pdList {
  margin: 20px 0;
}
.pdList .pdList__title {
  color: #fff;
  padding: 5px 0;
  font-size: 16px;
  text-align: center;
  background: #263a4a;
}
.pdList .pdList__wrapper {
  display: flex;
  flex-wrap: wrap;
  background: #3b4852;
}

.pdList .pdList__wrapper .pdList__wrapper-item {
  width: 50%;
  padding: 5px 0;
  color: #fff;
  background: #3b4852;
  font-size: 12px;
  text-align: center;
  border: 1px solid #263a4a;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .pdList .pdList__wrapper .pdList__wrapper-item {
    width: 25%;
  }
}

.pdList .pdList__wrapper .pdList__wrapper-item:nth-child(odd) {
  background: #3b4852;
}

.popup__content__redeemTitle {
  color: #ed9b33;
  text-align: center;
  font-size: 32px;
  margin-bottom: 1em;
  line-height: 1.5em;
}

@media (max-width: 1600px) {
  .popup__content__redeemTitle {
    font-size: 30px;
  }
}

@media (max-width: 1600px) and (max-width: 1300px) {
  .popup__content__redeemTitle {
    font-size: 29px;
  }
}

@media (max-width: 1280px) {
  .popup__content__redeemTitle {
    font-size: 25px;
  }
}

.popup__content__step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.popup__content__step .popup__content__step-num {
  color: #ed9b33;
  font-size: 32px;
  margin-bottom: 1em;
  line-height: 1.5em;
  width: 20%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

@media (max-width: 1600px) {
  .popup__content__step .popup__content__step-num {
    font-size: 30px;
  }
}

@media (max-width: 1600px) and (max-width: 1300px) {
  .popup__content__step .popup__content__step-num {
    font-size: 29px;
  }
}

@media (max-width: 1600px) and (max-width: 1050px) {
  .popup__content__step .popup__content__step-num {
    font-size: 25px;
  }
}

.popup__content__step .popup__content__step-txt {
  font-size: 20px;
  margin-bottom: 1em;
  line-height: 1.5em;
  width: 80%;
}
.popup__content__step .popup__content__step-txt a {
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  background: -webkit-linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
@media (max-width: 1600px) {
  .popup__content__step .popup__content__step-txt {
    font-size: 18px;
    padding-left: 10px;
  }
}

@media (max-width: 1600px) and (max-width: 1300px) {
  .popup__content__step .popup__content__step-txt {
    font-size: 17px;
  }
}

@media (max-width: 1600px) and (max-width: 1050px) {
  .popup__content__step .popup__content__step-txt {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .popup__content__step {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .popup__content__step .popup__content__step-num {
    width: 90%;
    margin: auto;
    text-align: center;
  }
  .popup__content__step .popup__content__step-txt {
    width: 90%;
    margin: 5% auto;
    text-align: center;
  }
}

.btnsmm {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.btnsmm a {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 24px;
  color: #000;
  width: 80%;
  background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  text-align: center;
  /* background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  background: -webkit-linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent; */
}
.popup__content__note {
  color: #b6b6b6;
  font-size: 16px;
  margin-bottom: 1em;
  line-height: 1.5em;
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 1600px) {
  .popup__content__note {
    font-size: 14px;
  }
}

@media (max-width: 1600px) and (max-width: 1300px) {
  .popup__content__note {
    font-size: 13px;
  }
}

@media (max-width: 1600px) and (max-width: 1050px) {
  .popup__content__note {
    font-size: 12px;
  }
}
.popup__pd {
  background: rgba(0, 0, 0, 0.9) !important;
}
.popup__pd .popup__innerBox {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup__pd .pd__photoBox {
  width: 1280px;
  height: 80vh;
  max-width: 90vw;
  margin: auto;
  position: relative;
}

.popup__pd .slick-list {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
}

.popup__pd .slick-track {
  width: auto !important;
  height: 100% !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  display: block !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Force override all slick style conflicts */
.popup__pd .slick-slide {
  max-width: 1280px !important;
  width: 100% !important;
  height: 100% !important;
  float: left !important;
  display: block !important;
  min-height: 1px !important;
  margin: 0 !important;
  cursor: default !important;
}

.popup__pd .slick-slide > div {
  width: 100% !important;
  height: 100% !important;
}

.popup__pd .pd__photoBox-img {
  width: 100% !important;
  height: 100% !important;
}

.popup__pd .pd__photoBox-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Force display current slide */
.popup__pd .slick-slide.slick-current {
  display: block !important;
}

.popup__pd .slick-slide.slick-active {
  display: block !important;
}

.popup__pd .slick-slide[aria-hidden="false"] {
  display: block !important;
}

.popup__pd .slick-slide[aria-hidden="true"] {
  display: none !important;
}

.popup__pd .slick-prev:before {
  content: "";
}

.popup__pd .slick-next:before {
  content: "";
}

.popup__pd .slick-prev {
  left: 20px;
  z-index: 10;
}

.popup__pd .slick-next {
  right: 20px;
  z-index: 10;
}

.popup__pd .slick-prev img,
.popup__pd .slick-next img {
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.popup__pd .slick-prev:hover img,
.popup__pd .slick-next:hover img {
  opacity: 1;
}

/* 響應式設計 */
@media (max-width: 1400px) {
  .popup__pd .pd__photoBox {
    width: 90vw;
    max-width: 1280px;
  }
}

@media (max-width: 768px) {
  .popup__pd .popup__innerBox {
    height: 100vh;
    padding: 20px;
  }

  .popup__pd .pd__photoBox {
    width: 90vw;
    height: 70vh;
  }

  .popup__pd .slick-prev {
    left: 10px;
  }

  .popup__pd .slick-next {
    right: 10px;
  }

  .popup__pd .slick-prev img,
  .popup__pd .slick-next img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .popup__pd .pd__photoBox {
    width: 95vw;
    height: 60vh;
  }

  .popup__pd .slick-prev img,
  .popup__pd .slick-next img {
    width: 25px;
    height: 25px;
  }
}
