/* Temporary on-screen OTP display while SMS subscription is inactive */
.ehrc-otp-fallback-banner {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10050;
    max-width: min(320px, calc(100vw - 24px));
    margin: 12px;
    animation: ehrcOtpSlideIn 0.35s ease-out;
}

.ehrc-otp-fallback-inner {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: #fff;
    border-radius: 12px 0 0 12px;
    padding: 16px 44px 16px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ehrc-otp-fallback-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.92;
    margin: 0 0 6px;
}

.ehrc-otp-fallback-label {
    font-size: 0.85rem;
    margin: 0 0 4px;
    opacity: 0.9;
}

.ehrc-otp-fallback-code {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    margin: 4px 0 8px;
}

.ehrc-otp-fallback-note {
    font-size: 0.75rem;
    line-height: 1.35;
    opacity: 0.85;
    margin: 0;
}

.ehrc-otp-fallback-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ehrc-otp-fallback-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@keyframes ehrcOtpSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .ehrc-otp-fallback-banner {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        max-width: none;
        margin: 0;
    }

    .ehrc-otp-fallback-inner {
        border-radius: 12px 12px 0 0;
    }
}
