/* My Account navigation layout and styles */
body.woocommerce-account .woocommerce {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: clamp(0.45rem, 1.2vw, 0.75rem) clamp(0.5rem, 1.4vw, 1rem);
}

body.woocommerce-account .woocommerce-notices-wrapper {
	flex: 1 0 100%;
	width: 100%;
}

body.woocommerce-account .cvd-account-site-main .entry-content {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	flex: 0 0 auto;
	width: 100%;
	max-width: min(252px, 34vw);
	box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	list-style: none;
	padding: 4px;
	margin: 0 0 0.5rem 0;
	background: #fff;
	border: 1px solid rgba(120, 80, 180, 0.18);
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(18, 5, 31, 0.07), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
	border-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid rgba(17, 24, 39, 0.1);
	border-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 8px 10px 8px 13px;
	margin: 1px 0;
	background: transparent;
	color: #3b0764;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.01em;
	line-height: 1.35;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	border: 0;
	box-shadow: none;
	position: relative;
	overflow: visible;
	border-left: 3px solid transparent;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
	display: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: rgba(124, 58, 237, 0.08);
	color: #2e0650;
	transform: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.12) 0%, rgba(167, 139, 250, 0.06) 100%);
	color: #4a148c;
	border-left-color: #7c3aed;
	box-shadow: none;
	transform: none;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1 1 280px;
	min-width: 0;
	padding: clamp(0.65rem, 1.8vw, 1.15rem);
	box-sizing: border-box;
	border-radius: 12px;
	align-self: stretch;
}

body.woocommerce-account .mobile-nav-toggle,
body.woocommerce-account .mobile-nav-close {
	display: none;
}

@media (max-width: 991px) {
	body.woocommerce-account .woocommerce {
		gap: 0.5rem;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		max-width: none;
	}
}

@media (min-width: 992px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation {
		max-width: min(252px, 30vw);
	}
}

@media (max-width: 768px) {
	body.woocommerce-account .woocommerce {
		display: block;
	}

	body.woocommerce-account .mobile-nav-toggle {
		display: block;
		position: fixed;
		left: 50%;
		right: auto;
		bottom: max(20px, env(safe-area-inset-bottom, 0px));
		transform: translateX(-50%);
		width: 60px;
		height: 60px;
		background: #4a148c;
		border: none;
		border-radius: 50%;
		box-shadow: 0 4px 16px rgba(74, 20, 140, 0.4);
		z-index: 1001;
		cursor: pointer;
		transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
	}

	body.woocommerce-account .mobile-nav-toggle:hover {
		transform: translateX(-50%) scale(1.1);
		box-shadow: 0 6px 20px rgba(74, 20, 140, 0.5);
	}

	body.woocommerce-account .mobile-nav-toggle::before,
	body.woocommerce-account .mobile-nav-toggle::after,
	body.woocommerce-account .mobile-nav-toggle span {
		content: "";
		display: block;
		width: 24px;
		height: 3px;
		background: #fff;
		margin: 5px auto;
		border-radius: 3px;
		transition: all 0.3s ease;
	}

	body.woocommerce-account .mobile-nav-toggle.hidden {
		opacity: 0;
		pointer-events: none;
		transform: translateX(-50%) scale(0.8);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: #4a148c;
		z-index: 9999;
		padding: 80px 20px 40px;
		margin: 0;
		opacity: 0;
		visibility: hidden;
		transform: scale(0.9);
		transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
		overflow-y: auto;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation.active {
		opacity: 1;
		visibility: visible;
		transform: scale(1);
	}

	body.woocommerce-account .mobile-nav-close {
		display: block;
		position: fixed;
		top: 20px;
		right: 20px;
		width: 50px;
		height: 50px;
		background: rgba(255, 255, 255, 0.2);
		border: 2px solid #fff;
		border-radius: 50%;
		cursor: pointer;
		z-index: 10000;
		transition: all 0.3s ease;
		opacity: 0;
		visibility: hidden;
		transform: rotate(-90deg) scale(0.8);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation.active + .mobile-nav-close {
		opacity: 1;
		visibility: visible;
		transform: rotate(0deg) scale(1);
		transition-delay: 0.2s;
	}

	body.woocommerce-account .mobile-nav-close:hover {
		background: rgba(255, 255, 255, 0.3);
		transform: rotate(90deg) scale(1.1);
	}

	body.woocommerce-account .mobile-nav-close::before,
	body.woocommerce-account .mobile-nav-close::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 24px;
		height: 3px;
		background: #fff;
		border-radius: 3px;
	}

	body.woocommerce-account .mobile-nav-close::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	body.woocommerce-account .mobile-nav-close::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0 auto;
		padding: 0;
		max-width: 520px;
		background: transparent;
		border: none;
		border-radius: 0;
		box-shadow: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
		flex-shrink: 0;
		opacity: 0;
		transform: translateX(-30px);
		transition: opacity 0.4s ease, transform 0.4s ease;
		border-bottom: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li {
		opacity: 1;
		transform: translateX(0);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(1) { transition-delay: 0.1s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(2) { transition-delay: 0.15s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(3) { transition-delay: 0.2s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(4) { transition-delay: 0.25s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(5) { transition-delay: 0.3s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(6) { transition-delay: 0.35s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(7) { transition-delay: 0.4s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(8) { transition-delay: 0.45s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(9) { transition-delay: 0.5s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(10) { transition-delay: 0.55s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(11) { transition-delay: 0.6s; }
	body.woocommerce-account .woocommerce-MyAccount-navigation.active ul li:nth-child(12) { transition-delay: 0.65s; }

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 12px;
		padding-top: 12px;
		border-top: 1px solid rgba(255, 255, 255, 0.22);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		padding: 16px 20px;
		font-size: 15px;
		white-space: normal;
		text-align: left;
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
		border: 1px solid rgba(255, 255, 255, 0.22);
		border-radius: 12px;
		display: block;
		border-left-width: 1px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
		transform: none;
		background: rgba(255, 255, 255, 0.18);
		border-color: rgba(255, 255, 255, 0.35);
		color: #fff;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
		background: #fff;
		color: #4a148c;
		border-color: #fff;
		font-weight: 700;
		box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
		border-left: 4px solid #7c3aed;
	}
}
