.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  z-index: -1;
  user-select: none;
}

.popup-overlay.show {
  display: block;
  background: rgba(0, 0, 0, 0.6);
  user-select: all;
  user-select: unset;
}

.popup {
  top: 50%;
  left: -800px;
  background: #fff;
  padding: 20px 36px;
  border-radius: 12px;
  max-width: 468px;
  width: 100%;
  min-height: 560px;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-x: hidden;
  transition: all ease .4s;
  transform: scale(.8) translate(-50%, -50%);
}

.popup-overlay.show .popup {
  left: 50%;
  transform: scale(1) translate(-50%, -50%);
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1;
}

.emoji-header {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 90px;
  font-size: 24px;
  text-align: center;
}

.emoji-header.left-16 {
  left: 16px;
}

h2,
.claimHeading {
  margin: 0;
  text-align: center;
  margin-top: -14px;
  font-weight: 700;
  font-size: 27px;
  line-height: 109%;
  color: #0a2540;
}

.subtext {
  font-size: 14px;
  text-align: center;
  color: #5f6c7b;
  margin: 13px auto 15px;
  line-height: 150%;
}

#gift-form label {
  display: block;
  margin: 0px 0 2px;
  color: #0a2540;
  font-weight: 450;
  font-size: 13px;
  line-height: 150%;
}

#gift-form label span {
  color: #de3518;
}

input:focus-visible {
  outline: none;
}

#gift-form .inputGroup .giftFormInput {
  border-radius: 5px;
  border: 1px solid #d7e4ee;
  width: 100%;
  padding: 13px 15px 13px;
}

#gift-form .inputGroup .giftFormInput:hover {
  border: 1px solid #b4ccdf;
}

#gift-form .inputGroup {
  margin-bottom: 10px;
}

#gift-form .inputGroup .giftFormInput::placeholder {
  color: #b5c1cf;
}

#gift-form .inputGroup .giftFormInput:focus {
  border: 1px solid #117bd4 !important;
  background: #ffffff !important;
}
#gift-form .inputGroup .giftFormInput:focus 
#gift-form .inputGroup input.focusedInput {
  border: 1px solid #117bd4 !important;
  background: #ffffff !important;
}

#gift-form .inputGroup label.focusedLabel {
  color: #117bd4;
}

#gift-form .iti__selected-flag {
  padding: 0 6px 0 15px;
}

#gift-form .inputGroup:focus-within label {
  color: #117bd4;
}

#gift-form .inputGroup .iti.iti--allow-dropdown {
  display: block;
  width: 100%;
}

#gift-form .inputGroup .iti.iti--allow-dropdown input {
  max-width: calc(100% - 63px);
  margin-left: 64px;
  border-radius: 0px 5px 5px 0px;
  letter-spacing: 0.7px;
}

#gift-form .iti.iti--allow-dropdown .iti__flag-container {
  border-style: solid;
  border-color: #d7e4ee;
  border-width: 1px 0px 1px 1px;
  border-radius: 5px 0px 0px 5px;
  width: 64px;
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  background-color: #f3faf5;
}

#gift-form .inputGroup:focus-within .iti.iti--allow-dropdown .iti__flag-container {
  border-color: #117bd4;
}

#gift-form .inputGroup .giftFormInput:hover~.iti.iti--allow-dropdown .iti__flag-container {
  border-color: #b4ccdf;
}

#txt-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.errorMsg {
  font-size: 13px;
  font-weight: 450;
  line-height: 16.44px;
  letter-spacing: 0.005em;
  color: #e20707;
  position: relative;
  margin-top: 6px;
  padding-left: 21px;
  display: none;
}

.errorMsg::before {
  position: absolute;
  content: '';
  width: 14px;
  height: 14px;
  left: 0;
  top: 0;
  background: url(../images/error-sign-new.svg) no-repeat;
}

.phone-input {
  display: flex;
  gap: 10px;
}

.phone-input select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.info-text {
  font-weight: 450;
  font-size: 13px;
  line-height: 150%;

  color: #7c8793;
}

.info-text span {
  font-style: italic;
}

button {
  outline: none;
  cursor: pointer;
}

.primary-btn {
  margin: 25px auto 7px;
  width: 100%;
  background-color: #117bd4;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  line-height: 16px;
  height: 40px;
  position: relative;
}

.btn-loader {
  position: absolute;
  object-fit: contain;
  top: -3px;
  z-index: 11;
  left: 50%;
  width: 13%;
  transform: translateX(-50%);
}

.primary-btn:hover {
  background-color: #0383f3;
}

.text-btn {
  margin: 0 auto;
  background: none;
  border: none;
  color: #6e7b87;
  display: block;
  font-size: 14px;
}

.text-btn:hover {
  color: #0a2540;
}

.footer-note {
  font-weight: 450;

  font-size: 13px;
  line-height: 150%;

  text-align: center;
  color: #7c8793;
}

.footer-note span {
  font-style: italic;
}

.popup-confirmation-view .primary-btn {
  margin: 30px auto 12px;
}

.popup-confirmation-view h2,
.popup-confirmation-view .claimHeading,
.popup-confirmation-view p {
  text-align: center;
}

.popup-confirmation-view .claimHeading {
  margin-bottom: 40px;
  margin-top: 14px;
}

.popup-confirmation-view .confirm-txt {
  font-weight: 450;
  font-size: 15px;
  line-height: 150%;

  text-align: center;
  color: #6c7a89;
}

.close-btn svg {
  transition: opacity 0.3s ease;
}

.close-btn:hover svg {
  opacity: 0.6;
  /* Or any value less than 1 */
}

#not-phone {
  font-weight: 450;
  font-size: 14px;
  line-height: 150%;

  text-align: center;
}

#confirm-email,
#confirm-phone {
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;

  text-align: center;
  color: #0a2540;
}

#confirm-phone {
  font-size: 15px;
}

input.error {
  border: 1px solid #e20707 !important;
  animation: shake 0.6s ease;
}

.er {
  border: none !important;
}

/* .popup-confirmation-view hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #eee;
} */
hr {
  margin: 15px auto 13px;
  width: 100%;
  border: 1px solid #d5eafa;
  background: #d5eafa;
}

.popup-confirmation-view .custom-hr {
  height: 1px;
  display: block;
  background: #d5eafa;
  margin: 15px 0px 18px;
}

.popup-form-view .custom-hr {
  height: 1px;
  display: block;
  background: #d5eafa;
  margin: 15px 0px 13px;
}

.small-note {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin-top: 10px;
}

/* gift icon */
.gift-tooltip {
  display: none;
  position: absolute;
  background: #ffffff;
  color: #0e101a;
  padding: 8px 5px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  /* bottom: 100%; Position above the icon */
  top: -85%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  box-shadow: 0 9px 15px rgba(0, 0, 0, 0.1);
  z-index: 1002;
}

.gift-tooltip:after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  margin-top: -1px;
}

/* Show tooltip on hover */
.gift-icon:hover .gift-tooltip {
  display: block;
}

/* Gift icon styles with default tilt animation */
.gift-icon {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50px;
  width: 74px;
  height: 74px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
}

.gift-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* animation: tiltAnimation 0.6s ease infinite alternate; Default tilt animation */
}

.error-warning {

  width: 100%;
  height: 100%;
  background-color: #ffe7e7;
  border: 1px solid #edcccc;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
  max-height: 0;
  opacity: 0;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  /* z-index: 1003; */
}

.error-warning.show {
  max-height: 200px;
  /* Adjust based on content height */
  opacity: 1;
  padding: 7px 1px;
  margin: 8px 0px;
}

.error-warning p {
  color: #0a2540;
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  text-align: center;

}

.error-warning p strong {
  font-weight: 500;
}

.info-alert {
  width: 100%;
  height: 100%;
  padding: 7px 16px;
  background-color: #F5FAFE;
  border: 1px solid #d5eafa;
  border-radius: 8px;
  margin-top: 25px;
}

.info-alert .info-text {
  text-align: left;
  font-weight: 400;
  font-size: 14px;
}

#confirm-email {
  color: #0a2540;
  margin: 15px 0px 10px
}

.emoji-header.firstStepImg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 75px;
  max-height: 70px;
}

.emoji-header.firstStepImg .mailGif {
  max-width: 130px;
  margin-top: -41px;
  max-height: 130px;
  margin-left: -49px;
}

.emoji-header .popper_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 75px;
  max-height: 88px;
  margin-left: -20px;
  ;
  position: absolute;
}

/* Verify OTP */
.codeSentWrapper p {
  font-size: 15px;
  line-height: 140%;
  color: #5F6C78;
  margin-top: 17px;
  text-align: center;
}

.otpGroup {
  display: flex;
  column-gap: 12px;
  justify-content: center;
}

.optWrapper {
  max-width: 228.39px;
  margin: auto;
  margin-top: 20px;
}

.otpGroup input {
  appearance: none;
  display: block;
  width: 48px;
  padding: 0 10px;
  height: 48px;
  font-size: 25px;
  line-height: 32px;
  outline: none;
  background: #ffffff;
  border: 1px solid #DDE9FA;
  border-radius: 4px;
  text-align: center;
}

.resendCodeWrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.resendCodeWrapper p {
  font-size: 13px;
  line-height: 150%;
  color: #5F6C78;
}

.codeSentWrapper p span {
  font-weight: 500;
  color: #0a2540;
}

.resendCodeWrapper p a {
  color: #117bd4;
}

.resendCodeWrapper p a:hover {
  text-decoration: underline;
}

.otpGroup input:focus {
  border: 1px solid #117bd4 !important;
  background: #ffffff !important;
}

.otpGroup input:hover {
  border: 1px solid #b4ccdf;
}

.popup-otp-verify #sendOtpAgain {
  display: inline-block;
  max-width: 112px;
  padding: 0;
  margin: 15px auto 0;
  gap: 4px;
  align-items: center;
  background: #ffffff;
  border: unset;
  border-radius: 8px;
  justify-content: center;
  margin-top: 0;
}

.popup-otp-verify #sendOtpAgain:hover {
  padding: 0;
  border: unset;
}

.otpGroup input.invalid,
.otpGroup input.error {
  border: 1px solid #e20707 !important;
  animation: shake 0.6s ease;
}

.secureText {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  background: #F6FAFF;
  font-style: italic;
  font-size: 12px;
  line-height: 150%;
  text-align: center;
  color: #5F6C78;
  margin-top: 42px;
}

.goBackInfo {
  display: block;
  text-align: center;
  color: #5F6C78;
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  width: 100%;
  outline: none;
  margin-top: 5px;
  background: unset;
  border: unset;
  outline: unset;
  cursor: default;

}
.goBackInfo span{
  cursor: pointer;
}
.claimSendOtpAgain {
  text-decoration: underline;
}

.claimSendOtpAgain:hover {
  text-decoration: unset;
}

.backbtn {
  text-decoration: underline;
}

.backbtn:hover {
  text-decoration: none;
}

.claimHeading.mt-114 {
  margin-top: 0;
}

#claimErrorOTPAlert.custom-alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  text-align: center;
  color: #fff;
  font-weight: 500;
  margin-top: 15px;
}

#claimErrorOTPAlert.custom-alert-danger {
  background-color: #d41222 !important;
  border-color: #d41222;
}
 
.resendCodeWrapper p a.btnDisable {
       color: #b9b9b9;
    pointer-events: none;
}
.popup-otp-verify .emoji-header img{
width: 178px;
    height: 178px;
    margin-bottom: 14px;
}
/* Animation keyframes */
@keyframes tiltAnimation {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(10deg);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-3px);
  }

  40% {
    transform: translateX(3px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(3px);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  #mystery-discount-popup {
    width: 90%;
    left: 5% !important;
  }

  .popup-form input,
  .popup-form button {
    min-height: 48px;
  }

  .close-btn {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .popup {
    padding: 10px 20px;
    max-width: 360px;
  }

  .claimHeading {
    font-size: 24px;
  }
.codeSentWrapper p span{
    white-space: nowrap;
  }
  .gift-icon {
    left: 10px;
    width: 60px;
    height: 60px;
    bottom: 10px;
  }

  .gift-icon:hover .gift-tooltip {
    display: none;
  }

  .footer-note {
    font-size: 12px;
  }

  .error-warning p {
    color: #0a2540;
    font-size: 11px;
    font-weight: 400;
    line-height: 150%;
    text-align: center;

  }
  .popup-otp-verify .emoji-header img {
    width: 138px;
    height: 138px;
   
}
}