/* B2B Account Dropdown Menu - Custom Design */

/* Armenian Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;500;600;700&display=swap');

/* CRITICAL: Override Woodmart's base.min.css rules for opened dropdown */
/* When dropdown opens (.wd-dropdown.wd-opened with visibility: visible), Woodmart may add border-left to active items */
/* We need to override this with maximum specificity to override base.min.css */
/* Target .wd-dropdown-menu.wd-design-default specifically (from base.min.css) */
/* Also override .wd-nav rules from base.min.css: .wd-nav:where(:not(.wd-dis-act))>li:where(.current-menu-item,.wd-active,.active)>a */
.wd-dropdown-menu.wd-design-default .wd-sub-menu li.is-active > a,
.wd-dropdown-menu.wd-design-default .wd-sub-menu li.is-active a,
.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active > a,
.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active a,
.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active > a,
.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active a,
/* Override .wd-nav rules */
.wd-nav:where(:not(.wd-dis-act)) > li:where(.current-menu-item,.wd-active,.active) > .b2b-dropdown-link,
.wd-nav:where(:not(.wd-dis-act)) > li:where(.current-menu-item,.wd-active,.active) > a.b2b-dropdown-link,
.wd-dropdown-my-account .wd-nav:where(:not(.wd-dis-act)) > li:where(.current-menu-item,.wd-active,.active) > a,
/* When dropdown is opened and visible */
.wd-event-hover:hover > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active,
.wd-event-hover:hover > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active a,
.wd-event-hover:hover > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active > a,
.wd-event-hover:hover > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active,
.wd-event-hover:hover > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active a,
.wd-event-hover:hover > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active > a,
.wd-event-click.wd-opened > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active,
.wd-event-click.wd-opened > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active a,
.wd-event-click.wd-opened > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active > a,
.wd-event-click.wd-opened > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active,
.wd-event-click.wd-opened > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active a,
.wd-event-click.wd-opened > .wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active > a,
.wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active,
.wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active a,
.wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu li.is-active > a,
.wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active,
.wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active a,
.wd-dropdown.wd-opened.wd-dropdown-my-account.wd-dropdown-menu.wd-design-default .b2b-account-dropdown-menu .is-active > a {
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* CRITICAL: Remove ALL border-left from dropdown menu items to prevent duplicate bars */
/* Target ALL possible Woodmart selectors that might add border-left */
/* Including the specific selectors from base.min.css: .wd-event-hover:hover>.wd-dropdown, .wd-event-click.wd-opened>.wd-dropdown, .wd-dropdown.wd-opened */
/* CRITICAL: Override base.min.css rule: .wd-sub-menu li.is-active > a { border-left: 2px solid var(--wd-primary-color); } */
.wd-dropdown-my-account .wd-sub-menu li,
.wd-dropdown-my-account .wd-sub-menu a,
.wd-dropdown-my-account .b2b-account-dropdown-menu li,
.wd-dropdown-my-account .b2b-account-dropdown-menu a,
.wd-dropdown-my-account .wd-sub-menu li.is-active,
.wd-dropdown-my-account .wd-sub-menu li.is-active a,
.wd-dropdown-my-account .wd-sub-menu li.is-active > a,
.wd-dropdown-my-account .wd-sub-menu .is-active,
.wd-dropdown-my-account .wd-sub-menu .is-active a,
.wd-dropdown-my-account .wd-sub-menu .is-active > a,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active a,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active > a,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active a,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active > a,
.wd-dropdown-my-account .wd-sub-menu li[class*="active"],
.wd-dropdown-my-account .wd-sub-menu a[class*="active"],
.wd-dropdown-my-account .b2b-account-dropdown-menu li[class*="active"],
.wd-dropdown-my-account .b2b-account-dropdown-menu a[class*="active"],
/* Target active items inside opened dropdown (from base.min.css selectors) */
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active a,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active > a,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active a,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active > a,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active a,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active > a,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active a,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active > a,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu li.is-active,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu li.is-active a,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu li.is-active > a,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu .is-active,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu .is-active a,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu .is-active > a {
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Hide ONLY standard Woodmart menu items (without our custom class) */
.wd-dropdown-my-account .wd-sub-menu:not(.b2b-account-dropdown-menu) {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide standard menu items inside standard menu */
.wd-dropdown-my-account .wd-sub-menu:not(.b2b-account-dropdown-menu) li,
.wd-dropdown-my-account .wd-sub-menu:not(.b2b-account-dropdown-menu) a {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

/* Show only our custom menu - ensure it's the only visible one */
.wd-dropdown-my-account .wd-sub-menu.b2b-account-dropdown-menu,
.wd-dropdown-my-account .b2b-account-dropdown-menu,
.wd-dropdown-my-account ul.b2b-account-dropdown-menu {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: white !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
	border: 1px solid #e5e7eb !important;
	border-left: 1px solid #e5e7eb !important; /* Only one border */
	padding: 8px !important;
	min-width: 240px !important;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	position: relative !important;
	z-index: 10 !important;
	height: auto !important;
	width: auto !important;
	margin: 0 !important;
}

/* Dropdown container - let Woodmart handle visibility via hover/click */
.wd-dropdown-my-account.wd-dropdown-menu {
	/* Don't force display - Woodmart will show/hide it via JavaScript */
	position: absolute !important;
}

/* Menu Items - Ensure they're visible and remove all borders */
.wd-dropdown-my-account .b2b-account-dropdown-menu li,
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-item {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid #f3f4f6 !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
}

/* Remove borders from active li specifically - CRITICAL */
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active,
.wd-dropdown-my-account .wd-sub-menu li.is-active,
.wd-dropdown-my-account .wd-sub-menu .is-active {
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: 1px solid #f3f4f6 !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Remove any border-left from active link's parent li */
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active > *,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active > * {
	border-left: none !important;
}

.wd-dropdown-my-account .b2b-account-dropdown-menu li:last-child {
	border-bottom: none !important;
}

/* Links - Ensure they're visible */
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-link {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	color: #374151 !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	transition: all 0.2s ease !important;
	position: relative !important;
	border: none !important; /* Remove any default borders */
}

.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-link:hover {
	background: rgba(0, 0, 0, 0.05) !important;
	color: #28462F !important;
}

/* Active Item - Remove ALL borders first, including from Woodmart defaults */
/* Also target when dropdown is opened (from base.min.css) */
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active,
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-item.is-active,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active,
.wd-dropdown-my-account .wd-sub-menu .is-active,
.wd-dropdown-my-account .wd-sub-menu li.is-active,
.wd-dropdown-my-account .wd-sub-menu .b2b-dropdown-item.is-active,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu .is-active,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu li.is-active {
	border: none !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active .b2b-dropdown-link,
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-item.is-active .b2b-dropdown-link,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link,
.wd-dropdown-my-account .wd-sub-menu .is-active a,
.wd-dropdown-my-account .wd-sub-menu li.is-active a,
/* Target when dropdown is opened (from base.min.css) */
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active .b2b-dropdown-link,
.wd-event-hover:hover > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu .is-active .b2b-dropdown-link,
.wd-event-click.wd-opened > .wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu .is-active .b2b-dropdown-link,
.wd-dropdown-my-account.wd-opened .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link {
	background: rgba(0, 0, 0, 0.05) !important;
	color: #28462F !important;
	font-weight: 600 !important;
	position: relative !important;
	border: none !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* CRITICAL: Remove ALL possible sources of borders/bars FIRST */
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active *,
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-item.is-active *,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active * {
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
}

/* Remove ALL ::before and ::after from active items first */
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active .b2b-dropdown-link::before,
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-item.is-active .b2b-dropdown-link::before,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link::before,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active .b2b-dropdown-link::after,
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-item.is-active .b2b-dropdown-link::after,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link::after,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active::before,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active::after,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active::before,
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active::after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
	border: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

/* Now add ONLY ONE red bar on the left - using most specific selector */
/* Make sure this is the ONLY ::before element visible */
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link::before {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	left: 0 !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 3px !important;
	height: 60% !important;
	background: #28462F !important;
	border: none !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border-radius: 0 3px 3px 0 !important;
	z-index: 1 !important;
	box-shadow: none !important;
	outline: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* CRITICAL: Remove any border-left that might be added via inline styles or JavaScript */
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active .b2b-dropdown-link[style*="border-left"],
.wd-dropdown-my-account .b2b-account-dropdown-menu li.is-active[style*="border-left"] {
	border-left: none !important;
}

/* Remove any nested pseudo-elements */
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active .b2b-dropdown-link *::before,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active .b2b-dropdown-link *::after,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active *::before,
.wd-dropdown-my-account .b2b-account-dropdown-menu .is-active *::after {
	display: none !important;
	content: none !important;
}

/* Icons - Ensure they're visible */
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-icon {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0 !important;
	color: inherit !important;
}

.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-icon svg {
	width: 100% !important;
	height: 100% !important;
}

/* Text - Ensure it's visible */
.wd-dropdown-my-account .b2b-account-dropdown-menu .b2b-dropdown-text {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	flex: 1 !important;
	line-height: 1.5 !important;
}

/* Logout Item - Special Styling */
.wd-dropdown-my-account .b2b-account-dropdown-menu .customer-logout .b2b-dropdown-link {
	border-top: 1px solid #e5e7eb !important;
	margin-top: 4px !important;
	padding-top: 12px !important;
	color: #dc2626 !important;
}

.wd-dropdown-my-account .b2b-account-dropdown-menu .customer-logout .b2b-dropdown-link:hover {
	background: rgba(220, 38, 38, 0.1) !important;
	color: #b91c1c !important;
}

/* Mobile Menu */
@media (max-width: 768px) {
	.wd-dropdown-my-account .b2b-account-dropdown-menu {
		min-width: 100% !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		border: none !important;
		padding: 0 !important;
	}
}
