.mg-otp-box{direction:rtl;position:relative;overflow:hidden;background:linear-gradient(145deg,#0b0b0b,#131313);border:1px solid rgba(202,170,91,.34);border-radius:18px;padding:22px;margin:0 0 22px;color:#f5f0e6;box-shadow:0 18px 44px rgba(0,0,0,.14)}
.mg-otp-box:before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(223,194,118,.72),transparent)}
.mg-otp-title{font-size:17px;font-weight:700;letter-spacing:-.2px;color:#dec47f;margin-bottom:6px}.mg-otp-subtitle{margin:0 0 16px;color:#bdb5a7;font-size:13px;line-height:1.9}.mg-otp-send-step,.mg-otp-verify-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.mg-otp-box input{min-height:48px;border-radius:12px!important;border:1px solid rgba(255,255,255,.13)!important;background:#181818!important;color:#fff!important;padding:9px 13px!important;box-shadow:none!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.mg-otp-box input:focus{border-color:rgba(222,196,127,.78)!important;box-shadow:0 0 0 3px rgba(222,196,127,.10)!important;background:#1b1b1b!important;outline:0}.mg-otp-box .button{min-height:48px;border-radius:12px!important;padding-inline:18px!important;white-space:nowrap}.mg-otp-change{grid-column:1/-1;background:none;border:0;color:#dec47f;cursor:pointer;text-align:right;padding:4px 1px}.mg-otp-message{min-height:20px;margin-top:10px;font-size:12px;color:#acd0ad}.mg-otp-message.is-error{color:#efa9aa}.mg-otp-checkout-note{direction:rtl;margin:-10px 0 18px;color:#7e776b;font-size:12px}.mg-otp-verified-note{direction:rtl;border:1px solid rgba(202,170,91,.22);border-radius:12px;padding:10px 13px;margin:0 0 16px;background:#101010;color:#cdb36e;font-size:12px}.mg-otp-verified-note bdi{color:#f2ede3;font-weight:650}.mg-otp-checkout-gate{opacity:1!important;filter:none!important;pointer-events:auto!important;position:relative;z-index:3}
@media(max-width:600px){.mg-otp-box{padding:18px 16px;border-radius:15px}.mg-otp-send-step,.mg-otp-verify-step{grid-template-columns:1fr}.mg-otp-box .button{width:100%}}

/* v1.3.2: checkout is authentication-first. Before verified OTP, only the OTP gate is visible. */
body.woocommerce-checkout.mg-otp-auth-required form.checkout{display:none!important}
body.woocommerce-checkout.mg-otp-auth-required .mg-otp-checkout-gate{display:block!important;max-width:680px;margin:24px auto;opacity:1!important;filter:none!important;pointer-events:auto!important}
