.nahavaran-account-switcher {
	position: relative;
}

.nahavaran-account-switcher--guest > .account-link {
	border-radius: 50%;
	transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nahavaran-account-switcher--guest.is-open > .account-link,
.nahavaran-account-switcher--guest:focus-within > .account-link {
	color: #956919;
	background-color: #fff8e8;
	box-shadow: inset 0 0 0 1px rgba(190, 142, 51, 0.48);
}

.nahavaran-account-switcher__menu {
	--nahavaran-account-shift-x: 0px;
	--nahavaran-account-pointer-left: 50%;
	position: absolute;
	z-index: 1105;
	top: calc(100% + 13px);
	left: 50%;
	margin-left: var(--nahavaran-account-shift-x);
	width: min(320px, calc(100vw - 32px));
	direction: rtl;
	color: #173b32;
	background: #fff;
	border: 1px solid #c99b45;
	border-radius: 22px;
	box-shadow: 0 18px 45px rgba(17, 45, 37, 0.14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(-7px);
	transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s linear 220ms;
}

.nahavaran-account-switcher__menu[hidden] {
	display: none;
}

.nahavaran-account-switcher__menu::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -9px;
	left: var(--nahavaran-account-pointer-left);
	width: 18px;
	height: 18px;
	background: #fff;
	border-top: 1px solid #c99b45;
	border-left: 1px solid #c99b45;
	transform: translateX(-50%) rotate(45deg);
}

.nahavaran-account-switcher.is-open > .nahavaran-account-switcher__menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition-delay: 0s;
}

.nahavaran-account-switcher__option {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 78px;
	padding: 14px 20px;
	color: #173b32;
	background: #fff;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.65;
	text-decoration: none;
	transition: color 180ms ease, background-color 180ms ease;
}

.nahavaran-account-switcher__option:first-of-type {
	border-radius: 21px 21px 0 0;
}

.nahavaran-account-switcher__option:last-of-type {
	border-top: 1px solid rgba(23, 59, 50, 0.12);
	border-radius: 0 0 21px 21px;
}

.nahavaran-account-switcher__option:hover,
.nahavaran-account-switcher__option:focus-visible {
	color: #8c6216;
	background: #fff9ed;
}

.nahavaran-account-switcher__option:focus-visible {
	outline: 2px solid #c99b45;
	outline-offset: -4px;
}

.nahavaran-account-switcher__option-icon {
	display: inline-flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: #173b32;
	background: #fffaf0;
	border: 1px solid rgba(201, 155, 69, 0.7);
	border-radius: 50%;
}

.nahavaran-account-switcher__option-icon svg {
	display: block;
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
	.nahavaran-account-switcher--guest:hover > .account-link {
		color: #111;
		background-color: #fff8e8;
		box-shadow: inset 0 0 0 1px rgba(190, 142, 51, 0.48);
	}
}

@media (max-width: 849px) {
	.nahavaran-account-switcher__menu {
		width: min(304px, calc(100vw - 32px));
	}

	.nahavaran-account-switcher__option {
		min-height: 70px;
		padding: 11px 17px;
		font-size: 17px;
	}

	.nahavaran-account-switcher__option-icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nahavaran-account-switcher--guest > .account-link,
	.nahavaran-account-switcher__menu,
	.nahavaran-account-switcher__option {
		transition: none;
	}
}
/* کوچک‌کردن منوی انتخاب نوع ورود */
.nahavaran-account-switcher__menu {
	width: min(200px, calc(100vw - 32px));
	border-radius: 16px;
}

/* هر ردیف: ورود شرکت و ورود مشتری */
.nahavaran-account-switcher__option {
	min-height: 62px;
	padding: 8px 16px;
	gap: 12px;
	font-size: 16px;
	line-height: 1.5;
}

/* گردی گوشه‌های ردیف اول و دوم */
.nahavaran-account-switcher__option:first-of-type {
	border-radius: 15px 15px 0 0;
}

.nahavaran-account-switcher__option:last-of-type {
	border-radius: 0 0 15px 15px;
}

/* دایره دور آیکن‌ها */
.nahavaran-account-switcher__option-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
}

/* خود آیکن داخل دایره */
.nahavaran-account-switcher__option-icon svg {
	width: 21px;
	height: 21px;
}

/* اندازه مخصوص موبایل */
@media (max-width: 849px) {
	.nahavaran-account-switcher__menu {
		width: min(200px, calc(100vw - 24px));
	}

	.nahavaran-account-switcher__option {
		min-height: 60px;
		padding: 8px 14px;
		gap: 11px;
		font-size: 15px;
	}

	.nahavaran-account-switcher__option-icon {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
	}
}
body.nahavaran-site-header
#header.nahavaran-main-header
.header-inner .nav >
li.nahavaran-account-switcher--guest:is(:hover, .is-open, :focus-within) >
a.account-link {
	color: #111;
}

body.nahavaran-site-header #header.nahavaran-main-header .cart-item > .header-cart-link {
	border-radius: 50%;
	transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
	body.nahavaran-site-header #header.nahavaran-main-header .cart-item:hover > .header-cart-link {
		color: #111;
		background-color: #fff8e8;
		box-shadow: inset 0 0 0 1px rgba(190, 142, 51, 0.48);
	}
}
