.jm-wcc-cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
}

.jm-wcc-cart-icon .jm-wcc-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background-color: #e53935;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
}

.jm-wcc-cart-icon .jm-wcc-count.jm-wcc-hidden {
	display: none;
}

/*
 * Manche Themes stylen jedes <span>/<i> innerhalb des Cart-Icons generisch
 * (z.B. Divi's ".et-cart-info span::before" für das eigene Icon-Glyph).
 * Diese Regeln stellen sicher, dass unsere Badge davon unberührt bleibt.
 */
.jm-wcc-count::before,
.jm-wcc-count::after {
	content: none !important;
}

/*
 * Badge auf einem vom Theme gerenderten Icon (z.B. Divi's a.et-cart-info).
 * .jm-wcc-icon-anchor wird per JS auf das tatsächliche Icon-Element gesetzt
 * (nicht den ggf. größeren Klick-Bereich des Links), damit die Badge exakt
 * an dessen sichtbarer Ecke sitzt statt daneben zu schweben.
 */
.jm-wcc-icon-anchor {
	position: relative;
	display: inline-block;
}

.jm-wcc-icon-anchor .jm-wcc-count {
	position: absolute;
	top: -6px;
	right: 0px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background-color: #e53935;
	color: #fff;
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
}

.jm-wcc-icon-anchor .jm-wcc-count.jm-wcc-hidden {
	display: none;
}
