
/* Utility Classes */
.rel { position: relative; }
.abs { position: absolute; }
.auto { left: 50%; transform: translate(-50%, 0); }

/* Demo 狀態切換按鈕 (暫時) */
#bookedmodal .demo-state-btns {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.1rem;
  z-index: 99;
}
#bookedmodal .demo-state-btns .btn {
  padding: 0.05rem 0.12rem;
  font-size: 0.14rem;
  line-height: 1;
  min-width: 0;
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

/* SDK Login Modal Styles */
/* bookedmodal copied styles */
#bookedmodal .form-bg {
  width: 5.86rem;
  height: 0.55rem;
  margin-bottom: 0;
  border-radius: 0.275rem;
  background: #1d1d1d;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.2rem;
}

#bookedmodal .graphic_verification_code {
  height: 0.6rem;
  margin-top: 0;
  background-color: #c21b1b00;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
#bookedmodal .phone_verification_code {
  height: 0.6rem;
  margin-top: 0;
  background-color: #c21b1b00;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

#bookedmodal .graphic_verification_code .captcha {
  width: 3.5rem;
  height: 0.55rem;
  background-color: #ffffff;
  font-size: 0.18rem;
  padding: 0.06rem 0.2rem;
  border-radius: 0.5rem;
  border: 0.036rem solid #141414;
}

#bookedmodal .phone_verification_code .smsCode {
  width: 3.5rem;
  height: 0.55rem;
  background-color: #ffffff;
  font-size: 0.18rem;
  padding: 0.06rem 0.2rem;
  border-radius: 0.5rem;
  border: 0.036rem solid #141414;
}

#bookedmodal .graphic_verification_code .img_code {
  width: 2.2rem;
  height: 0.55rem;
}
#bookedmodal .graphic_verification_code .img_code .img_code_pic {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  vertical-align: baseline;
  border: 0.036rem solid #141414;
}

#bookedmodal .phone_verification_code .btn_get_code {
  width: 2.2rem;
  height: 0.55rem;
  background-image: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_get_code.png);
  background-size: 100% auto;
  
}

#bookedmodal .phone_verification_code .btn_get_code:hover {
  background-position: 0 -0.55rem;
}
#bookedmodal .phone_password {
  height: 0.6rem;
  margin-top: 0;
  background-color: #c21b1b00;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
#bookedmodal .phone_password .phone_password_input {
  width: 5.8rem;
  height: 0.55rem;
  background-color: #ffffff;
  font-size: 0.18rem;
  padding: 0.06rem 0.2rem;
  border-radius: 0.5rem;
  border: 0.036rem solid #141414;
}
#bookedmodal .form-bg .yyFormRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#bookedmodal .form-select {
  padding: 0 0.2rem;
  width: 2rem;
  font-size: 0.22rem;
  display: inline-block;
  border: 0;
  border-radius: 0;
  border-right: 0.15em solid #c7c7c7;
  margin: 2% auto;
  height: auto;
  color: #fff;
  text-align: center !important;
  transition: 0.5s;
  vertical-align: middle;
  background-color: hsl(0deg 0% 0% / 0%);
  background-image: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
#bookedmodal .form-select:focus {
  color: #fff;
  border-right: 0.15em solid #c7c7c7;
  outline: none;
  box-shadow: none;
  opacity: 1;
}
#bookedmodal .form-select option {
  background-color: #1d1d1d;
  text-align: center;
}
#bookedmodal .form-control {
  padding: 0;
  width: 60%;
  font-size: 0.22rem;
  font-weight: 500;
  display: inline-block;
  border: 0;
  border-radius: 0;
  margin: 2% auto;
  height: auto;
  color: #fff;
  transition: 0.5s;
  vertical-align: middle;
  outline: none;
  box-shadow: none;
  letter-spacing: 0;
  opacity: 1;
  background-color: hsl(0deg 0% 0% / 0%);
  padding-left: 4%;
}
#bookedmodal .form-control::placeholder {
  color: #828282;
  letter-spacing: 0;
  background-color: hsl(0deg 0% 0% / 0%);
}
#bookedmodal .form-control:focus {
  outline: none;
  box-shadow: none;
  opacity: 1;
  border: 0;
  color: #fff;
  background-color: hsl(0deg 0% 0% / 0%);
}
#bookedmodal #phone_number:-webkit-autofill,
#bookedmodal #phone_number:-webkit-autofill:hover,
#bookedmodal #phone_number:-webkit-autofill:focus,
#bookedmodal #phone_number:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #1d1d1d inset !important;
  background-color: #1d1d1d !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #fff;
}
#bookedmodal .form-check-input:checked {
  background-color: #ffffff;
  border-color: #ffffff;
}
#bookedmodal .form-check-input:focus {
  outline: 0;
  box-shadow: none;
  background-color: transparent;
  border-color: #ffffff;
}
#bookedmodal .form-check-input[type="checkbox"] {
  border-radius: 0;
}
#bookedmodal .form-check-label {
  color: #000;
  font-size: 0.18rem;
  text-align: justify;
  cursor: pointer;
}
#bookedmodal form {
  position: relative;
  text-align: left;
  vertical-align: middle;
}
#bookedmodal .privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  gap: 0.08rem;
}
#bookedmodal .form-check-input {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  width: 0.25rem;
  height: 0.25rem;
  background-color: transparent;
  border: 0.05rem solid #000000;
}
#bookedmodal .form-check-input:checked[type="checkbox"] {
  background-image: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/check.svg);
}
#bookedmodal .yy_platform_head {
  top: 5.3rem;
  width: 6rem;
  text-align: center;
  font-size: 0.18rem;
  color: #ddd;
}
#bookedmodal .yy_platform {
  top: 5.75rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#bookedmodal .yy_platform button {
  width: 2.75rem;
  height: 0.7rem;
  margin: 0.04rem;
}
#bookedmodal .yyFormRow .getNumerus,
#bookedmodal .yyFormRow .etTelCode {
  width: 35%;
  text-align: center;
  margin: 0.05rem;
  border-radius: 10rem;
  background: rgb(255, 255, 255);
  height: 0.45rem;
}
#bookedmodal .yyFormRow .getNumerus img {
  width: auto;
  height: 0.45rem;
}
#bookedmodal .yyFormRow .getTelCode {
  width: 35%;
  height: 0.45rem;
  color: rgb(20, 20, 20);
  text-align: center;
  line-height: 0.45rem;
  background: rgb(124, 236, 252);
  border-radius: 10rem;
  margin: 0.05rem;
  font-size: 0.21rem;
  font-weight: 700;
  letter-spacing: 0.015rem;
}
#bookedmodal .pop_yy_form .yy_platform .platform_pc {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_pc_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_yy_form .yy_platform .platform_pc.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_pc_on.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_yy_form .yy_platform .platform_iOS {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ios_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_yy_form .yy_platform .platform_iOS.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ios_on.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_yy_form .yy_platform .platform_Android {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_Android_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_yy_form .yy_platform .platform_Android.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_Android_on.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_yy_form .yy_platform .platform_host {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ps_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_yy_form .yy_platform .platform_host.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ps_on.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .platform_tip {
  position: absolute;
  top: 7.5rem;
  font-size: 0.18rem;
  color: #ddd;
  width: 72%;
  margin: 0 14%;
}
#bookedmodal .yySubmit {
  top: 8.3rem;
  width: 5.04rem;
  height: 0.77rem;
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/yySubmit.png)
    no-repeat 0 0;
  background-size: 100% auto;
}
#bookedmodal .yySubmit:hover {
  background-position: 0 -0.77rem;
}

#bookedmodal .bkSubmit {
  top: 6.2rem;
  width: 3.5rem;
  height: 0.62rem;
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/bookedSubmit.png)
    no-repeat 0 0;
  background-size: 100% auto;
  z-index: 2;
  background-color: #141414a8;/* 暫時用 */
}
#bookedmodal .bkSubmit:hover {
  background-position: 0 -0.62rem;
}
#bookedmodal .booked_button_bg{
  top: 4.95rem;
  width: 98%;
  height: 1.7rem;
  /* background-color: rgba(0, 255, 255, 0.39); */
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/building.webp)
    no-repeat 0 0;
  background-size: 100% auto;
  z-index: 1;
} 
#bookedmodal .Change_acc_box {
  position: absolute;
  top: 8.32rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
#bookedmodal .Change_acc_hint {
  position: static;
  color: #fff;
  font-size: 0.25rem;
  text-align: center;
  margin: 0;
}
#bookedmodal #other_login > .Change_acc_box {
  position: static;
  width: 100%;
  height: 1.2rem;
  background-color: rgba(0, 255, 255, 0);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  transform: none;
  left: auto;
}

#bookedmodal .Change_acc_box .Change_acc_btn {
  width: 0.75rem;
  height: 0.75rem;
  background-size: 100% auto;
  background-position: 0 -0.75rem;
}

#bookedmodal .Change_acc_box .Change_acc_btn:hover {
  /* background-position: 0 -0.75rem; */
  cursor: pointer;
  
}

#bookedmodal .google{
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/google.svg) no-repeat 0 0;
}
#bookedmodal .ios{
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/ios.svg) no-repeat 0 0;
}
#bookedmodal .facebook{
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/facebook.svg) no-repeat 0 0;
}
#bookedmodal .ps{
  background: url(https://res1-nte.iwplay.com.tw/images/sdk/ps5.png) no-repeat 0 0;
}

#bookedmodal .qaSubmit {
  top: 5.4rem;
  width: 4rem;
  height: 0.72rem;
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/qaSubmit.png)
    no-repeat 0 0;
  background-size: 100% auto;
}
#bookedmodal .qaSubmit:hover {
  background-position: 0 -0.72rem;
}

/* 預約成功 */
#bookedmodal .pop_yySuccess_tit {
  top: 1.8rem;
  width: 6.1rem;
  height: 2rem;
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/pop_yy_qa_success_tt.png)
    no-repeat 0 0;
  background-size: 100% auto;
}
#bookedmodal .yy_otherPlatformTip {
  top: 5.8rem;
  width: 5.5rem;
  height: 0.5rem;
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/focus_head_tt.png)
    no-repeat 0 0;
  background-size: 100% auto;
}
#bookedmodal .yy_otherPlatform {
  top: 6.5rem;
}

/* 隱私權彈窗 */
.privacymodal .modal-content.popCont {
  width: 7.6rem;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}
.privacymodal .popCont3 {
  height: 11rem;
  background: url(https://res1-nte.iwplay.com.tw/images/sdk/popCont3.png) no-repeat 0 0;
  background-size: 100% auto;
  width: 7.6rem;
}
.privacymodal .popClose {
  top: 0.2rem;
  right: 0.2rem;
  width: 0.4rem;
  height: 0.4rem;
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/popClose.png) no-repeat 0 0;
  background-size: 100% auto;
  z-index: 1;
  border: none;
  cursor: pointer;
}
.privacymodal .res_poptt {
  width: 5rem;
  margin: 0.6rem auto 0.3rem auto;
}
.privacymodal .res_poptt img {
  width: 100%;
}
.privacymodal .list_con {
  width: 116%;
  margin-left: -8%;
  height: 7rem;
  overflow-y: auto;
  padding-right: 0.05rem;
  /* Webkit 滾動條樣式 */
  &::-webkit-scrollbar {
    width: 0.1rem;
  }
  &::-webkit-scrollbar-track {
    background: #d5d5d5;
  }
  &::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 1rem;
  }
  &::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /* Firefox 滾動條樣式 */
  scrollbar-width: thin;
  scrollbar-color: #888 #d5d5d5;
}
.privacymodal .list_con ol {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 0.18rem;
  font-weight: 400;
  padding-left: 0.24rem;
  list-style: decimal;
}
.privacymodal .popup_close {
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  padding: 0.1rem 0.6rem;
  font-size: 0.2rem;
  color: #fff;
  background: #000;
  cursor: pointer;
  transition: 0.5s;
  width: auto;
  text-decoration: none;
}

/* 提示彈窗 */
#eventAlert {
  background-color: #00000075;
}
#eventAlert .modal-body {
  height: 5.34rem;
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/popCont_alert.png)
    no-repeat 0 0;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 1.6rem;
  border-radius: 0.28rem;
}
#eventAlert .modal-body p{
  margin-bottom: 0.2rem;
  font-size: 0.3rem;
}

/* bookedmodal renamed styles */
#bookedmodal .popCont1 {
  height: 10.84rem;
  background: url(https://res1-nte.iwplay.com.tw/images/sdk/popCont1_booked_sdk.webp)
    no-repeat 0 0;
  background-size: 100% auto;
}
#bookedmodal .pop_booked_tit {
  top: 1.55rem;
  width: 5.5rem;
  height: 0.83rem;
  background: url(https://res1-nte.iwplay.com.tw/images/sdk/pop_sdk_login_tt.png)
    no-repeat 0 0;
  background-size: 100% auto;
}
#bookedmodal .bookedForm {
  top: 2.67rem;
  width: 6.86rem;
  height: 2.5rem;
  z-index: 50;
  background-color: rgba(19, 133, 190, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
#bookedmodal .button_box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6rem;
  width: 6.86rem;
  /* height: 2.5rem; */
  height: 2.2rem;
  background-color: rgba(19, 133, 190, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
   /* background-image: url(https://res1-nte.iwplay.com.tw/images/sdk/building.webp);
  background-repeat: no-repeat;
  background-size: 180% ;
  background-position: 26% -400%;
  padding: 1rem 0.5rem 0rem 0.5rem; */
} 
#bookedmodal .button_box .row {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 0.15rem;
}
#bookedmodal .button_box .row .btn {
  width: 3.9rem;
  height: 0.6rem;
  margin: 0 auto;
}
#bookedmodal .button_box .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0.62rem;
  background-repeat: no-repeat;
  background-position: 0 top;
  background-size: 100% auto;
  border: none;
  padding: 0;
  font-size: 0.2rem;
  color: #fff;
  cursor: pointer;
  background-color: transparent;
}
#bookedmodal .button_box .btn:hover {
  background-position: 0 bottom;
}
#booked_button {
  background-image: url(https://res1-nte.iwplay.com.tw/images/sdk/booked_button.png);
}
#back_sms_button {
  background-image: url(https://res1-nte.iwplay.com.tw/images/sdk/back_sms_button.png);
}
#phoneNextBtn {
  background-image: url(https://res1-nte.iwplay.com.tw/images/sdk/phoneNextBtn.png);
}
#back_button {
  background-image: url(https://res1-nte.iwplay.com.tw/images/sdk/back_button.png);
}
#bookedmodal .privacy-check{
  display: flex;
  justify-content: center;
  margin-top: 0;
}
#bookedmodal .pop_booked_form .yy_platform .platform_pc {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_pc_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_booked_form .yy_platform .platform_pc.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_pc_on.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_booked_form .yy_platform .platform_iOS {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ios_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_booked_form .yy_platform .platform_iOS.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ios_on.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_booked_form .yy_platform .platform_Android {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_Android_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_booked_form .yy_platform .platform_Android.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_Android_on.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_booked_form .yy_platform .platform_host {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ps_off.png)
    no-repeat;
  background-size: cover;
}
#bookedmodal .pop_booked_form .yy_platform .platform_host.on {
  background: url(https://res1-nte.iwplay.com.tw/events/pre-gacha/images/pop/sdk/btn_ps_on.png)
    no-repeat;
  background-size: cover;
}

/* Layout Fixes for Bootstrap Modal integration */
#bookedmodal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
#bookedmodal .modal-body {
    padding: 0;
    width: 8.5rem;
    height: 9.84rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
#bookedmodal .pop {
    display: block !important;
    position: relative !important;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#bookedmodal .popCont {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto;
}
