/* JustJaldi :: unified customer phone authentication modal. Original JustJaldi styling. Scoped to .jj-auth / .jj-auth__* so it cannot affect any other control on the storefront, in the seller panel or in admin. */ .jj-auth{ --jj-accent:#ff3a59; --jj-accent-hover:#e93350; --jj-ink:#1f2933; --jj-muted:#6b7280; --jj-line:#e3e6ea; --jj-bg:#fff; box-sizing:border-box; width:100%; max-width:396px; margin:0 auto; padding:4px 4px 8px; color:var(--jj-ink); font-family:inherit; text-align:left; } .jj-auth *,.jj-auth *::before,.jj-auth *::after{box-sizing:inherit;} /* Header supplied by the fragment so ykmodal appends its close button here instead of prepending an empty strip. */ .modal-header.jj-auth__header{ border-bottom:0; padding:20px 24px 4px; align-items:center; min-height:auto; } .jj-auth__logo{max-width:112px;height:auto;display:block;} .jj-auth__wordmark{font-size:20px;font-weight:700;letter-spacing:-.2px;color:var(--jj-ink);} .modal-body.jj-auth__body{padding:8px 24px 26px;} .jj-auth__step{display:block;} .jj-auth__step[hidden]{display:none;} .jj-auth__title{font-size:20px;line-height:1.3;font-weight:600;margin:6px 0 6px;color:var(--jj-ink);} .jj-auth__subtitle{font-size:14px;line-height:1.55;color:var(--jj-muted);margin:0 0 20px;} .jj-auth__masked{color:var(--jj-ink);font-weight:600;white-space:nowrap;} .jj-auth__field{margin-bottom:18px;} .jj-auth__label{display:block;font-size:13px;font-weight:500;margin-bottom:8px;color:var(--jj-ink);} /* One coherent control: [ +91 | Enter mobile number ] */ .jj-auth__inputwrap{ display:flex;align-items:stretch;width:100%; border:1px solid var(--jj-line);border-radius:10px;overflow:hidden;background:#fff; transition:border-color .15s ease,box-shadow .15s ease; } .jj-auth__inputwrap:focus-within{border-color:var(--jj-accent);box-shadow:0 0 0 3px rgba(255,58,89,.13);} .jj-auth__dialcode{ display:flex;align-items:center;flex:0 0 auto;padding:0 12px; background:#f5f6f8;border-right:1px solid var(--jj-line); font-size:15px;font-weight:600;color:var(--jj-ink);line-height:1;white-space:nowrap; } .jj-auth__input{ flex:1 1 auto;min-width:0;width:100%;border:0;outline:0;background:transparent; padding:13px 12px;font-size:16px;line-height:1.25;letter-spacing:.3px;color:var(--jj-ink); font-family:inherit; } .jj-auth__input::placeholder{color:#9aa1aa;opacity:1;letter-spacing:0;} .jj-auth__input::-webkit-outer-spin-button, .jj-auth__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;} .jj-auth__error{display:none;margin:8px 0 0;font-size:13px;line-height:1.45;color:#c0272d;} /* Primary action: full width, brand treatment, real disabled/loading states. */ .jj-auth__btn{ display:flex;align-items:center;justify-content:center;gap:10px; width:100%;min-height:50px;padding:13px 16px;margin:0; border:0;border-radius:10px;background:var(--jj-accent);color:#fff; font-family:inherit;font-size:16px;font-weight:600;line-height:1.2; cursor:pointer;appearance:none;-webkit-appearance:none; transition:background-color .15s ease,opacity .15s ease,transform .05s ease; } .jj-auth__btn:hover:not(:disabled){background:var(--jj-accent-hover);} .jj-auth__btn:active:not(:disabled){transform:translateY(1px);} .jj-auth__btn:disabled{background:#e6e8eb;color:#9aa1aa;cursor:not-allowed;} .jj-auth__btn.is-loading{cursor:progress;} .jj-auth__spinner{ width:17px;height:17px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff; border-radius:50%;animation:jjspin .7s linear infinite;flex:0 0 auto; } @keyframes jjspin{to{transform:rotate(360deg);}} .jj-auth__legal{margin:16px 0 0;font-size:12px;line-height:1.6;color:var(--jj-muted);} .jj-auth__link{color:var(--jj-accent);text-decoration:underline;font-weight:500;} .jj-auth__link:hover{color:var(--jj-accent-hover);} .jj-auth__otpwrap{display:flex;gap:8px;justify-content:flex-start;margin:0 0 4px;} .jj-auth__otpbox{ width:48px;height:54px;flex:0 0 auto;text-align:center; font-family:inherit;font-size:20px;font-weight:600;color:var(--jj-ink); border:1px solid var(--jj-line);border-radius:10px;background:#fff; transition:border-color .15s ease,box-shadow .15s ease; } .jj-auth__otpbox:focus{border-color:var(--jj-accent);box-shadow:0 0 0 3px rgba(255,58,89,.13);outline:0;} .jj-auth__actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap;} .jj-auth__textbtn{ border:0;background:0 0;padding:6px 0;font-family:inherit;font-size:14px;font-weight:500; color:var(--jj-accent);cursor:pointer; } .jj-auth__textbtn:hover:not(:disabled){color:var(--jj-accent-hover);text-decoration:underline;} .jj-auth__textbtn:disabled{opacity:.5;cursor:not-allowed;} .jj-auth__resend{font-size:13px;color:var(--jj-muted);} /* Visible focus ring, kept regardless of theme resets. */ .jj-auth__btn:focus-visible,.jj-auth__textbtn:focus-visible, .jj-auth__link:focus-visible,.jj-auth__otpbox:focus-visible,.jj-auth__input:focus-visible{ outline:3px solid rgba(255,58,89,.45);outline-offset:2px; } /* Local fallback: this theme ships Bootstrap 5's .visually-hidden, not .sr-only. Defining it scoped means a hidden label can never render as visible text. */ .jj-auth .sr-only,.jj-auth .visually-hidden{ position:absolute!important;width:1px!important;height:1px!important; padding:0!important;margin:-1px!important;overflow:hidden!important; clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; } @media (max-width:480px){ .jj-auth{max-width:100%;padding:2px 0 4px;} .modal-header.jj-auth__header{padding:16px 18px 2px;} .modal-body.jj-auth__body{padding:6px 18px 20px;} .jj-auth__title{font-size:19px;} .jj-auth__subtitle{margin-bottom:18px;} .jj-auth__otpwrap{gap:6px;justify-content:space-between;} .jj-auth__otpbox{width:100%;max-width:50px;height:52px;font-size:19px;} .jj-auth__btn{min-height:52px;} } @media (max-width:360px){ .modal-header.jj-auth__header{padding:14px 14px 2px;} .modal-body.jj-auth__body{padding:6px 14px 18px;} .jj-auth__otpbox{max-width:42px;height:48px;font-size:17px;} .jj-auth__dialcode{padding:0 9px;font-size:14px;} .jj-auth__input{padding:12px 10px;font-size:15px;} } @media (prefers-reduced-motion:reduce){ .jj-auth__spinner{animation:none;} .jj-auth__btn,.jj-auth__inputwrap,.jj-auth__otpbox{transition:none;} } 