/* ShopApni quick sign-in (inc/login-quick.php): the mobile-code form (login page and panel),
   the sign-in panel (bottom sheet on phones, centred card on desktop) and the Google button.
   Self-contained: loaded on pages that don't load the landing stylesheets. */

.sa-otp, .sa-sheet {
	--sa-ink: #1C2620; --sa-text: #2E3A32; --sa-muted: #5E6A62; --sa-line: #DDD8CB;
	--sa-brand: #1F3311; --sa-brand-2: #2B4618; --sa-leaf: #4F7A1F; --sa-leaf-dk: #2F5A12; --sa-soft: #F3F8EC;
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.sa-otp *, .sa-sheet *, .sa-otp *::before, .sa-sheet *::before { box-sizing: border-box; }
.sa-otp p { margin: 0; }

.sa-otp__label { display: block; margin: 0 0 .4rem; font-size: .82rem; font-weight: 600; color: var(--sa-ink); }
.sa-otp .sa-otp__input {
	width: 100%; height: 54px; margin: 0; padding: 0 1rem; border-radius: 14px; border: 1.5px solid var(--sa-line); background: #fff;
	font-family: inherit; font-size: 1.05rem; font-weight: 500; line-height: 1; color: var(--sa-ink); box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.sa-otp .sa-otp__input:focus { outline: none; border-color: var(--sa-leaf); box-shadow: 0 0 0 4px rgba(79, 122, 31, .15); }
.sa-otp__phone { position: relative; display: flex; }
.sa-otp__cc {
	position: absolute; left: 1px; top: 1px; bottom: 1px; display: flex; align-items: center; padding: 0 .85rem; z-index: 1;
	border-right: 1.5px solid #E7E2D6; border-radius: 13px 0 0 13px; background: #FAF8F2; font-weight: 600; color: var(--sa-ink);
}
.sa-otp .sa-otp__phone .sa-otp__input { padding-left: 4.4rem; font-size: 1.15rem; letter-spacing: .04em; }
.sa-otp .sa-otp__code { text-align: center; font-size: 1.6rem; letter-spacing: .55em; padding-left: 1.6rem; font-variant-numeric: tabular-nums; }
.sa-otp__help { margin-top: .45rem !important; font-size: .84rem; color: var(--sa-muted); }

.sa-otp__primary {
	position: relative; display: block; width: 100%; height: 54px; margin-top: 1rem; border: 0; border-radius: 14px; cursor: pointer;
	background: var(--sa-brand); color: #fff; font-family: inherit; font-size: 1.02rem; font-weight: 600; line-height: 1;
	box-shadow: 0 12px 26px rgba(31, 51, 17, .22); transition: transform .2s, box-shadow .2s, background-color .2s, opacity .2s;
}
.sa-otp__primary:hover { background: var(--sa-brand-2); transform: translateY(-1px); }
.sa-otp__primary:disabled { cursor: default; transform: none; opacity: .75; }
.sa-otp:not(.is-valid) [data-otp-send] { background: #3A4B2E; }
.sa-otp__spinner { display: none; position: absolute; right: 1.1rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: sa-otp-spin .8s linear infinite; }
.is-busy .sa-otp__spinner { display: block; }
@keyframes sa-otp-spin { to { transform: rotate(360deg); } }

/* WhatsApp: the second choice, an outlined button under the SMS one */
.sa-otp__wa {
	position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; height: 50px; margin-top: .7rem;
	border: 1.5px solid #CFE3C6; border-radius: 14px; background: #fff; color: #1E6B3A; cursor: pointer;
	font-family: inherit; font-size: .98rem; font-weight: 600; line-height: 1; transition: background-color .2s, border-color .2s;
}
.sa-otp__wa:hover { background: #F3FAF0; border-color: #A9CF9A; }
.sa-otp__wa:disabled { cursor: default; opacity: .75; }
.sa-otp__wa .sa-otp__wa-icon { color: #25A35A; flex: none; }
.sa-otp__wa .sa-otp__spinner { border-color: rgba(30, 107, 58, .25); border-top-color: #1E6B3A; }
.sa-otp__link { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 600; color: var(--sa-leaf-dk); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(47, 90, 18, .35); }
.sa-otp__link:disabled { color: var(--sa-muted); cursor: default; text-decoration: none; }
.sa-otp__link[hidden] { display: none; }
.sa-otp__alt { margin-top: .8rem !important; text-align: center; font-size: .9rem; }
.sa-otp__sent { margin-bottom: 1rem !important; font-size: .95rem; color: var(--sa-text); }
.sa-otp__resend { margin-top: .8rem !important; font-size: .9rem; color: var(--sa-muted); text-align: center; }
.sa-otp__sep { margin: 0 .5rem; }
.sa-otp__status { margin-top: .9rem !important; padding: .7rem .9rem; border-radius: 12px; font-size: .92rem; background: var(--sa-soft); color: var(--sa-leaf-dk); }
.sa-otp__status.is-error { background: #FDEEEE; color: #8A1F1F; }
.sa-otp__fine { margin-top: .7rem !important; font-size: .75rem; color: #8B9187; text-align: center; }
[data-otp-recaptcha]:empty { display: none; }

/* Google button (panel; the login page styles Nextend's own button the same way) */
.sa-google {
	display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; height: 54px;
	background: #fff; color: #1F1F1F !important; border: 1.5px solid #DADCE0; border-radius: 14px;
	font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none !important; transition: background-color .2s, border-color .2s;
}
.sa-google:hover { background: #F8F9FA; border-color: #C6C9CE; }

/* Panel */
html.sa-sheet-open, html.sa-sheet-open body { overflow: hidden; }
.sa-sheet { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; }
.sa-sheet[hidden] { display: none; }
.sa-sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 16, 9, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.sa-sheet__panel {
	position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
	padding: 1.6rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom)); background: #fff; color: var(--sa-text);
	border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
	transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.sa-sheet.is-open .sa-sheet__backdrop { opacity: 1; }
.sa-sheet.is-open .sa-sheet__panel { transform: none; }
@media (min-width: 700px) {
	.sa-sheet { align-items: center; }
	.sa-sheet__panel { border-radius: 24px; padding: 2rem 2rem 1.6rem; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .25s; }
	.sa-sheet.is-open .sa-sheet__panel { opacity: 1; }
	.sa-sheet .sa-sheet__grip { display: none; }
}
.sa-sheet__grip { display: block; width: 44px; height: 5px; border-radius: 99px; background: #E2DED3; margin: -.6rem auto 1rem; }
.sa-sheet__close { position: absolute; right: .8rem; top: .8rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F5F2EA; color: var(--sa-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sa-sheet__close:hover { background: #ECE7DB; }
.sa-sheet__title { margin: 0 2.5rem .35rem 0; font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--sa-ink); }
.sa-sheet__sub { margin: 0 0 1.2rem; color: var(--sa-muted); font-size: .96rem; }
.sa-sheet__or { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0 .9rem; color: #8B9187; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.sa-sheet__or::before, .sa-sheet__or::after { content: ""; flex: 1; height: 1px; background: #E7E2D6; }
.sa-sheet__email { display: block; margin-top: 1rem; text-align: center; font-weight: 600; color: var(--sa-text) !important; text-decoration: none !important; }
.sa-sheet__email:hover { color: var(--sa-leaf-dk) !important; }
.sa-sheet__terms { margin: 1rem 0 0; text-align: center; font-size: .78rem; color: #8B9187; }
.sa-sheet__terms a { color: inherit !important; text-decoration: underline !important; }
@media (prefers-reduced-motion: reduce) {
	.sa-sheet__panel, .sa-sheet__backdrop { transition: none; }
	.sa-otp__spinner { animation: none; }
}
