/* Vyybe Mobile OTP modal. Uses the theme's design tokens when present. */
.vy-auth {
	--a-ink: var(--ink, #151515);
	--a-muted: var(--muted, #77746D);
	--a-line: var(--line, #E6E3DC);
	--a-soft: var(--soft, #F2F0EA);
	--a-surface: var(--surface, #fff);
	--a-accent: var(--accent, #A9825A);
	--a-accent-soft: var(--accent-soft, #EEFFC2);
	--a-accent-ink: var(--accent-ink, #0D0D0D);
	--a-error: var(--sale, #B4472F);
	--a-ok: var(--ok, #2F6B4F);
	--a-ease: cubic-bezier(.16, 1, .3, 1);

	border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
	background: transparent; color: var(--a-ink); font-family: var(--font, system-ui, sans-serif);
}
.vy-auth::backdrop { background: rgba(15, 15, 15, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vy-auth[open]::backdrop { animation: vy-a-fade .3s ease; }

.vy-auth__panel {
	position: absolute; left: 0; right: 0; bottom: 0;
	max-height: 92vh; overflow-y: auto;
	padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
	background: var(--a-surface); border-radius: var(--radius, 3px) var(--radius, 3px) 0 0;
	box-shadow: 0 -12px 40px rgba(20, 20, 20, .12);
	animation: vy-a-up .45s var(--a-ease);
}
.vy-auth__panel::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--a-line); }
@media (min-width: 640px) {
	.vy-auth__panel {
		top: 50%; bottom: auto; left: 50%; right: auto; width: 440px;
		transform: translate(-50%, -50%); border-radius: var(--radius, 3px); padding: 16px 32px 32px;
		box-shadow: 0 24px 80px rgba(20, 20, 20, .2);
		animation: vy-a-pop .45s var(--a-ease);
	}
	.vy-auth__panel::before { display: none; }
}
@keyframes vy-a-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes vy-a-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes vy-a-fade { from { opacity: 0; } to { opacity: 1; } }

.vy-auth__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; }
.vy-auth__icon-btn {
	display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-pill, 2px);
	background: transparent; color: var(--a-ink); cursor: pointer; transition: background-color .2s;
}
.vy-auth__icon-btn:hover { background: var(--a-soft); }
.vy-auth__icon-btn[hidden] { display: grid; visibility: hidden; }
.vy-auth__steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.vy-auth__steps li { width: 18px; height: 4px; border-radius: 4px; background: var(--a-line); transition: background-color .3s, width .3s var(--a-ease); }
.vy-auth__steps li.is-on { width: 28px; background: var(--a-ink); }

.vy-auth__step { animation: vy-a-step .4s var(--a-ease); }
.vy-auth__step[hidden] { display: none; }
@keyframes vy-a-step { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.vy-auth.is-back .vy-auth__step { animation-name: vy-a-step-back; }
@keyframes vy-a-step-back { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

.vy-auth__badge { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: var(--radius, 3px); background: var(--a-accent-soft); color: var(--a-accent-ink); }
.vy-auth__title { margin: 0 0 6px; font-family: var(--font-display, inherit); font-size: 26px; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.vy-auth__sub { margin: 0 0 22px; color: var(--a-muted); font-size: 15px; line-height: 1.5; }
.vy-auth__sub strong { color: var(--a-ink); font-weight: 600; white-space: nowrap; }

.vy-auth__form { display: grid; gap: 8px; }
.vy-auth__label { font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.vy-auth__opt { font-weight: 450; color: var(--a-muted); }
.vy-auth__phone, .vy-auth__input {
	display: flex; align-items: center; height: 54px; border: 1px solid var(--a-line); border-radius: var(--radius, 3px);
	background: var(--a-surface); transition: border-color .2s, box-shadow .2s;
}
.vy-auth__phone:focus-within, .vy-auth__input:focus { border-color: var(--a-ink); box-shadow: 0 0 0 3px rgba(21, 21, 21, .08); outline: none; }
.vy-auth__cc { padding: 0 12px 0 16px; margin-right: 4px; height: 28px; display: grid; place-items: center; border-right: 1px solid var(--a-line); font-weight: 600; font-size: 16px; }
.vy-auth__phone input {
	flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; padding: 0 12px;
	font: inherit; font-size: 17px; font-weight: 550; letter-spacing: .04em; color: var(--a-ink);
}
.vy-auth__input { width: 100%; padding: 0 16px; font: inherit; font-size: 16px; color: var(--a-ink); }

.vy-auth__btn {
	position: relative; margin-top: 12px; height: 54px; border: 0; border-radius: var(--r-pill, 2px);
	background: var(--a-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
	transition: transform .15s, opacity .2s, box-shadow .2s;
}
.vy-auth__btn:hover { box-shadow: 0 10px 28px rgba(20, 20, 20, .18); }
.vy-auth__btn:active { transform: scale(.98); }
.vy-auth__btn:disabled { opacity: .55; cursor: progress; }
.vy-auth__btn.is-loading::after {
	content: ''; position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
	border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: vy-a-spin .7s linear infinite;
}
@keyframes vy-a-spin { to { transform: rotate(360deg); } }

.vy-auth__link { padding: 0; border: 0; background: none; color: var(--a-ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vy-auth__link:disabled { color: var(--a-muted); text-decoration: none; font-weight: 500; cursor: default; }
.vy-auth__resend { margin: 18px 0 0; text-align: center; font-size: 14px; }
.vy-auth__fine { margin: 18px 0 0; font-size: 12.5px; color: var(--a-muted); text-align: center; }
.vy-auth__fine a { color: inherit; text-decoration: underline; }
.vy-auth__alt { display: block; margin-top: 14px; text-align: center; font-size: 14px; font-weight: 550; color: var(--a-ink); }
.vy-auth__dev { margin: 6px 0 0; padding: 8px 12px; border-radius: var(--radius-sm, 2px); background: #FFF6DB; color: #6B5300; font-size: 13px; text-align: center; }
.vy-auth__dev[hidden] { display: none; }

/* OTP cells: a single real input (keeps SMS autofill working) over 6 visual boxes */
.vy-otp { position: relative; }
.vy-otp input {
	position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0;
	border: 0; font-size: 16px; caret-color: transparent; cursor: text;
}
.vy-otp__cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.vy-otp__cells span {
	display: grid; place-items: center; height: 58px; border: 1px solid var(--a-line); border-radius: var(--radius, 3px); background: var(--a-surface);
	font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums;
	transition: border-color .2s, box-shadow .2s, transform .2s var(--a-ease);
}
.vy-otp__cells span.is-filled { animation: vy-a-digit .25s var(--a-ease); }
.vy-otp__cells span.is-active { border-color: var(--a-ink); box-shadow: 0 0 0 3px rgba(21, 21, 21, .08); }
.vy-otp__cells span.is-active:empty::after { content: ''; width: 2px; height: 26px; background: var(--a-ink); animation: vy-a-caret 1s steps(1) infinite; }
.vy-otp.is-error .vy-otp__cells span { border-color: var(--a-error); }
.vy-otp.is-error .vy-otp__cells { animation: vy-a-shake .4s; }
.vy-otp.is-ok .vy-otp__cells span { border-color: var(--a-ok); color: var(--a-ok); }
@keyframes vy-a-digit { from { transform: scale(.85); } to { transform: none; } }
@keyframes vy-a-caret { 50% { opacity: 0; } }
@keyframes vy-a-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.vy-auth__error {
	margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm, 2px);
	background: #FBEDEA; color: var(--a-error); font-size: 14px; font-weight: 500;
	animation: vy-a-fade .25s ease;
}
.vy-auth__error[hidden] { display: none; }

.vy-auth__done { text-align: center; padding: 16px 0 8px; }
.vy-auth__check { margin: 0 auto 18px; display: block; }
.vy-auth__check circle { stroke: var(--a-ok); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: vy-a-draw .6s var(--a-ease) forwards; }
.vy-auth__check path { stroke: var(--a-ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: vy-a-draw .4s .45s var(--a-ease) forwards; }
@keyframes vy-a-draw { to { stroke-dashoffset: 0; } }

/* Entry point on My Account login page */
.vy-auth-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 24px; margin-bottom: 8px; border: 1px solid var(--line, #E6E3DC); border-radius: var(--radius, var(--radius, 3px));
	background: var(--accent-soft, #F4ECE2);
}
.vy-auth-cta strong { display: block; font-size: 16px; }
.vy-auth-cta span { display: block; font-size: 14px; color: var(--muted, #77746D); }
.woocommerce .vy-auth-cta .vy-auth-cta__btn { flex-shrink: 0; }
@media (max-width: 599px) { .woocommerce .vy-auth-cta .vy-auth-cta__btn { width: 100%; } }
.vy-auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted, #77746D); font-size: 13px; }
.vy-auth-or::before, .vy-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line, #E6E3DC); }

@media (prefers-reduced-motion: reduce) {
	.vy-auth *, .vy-auth__panel { animation-duration: .01ms !important; }
	.vy-auth__check circle, .vy-auth__check path { stroke-dashoffset: 0; }
}

/* Mobile / Email switch */
.vy-auth__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; padding: 4px; border-radius: var(--r-pill, 2px); background: var(--a-soft); }
.vy-auth__tabs[hidden] { display: none; }
.vy-auth__tab {
	position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 42px; border: 0; border-radius: var(--r-pill, 2px); background: none; color: var(--a-muted);
	font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: color .25s;
}
.vy-auth__tab.is-active { color: var(--a-ink); }
.vy-auth__tab-pill {
	position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill, 2px);
	background: var(--a-surface); box-shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 4px 12px rgba(20, 20, 20, .06);
	transition: transform .35s var(--a-ease);
}
.vy-auth__tabs.is-email .vy-auth__tab-pill { transform: translateX(100%); }

/* Email forms */
.vy-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.vy-auth__label-row .vy-auth__label { margin: 0; }
.vy-auth__forgot { font-size: 13px; font-weight: 550; color: var(--a-muted); text-decoration: underline; text-underline-offset: 3px; }
.vy-auth__forgot:hover { color: var(--a-ink); }
.vy-auth__pass { position: relative; }
.vy-auth__pass .vy-auth__input { padding-right: 52px; }
.vy-auth__eye {
	position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-pill, 2px);
	background: none; color: var(--a-muted); cursor: pointer;
}
.vy-auth__eye:hover, .vy-auth__eye[aria-pressed="true"] { background: var(--a-soft); color: var(--a-ink); }
.vy-auth__switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--a-muted); }
.vy-auth__hint { margin: 2px 0 0; font-size: 13px; color: var(--a-muted); }
button.vy-auth__alt { width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Vyybe Street ---------- */
.vy-auth__panel { border: 1px solid var(--a-ink); box-shadow: none; padding-top: 10px; }
@media (min-width: 640px) { .vy-auth__panel { width: 420px; padding: 14px 28px 28px; box-shadow: 6px 6px 0 var(--a-ink); } }
.vy-auth__panel::before { border-radius: 0; height: 3px; }
.vy-auth__steps li { border-radius: 0; height: 3px; }
.vy-auth__steps li.is-on { background: var(--a-ink); }
.vy-auth__icon-btn { border-radius: var(--radius-sm, 2px); }
.vy-auth__tabs { padding: 3px; border: 1px solid var(--a-ink); background: var(--a-surface); margin-bottom: 16px; }
.vy-auth__tab { height: 38px; font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.vy-auth__tab.is-active { color: var(--a-ink); }
.vy-auth__tab-pill { background: var(--accent, #C6FF1A); box-shadow: none; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); }
.vy-auth__badge { width: 44px; height: 44px; margin-bottom: 12px; background: var(--accent, #C6FF1A); color: var(--a-ink); }
.vy-auth__title { font-size: 28px; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.vy-auth__sub { margin-bottom: 18px; font-size: 14px; }
.vy-auth__label { font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.vy-auth__phone, .vy-auth__input { height: 50px; border-color: #C9C9C2; }
.vy-auth__phone:focus-within, .vy-auth__input:focus { border-color: var(--a-ink); box-shadow: 0 0 0 3px var(--accent, #C6FF1A); }
.vy-auth__cc { font-family: var(--font-mono, monospace); font-size: 14px; }
.vy-auth__btn { height: 50px; margin-top: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transition: transform .12s, box-shadow .12s, background-color .15s, color .15s; }
.vy-auth__btn:hover { background: var(--accent, #C6FF1A); color: var(--a-ink); box-shadow: 3px 3px 0 var(--a-ink); transform: translate(-2px, -2px); outline: 1px solid var(--a-ink); }
.vy-otp__cells { gap: 6px; }
.vy-otp__cells span { height: 54px; border-color: #C9C9C2; font-family: var(--font-mono, monospace); }
.vy-otp__cells span.is-active { border-color: var(--a-ink); box-shadow: 0 0 0 3px var(--accent, #C6FF1A); }
.vy-auth__dev { border-radius: 0; font-family: var(--font-mono, monospace); font-size: 12px; }
.vy-auth__error { border-radius: 0; border-left: 3px solid var(--a-error); }
.vy-auth__fine, .vy-auth__switch { font-size: 12.5px; }
.vy-auth__check circle, .vy-auth__check path { stroke: var(--a-ink); }
.vy-auth-or { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Phone field: one control, one focus ring ----------
   The theme's global :focus-visible ring was also drawn on the inner input, doubling the outline. */
.vy-auth__phone { position: relative; overflow: hidden; padding: 0; }
.vy-auth__phone input:focus, .vy-auth__phone input:focus-visible { outline: none; box-shadow: none; border-radius: 0; }
.vy-auth__cc {
	align-self: stretch; height: auto; margin: 0; padding: 0 14px; display: grid; place-items: center;
	background: var(--soft, #EAEAE6); border-right: 1px solid #C9C9C2; color: var(--a-ink);
	font-family: var(--font-mono, monospace); font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.vy-auth__phone:focus-within .vy-auth__cc { border-right-color: var(--a-ink); }
.vy-auth__phone input { padding: 0 14px; font-family: var(--font, inherit); font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.vy-auth__phone input::placeholder, .vy-auth__input::placeholder { color: #A3A39C; font-weight: 400; letter-spacing: .03em; }
.vy-auth__input:focus-visible { outline: none; border-color: var(--a-ink); box-shadow: 0 0 0 3px var(--accent, #C6FF1A); }
.vy-auth__phone, .vy-auth__input { border-radius: var(--radius-sm, 2px); }

/* ---------- Phone.Email button area ---------- */
.vy-auth__pe { display: grid; gap: 10px; justify-items: stretch; min-height: 56px; margin-top: 4px; }
.vy-auth__pe .pe_signin_button { display: flex; justify-content: center; }
.vy-auth__pe .pe_signin_button > * { max-width: 100%; }
.vy-auth__pe.is-busy .pe_signin_button { opacity: .4; pointer-events: none; }
.vy-auth__pe-status { margin: 0; min-height: 1em; text-align: center; font-family: var(--font-mono, monospace); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--a-muted); }
