.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 0px;
  display: flex;
  justify-content: flex-start; /* Bottom-left alignment */
  align-items: flex-end;       /* Bottom-left alignment */
  padding: 20px;              /* Spacing from edges */
  z-index: -1;
  user-select: none;
  pointer-events: none;
}
.popup-overlay.show {
  display: flex;
  background: transparent;
  user-select: unset;
  height: 100vh;
}
/* .popup {
  background: #fff;
  padding: 20px 36px;
  border-radius: 12px;
  max-width: 380px;
  width: 100%;
  min-height: 560px;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  transition: transform .8s ease, opacity .35s ease;
  transform: translateY(1000px);
  pointer-events: auto;
}
.popup-overlay.show .popup {
  transform: translateY(0);
  opacity: 1;
} */
.popup {
    background: #fff;
    padding: 16px 20px 22px;
    border-radius: 12px;
    max-width: 380px;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    max-height: 85vh;


    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
}

.popup-overlay.show .popup {
    transform: scale(1);
    opacity: 1;
}
.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;
  margin-bottom: 20px;
}
.popup-confirmation-view .emoji-header {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 130px;
  text-align: center;
  margin-bottom: 0px;
}
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 #1276ce !important;
  background: #ffffff !important;
}
#gift-form .inputGroup input.focusedInput {
  border: 1px solid #1276ce !important;
  background: #ffffff !important;
}
#gift-form .inputGroup label.focusedLabel {
  color: #3179be;
}
#gift-form .iti__selected-flag {
  padding: 0 6px 0 15px;
}
#gift-form .inputGroup:focus-within label {
  color: #3179be;
}
#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: #f8fcff;
}
#gift-form
  .inputGroup:focus-within
  .iti.iti--allow-dropdown
  .iti__flag-container {
  border-color: #1276ce;
}
#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: #3179be;
  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: #1667c2;
}
.text-btn {
  margin: 0 auto;
  background: none;
  border: none;
  color: #6e7b87;
  display: block;
  font-size: 14px;
  text-decoration: underline;
}
.text-btn:hover {
  color: #0a2540;
  text-decoration: none;
}
.footer-note {
  font-weight: 450;
  font-size: 13px;
  line-height: 150%;
  text-align: center;
  color: #7c8793;
  margin-top: 45px;
}
.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;
}
#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;
}
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-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;
  top: -43%;
  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;
}
.gift-icon:hover .gift-tooltip {
  display: block;
}
.gift-icon {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 60px;
    height: 50px;
    background: transparent;
    border-radius: 0 100px 100px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    z-index: 1001;
    background: #3179be;
    transition: width 0.3s ease;
}

.gift-icon:hover {
    width: 170px;
}

.gift-icon img {
    width: 25px;
    height: 25px;
    position: absolute;
    left: 11px;
    top: 10px;
    object-fit: contain;
    /* Phone ring animation */
    animation: phone-ring 1.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
    /* Slight delay for natural feel */
    animation-delay: 0.2s;
}

@keyframes phone-ring {
    0% {
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }

    10% {
        transform: rotate(-18deg) scale(1.05);
        filter: brightness(1.1);
    }

    20% {
        transform: rotate(18deg) scale(1.1);
        filter: brightness(1.2);
    }

    30% {
        transform: rotate(-18deg) scale(1.05);
        filter: brightness(1.1);
    }

    40% {
        transform: rotate(18deg) scale(1.1);
        filter: brightness(1.2);
    }

    50% {
        transform: rotate(-10deg) scale(1.05);
        filter: brightness(1.1);
    }

    60% {
        transform: rotate(10deg) scale(1.1);
        filter: brightness(1.2);
    }

    70% {
        transform: rotate(-5deg) scale(1.05);
        filter: brightness(1.1);
    }

    80% {
        transform: rotate(5deg) scale(1.1);
        filter: brightness(1.2);
    }

    90% {
        transform: rotate(0deg) scale(1.05);
        filter: brightness(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }
}

.gift-text {
    white-space: nowrap;
    visibility: hidden;
    position: absolute;
    left: 44px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: underline;

}

.gift-icon:hover .gift-text {
    visibility: visible;

}
.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;
}
.error-warning.show {
  max-height: 200px;
  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: 120px;
  max-height: 120px;
}
.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: 130px;
  max-height: 200px;
  margin-left: -33px;
  position: absolute;
}
.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: #3179be;
}
.resendCodeWrapper p a:hover {
  text-decoration: underline;
}
.otpGroup input:focus {
  border: 1px solid #3179be !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;
}
.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;
}
@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);
  }
}
#gift-form .iti__country-list {
  max-width: 410px;
  max-height: 150px;
}
#gift-form .iti__country-name,
#gift-form .iti__dial-code,
#gift-form .iti__flag-box {
  font-size: 13px;
}
/* @media (max-width: 1260px) and (max-height: 660px){
  .popup-overlay.show .claimPopup.popup {
        transform: scale(0.79) translate(-64%, -63%);
  }
}
@media (max-width: 980px) and (max-height: 550px){
  .popup-overlay.show .claimPopup.popup {
       transform: scale(0.69) translate(-74%, -72%);
  }
} */
@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 16px;
        max-width: 340px;
    }
#gift-form .inputGroup .giftFormInput {
        padding: 9px 15px 9px;
    }

    .claimHeading {
        font-size: 23px;
        margin-top: 0;
        line-height: 150%;
    }

    .gift-icon {
        left: 0;
        width: 55px;
        height: 40px;
        bottom: 10px;
    }

    .gift-icon img {
        width: 22px;
        height: 22px;
    }

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

    .gift-icon:hover {
        width: 55px;
    }

    .gift-icon:hover .gift-text {
        visibility: hidden;
    }
  .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;
  }
}
/* @media (max-width: 390px) {
  .popup-overlay.show .popup {
      transform: scale(0.8) translate(-63%, -63%);
  }
} */
