.rshp-otp-modal,
.rshp-otp-modal * {
    box-sizing: border-box;
}

.rshp-otp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: inherit;
}

.rshp-otp-modal.is-active {
    display: flex;
}

.rshp-otp-modal-open {
    overflow: hidden;
}

.rshp-otp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(8px);
}

.rshp-otp-dialog {
    position: relative;
    width: min(94vw, 420px);
    background: #ffffff;
    color: #1f2937;
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
    padding: 28px 24px 22px;
    overflow: hidden;
    min-height: 432px;
    direction: rtl;
    text-align: right;
    animation: rshpOtpIn 0.24s ease-out;
}

.rshp-otp-dialog:before {
    content: "";
    position: absolute;
    top: -85px;
    right: -85px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(11, 31, 58, 0.12);
}

.rshp-otp-dialog:after {
    content: "";
    position: absolute;
    bottom: -90px;
    left: -70px;
    width: 175px;
    height: 175px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
}

.rshp-otp-dialog > * {
    position: relative;
    z-index: 1;
}

.rshp-otp-close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
    line-height: 32px;
    cursor: pointer;
    transition: 0.18s ease;
}

.rshp-otp-close:hover {
    background: #e5e7eb;
}

.rshp-otp-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.rshp-otp-brand img {
    max-width: 142px;
    max-height: 68px;
    object-fit: contain;
}

.rshp-otp-dialog h3 {
    margin: 0 0 8px;
    text-align: center;
    color: #111827;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.6;
    direction: rtl;
}


.rshp-otp-subtitle {
    margin: 0 0 18px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.9;
}

.rshp-otp-step {
    min-height: 128px;
}

.rshp-otp-code-step {
    min-height: 204px;
}

.rshp-otp-step label {
    display: block;
    margin: 0 0 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.rshp-otp-step input {
    width: 100%;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    color: #111827;
    direction: ltr;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
    outline: none;
    transition: 0.18s ease;
}

.rshp-otp-step input:focus {
    border-color: #0B1F3A;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.10);
}

.rshp-otp-primary,
.rshp-otp-open-button {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0B1F3A, #153B6B);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(11, 31, 58, 0.24);
    transition: 0.18s ease;
    white-space: nowrap;
}

.rshp-otp-primary:hover,
.rshp-otp-open-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 31, 58, 0.30);
}

.rshp-otp-primary:disabled,
.rshp-otp-ghost:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.rshp-otp-ghost,
.rshp-otp-link {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border-radius: 14px;
    font-size: 14px;
    cursor: pointer;
}

.rshp-otp-ghost {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-weight: 700;
}

.rshp-otp-link {
    border: 0;
    background: transparent;
    color: #0B1F3A;
    font-weight: 800;
}

.rshp-otp-message {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    min-height: 43px;
}

.rshp-otp-message[hidden] {
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.rshp-otp-message.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.rshp-otp-message.is-success {
    background: #ecfdf5;
    color: #065f46;
}

.rshp-otp-message.is-info {
    background: #eff6ff;
    color: #1e40af;
}

.rshp-otp-terms {
    display: block;
    margin-top: 16px;
    color: #9ca3af;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
}

.rshp-otp-account-replace {
    margin: 0 auto 24px;
    max-width: 520px;
    padding: 26px 22px;
    border: 1px solid #f1f1f1;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.rshp-otp-account-replace h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}

.rshp-otp-account-replace p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.9;
}

.rshp-otp-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 280px;
    text-decoration: none;
}

.rshp-otp-checkout-notice {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid rgba(11, 31, 58, 0.18);
    background: rgba(11, 31, 58, 0.07);
    color: #153B6B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
}

body.rshp-hide-default-login .woocommerce form.login,
body.rshp-hide-default-login .woocommerce-form-login,
body.rshp-hide-default-login .woocommerce-form-register,
body.rshp-hide-default-login .woocommerce .u-columns.col2-set,
body.rshp-hide-default-login .woocommerce #customer_login,
body.rshp-hide-default-login .woocommerce-account .woocommerce > h2,
body.rshp-hide-default-login #lr-send-form,
body.rshp-hide-default-login form#lr-send-form,
body.rshp-hide-default-login .lr-form,
body.rshp-hide-default-login form.lr-form,
body.rshp-hide-default-login .lr-register-form,
body.rshp-hide-default-login .lr-login-form,
body.rshp-hide-default-login .lr-box,
body.rshp-hide-default-login .lr-wrapper,
body.rshp-hide-default-login .lr-container,
body.rshp-hide-default-login .login-register-form,
body.rshp-hide-default-login .login-register-wrapper,
body.rshp-hide-default-login .bakala-login-register,
body.rshp-hide-default-login .bakala-login-form,
body.rshp-hide-default-login .bakala-register-form {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

@keyframes rshpOtpIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .rshp-otp-modal {
        align-items: flex-end;
        padding: 0;
    }

    .rshp-otp-dialog {
        width: 100%;
        border-radius: 26px 26px 0 0;
        padding: 28px 18px 20px;
        min-height: 418px;
    }
}
