/*
 * Structural CSS only. Visual branding and form styling are controlled from
 * the Elementor "VP-Vita Access Form" widget Style tab.
 */
html,
body.vp-vita-gate-active {
	min-height: 100%;
}

body.vp-vita-gate-active {
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto !important;
}

#vp-vita-gate-shell {
	min-height: 100vh;
	overflow: visible;
}

.vpvita-access-form-wrap,
.vpvita-form,
.vpvita-field {
	width: 100%;
}

.vpvita-field label {
	display: block;
	margin-bottom: 7px;
}

.vpvita-field input[type="email"],
.vpvita-field input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
}

.vpvita-field small {
	display: block;
	margin-top: 5px;
}

.vpvita-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
}

.vpvita-checkbox input {
	margin-top: 3px;
}

.vpvita-button {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.vpvita-form-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
}

.vpvita-link-button {
	border: 0;
	padding: 0;
	background: transparent;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.vpvita-alert,
.vpvita-verify-box {
	box-sizing: border-box;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid currentColor;
}

.vpvita-verify-box p {
	margin: 6px 0 0;
}

.vpvita-fallback {
	box-sizing: border-box;
	max-width: 620px;
	margin: 0 auto;
	padding: 40px 20px;
}

/*
 * Access gate entrance animation only.
 * The visual design remains controlled by Elementor.
 */
@media (prefers-reduced-motion: no-preference) {
	body.vp-vita-gate-active.vp-vita-gate-animate #vp-vita-gate-shell {
		animation: vpVitaGateSlideIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
		will-change: transform, opacity;
	}

	@keyframes vpVitaGateSlideIn {
		from {
			transform: translate3d(100%, 0, 0);
			opacity: 0.96;
		}
		to {
			transform: translate3d(0, 0, 0);
			opacity: 1;
		}
	}
}

/* ================================================================
   v0.5.6 OPTIONAL AFTER-LOAD OVERLAY + RTL ENTRANCE FIX
   Controlled by SCF option: vpv_gate_overlay_after_load

   Important:
   - The underlying requested page remains visible until window.load.
   - JS then adds .vp-vita-gate-overlay-visible.
   - If animation is enabled, the GATE SHELL starts at 100% right and
     slides right-to-left into place.
   - If animation is disabled or reduced motion is requested, it appears
     instantly.
   ================================================================ */

#vp-vita-gate-overlay.vp-vita-gate-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: transparent;
	visibility: hidden;
	pointer-events: none;
}

#vp-vita-gate-overlay #vp-vita-gate-shell {
	position: relative;
	width: 100%;
	min-height: 100vh;
	overflow: visible;
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

/*
 * The overlay itself becomes active only after the page load runtime adds
 * this class. Keeping the overlay background transparent allows the visitor
 * to see the loaded page while the gate physically slides in from the right.
 */
body.vp-vita-gate-overlay-visible {
	overflow: hidden !important;
}

body.vp-vita-gate-overlay-visible #vp-vita-gate-overlay.vp-vita-gate-overlay {
	visibility: visible;
	pointer-events: auto;
}

/*
 * Dedicated overlay animation.
 * Do not reuse the original blocking-gate selector because that selector
 * requires body.vp-vita-gate-active and would never run in overlay mode.
 */
@media (prefers-reduced-motion: no-preference) {
	body.vp-vita-gate-overlay-visible.vp-vita-gate-animate
	#vp-vita-gate-overlay #vp-vita-gate-shell {
		animation: vpVitaGateOverlaySlideIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
		will-change: transform, opacity;
	}

	@keyframes vpVitaGateOverlaySlideIn {
		from {
			transform: translate3d(100%, 0, 0);
			opacity: 0.96;
		}
		to {
			transform: translate3d(0, 0, 0);
			opacity: 1;
		}
	}
}

/*
 * When animation is disabled, or the visitor requests reduced motion,
 * the overlay becomes visible immediately without a transform.
 */
body.vp-vita-gate-overlay-visible:not(.vp-vita-gate-animate)
#vp-vita-gate-overlay #vp-vita-gate-shell {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	body.vp-vita-gate-overlay-visible
	#vp-vita-gate-overlay #vp-vita-gate-shell {
		animation: none !important;
		transform: translate3d(0, 0, 0) !important;
		opacity: 1 !important;
	}
}


/* v0.5.7 — AJAX overlay step transitions */
#vp-vita-gate-overlay .vpvita-form.vpvita-is-submitting {
	opacity: .72;
	pointer-events: none;
}

#vp-vita-gate-overlay .vpvita-form.vpvita-is-submitting .vpvita-button {
	cursor: wait;
}

/* ================================================================
   v0.7.0 Research Gate + Account Access Portal
   Structural styles only; Elementor controls the visual design.
   ================================================================ */

.vpvita-field input[type="text"],
.vpvita-field input[type="tel"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
}

.vpvita-research-gate-wrap,
.vpvita-account-access-wrap {
	width: 100%;
}

.vpvita-research-gate-error[hidden] {
	display: none !important;
}

.vpvita-research-gate-error {
	box-sizing: border-box;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid currentColor;
}

.vpvita-research-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
}

.vpvita-research-register:disabled,
.vpvita-form button:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.vpvita-research-login,
.vpvita-research-register {
	min-width: 0;
}

.vpvita-is-submitting {
	opacity: .72;
	pointer-events: none;
}

.vpvita-account-switch {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 14px;
}

.vpvita-legal-note {
	box-sizing: border-box;
	margin: 0 0 12px;
}

.vpvita-consent-required-box .vpvita-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	text-decoration: none;
}

@media (max-width: 767px) {
	.vpvita-research-actions {
		grid-template-columns: 1fr;
	}
}


/* ================================================================
   v0.7.3 Research checkbox + equal action button controls
   ================================================================ */

/*
 * Use a custom visual checkbox instead of the browser-native checkbox.
 * This guarantees both confirmation boxes always render at exactly
 * the same dimensions in Chrome/Safari/Firefox and inside Elementor.
 */
.vpvita-research-confirmation {
	position: relative;
	display: flex;
	align-items: flex-start;
}

.vpvita-research-confirmation > input[type="checkbox"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.vpvita-research-checkbox-ui {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin: 0;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.vpvita-research-checkbox-ui::after {
	content: "";
	display: block;
	width: 30%;
	height: 55%;
	margin-top: -8%;
	border-style: solid;
	border-color: #fff;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: rotate(45deg) scale(.7);
	transform-origin: center;
	transition: opacity .14s ease, transform .14s ease;
}

.vpvita-research-confirmation > input[type="checkbox"]:checked + .vpvita-research-checkbox-ui {
	background-color: #7bc4ff;
	border-color: #7bc4ff;
}

.vpvita-research-confirmation > input[type="checkbox"]:checked + .vpvita-research-checkbox-ui::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.vpvita-research-confirmation > input[type="checkbox"]:focus-visible + .vpvita-research-checkbox-ui {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.vpvita-research-confirmation-text {
	min-width: 0;
	flex: 1 1 auto;
}

/*
 * Both action buttons must always occupy the same column width and
 * the same row height, even when their text lengths differ.
 */
.vpvita-research-actions {
	align-items: stretch;
}

.vpvita-research-actions .vpvita-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 46px;
	margin: 0;
	text-align: center;
	line-height: 1.25;
}

.vpvita-research-actions .vpvita-button > span {
	display: block;
	width: 100%;
}


/* ================================================================
   v0.7.4 Elementor Account Access widget
   ================================================================ */

.vpvita-account-portal {
	width: 100%;
}

.vpvita-account-portal-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	gap: 18px;
}

.vpvita-account-portal-header {
	width: 100%;
	text-align: center;
}

.vpvita-account-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.vpvita-account-logo img {
	display: block;
	width: 150px;
	max-width: 100%;
	height: auto;
}

.vpvita-account-step-header[hidden],
.vpvita-account-trust [data-vpvita-show-step][hidden] {
	display: none !important;
}

.vpvita-account-portal-title,
.vpvita-account-portal-highlight {
	display: block;
	line-height: 1.08;
}

.vpvita-account-portal-highlight {
	margin-top: 2px;
}

.vpvita-account-portal-description {
	margin-top: 10px;
}

.vpvita-account-portal-card {
	box-sizing: border-box;
	width: 100%;
}

.vpvita-account-portal-card .vpvita-account-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vpvita-account-portal-card .vpvita-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vpvita-account-portal-card .vpvita-field input {
	box-sizing: border-box;
	width: 100%;
}

.vpvita-account-portal-card .vpvita-button {
	width: 100%;
}

.vpvita-account-trust {
	margin-top: 12px;
	text-align: center;
}

.vpvita-account-trust [data-vpvita-show-step] {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px;
}

.vpvita-account-trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vpvita-account-trust span::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 9px;
	line-height: 1;
}


.vpvita-account-portal-card .vpvita-link-button {
	cursor: pointer;
}



/* ================================================================
   v0.7.6 Account layout sync / no delayed header
   ================================================================ */

/*
 * The account widget now server-renders the correct initial step header.
 * Hidden headers stay hidden before JavaScript runs, preventing the
 * register/login heading from appearing late after page paint.
 */
.vpvita-account-step-header[hidden] {
	display: none !important;
}

/*
 * Figma layout: field names live inside the inputs as placeholders.
 * Labels remain in the DOM for accessibility but are visually hidden.
 */
.vpvita-account-portal-card .vpvita-field {
	position: relative;
}

.vpvita-account-portal-card .vpvita-field > label {
	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;
}

.vpvita-account-portal-card .vpvita-field input {
	min-height: 44px;
	padding-left: 42px;
}

/* Input icons */
.vpvita-account-portal-card .vpvita-field::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 22px;
	width: 15px;
	height: 15px;
	transform: translateY(-50%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: .9;
	pointer-events: none;
	z-index: 2;
}

/* User */
.vpvita-account-portal-card .vpvita-field:has(input[name="first_name"])::before,
.vpvita-account-portal-card .vpvita-field:has(input[name="last_name"])::before,
.vpvita-account-portal-card .vpvita-field:has(input[name="username"])::before,
.vpvita-account-portal-card .vpvita-field:has(input[name="login_identifier"])::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.3'/%3E%3Cpath d='M5.5 20c.5-4 2.7-6 6.5-6s6 2 6.5 6'/%3E%3C/svg%3E");
}

/* Email */
.vpvita-account-portal-card .vpvita-field:has(input[type="email"])::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}

/* Phone */
.vpvita-account-portal-card .vpvita-field:has(input[type="tel"])::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2.5'/%3E%3Cpath d='M10 18.5h4'/%3E%3C/svg%3E");
}

/* Password */
.vpvita-account-portal-card .vpvita-field:has(input[type="password"])::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='12' r='4'/%3E%3Cpath d='M12 12h9M17 12v3M20 12v2'/%3E%3C/svg%3E");
}

/*
 * Readonly reset-email fields also receive the mail icon and match all other
 * account inputs.
 */
.vpvita-account-portal-card .vpvita-field input[readonly] {
	cursor: default;
}

/*
 * Trust messages belong between the primary action and the member switch,
 * matching the Figma:
 *
 * [ Get Instant Access / Sign in ]
 *       ✓ ...   ✓ ...
 * [ Already a member? / New to VP-Vita? ]
 */
.vpvita-account-trust-source {
	display: none !important;
}

.vpvita-account-trust-inline {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px;
	margin: 2px 0 0;
	text-align: center;
}

.vpvita-account-trust-inline span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vpvita-account-trust-inline span::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 14px;
	height: 14px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 9px;
	line-height: 1;
}

.vpvita-account-portal-card .vpvita-account-switch {
	margin-top: 0;
}

/*
 * Keep legal copy compact like the Figma. Elementor's dedicated Legal Notice
 * section can override colors, typography, background, border and padding.
 */
.vpvita-account-portal-card .vpvita-account-legal-note {
	line-height: 1.35;
}

/* Keep helper text aligned with the input itself, not under the icon. */
.vpvita-account-portal-card .vpvita-field small {
	padding-left: 0;
}

@media (max-width: 767px) {
	.vpvita-account-trust-inline {
		gap: 10px 16px;
	}
}


/* ================================================================
   v0.7.7 Placeholder / trust / account-switch controls
   ================================================================ */

.vpvita-account-switch {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
}

.vpvita-account-switch .vpvita-link-button {
	margin: 0;
	padding: 0;
}

/*
 * Browser/password managers can sometimes try to prefill the registration
 * username. The registration field is intentionally marked autocomplete=off
 * and with common password-manager ignore hints in the PHP markup.
 */


/* ================================================================
   v0.7.8 Account checkbox design controls
   ================================================================ */

.vpvita-account-checkbox {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.vpvita-account-checkbox > input[type="checkbox"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.vpvita-account-checkbox-ui {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin: 1px 0 0;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 2px;
	transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.vpvita-account-checkbox-ui::after {
	content: "✓";
	display: block;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	transform: scale(.75);
	transition: opacity .14s ease, transform .14s ease;
}

.vpvita-account-checkbox > input[type="checkbox"]:checked + .vpvita-account-checkbox-ui {
	background-color: #0b78c8;
	border-color: #0b78c8;
}

.vpvita-account-checkbox > input[type="checkbox"]:checked + .vpvita-account-checkbox-ui::after {
	opacity: 1;
	transform: scale(1);
}

.vpvita-account-checkbox > input[type="checkbox"]:focus-visible + .vpvita-account-checkbox-ui {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.vpvita-account-checkbox-text {
	min-width: 0;
	flex: 1 1 auto;
}

.vpvita-account-checkbox-text p {
	margin-top: 0;
	margin-bottom: 0;
}

.vpvita-account-checkbox-text a {
	text-decoration: inherit;
}

/*
 * WYSIWYG legal notice can contain p tags. Avoid Elementor/editor defaults
 * adding an unwanted extra bottom margin inside the compact notice box.
 */
.vpvita-account-legal-note > :first-child {
	margin-top: 0;
}

.vpvita-account-legal-note > :last-child {
	margin-bottom: 0;
}


/* ================================================================
   v0.7.9 Login research notice
   ================================================================ */

.vpvita-login-notice {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(123, 196, 255, .28);
	border-radius: 8px;
	background: rgba(123, 196, 255, .08);
	line-height: 1.45;
}

.vpvita-login-notice > :first-child {
	margin-top: 0;
}

.vpvita-login-notice > :last-child {
	margin-bottom: 0;
}


/* ================================================================
   v0.8.2 — VP-Vita My Account Elementor widget
   ================================================================ */

.vpvita-my-account {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	--vpvita-ma-bg: #071936;
	--vpvita-ma-panel: #0a1d3e;
	--vpvita-ma-field: #13284b;
	--vpvita-ma-border: #29466f;
	--vpvita-ma-text: #c7d2e5;
	--vpvita-ma-muted: #92a4c1;
	--vpvita-ma-heading: #fff;
	--vpvita-ma-accent: #087bc8;
	--vpvita-ma-accent-light: #69bbff;
}

.vpvita-my-account,
.vpvita-my-account * {
	box-sizing: border-box;
}

.vpvita-my-account__header {
	margin-bottom: 30px;
}

.vpvita-my-account__eyebrow {
	margin-bottom: 8px;
	color: var(--vpvita-ma-accent-light);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.vpvita-my-account__title {
	margin: 0;
	color: var(--vpvita-ma-heading);
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.1;
}

.vpvita-my-account__description {
	max-width: 720px;
	margin-top: 10px;
	color: var(--vpvita-ma-muted);
	line-height: 1.6;
}

.vpvita-my-account__body {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

.vpvita-my-account__sidebar {
	flex: 0 0 auto;
	width: 290px;
}

.vpvita-my-account__main {
	flex: 1 1 0;
	min-width: 0;
	width: calc(100% - 290px);
}

.vpvita-my-account__profile,
.vpvita-my-account__nav-card,
.vpvita-my-account__content-card {
	border: 1px solid var(--vpvita-ma-border);
	background: var(--vpvita-ma-bg);
	border-radius: 18px;
}

.vpvita-my-account__profile {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	padding: 20px;
	background: var(--vpvita-ma-panel);
}

.vpvita-my-account__avatar {
	width: 58px;
	height: 58px;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--vpvita-ma-border);
	background: var(--vpvita-ma-field);
}

.vpvita-my-account__avatar img {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: cover;
	border-radius: inherit;
}

.vpvita-my-account__profile-copy {
	min-width: 0;
}

.vpvita-my-account__welcome {
	margin-bottom: 3px;
	color: var(--vpvita-ma-muted);
	font-size: 12px;
	line-height: 1.4;
}

.vpvita-my-account__member-name {
	overflow: hidden;
	color: var(--vpvita-ma-heading);
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vpvita-my-account__email {
	margin-top: 3px;
	overflow: hidden;
	color: var(--vpvita-ma-muted);
	font-size: 12px;
	line-height: 1.45;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vpvita-my-account__nav-card {
	padding: 14px;
}

.vpvita-my-account__nav-title {
	padding: 4px 8px 10px;
	color: var(--vpvita-ma-muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.vpvita-my-account__nav-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.vpvita-my-account__nav-item {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.vpvita-my-account__nav-link {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	background: transparent;
	color: var(--vpvita-ma-text);
	line-height: 1.35;
	text-decoration: none !important;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.vpvita-my-account__nav-link:hover {
	background: #102a53;
	color: #fff;
}

.vpvita-my-account__nav-item.is-active .vpvita-my-account__nav-link {
	background: var(--vpvita-ma-accent);
	color: #fff;
}

.vpvita-my-account__nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

.vpvita-my-account__nav-icon svg {
	display: block;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vpvita-my-account__nav-icon svg path[d^="M4 13"] {
	fill: currentColor;
	stroke: none;
}

.vpvita-my-account__nav-label {
	flex: 1 1 auto;
}

.vpvita-my-account__nav-arrow {
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
	opacity: .55;
}

.vpvita-my-account__content-card {
	min-height: 420px;
	padding: 30px;
	color: var(--vpvita-ma-text);
}

.vpvita-my-account__content-card > :first-child {
	margin-top: 0;
}

.vpvita-my-account__content-card h1,
.vpvita-my-account__content-card h2,
.vpvita-my-account__content-card h3,
.vpvita-my-account__content-card h4,
.vpvita-my-account__content-card h5,
.vpvita-my-account__content-card h6,
.vpvita-my-account__content-card legend {
	color: var(--vpvita-ma-heading);
}

.vpvita-my-account__content-card a:not(.button):not(.woocommerce-button) {
	color: var(--vpvita-ma-accent-light);
}

.vpvita-my-account__content-card a:not(.button):not(.woocommerce-button):hover {
	color: #fff;
}

.vpvita-my-account__content-card p,
.vpvita-my-account__content-card address {
	color: inherit;
}

.vpvita-my-account__content-card .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.vpvita-my-account__content-card .woocommerce-Address-title h2,
.vpvita-my-account__content-card .woocommerce-Address-title h3 {
	margin: 0;
}

.vpvita-my-account__content-card .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.vpvita-my-account__content-card .woocommerce-Address {
	width: auto !important;
	float: none !important;
	padding: 20px;
	border: 1px solid var(--vpvita-ma-border);
	border-radius: 12px;
	background: var(--vpvita-ma-panel);
}

.vpvita-my-account__content-card fieldset {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid var(--vpvita-ma-border);
	border-radius: 12px;
}

.vpvita-my-account__content-card .form-row {
	margin-bottom: 16px;
}

.vpvita-my-account__content-card label {
	display: block;
	margin-bottom: 7px;
	color: #fff;
	font-weight: 500;
}

.vpvita-my-account__content-card .required {
	color: #ff6f79;
}

.vpvita-my-account__content-card input.input-text,
.vpvita-my-account__content-card textarea,
.vpvita-my-account__content-card select,
.vpvita-my-account__content-card .select2-container--default .select2-selection--single {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid var(--vpvita-ma-border);
	border-radius: 8px;
	outline: 0;
	background: var(--vpvita-ma-field);
	color: #fff;
	box-shadow: none;
}

.vpvita-my-account__content-card textarea {
	min-height: 110px;
	resize: vertical;
}

.vpvita-my-account__content-card input.input-text:focus,
.vpvita-my-account__content-card textarea:focus,
.vpvita-my-account__content-card select:focus {
	border-color: var(--vpvita-ma-accent-light);
	box-shadow: 0 0 0 2px rgba(105, 187, 255, .10);
}

.vpvita-my-account__content-card .button,
.vpvita-my-account__content-card button,
.vpvita-my-account__content-card .woocommerce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--vpvita-ma-accent);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.vpvita-my-account__content-card .button:hover,
.vpvita-my-account__content-card button:hover,
.vpvita-my-account__content-card .woocommerce-button:hover {
	background: #096bae;
	color: #fff;
}

.vpvita-my-account__content-card table,
.vpvita-my-account__content-card .shop_table {
	width: 100%;
	margin: 0 0 20px;
	border: 1px solid var(--vpvita-ma-border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
	background: transparent;
	color: inherit;
}

.vpvita-my-account__content-card table th,
.vpvita-my-account__content-card table td,
.vpvita-my-account__content-card .shop_table th,
.vpvita-my-account__content-card .shop_table td {
	padding: 14px 15px;
	border: 0;
	border-bottom: 1px solid var(--vpvita-ma-border);
	text-align: left;
	vertical-align: middle;
}

.vpvita-my-account__content-card table thead th,
.vpvita-my-account__content-card .shop_table thead th {
	background: #102a53;
	color: #fff;
	font-weight: 600;
}

.vpvita-my-account__content-card table tbody td,
.vpvita-my-account__content-card .shop_table tbody td {
	background: var(--vpvita-ma-panel);
}

.vpvita-my-account__content-card table tr:last-child td,
.vpvita-my-account__content-card .shop_table tr:last-child td {
	border-bottom: 0;
}

.vpvita-my-account__content-card .woocommerce-message,
.vpvita-my-account__content-card .woocommerce-info,
.vpvita-my-account__content-card .woocommerce-error {
	margin: 0 0 20px !important;
	padding: 14px 16px 14px 44px !important;
	border: 1px solid var(--vpvita-ma-border);
	border-top: 1px solid var(--vpvita-ma-border);
	border-radius: 10px;
	background: var(--vpvita-ma-panel);
	color: var(--vpvita-ma-text);
}

.vpvita-my-account__content-card .woocommerce-message::before,
.vpvita-my-account__content-card .woocommerce-info::before,
.vpvita-my-account__content-card .woocommerce-error::before {
	top: 14px;
	left: 16px;
	color: var(--vpvita-ma-accent-light);
}

.vpvita-my-account__content-card .woocommerce-order-details,
.vpvita-my-account__content-card .woocommerce-customer-details {
	margin-top: 28px;
}

.vpvita-my-account__content-card .woocommerce-customer-details address {
	padding: 18px;
	border: 1px solid var(--vpvita-ma-border);
	border-radius: 10px;
	background: var(--vpvita-ma-panel);
}

.vpvita-my-account--logged-out {
	max-width: 640px;
}

.vpvita-my-account__login-card .woocommerce-form-login {
	margin: 0;
	padding: 0;
	border: 0;
}

.vpvita-my-account__missing {
	padding: 16px 18px;
	border: 1px solid #d63638;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
}

@media (max-width: 900px) {
	.vpvita-my-account__body {
		flex-direction: column;
	}

	.vpvita-my-account__sidebar,
	.vpvita-my-account__main {
		width: 100% !important;
	}

	.vpvita-my-account__profile {
		margin-bottom: 14px;
	}

	.vpvita-my-account__nav-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vpvita-my-account__content-card .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.vpvita-my-account__nav-list {
		grid-template-columns: 1fr;
	}

	.vpvita-my-account__content-card {
		padding: 20px;
	}

	.vpvita-my-account__content-card table,
	.vpvita-my-account__content-card .shop_table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}


/* ================================================================
   v0.8.3 — Final light My Account design
   Reference: approved VP-Vita My Account layout
   ================================================================ */

.vpvita-my-account {
	--vpvita-ma-navy: #11264b;
	--vpvita-ma-blue: #0a67b7;
	--vpvita-ma-blue-dark: #0b3c78;
	--vpvita-ma-text: #344054;
	--vpvita-ma-muted: #667085;
	--vpvita-ma-border: #d7dee8;
	--vpvita-ma-soft: #eef2f7;
	--vpvita-ma-white: #fff;
	max-width: 1120px;
	color: var(--vpvita-ma-text);
}

.vpvita-my-account__breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 22px;
	color: #667085;
	font-size: 10px;
	line-height: 1.4;
}
.vpvita-my-account__breadcrumb a {
	color: inherit;
	text-decoration: none;
}
.vpvita-my-account__breadcrumb a:hover { color: var(--vpvita-ma-blue); }

.vpvita-my-account__header { margin-bottom: 26px; }
.vpvita-my-account__eyebrow { color: #667085; }
.vpvita-my-account__title {
	margin: 0;
	color: var(--vpvita-ma-navy);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.05;
}
.vpvita-my-account__description {
	margin-top: 8px;
	color: #475467;
	font-size: 14px;
	line-height: 1.45;
}

.vpvita-my-account__body { gap: 18px; }
.vpvita-my-account__sidebar { width: 235px; }
.vpvita-my-account__main { width: calc(100% - 235px); }

.vpvita-my-account__profile {
	border-color: rgba(255,255,255,.2);
	background: linear-gradient(145deg, #082c5b 0%, #0a6fc4 100%);
	color: #fff;
}
.vpvita-my-account__profile .vpvita-my-account__welcome,
.vpvita-my-account__profile .vpvita-my-account__email,
.vpvita-my-account__profile .vpvita-my-account__member-name { color: #fff; }

.vpvita-my-account__nav-card {
	padding: 14px 12px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(145deg, #082c5b 0%, #096fc4 100%);
	box-shadow: none;
}
.vpvita-my-account__nav-title { color: rgba(255,255,255,.75); }
.vpvita-my-account__nav-list { gap: 3px; }
.vpvita-my-account__nav-link {
	min-height: 36px;
	padding: 9px 10px;
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
}
.vpvita-my-account__nav-link:hover { background: rgba(255,255,255,.10); color: #fff; }
.vpvita-my-account__nav-item.is-active .vpvita-my-account__nav-link {
	background: rgba(255,255,255,.16);
	color: #fff;
	font-weight: 600;
}
.vpvita-my-account__nav-icon,
.vpvita-my-account__nav-arrow { display: none; }
.vpvita-my-account--show-nav-icons .vpvita-my-account__nav-icon { display: inline-flex; }

.vpvita-my-account__content-card {
	min-height: 430px;
	padding: 20px;
	border: 1px solid var(--vpvita-ma-border);
	border-radius: 13px;
	background: #fff;
	color: var(--vpvita-ma-text);
}
.vpvita-my-account__content-card h1,
.vpvita-my-account__content-card h2,
.vpvita-my-account__content-card h3,
.vpvita-my-account__content-card h4,
.vpvita-my-account__content-card h5,
.vpvita-my-account__content-card h6,
.vpvita-my-account__content-card legend { color: var(--vpvita-ma-navy); }
.vpvita-my-account__content-card a:not(.button):not(.woocommerce-button) { color: var(--vpvita-ma-blue); }
.vpvita-my-account__content-card a:not(.button):not(.woocommerce-button):hover { color: var(--vpvita-ma-navy); }

.vpvita-my-account__welcome-card {
	padding: 26px;
	border: 1px solid #d1d9e4;
	border-radius: 12px;
	background: var(--vpvita-ma-soft);
	color: var(--vpvita-ma-navy);
}
.vpvita-my-account__welcome-label {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}
.vpvita-my-account__welcome-name {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.08;
}
.vpvita-my-account__welcome-description {
	margin-top: 8px;
	color: #475467;
	font-size: 13px;
	line-height: 1.5;
}

.vpvita-my-account__quick-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 24px;
}
.vpvita-my-account__quick-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 180px;
	padding: 16px;
	border: 1px solid var(--vpvita-ma-border);
	border-radius: 12px;
	background: #fff;
	color: inherit !important;
	text-decoration: none !important;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.vpvita-my-account__quick-card:hover {
	transform: translateY(-2px);
	border-color: #b7c4d5;
	box-shadow: 0 8px 18px rgba(17,38,75,.07);
}
.vpvita-my-account__quick-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 30px;
	border-radius: 7px;
	background: var(--vpvita-ma-soft);
	color: var(--vpvita-ma-navy);
}
.vpvita-my-account__quick-icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vpvita-my-account__quick-title {
	display: block;
	margin-bottom: 8px;
	color: var(--vpvita-ma-navy);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}
.vpvita-my-account__quick-text {
	display: block;
	color: #475467;
	font-size: 11px;
	line-height: 1.45;
}

/* Light styling for WooCommerce endpoint content. */
.vpvita-my-account__content-card .woocommerce-Address {
	border-color: var(--vpvita-ma-border);
	background: #fff;
}
.vpvita-my-account__content-card fieldset {
	border-color: var(--vpvita-ma-border);
	background: #fff;
}
.vpvita-my-account__content-card label { color: var(--vpvita-ma-navy); }
.vpvita-my-account__content-card input.input-text,
.vpvita-my-account__content-card textarea,
.vpvita-my-account__content-card select,
.vpvita-my-account__content-card .select2-container--default .select2-selection--single {
	border-color: var(--vpvita-ma-border);
	background: #fff;
	color: var(--vpvita-ma-navy);
}
.vpvita-my-account__content-card table thead th,
.vpvita-my-account__content-card .shop_table thead th {
	background: var(--vpvita-ma-soft);
	color: var(--vpvita-ma-navy);
}
.vpvita-my-account__content-card table tbody td,
.vpvita-my-account__content-card .shop_table tbody td { background: #fff; }
.vpvita-my-account__content-card table,
.vpvita-my-account__content-card .shop_table,
.vpvita-my-account__content-card table th,
.vpvita-my-account__content-card table td,
.vpvita-my-account__content-card .shop_table th,
.vpvita-my-account__content-card .shop_table td { border-color: var(--vpvita-ma-border); }
.vpvita-my-account__content-card .woocommerce-message,
.vpvita-my-account__content-card .woocommerce-info,
.vpvita-my-account__content-card .woocommerce-error {
	border-color: var(--vpvita-ma-border);
	background: var(--vpvita-ma-soft);
	color: var(--vpvita-ma-text);
}
.vpvita-my-account__content-card .woocommerce-customer-details address {
	border-color: var(--vpvita-ma-border);
	background: #fff;
}

@media (max-width: 1024px) {
	.vpvita-my-account__quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.vpvita-my-account__body { flex-direction: column; }
	.vpvita-my-account__sidebar,
	.vpvita-my-account__main { width: 100% !important; }
	.vpvita-my-account__nav-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.vpvita-my-account__nav-link { justify-content: center; }
}
@media (max-width: 600px) {
	.vpvita-my-account__quick-grid { grid-template-columns: 1fr; }
	.vpvita-my-account__quick-card { min-height: 150px; }
	.vpvita-my-account__quick-icon { margin-bottom: 20px; }
	.vpvita-my-account__nav-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.vpvita-my-account__content-card { padding: 14px; }
	.vpvita-my-account__welcome-card { padding: 20px; }
}
