/*---- modal ----*/
.modal-backdrop.show {
  opacity: 0.7;
}
/*▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    #inquire / #notice / #eventAlertModal
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀*/

/*--X按鈕(共用)--*/
.modal .dw_btn_close {
  width: 6.5%;
  height: auto;
  position: absolute;
  z-index: 100;
  cursor: pointer;
  top: 11%;
  right: 8.5%;
  transform: translateX(50%);
}
.modal .dw_btn_close img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s;
}
.modal .dw_btn_close img:hover {
  transform: rotate(180deg);
}

/*---- 通用訊息彈窗 #eventAlertModal ----*/
.modal-alert .modal-dialog {
  width: 35.5vw;
  min-width: 680px;
  max-width: none;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.modal-alert .modal-dialog .modal-content {
  background-color: transparent !important;
  border: none;
}
.modal-alert .modal-dialog .modal-content .modal-body {
  position: relative;
  width: 100%;
  height: auto;
  background: url("https://images1.iwplay.com.tw/image/pwm/events/20261016/images/popup/popup_bg_pc.webp");
  background-size: 100%;
  background-repeat: no-repeat;
  aspect-ratio: 593/335;
}
.modal-alert:not(.invite_pop):not(.hurt_pop)
  .modal-dialog
  .modal-content
  .modal-body
  .txt_con
  p {
  position: absolute;
  width: 80%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 63;
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(26px, 1.5vw, 56px);
  margin-block-start: 0em;
  margin-block-end: 0em;
  color: #000000;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 1470px) {
  .modal-alert .modal-dialog {
    max-width: 600px;
  }
}
@media (max-width: 1100px) {
  .modal-alert .modal-dialog {
    max-width: 550px;
    padding: 2%;
  }
}
@media (max-width: 768px) {
  .modal-alert .modal-dialog .modal-content .modal-body {
    background: url(https://images1.iwplay.com.tw/image/pwm/events/20261016/images/popup/popup_bg_m.webp);
    background-size: 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1062/1236;
  }
  .modal-alert:not(.invite_pop):not(.hurt_pop)
    .modal-dialog
    .modal-content
    .modal-body
    .txt_con
    p {
    width: 80%;
    font-size: 4vw;
    font-weight: 700;
  }
  .modal .dw_btn_close {
    width: 9%;
    height: auto;
    top: 8%;
    right: 15%;
    transform: translateX(50%);
  }
  .modal-alert .modal-dialog {
    min-width: auto;
    width: 85%;
  }
}

/*---- invite / hurt_num 內容排版(共用 .modal-alert 外框背景) ----*/
.invite_pop .txt_con {
  position: absolute;
  width: 78%;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 63;
  text-align: center;
}
.hurt_pop .txt_con {
  position: absolute;
  width: 78%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 63;
  text-align: center;
}
.invite_pop .txt_con .title,
.hurt_pop .txt_con .title {
  width: 42%;
  margin: 0 auto 14%;
}
.invite_pop .txt_con .title img,
.hurt_pop .txt_con .title img {
  width: 100%;
  display: block;
}
.invite_pop .txt_con .copy_link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38%;
  margin: 0 auto 1%;
  gap: 6%;
}
.invite_pop .txt_con .copy_link .btn {
  width: 33%;
  min-width: 0;
  cursor: pointer;
}
.invite_pop .txt_con .copy_link .btn img {
  width: 100%;
  display: block;
  transition: 0.3s;
}
.invite_pop .txt_con .copy_link .btn img:hover {
  filter: brightness(1.1);
}
.invite_pop .txt_con p,
.hurt_pop .txt_con p {
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(18px, 1.25vw, 40px);
  font-weight: 700;
  color: #37353a;
  margin: 0;
}
.invite_pop .txt_con p span,
.hurt_pop .txt_con p span {
  margin: 0 1%;
  color: #f33d21;
  font-size: clamp(18px, 1.56vw, 48px);
  font-weight: 800;
}
.hurt_pop .txt_con p span {
  display: block;
  font-size: clamp(28px, 2vw, 56px);
}
.hurt_pop .txt_con p span.tt {
  display: block;
  margin-top: 3%;
  color: #9b9b9b;
  font-size: clamp(12px, 0.83vw, 24px);
  font-weight: 500;
}
@media (max-width: 768px) {
  .invite_pop .txt_con {
    width: 85%;
    top: 36%;
  }
  .invite_pop .txt_con .title,
  .hurt_pop .txt_con .title {
    width: 60%;
    margin-bottom: 24%;
  }
  .invite_pop .txt_con .copy_link {
    width: 49%;
  }
  .invite_pop .txt_con p,
  .hurt_pop .txt_con p {
    font-size: 3vw;
  }
  .invite_pop .txt_con p span,
  .hurt_pop .txt_con p span {
    font-size: 4vw;
  }
  .hurt_pop .txt_con p span.tt {
    font-size: 2.2vw;
  }
}

/*---- 獎勵查詢彈窗 #inquire ----*/
.history_list_pop .modal-dialog {
  max-width: none;
  width: 55vw;
  min-width: 1000px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.history_list_pop .modal-dialog .modal-content {
  background-color: transparent !important;
  border: none;
}
.history_list_pop .modal-dialog .modal-content .modal-body {
  position: relative;
  width: 100%;
  height: auto;
  padding: 0;
  background: url("https://images1.iwplay.com.tw/image/pwm/events/20261016/images/popup/gift_his_bg_pc.webp")
    no-repeat center;
  background-size: 100% 100%;
  aspect-ratio: 1132/635;
}
.modal.history_list_pop .dw_btn_close {
  width: 5.5%;
  height: auto;
  top: 10%;
  right: 2%;
  transform: translate(-50%, -50%);
}
.history_list_pop .pop_main_content_1 {
  position: absolute;
  width: 88.8%;
  height: 65%;
  top: 25%;
  left: 6%;
  z-index: 70;
}
.history_list_pop .pop_main_content_1 .main_box {
  width: 100%;
  height: 100%;
  padding: 2%;
  z-index: 63;
}
.history_list_pop .pop_main_content_1 .list_box {
  position: absolute;
  width: 98%;
  height: 86%;
  top: 2%;
  left: 1%;
  z-index: 65;
  overflow-x: hidden;
  overflow-y: auto;
}
.history_list_pop .list_box::-webkit-scrollbar-thumb {
  background-color: #554331;
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 0px;
  min-height: 28px;
  padding: 100px 0 0;
}
@media (max-width: 1470px) {
  .history_list_pop .modal-dialog {
    max-width: 1000px;
    min-width: 650px;
    width: 64vw;
  }
}
@media (max-width: 768px) {
  .history_list_pop .modal-dialog {
    min-width: auto;
    width: 85%;
    max-width: 85%;
  }
  .history_list_pop .modal-dialog .modal-content .modal-body {
    background: url("https://images1.iwplay.com.tw/image/pwm/events/20261016/images/popup/gift_his_bg_m.webp");
    background-size: 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1062/1236;
  }
  .modal.history_list_pop .dw_btn_close {
    width: 8.5%;
    height: auto;
    top: 8%;
    right: 5%;
  }
  .history_list_pop .pop_main_content_1 {
    width: 71%;
    height: 65%;
    top: 21%;
    left: 15%;
  }
  .history_list_pop .pop_main_content_1 .main_box {
    width: 100%;
  }
  .history_list_pop .pop_main_content_1 .list_box {
    width: 98%;
    height: 100%;
    top: 0%;
    left: 0%;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .history_list_pop .pop_main_content_1 .list_box::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 556px) {
  .history_list_pop .modal-dialog {
    width: 84%;
    max-width: 84%;
  }
}

/*--獎勵查詢內表格樣式--*/
.luckybag_checking_table {
  width: 100%;
  border-collapse: collapse;
}
.luckybag_checking_table p {
  margin-top: 0;
  margin-bottom: 0rem !important;
}
.luckybag_checking_table thead tr th {
  height: clamp(30px, 1.5vw, 60px);
  background-color: #744e2fb9;
  text-align: center;
  color: #ffffff;
  line-height: clamp(25px, 1.3vw, 50px);
  font-family: "Noto Serif TC", serif;
  letter-spacing: 0.2vw;
  font-size: clamp(16px, 0.9vw, 30px);
}
.luckybag_checking_line_1 td,
.luckybag_checking_line_2 td {
  height: clamp(30px, 1.5vw, 60px);
  border-bottom: #f0d0b3 1px solid;
  text-align: center;
  color: rgb(20, 20, 20);
  line-height: clamp(25px, 1.3vw, 50px);
  text-decoration: none;
  font-size: clamp(16px, 0.9vw, 28px);
}
.luckybag_checking_table th,
.luckybag_checking_table td {
  padding: 5px 4px;
  text-align: center;
  text-decoration: none;
}
.history_list_pop .list_nbr {
  padding: 0px 15px;
  font-weight: 700;
  white-space: nowrap;
}
.history_list_pop .btn_copy {
  border-radius: 5px;
  padding: 4px;
  color: #fff;
  background: #744e2f;
  cursor: pointer;
  transition: 0.5s;
  text-align: center;
  word-break: keep-all;
}
.history_list_pop .btn_copy:hover {
  background: #915524;
}
@media (max-width: 1450px) {
  .luckybag_checking_line_1 td,
  .luckybag_checking_line_2 td {
    font-size: 13px;
  }
}
@media (max-width: 767px) {
  .luckybag_checking_table thead {
    display: none;
  }
  .luckybag_checking_table {
    width: 100%;
    margin: 0 auto;
  }
  .luckybag_checking_table tr {
    /* border-bottom: #5617179f 1px solid; */
    display: block;
    margin-bottom: 2%;
  }
  .luckybag_checking_line_2 {
    background-color: #eddbcc;
  }
  .luckybag_checking_table th {
    display: none;
  }
  .luckybag_checking_table td {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 2% 2%;
  }
  .luckybag_checking_table td:before {
    content: attr(data-th) " ";
    position: absolute;
    left: 4%;
    font-weight: bold;
  }
  .luckybag_checking_line_1 td,
  .luckybag_checking_line_2 td {
    height: auto;
    color: #4f4d4e;
    font-size: 2.3vw;
    line-height: 4vw;
    padding-left: 21%;
  }

  .history_list_pop .list_nbr {
    padding: 0px 0px;
    font-weight: unset;
    width: 67%;
    white-space: normal;
    word-break: break-all;
    line-height: 1.2;
    text-align: center;
  }
  .history_list_pop .btn_copy {
    width: 25%;
    height: auto;
    margin-top: 0%;
    padding: 1% 3%;
    line-height: normal;
    border-radius: 1vw;
  }
}
/* @media (max-width: 556px) {
  .luckybag_checking_line_1 td,
  .luckybag_checking_line_2 td {
    font-size: 3vw;
    line-height: 4vw;
  }
} */
@media (max-width: 414px) {
  .history_list_pop .btn_copy {
    height: 100%;
  }
}

/*---- 注意事項彈窗 #notice ----*/
.event4_notice_pop .modal-dialog {
  width: 55vw;
  min-width: 800px;
  max-width: none;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  color: rgb(20, 20, 20);
}
.event4_notice_pop .popup_con::-webkit-scrollbar-thumb {
  background-color: #554331;
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 0px;
  min-height: 28px;
  padding: 100px 0 0;
}
.event4_notice_pop .modal-dialog .modal-content {
  background-color: transparent !important;
  border: none;
}
.event4_notice_pop .modal-dialog .modal-content .modal-body {
  position: relative;
  width: 100%;
  height: auto;
  background: url("https://images1.iwplay.com.tw/image/pwm/events/20261016/images/popup/notice_bg_pc.webp")
    no-repeat center;
  background-size: 100% 100%;
  aspect-ratio: 1132/636;
}
.event4_notice_pop .popup_con {
  position: absolute;
  width: 76.8%;
  height: 57%;
  top: 26%;
  left: 12%;
  overflow-x: hidden;
  overflow-y: scroll;
}
.event4_notice_pop .notice_list {
  height: 100%;
  position: absolute;
  top: 2%;
  left: 3%;
  width: 96%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}
.event4_notice_pop .notice_list li {
  font-size: clamp(16px, 0.8vw, 48px);
  font-weight: 500;
  /* letter-spacing: 0.15vw; */
  padding-bottom: 0.5vw;
  margin: 0;
}
.modal.event4_notice_pop .dw_btn_close {
  width: 5.5%;
  height: auto;
  top: 10%;
  right: 2%;
  transform: translate(-50%, -50%);
}
@media (max-width: 1100px) {
  .event4_notice_pop .modal-dialog {
    min-width: 650px;
  }
}
@media (max-width: 768px) {
  .event4_notice_pop .modal-dialog {
    min-width: auto;
    max-width: 85%;
    width: 85%;
  }
  .modal.event4_notice_pop .dw_btn_close {
    width: 8.5%;
    height: auto;
    top: 8%;
    right: 5%;
  }
  .event4_notice_pop .modal-dialog .modal-content .modal-body {
    background: url("https://images1.iwplay.com.tw/image/pwm/events/20261016/images/popup/notice_bg_m.webp");
    background-size: 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1062/1236;
  }
  .event4_notice_pop .popup_con {
    width: 70%;
    height: 67%;
    top: 19%;
    left: 14%;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .event4_notice_pop .popup_con::-webkit-scrollbar {
    display: none;
  }
  .event4_notice_pop .notice_list {
    padding-left: 5%;
  }
  .event4_notice_pop .notice_list li {
    font-size: 2.5vw;
  }
}
