.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
    z-index: -1;
    user-select: none;
    pointer-events: none;
}

.popup-overlay.show {
    display: flex;
    background: transparent;
    user-select: unset;
}

.subDesc {
    margin: 10px 0 0;
}

/* .claimPopup.popup {
    background: #fff;
    padding: 16px 20px 22px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    height: auto;
    max-height: 85vh;
    box-shadow: 0 10px 30px 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 .claimPopup.popup {
    transform: translateY(0);
    opacity: 1;
} */
.claimPopup.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 .claimPopup.popup {
    transform: scale(1);
    opacity: 1;
}
.custom-alert-danger {
    color: #721c24;
    background-color: #f8d7da !important;
    border-color: #f5c6cb;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 12px;
}

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

.emoji-header {
    font-size: 24px;
    text-align: center;
}

.emoji-header img {
    position: relative;

}

.popup-form-view .emoji-header img {
    width: 35%;
}

.emoji-header .claimGift {
    position: relative;
    left: 0px;
    width: 193px;
    height: 193px;
    /* width: 34%;
    height: 100%;
    margin: 0 auto 10px; */
}

h2,
.claimHeading {
    margin: 0;
    text-align: center;
    margin-top: 0px;
    font-weight: 600;
    font-size: 26px;
    line-height: 130%;
    color: #121826;
}

.subtext {

    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0%;
    text-align: center;
    text-align: center;
    color: #5F6C78;
    margin: 13px auto 15px;
}

.subtext.my-0 {
    margin-bottom: 0;
}

.subtext.mt-0 {
    margin-top: 0;
}

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

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

input:focus-visible {
    outline: none;
}

#gift-form .inputGroup .giftFormInput {
    border-radius: 5px;
    border: 1px solid #E2E8F0;
    width: 100%;
    background: #fff;
    padding: 13px 15px 13px;
    max-height: 47px;
    color: #121826;
    font-size: 15px;
}

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

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

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

#gift-form .inputGroup .giftFormInput:focus {
    border: 1px solid #2563eb !important;
    background: #ffffff !important;
}

#gift-form .inputGroup input.focusedInput {
    border: 1px solid #2563eb !important;
    background: #ffffff !important;
}

#gift-form .inputGroup label.focusedLabel {
    color: #2563eb;
}

#gift-form .inputGroup input:hover,
#gift-form .inputGroup textarea:hover,
#gift-form .inputGroup.selectGroup .selection .select2-selection--single:hover {
    box-shadow: unset;
}

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

#gift-form .inputGroup:focus-within label {
    color: #2563eb;
}

#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: #2563eb;
}

#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: 400;
    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: 400;
    font-size: 13px;
    line-height: 150%;

    color: #7c8793;
}

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

button {
    outline: none;
    cursor: pointer;
}

.primary-btn {
    margin: 15px auto 7px;
    width: 100%;
    background: #2563eb;
    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%);
}

.secondary-btn {
    border: 1px solid #D8D8D8;
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: center;
    color: #5F6C78;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 5px;

}

.popup.claimPopup strong {
    font-weight: 500;
}

.secondary-btn:hover {
    border: 1px solid #121826;
    color: #121826;
}

.primary-btn:hover {
    background: #1b449e;

}

.text-btn {
    margin: 0 auto;
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    text-decoration: underline;
    color: #5F6C78;
    max-width: max-content;
    width: 100%;
    border: none;
    display: block;
    background: none;

}

.text-btn:hover {
    color: #121826;
}

.footer-note {
    font-weight: 400;

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

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

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

.popup-confirmation-view .primary-btn {
    margin: 40px auto 0px;
}

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

.popup-confirmation-view .claimHeading {
    margin-bottom: 15px;
}

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

    text-align: center;
    color: #5F6C78;
}

.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: 400;
    font-size: 14px;
    line-height: 150%;

    text-align: center;
}

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

    text-align: center;
    color: #121826;
}

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

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

#confirm-email {
    margin: 30px 0px 10px
}

/* .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-otp-verify .custom-hr {
    height: 1px;
    display: block;
    background: #d5eafa;
    margin: 15px 0px 13px;
}

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

.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;
    text-align: center;
    /* bottom: 100%; Position above the icon */
    top: -55%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    box-shadow: 0 9px 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    width: 160px;
}

.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: 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: #2563eb;
    transition: width 0.3s ease;
}

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

.gift-icon img {
    width: 25px;
    height: 25px;
    position: absolute;
    left: 11px;
    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;
    /* 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: #121826;
    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;
}

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

#confirm-email {
    color: #121826;
}

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

.codeSentWrapper .subDesc {
    margin-top: 8px;
}

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

.optWrapper {
    max-width: max-content;
    margin: 25px auto 0;
}

.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: 600;
    color: #121826;

}

.resendCodeWrapper p a {
    color: #2563eb;
}

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

.otpGroup input:focus {
    border: 1px solid #2563eb !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;
    outline: none;
    background: unset;
    border: none;
    cursor: default;
}

.claimSendOtpAgain {
    text-decoration: underline;
}

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

.backbtn {
    text-decoration: underline;
    cursor: pointer;
}

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

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

.popup-otp-verify .emoji-header img {
    position: relative;
    left: 0;
    width: 247px;
    height: 247px;
}

.popup-otp-verify .claimHeading {
    margin-top: 0;
}

.resendCodeWrapper p a.btnDisable {
    color: #b9b9b9;
    pointer-events: none;
}

/* 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);
    }
}

#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: 1366px) and (max-height: 690px) {
    .popup-overlay.show .claimPopup.popup {
        transform: scale(.79) translate(-55%, -63%);

    }
} */

@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) {
    .claimPopup.popup {
        padding: 10px 16px;
        max-width: 340px;
    }

    .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: #121826;
        font-size: 11px;
        font-weight: 400;
        line-height: 150%;
        text-align: center;
    }

    .popup-form-view .emoji-header img {
        position: relative;
        left: 0;
        width: 119px;
    }

    .popup-otp-verify .otpGroup {
        margin-top: 25px;
    }

    .popup-otp-verify .emoji-header img {
        position: relative;
        left: 0;
        width: 140px;
        height: 140px;
    }

    .popup-confirmation-view .confirm-txt {
        padding: 0 12px;
    }
}