/**
 * Primary-nav EDD cart icon.
 * Menu labels sit in a tall line-height strut; raise the cart by half-leading
 * so its bottom meets the letter bottoms, not the empty padding under the text.
 */

.main-header-menu > .icra-header-cart-item {
	margin-left: 0.1rem;
}

@media (min-width: 922px) {
	.main-header-menu > .icra-header-cart-item > .menu-link.icra-header-cart {
		display: inline-flex !important;
		align-items: flex-end !important;
		justify-content: center;
		min-width: 1.85rem;
		padding-left: 0.5rem !important;
		padding-right: 0.5rem !important;
	}

	.icra-header-cart__icon {
		/*
		 * Menu links use a tall line-height (~4× font-size). Raise the cart by
		 * half-leading so wheels meet letter bottoms, not empty space under text.
		 * (1em here inherits the menu link font-size.)
		 */
		margin-bottom: 1.5em;
		transform: none;
	}

	.icra-header-cart__badge {
		top: auto;
		bottom: calc(100% + 0.12rem);
		right: -0.4rem;
		transform: none;
	}
}

.icra-header-cart {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.icra-header-cart__icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	color: inherit;
	opacity: 0.92;
	position: relative;
}

.icra-header-cart__svg {
	display: block;
	width: 1.2em;
	height: 1.2em;
}

/* Empty: quieter icon, muted badge */
.icra-header-cart-item.icra-header-cart--empty .icra-header-cart__icon {
	opacity: 0.5;
}

.icra-header-cart-item.icra-header-cart--empty .icra-header-cart__badge {
	background: rgba(58, 70, 80, 0.4);
	color: #fff;
}

/* Filled: stronger icon + burgundy badge */
.icra-header-cart-item.icra-header-cart--filled .icra-header-cart__icon {
	opacity: 1;
}

.icra-header-cart-item.icra-header-cart--filled .icra-header-cart__badge {
	background: #5f021f;
	color: #fff;
}

.icra-header-cart__badge {
	position: absolute;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.05rem;
	text-align: center;
	pointer-events: none;
	box-shadow: 0 0 0 2px #fff;
}

/* Transparent hero headers */
.ast-theme-transparent-header .icra-header-cart__badge {
	box-shadow: 0 0 0 2px transparent;
}

.ast-theme-transparent-header:not(.ast-header-sticked) .icra-header-cart-item.icra-header-cart--empty .icra-header-cart__badge {
	background: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.ast-theme-transparent-header:not(.ast-header-sticked) .icra-header-cart-item.icra-header-cart--filled .icra-header-cart__badge {
	background: #fff;
	color: #5f021f;
}

/* Mobile toggle menu */
.ast-header-break-point .main-header-menu > .icra-header-cart-item > .menu-link.icra-header-cart {
	justify-content: flex-start;
	align-items: center !important;
	padding: 0.85rem 1rem !important;
	min-width: 0;
}

.ast-header-break-point .icra-header-cart__icon {
	transform: none;
	margin-bottom: 0;
}

.ast-header-break-point .icra-header-cart__badge {
	top: 50%;
	bottom: auto;
	right: auto;
	left: 2.4rem;
	transform: translateY(-50%);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
