/*
 * WooCommerce account dropdown styles.
 * Edit this file to customize the account menu and its links.
 */

.khb-account-dropdown {
	position: relative;
	display: inline-block;
}

.khb-account-dropdown > summary {
	list-style: none;
}

.khb-account-dropdown > summary::-webkit-details-marker {
	display: none;
}

.khb-account-dropdown > summary::after {
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	content: "";
	transform: rotate(45deg) translateY(-2px);
	transition: transform 160ms ease;
}

.khb-account-dropdown[open] > summary::after {
	transform: rotate(225deg) translate(-1px, -1px);
}

.khb-account-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 99990;
	min-width: 225px;
	max-width: min(320px, calc(100vw - 32px));
	padding: 8px;
	border: 1px solid #e5e7eb;
	border-radius: var(--khb-button-radius, 8px);
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.khb-account-menu-list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.khb-account-menu-item {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.khb-account-menu-link {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 40px;
	padding: 9px 12px;
	border: 0;
	border-radius: var(--khb-button-radius, 8px);
	background: transparent;
	color: var(--khb-font-color, #222222);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: right;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
}

.khb-account-menu-link:hover,
.khb-account-menu-link:focus {
	background: #f3f4f6;
	color: var(--khb-font-color, #222222);
	text-decoration: none;
}

.khb-account-menu-item-logout {
	margin-top: 7px !important;
	padding-top: 7px !important;
	border-top: 1px solid #e5e7eb;
}

.khb-account-menu-item-logout .khb-logout-trigger {
	background: #fff1f2;
	color: #be123c;
	font-weight: 600;
}

.khb-account-menu-item-logout .khb-logout-trigger:hover,
.khb-account-menu-item-logout .khb-logout-trigger:focus {
	background: #ffe4e6;
	color: #9f1239;
}

@media (max-width: 480px) {
	.khb-account-menu {
		right: auto;
		left: 0;
	}
}
