/* ===== Fallback full-screen overlay (only used if #themir-otp-step isn't found on the page) ===== */
#themir-otp-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647; /* max safe z-index, guarantees it's on top of everything, including PowerPack modals */
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
/*#themir-otp-overlay[style*="display:none"],
#themir-otp-overlay[style*="display: none"] {
    display: none !important;
}*/
#themir-otp-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    box-sizing: border-box;
    text-align: center;
    font-family: inherit;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    animation: themir-slide-up 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes themir-slide-up {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Embedded OTP step (inside your existing PowerPack Modal Box) ===== */
#themir-otp-step {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    font-family: inherit;
    box-sizing: border-box;
    background-color: rgb(236, 237, 238);
    padding: 20px;
    border-radius: 20px;
}

/* ===== Shared panel content (used by BOTH modes) ===== */
.themir-otp-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.themir-otp-panel h3,
#themir-otp-step h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
}
.themir-otp-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.themir-otp-message {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    text-align: left;
}
.themir-otp-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.themir-otp-message.is-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    text-align: center;
}
.themir-otp-input {
    display: block;
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 auto 20px !important;
    padding: 14px 12px !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.4em !important;
    text-align: center !important;
    border: 2px solid #d1d5db;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
    color: #111827 !important;
}
.themir-otp-input:focus {
    border-color: #042f46;
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 47, 70, 0.1);
}
.themir-otp-submit {
    display: block;
    width: 85%;
	margin: 0 auto;
    padding: 13px;
    background: #042f46;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.themir-otp-submit:hover:not(:disabled) {
    background: #111827;
}
.themir-otp-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.themir-otp-timer {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 14px 0 0;
}
.themir-resend-wrap {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 10px;
}
.themir-resend-otp {
    color: #042f46;
    text-decoration: none;
    font-weight: 500;
}
.themir-resend-otp:hover {
    text-decoration: underline;
}
