/**
 * VSH SMART AUTH v1.4.0
 * Font UI nhỏ nhất 13px, không dùng font-size px số lẻ.
 * Input được tăng specificity + !important để đè CSS mặc định Flatsome.
 */

body:not(.logged-in) #login-form-popup {
	display: none !important;
}

.vsh-auth-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	box-shadow: none;
	font: inherit;
	line-height: inherit;
	text-decoration: none;
	cursor: pointer;
}
.vsh-auth-trigger:hover { color: var(--vsh-blue, var(--primary-color)); }
.vsh-auth-trigger-icon { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; }
.vsh-auth-trigger-icon svg { display:block; }

/* MODAL */
body.vsh-auth-opened { overflow:hidden; }
.vsh-auth-modal {
	position:fixed; inset:0; z-index:999999;
	display:flex; align-items:center; justify-content:center;
	padding:18px; opacity:0; visibility:hidden;
	transition:opacity .18s ease, visibility .18s ease;
}
.vsh-auth-modal[hidden] { display:none !important; }
.vsh-auth-modal.is-open { opacity:1; visibility:visible; }
.vsh-auth-backdrop {
	position:absolute; inset:0;
	background:rgba(9,23,46,.52);
	backdrop-filter:blur(3px);
	-webkit-backdrop-filter:blur(3px);
}
.vsh-auth-dialog {
	position:relative; z-index:1;
	width:min(100%,440px); max-height:min(90vh,760px);
	overflow-x:hidden; overflow-y:auto;
	background:var(--vsh-bg,#fff);
	border:1px solid var(--vsh-border,#e5ebf2);
	border-radius:14px;
	box-shadow:var(--vsh-shadow-lg,0 18px 50px rgba(16,48,90,.14));
	transform:translateY(8px) scale(.99);
	transition:transform .2s ease;
	scrollbar-width:thin;
	scrollbar-color:var(--vsh-scroll-thumb,#c5d2e0) transparent;
}
.vsh-auth-modal.is-open .vsh-auth-dialog { transform:translateY(0) scale(1); }
.vsh-auth-dialog::-webkit-scrollbar { width:5px; }
.vsh-auth-dialog::-webkit-scrollbar-thumb { background:var(--vsh-scroll-thumb,#c5d2e0); border-radius:999px; }

.vsh-auth-close {
	position:absolute; top:12px; right:12px; z-index:5;
	display:inline-flex; align-items:center; justify-content:center;
	width:32px; height:32px; margin:0; padding:0;
	color:var(--vsh-text-muted,#607086);
	background:var(--vsh-bg-soft,#f8fafc);
	border:1px solid var(--vsh-border,#e5ebf2);
	border-radius:50%; box-shadow:none;
	font-size:21px; font-weight:400; line-height:1; cursor:pointer;
}
.vsh-auth-close:hover {
	color:var(--vsh-heading,#172033);
	background:var(--vsh-blue-soft,#f9fbff);
	border-color:var(--vsh-border-hover,#bfd0e4);
}
.vsh-auth-head { padding:24px 56px 18px 22px; border-bottom:1px solid var(--vsh-border,#e5ebf2); }
.vsh-auth-head h2 {
	margin:0 0 4px; color:var(--vsh-heading,#172033);
	font-size:20px; font-weight:700; line-height:1.35;
	letter-spacing:-.02em; text-transform:none;
}
.vsh-auth-head-desc {
	margin:0; color:var(--vsh-text-muted,#607086);
	font-size:13px; line-height:1.5;
}
.vsh-auth-body { padding:20px 22px 22px; }
.vsh-auth-step { display:none; }
.vsh-auth-step.is-active { display:block; animation:vshAuthStep .2s ease both; }
@keyframes vshAuthStep {
	from { opacity:0; transform:translateX(5px); }
	to { opacity:1; transform:translateX(0); }
}

/* NOTICE */
.vsh-auth-global-notice {
	display:none; margin:14px 22px 0; padding:10px 12px;
	border-radius:var(--vsh-radius-sm,8px);
	font-size:13px; line-height:1.5;
}
.vsh-auth-global-notice.is-visible { display:block; }
.vsh-auth-global-notice.is-error { color:#a23a3a; background:#fff5f5; border:1px solid #f1caca; }
.vsh-auth-global-notice.is-success { color:#17643a; background:#f1fbf5; border:1px solid #c8e9d4; }

/* FORM */
.vsh-auth-form { margin:0; }
.vsh-auth-form > label,
.vsh-auth-extra-field > label {
	display:block; margin:0 0 6px;
	color:var(--vsh-text,#17263b);
	font-size:13px; font-weight:600; line-height:1.4;
}
.vsh-auth-extra-field > label span { color:var(--vsh-text-muted,#607086); font-weight:400; }
.vsh-auth-input-wrap,
.vsh-auth-password-wrap { position:relative; margin:0 0 13px; }
.vsh-auth-input-wrap input,
.vsh-auth-password-wrap input {
	display:block; width:100%; height:44px; margin:0; padding:0 12px;
	color:var(--vsh-text,#17263b); background:var(--vsh-bg,#fff);
	border:1px solid var(--vsh-border-strong,#d8e2ee);
	border-radius:var(--vsh-radius-sm,8px); box-shadow:none; outline:0;
	font-size:13px; line-height:42px;
	transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.vsh-auth-password-wrap input { padding-right:44px; }
.vsh-auth-input-wrap input:focus,
.vsh-auth-password-wrap input:focus {
	background:#fff; border-color:var(--vsh-blue,var(--primary-color));
	box-shadow:var(--vsh-focus-ring,0 0 0 3px rgba(25,85,181,.10));
}
.vsh-auth-input-wrap input.is-invalid,
.vsh-auth-password-wrap input.is-invalid { border-color:#e39a9a; }
.vsh-auth-input-wrap input::placeholder,
.vsh-auth-password-wrap input::placeholder { color:#9aa6b5; opacity:1; }

.vsh-auth-password-toggle {
	position:absolute; top:50%; right:5px;
	display:inline-flex; align-items:center; justify-content:center;
	width:34px; height:34px; margin:0; padding:0;
	color:var(--vsh-text-muted,#607086); background:transparent;
	border:0; box-shadow:none; transform:translateY(-50%); cursor:pointer;
}
.vsh-auth-password-toggle:hover,
.vsh-auth-password-toggle.is-visible { color:var(--vsh-blue,var(--primary-color)); }

.vsh-auth-form-error {
	display:none; margin:-4px 0 10px;
	color:#c33f3f; font-size:13px; line-height:1.5;
}
.vsh-auth-form-error.is-visible { display:block; }
.vsh-auth-hint {
	margin:-6px 0 12px; color:var(--vsh-text-muted,#607086);
	font-size:13px; line-height:1.5;
}
.vsh-auth-hint.is-center { margin:8px 12px 0; text-align:center; }

/* BUTTONS */
.vsh-auth-btn {
	display:inline-flex; align-items:center; justify-content:center;
	width:100%; min-height:44px; margin:0; padding:0 16px;
	border-radius:var(--vsh-radius-sm,8px); box-shadow:none;
	font-size:13px; font-weight:400; line-height:1.25;
	letter-spacing:0; text-align:center; text-transform:none; cursor:pointer;
	transition:color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.vsh-auth-btn-primary {
	color:#fff;
	background:var(--vsh-blue,var(--primary-color));
	border:1px solid var(--vsh-blue,var(--primary-color));
}
.vsh-auth-btn-primary:hover {
	color:#fff; background:var(--vsh-blue-hover,#1149a6);
	border-color:var(--vsh-blue-hover,#1149a6);
	box-shadow:0 7px 18px rgba(25,85,181,.18);
	transform:translateY(-1px);
}
.vsh-auth-btn-outline {
	color:var(--vsh-blue,var(--primary-color));
	background:var(--vsh-bg,#fff);
	border:1px solid var(--vsh-border-hover,#bfd0e4);
}
.vsh-auth-btn-outline:hover {
	color:var(--vsh-blue-hover,#1149a6);
	background:var(--vsh-blue-soft,#f9fbff);
	border-color:var(--vsh-blue,var(--primary-color));
}
.vsh-auth-btn:disabled,
.vsh-auth-btn.is-loading { opacity:.65; cursor:wait; transform:none; }


/* =========================================================
   INPUT OVERRIDE - FLATSOME
========================================================= */

body #vsh-auth-modal input[type="text"],
body #vsh-auth-modal input[type="email"],
body #vsh-auth-modal input[type="tel"],
body #vsh-auth-modal input[type="password"],
body #vsh-auth-modal input[type="number"],
body #vsh-auth-modal input[type="search"],
body #vsh-auth-modal input[type="url"],
body #vsh-auth-modal select,
body #vsh-auth-modal textarea {
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 13px !important;
	color: var(--vsh-text, #17263b) !important;
	background-color: var(--vsh-bg, #fff) !important;
	border: 1px solid var(--vsh-border-strong, #d8e2ee) !important;
	border-radius: var(--vsh-radius-sm, 8px) !important;
	box-shadow: none !important;
	outline: none !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	vertical-align: middle !important;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

body #vsh-auth-modal textarea {
	height: auto !important;
	min-height: 96px !important;
	padding-top: 11px !important;
	padding-bottom: 11px !important;
	line-height: 1.5 !important;
	resize: vertical;
}

body #vsh-auth-modal input[type="text"]:focus,
body #vsh-auth-modal input[type="email"]:focus,
body #vsh-auth-modal input[type="tel"]:focus,
body #vsh-auth-modal input[type="password"]:focus,
body #vsh-auth-modal input[type="number"]:focus,
body #vsh-auth-modal input[type="search"]:focus,
body #vsh-auth-modal input[type="url"]:focus,
body #vsh-auth-modal select:focus,
body #vsh-auth-modal textarea:focus {
	color: var(--vsh-text, #17263b) !important;
	background-color: #fff !important;
	border-color: var(--vsh-blue, var(--primary-color)) !important;
	box-shadow: var(--vsh-focus-ring, 0 0 0 3px rgba(25,85,181,.10)) !important;
}

body #vsh-auth-modal input.is-invalid,
body #vsh-auth-modal textarea.is-invalid,
body #vsh-auth-modal select.is-invalid {
	border-color: #e39a9a !important;
	box-shadow: 0 0 0 3px rgba(195,63,63,.08) !important;
}

body #vsh-auth-modal input::placeholder,
body #vsh-auth-modal textarea::placeholder {
	color: #94a0af !important;
	opacity: 1 !important;
}


/* LOGIN / REGISTER DETAILS */
.vsh-auth-back {
	display:inline-flex; align-items:center; gap:5px;
	margin:0 0 12px; padding:0;
	color:var(--vsh-blue,var(--primary-color));
	background:transparent; border:0; box-shadow:none;
	font-size:13px; font-weight:400; line-height:1.4;
	text-transform:none; cursor:pointer;
}
.vsh-auth-back:hover { color:var(--vsh-blue-hover,#1149a6); }
.vsh-auth-identity {
	display:flex; flex-direction:column; gap:2px;
	margin:0 0 16px; padding:10px 12px;
	background:var(--vsh-bg-soft,#f8fafc);
	border:1px solid var(--vsh-border,#e5ebf2);
	border-radius:var(--vsh-radius-sm,8px);
}
.vsh-auth-identity-label { color:var(--vsh-text-muted,#607086); font-size:13px; line-height:1.4; }
.vsh-auth-identity strong {
	color:var(--vsh-heading,#172033); font-size:13px;
	font-weight:700; line-height:1.45; word-break:break-word;
}
.vsh-auth-row {
	display:flex; align-items:center; justify-content:space-between;
	gap:12px; margin:-2px 0 13px;
}
.vsh-auth-check {
	display:inline-flex !important; align-items:center; gap:6px;
	margin:0 !important; color:var(--vsh-text-muted,#607086) !important;
	font-size:13px !important; font-weight:400 !important; cursor:pointer;
}
.vsh-auth-check input {
	width:14px; height:14px; margin:0;
	accent-color:var(--vsh-blue,var(--primary-color));
}
.vsh-auth-forgot {
	color:var(--vsh-blue,var(--primary-color));
	font-size:13px; font-weight:600; text-decoration:none;
}
.vsh-auth-forgot.is-hidden { display:none; }
.vsh-auth-divider {
	position:relative; display:flex; align-items:center; justify-content:center;
	margin:16px 0; color:var(--vsh-text-muted,#607086);
	font-size:13px; line-height:1;
}
.vsh-auth-divider::before {
	content:""; position:absolute; top:50%; right:0; left:0;
	height:1px; background:var(--vsh-border,#e5ebf2);
}
.vsh-auth-divider span {
	position:relative; z-index:1; padding:0 10px;
	background:var(--vsh-bg,#fff);
}
.vsh-auth-privacy {
	margin:15px 8px 0; color:var(--vsh-text-muted,#607086);
	font-size:13px; line-height:1.55; text-align:center;
}
.vsh-auth-privacy a {
	color:var(--vsh-blue,var(--primary-color));
	font-weight:600; text-decoration:none;
}

/* NEXTEND */
.vsh-auth-social { margin-top:0; }
.vsh-auth-social .nsl-container { width:100%; margin:0 !important; }
.vsh-auth-social .nsl-container .nsl-button {
	min-height:42px; border-radius:var(--vsh-radius-sm,8px) !important;
	box-shadow:none !important; font-size:13px;
}
.vsh-auth-social .nsl-container-buttons { width:100% !important; }

/* OTP */
.vsh-auth-otp-intro { margin:0 0 18px; text-align:center; }
.vsh-auth-otp-intro h3 {
	margin:0 0 6px; color:var(--vsh-heading,#172033);
	font-size:17px; font-weight:700; line-height:1.4; text-transform:none;
}
.vsh-auth-otp-intro p {
	margin:0; color:var(--vsh-text-muted,#607086);
	font-size:13px; line-height:1.5;
}
.vsh-auth-otp-intro strong { color:var(--vsh-heading,#172033); font-weight:700; }
.vsh-auth-otp-inputs {
	display:grid; grid-template-columns:repeat(6,1fr);
	gap:7px; margin:0 0 14px;
}
.vsh-auth-otp-inputs input {
	width:100%; min-width:0; height:48px; margin:0; padding:0;
	color:var(--vsh-heading,#172033); background:var(--vsh-bg,#fff);
	border:1px solid var(--vsh-border-strong,#d8e2ee);
	border-radius:var(--vsh-radius-sm,8px);
	box-shadow:none; outline:0; font-size:18px; font-weight:700;
	line-height:46px; text-align:center;
	transition:border-color .18s ease, box-shadow .18s ease;
}
.vsh-auth-otp-inputs input:focus {
	border-color:var(--vsh-blue,var(--primary-color));
	box-shadow:var(--vsh-focus-ring,0 0 0 3px rgba(25,85,181,.10));
}
.vsh-auth-otp-inputs input.is-invalid { border-color:#e39a9a; }
.vsh-auth-resend {
	display:block; margin:12px auto 0; padding:0;
	color:var(--vsh-blue,var(--primary-color));
	background:transparent; border:0; box-shadow:none;
	font-size:13px; font-weight:400; line-height:1.4;
	text-transform:none; cursor:pointer;
}
.vsh-auth-resend:disabled { color:var(--vsh-text-muted,#607086); cursor:default; }

/* CHECKOUT */
.vsh-checkout-auth-prompt {
	display:flex; align-items:center; gap:10px;
	margin:0 0 14px; padding:11px 13px;
	background:var(--vsh-bg,#fff);
	border:1px solid var(--vsh-border,#e5ebf2);
	border-radius:var(--vsh-radius,10px);
	box-shadow:var(--vsh-shadow-sm,0 2px 6px rgba(16,48,90,.04));
}
.vsh-checkout-auth-icon {
	display:flex; flex:0 0 34px; align-items:center; justify-content:center;
	width:34px; height:34px; color:var(--vsh-blue,var(--primary-color));
	background:var(--vsh-blue-soft,#f9fbff);
	border-radius:var(--vsh-radius-sm,8px);
}
.vsh-checkout-auth-copy {
	display:flex; flex:1 1 auto; min-width:0;
	flex-direction:column; gap:1px;
}
.vsh-checkout-auth-copy strong {
	color:var(--vsh-heading,#172033);
	font-size:13px; font-weight:700; line-height:1.4;
}
.vsh-checkout-auth-copy span {
	color:var(--vsh-text-muted,#607086);
	font-size:13px; line-height:1.4;
}
.vsh-checkout-auth-link {
	flex:0 0 auto; margin:0; padding:5px 0;
	color:var(--vsh-blue,var(--primary-color));
	background:transparent; border:0; box-shadow:none;
	font-size:13px; font-weight:400; line-height:1.3;
	text-transform:none; cursor:pointer;
}
.vsh-checkout-auth-link:hover { color:var(--vsh-blue-hover,#1149a6); }

/* MY ACCOUNT */
.vsh-auth-replace-myaccount #customer_login { display:none !important; }
.vsh-myaccount-auth-card {
	width:min(100%,430px); margin:20px auto; padding:24px;
	background:var(--vsh-bg,#fff);
	border:1px solid var(--vsh-border,#e5ebf2);
	border-radius:12px;
	box-shadow:var(--vsh-shadow-card,0 8px 26px rgba(16,48,90,.07));
	text-align:center;
}
.vsh-myaccount-auth-icon {
	display:flex; align-items:center; justify-content:center;
	width:46px; height:46px; margin:0 auto 12px;
	color:var(--vsh-blue,var(--primary-color));
	background:var(--vsh-blue-soft,#f9fbff);
	border:1px solid var(--vsh-border,#e5ebf2);
	border-radius:12px;
}
.vsh-myaccount-auth-card h2 {
	margin:0 0 6px; color:var(--vsh-heading,#172033);
	font-size:19px; font-weight:700; text-transform:none;
}
.vsh-myaccount-auth-card p {
	margin:0 0 16px; color:var(--vsh-text-muted,#607086);
	font-size:13px; line-height:1.55;
}

@media (max-width:549px) {
	.vsh-auth-modal { align-items:flex-end; padding:0; }
	.vsh-auth-dialog {
		width:100%; max-height:92vh;
		border-right:0; border-bottom:0; border-left:0;
		border-radius:16px 16px 0 0;
		transform:translateY(16px);
	}
	.vsh-auth-head { padding:19px 50px 14px 16px; }
	.vsh-auth-head h2 { font-size:18px; }
	.vsh-auth-body { padding:17px 16px calc(20px + env(safe-area-inset-bottom)); }
	.vsh-auth-global-notice { margin-right:16px; margin-left:16px; }
	.vsh-auth-input-wrap input,
	.vsh-auth-password-wrap input { height:43px; font-size:13px; }
	.vsh-auth-btn { min-height:43px; font-size:13px; }
	.vsh-auth-otp-inputs { gap:5px; }
	.vsh-auth-otp-inputs input { height:46px; font-size:17px; }
	.vsh-checkout-auth-prompt { align-items:flex-start; flex-wrap:wrap; }
	.vsh-checkout-auth-copy { padding-top:1px; }
	.vsh-checkout-auth-link {
		flex:0 0 100%; padding:3px 0 0 44px; text-align:left;
	}
	.vsh-myaccount-auth-card { margin:12px auto; padding:20px 16px; }
}


/* LINKED SOCIAL ACCOUNTS - MY ACCOUNT */
.vsh-social-accounts-card {
	margin:18px 0 0;
	padding:16px;
	background:var(--vsh-bg,#fff);
	border:1px solid var(--vsh-border,#e5ebf2);
	border-radius:var(--vsh-radius,10px);
	box-shadow:var(--vsh-shadow-sm,0 2px 6px rgba(16,48,90,.04));
}
.vsh-social-accounts-head {
	display:flex;
	flex-direction:column;
	gap:2px;
	margin-bottom:12px;
}
.vsh-social-accounts-head strong {
	color:var(--vsh-heading,#172033);
	font-size:13px;
	font-weight:700;
	line-height:1.4;
}
.vsh-social-accounts-head span {
	color:var(--vsh-text-muted,#607086);
	font-size:13px;
	line-height:1.5;
}
.vsh-social-accounts-buttons .nsl-container {
	margin:0 !important;
	width:100%;
}
.vsh-social-accounts-buttons .nsl-container-buttons {
	width:100% !important;
}
.vsh-social-accounts-buttons .nsl-button {
	border-radius:var(--vsh-radius-sm,8px) !important;
	box-shadow:none !important;
}


/* =========================================================
   FLATSOME LOGIN BYPASS
========================================================= */

/*
 * Khi chưa đăng nhập, VSH Smart Auth tiếp quản account/login UI.
 * JS chặn click ở capture phase; CSS này là lớp fallback để
 * Flatsome không hiện popup login cũ nếu một script khác gọi trực tiếp.
 */
body:not(.logged-in) #login-form-popup {
	display: none !important;
}


/* =========================================================
   OTP RISK / LOCK STATUS
========================================================= */

.vsh-auth-otp-status,
.vsh-auth-otp-policy-note {
	margin: 8px 2px 0;
	padding: 9px 10px;

	color: #8a5a00;
	background: #fff9e8;

	border: 1px solid #f0dfad;
	border-radius: var(--vsh-radius-sm, 8px);

	font-size:13px;
	font-weight: 500;
	line-height: 1.5;
}

.vsh-auth-otp-status[hidden],
.vsh-auth-otp-policy-note[hidden] {
	display: none !important;
}

.vsh-auth-btn.is-otp-blocked,
.vsh-auth-btn.is-otp-blocked:hover {
	color: var(--vsh-text-muted, #607086);
	background: var(--vsh-bg-soft, #f8fafc);
	border-color: var(--vsh-border, #e5ebf2);

	box-shadow: none;
	transform: none;

	cursor: not-allowed;
}

.vsh-auth-otp-inputs input:disabled {
	color: var(--vsh-text-muted, #607086);
	background: var(--vsh-bg-soft, #f8fafc);

	cursor: not-allowed;
	opacity: .72;
}

@media (max-width: 549px) {
	.vsh-auth-otp-status,
	.vsh-auth-otp-policy-note {
		font-size:13px;
	}
}


/* Fallback: nếu Flatsome/WooCommerce vẫn render login checkout cũ */
.vsh-auth-replace-checkout-login .woocommerce-form-login-toggle,
.vsh-auth-replace-checkout-login form.woocommerce-form-login.login {
	display: none !important;
}


/* =========================================================
   FORGOT / RESET PASSWORD
========================================================= */

.vsh-auth-section-intro {
	margin: 0 0 16px;
}

.vsh-auth-section-intro h3 {
	margin: 0 0 5px;
	color: var(--vsh-heading, #172033);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}

.vsh-auth-section-intro p {
	margin: 0;
	color: var(--vsh-text-muted, #607086);
	font-size: 13px;
	line-height: 1.55;
}

.vsh-auth-recovery-box {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0 0 14px;
	padding: 12px 13px;
	background: var(--vsh-blue-soft, #f9fbff);
	border: 1px solid var(--vsh-border-hover, #bfd0e4);
	border-radius: var(--vsh-radius-sm, 8px);
}

.vsh-auth-recovery-box span {
	color: var(--vsh-text-muted, #607086);
	font-size: 13px;
	line-height: 1.45;
}

.vsh-auth-recovery-box strong {
	color: var(--vsh-heading, #172033);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	word-break: break-word;
}



/* OTP input override after global input rules */
body #vsh-auth-modal .vsh-auth-otp-inputs input {
	width: 100% !important;
	min-width: 0 !important;
	height: 50px !important;
	min-height: 50px !important;
	padding: 0 !important;
	color: var(--vsh-heading, #172033) !important;
	background: var(--vsh-bg, #fff) !important;
	border: 1px solid var(--vsh-border-strong, #d8e2ee) !important;
	border-radius: var(--vsh-radius-sm, 8px) !important;
	box-shadow: none !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 48px !important;
	text-align: center !important;
}

body #vsh-auth-modal .vsh-auth-otp-inputs input:focus {
	border-color: var(--vsh-blue, var(--primary-color)) !important;
	box-shadow: var(--vsh-focus-ring, 0 0 0 3px rgba(25,85,181,.10)) !important;
}



/* =========================================================
   LOST PASSWORD OTP PAGE - v1.3.0
========================================================= */

/* Chỉ ẩn form lost-password mặc định khi VSH OTP page thực sự được kích hoạt.
   Các link reset cũ có show-reset-form/key vẫn dùng template WooCommerce bình thường. */
body.vsh-auth-lost-password-otp-page form.woocommerce-ResetPassword.lost_reset_password {
	display: none !important;
}

.vsh-auth-lost-page {
	width: min(100%, 500px);
	margin: 30px auto 48px;
	padding: 0 16px;
}

.vsh-auth-lost-card {
	overflow: hidden;
	background: var(--vsh-bg, #fff);
	border: 1px solid var(--vsh-border, #e5ebf2);
	border-radius: 14px;
	box-shadow: var(--vsh-shadow-card, 0 8px 26px rgba(16,48,90,.07));
}

.vsh-auth-lost-head {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 22px;
	border-bottom: 1px solid var(--vsh-border, #e5ebf2);
}

.vsh-auth-lost-icon {
	display: inline-flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--vsh-blue, var(--primary-color));
	background: var(--vsh-blue-soft, #f9fbff);
	border: 1px solid var(--vsh-border-hover, #bfd0e4);
	border-radius: 11px;
}

.vsh-auth-lost-icon svg {
	display: block;
}

.vsh-auth-lost-head h2 {
	margin: 0 0 4px;
	color: var(--vsh-heading, #172033);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}

.vsh-auth-lost-head p {
	margin: 0;
	color: var(--vsh-text-muted, #607086);
	font-size: 13px;
	line-height: 1.55;
}

.vsh-auth-lost-step {
	display: none;
	padding: 22px;
}

.vsh-auth-lost-step.is-active {
	display: block;
	animation: vshAuthStep .2s ease both;
}

.vsh-auth-lost-form {
	margin: 0;
}

.vsh-auth-lost-form > label {
	display: block;
	margin: 0 0 7px;
	color: var(--vsh-text, #17263b);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.vsh-auth-lost-login-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 15px;
	color: var(--vsh-blue, var(--primary-color));
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.vsh-auth-lost-login-link:hover {
	color: var(--vsh-blue-hover, #1149a6);
}

.vsh-auth-lost-notice {
	display: none;
	margin: 16px 22px 0;
	padding: 11px 13px;
	border-radius: var(--vsh-radius-sm, 8px);
	font-size: 13px;
	line-height: 1.55;
}

.vsh-auth-lost-notice.is-visible {
	display: block;
}

.vsh-auth-lost-notice.is-error {
	color: #a23a3a;
	background: #fff5f5;
	border: 1px solid #f1caca;
}

.vsh-auth-lost-notice.is-success {
	color: #17643a;
	background: #f1fbf5;
	border: 1px solid #c8e9d4;
}

/* Đè CSS input mặc định Flatsome. */
body #vsh-auth-lost-page input[type="text"],
body #vsh-auth-lost-page input[type="email"],
body #vsh-auth-lost-page input[type="tel"],
body #vsh-auth-lost-page input[type="password"],
body #vsh-auth-lost-page input[type="number"],
body #vsh-auth-lost-page input[type="search"],
body #vsh-auth-lost-page input[type="url"],
body #vsh-auth-lost-page select,
body #vsh-auth-lost-page textarea {
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 13px !important;
	color: var(--vsh-text, #17263b) !important;
	background-color: var(--vsh-bg, #fff) !important;
	border: 1px solid var(--vsh-border-strong, #d8e2ee) !important;
	border-radius: var(--vsh-radius-sm, 8px) !important;
	box-shadow: none !important;
	outline: none !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	vertical-align: middle !important;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

body #vsh-auth-lost-page input[type="text"]:focus,
body #vsh-auth-lost-page input[type="email"]:focus,
body #vsh-auth-lost-page input[type="tel"]:focus,
body #vsh-auth-lost-page input[type="password"]:focus,
body #vsh-auth-lost-page input[type="number"]:focus,
body #vsh-auth-lost-page input[type="search"]:focus,
body #vsh-auth-lost-page input[type="url"]:focus,
body #vsh-auth-lost-page select:focus,
body #vsh-auth-lost-page textarea:focus {
	color: var(--vsh-text, #17263b) !important;
	background-color: #fff !important;
	border-color: var(--vsh-blue, var(--primary-color)) !important;
	box-shadow: var(--vsh-focus-ring, 0 0 0 3px rgba(25,85,181,.10)) !important;
}

body #vsh-auth-lost-page input.is-invalid,
body #vsh-auth-lost-page select.is-invalid,
body #vsh-auth-lost-page textarea.is-invalid {
	border-color: #e39a9a !important;
	box-shadow: 0 0 0 3px rgba(195,63,63,.08) !important;
}

body #vsh-auth-lost-page input::placeholder,
body #vsh-auth-lost-page textarea::placeholder {
	color: #94a0af !important;
	opacity: 1 !important;
}

/* OTP phải thắng cả rule input Flatsome lẫn rule VSH page chung. */
body #vsh-auth-lost-page .vsh-auth-otp-inputs input {
	width: 100% !important;
	min-width: 0 !important;
	height: 50px !important;
	min-height: 50px !important;
	padding: 0 !important;
	color: var(--vsh-heading, #172033) !important;
	background: var(--vsh-bg, #fff) !important;
	border: 1px solid var(--vsh-border-strong, #d8e2ee) !important;
	border-radius: var(--vsh-radius-sm, 8px) !important;
	box-shadow: none !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 48px !important;
	text-align: center !important;
}

body #vsh-auth-lost-page .vsh-auth-otp-inputs input:focus {
	border-color: var(--vsh-blue, var(--primary-color)) !important;
	box-shadow: var(--vsh-focus-ring, 0 0 0 3px rgba(25,85,181,.10)) !important;
}

@media (max-width: 549px) {
	.vsh-auth-lost-page {
		margin: 18px auto 34px;
		padding: 0 12px;
	}

	.vsh-auth-lost-head {
		padding: 18px 16px;
	}

	.vsh-auth-lost-head h2 {
		font-size: 19px;
	}

	.vsh-auth-lost-step {
		padding: 18px 16px;
	}

	.vsh-auth-lost-notice {
		margin-right: 16px;
		margin-left: 16px;
	}
}


/* =========================================================
   IDENTITY SECURITY - v1.4.0
========================================================= */
.vsh-identity-step { display: none; }
.vsh-identity-step.is-active { display: block; }
.vsh-identity-dialog { max-width: 480px; }
.vsh-identity-success-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	color: #17643a;
	background: #f1fbf5;
	border: 1px solid #c8e9d4;
	border-radius: 50%;
	font-size: 24px;
	font-weight: 400;
}
.vsh-identity-modal .vsh-auth-section-intro.is-center { text-align: center; }
.vsh-identity-modal .vsh-auth-section-intro.is-center p { max-width: 360px; margin-left: auto; margin-right: auto; }
.vsh-identity-modal .vsh-auth-btn,
.vsh-identity-modal .vsh-auth-back,
.vsh-identity-modal .vsh-auth-resend,
.vsh-identity-modal .vsh-auth-close { font-weight: 400 !important; }

body #vsh-identity-modal input[type="text"],
body #vsh-identity-modal input[type="email"],
body #vsh-identity-modal input[type="tel"],
body #vsh-identity-modal input[type="password"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 13px !important;
	color: var(--vsh-text, #17263b) !important;
	background-color: var(--vsh-bg, #fff) !important;
	border: 1px solid var(--vsh-border-strong, #d8e2ee) !important;
	border-radius: var(--vsh-radius-sm, 8px) !important;
	box-shadow: none !important;
	outline: none !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}
body #vsh-identity-modal input:focus {
	border-color: var(--vsh-blue, var(--primary-color)) !important;
	box-shadow: var(--vsh-focus-ring, 0 0 0 3px rgba(25,85,181,.10)) !important;
}
.vsh-identity-modal form > label {
	display: block;
	margin: 0 0 6px;
	color: var(--vsh-text, #17263b);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

/* =========================================================
   ORDER RECEIVED AUTH - v1.8.0
========================================================= */
.vsh-order-auth {
	box-sizing: border-box;
	width: 100%;
	max-width: 540px;
	margin: 24px auto;
	padding: 28px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--vsh-border, #e6ebf1);
	border-radius: var(--vsh-radius, 12px);
	box-shadow: 0 8px 28px rgba(23, 32, 51, .06);
}

.vsh-order-auth-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	color: var(--vsh-blue, var(--primary-color));
	background: #f4f7fb;
	border-radius: 50%;
}

.vsh-order-auth h3 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.35;
}

.vsh-order-auth p {
	max-width: 440px;
	margin: 0 auto 20px;
	color: var(--vsh-muted, #667085);
	font-size: 14px;
	line-height: 1.65;
}

.vsh-order-auth .vsh-order-auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 330px;
	margin: 0 auto;
	text-decoration: none;
}

body.vsh-auth-order-received-required .woocommerce-order > .woocommerce-notice,
body.vsh-auth-order-received-required .woocommerce-order > .woocommerce-thankyou-order-received {
	margin-bottom: 16px;
}

@media (max-width: 549px) {
	.vsh-order-auth {
		margin: 18px auto;
		padding: 22px 16px;
	}
}
