/**
 * Side Cart header trigger — icon + badge (+ optional total).
 */

/* Collapse Elementor wrapper height (avoids empty gap under icon-only). */
.elementor-widget-wooweb-side-cart,
.elementor-widget-wooweb-side-cart > .elementor-widget-container {
	line-height: 0;
	font-size: 0;
	overflow: visible;
}

.elementor-widget-wooweb-side-cart > .elementor-widget-container {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 100%;
	vertical-align: middle;
	overflow: visible;
}

.wooweb-sc-header {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	text-decoration: none;
	color: inherit;
	line-height: 0;
	font-size: 0;
	vertical-align: middle;
	cursor: pointer;
	overflow: visible;
	max-width: 100%;
	box-sizing: border-box;
}

.wooweb-sc-header:hover,
.wooweb-sc-header:focus {
	text-decoration: none;
	color: inherit;
}

.wooweb-sc-header__total {
	display: inline-block;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	vertical-align: middle;
}

.wooweb-sc-header__total .amount,
.wooweb-sc-header__total .woocommerce-Price-amount {
	font-weight: inherit;
	line-height: inherit;
}

.wooweb-sc-header--no-total .wooweb-sc-header__total {
	display: none !important;
}

/*
 * Badge lives inside padding (included in layout width).
 * Do NOT use negative right margin — that made the bubble overflow
 * and get clipped by the header/column edge on tablet.
 */
.wooweb-sc-header__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px 0 0;
	margin: 0;
	line-height: 0;
	font-size: 0;
	overflow: visible;
	box-sizing: border-box;
}

.wooweb-sc-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	margin: 0;
	padding: 0;
	line-height: 0;
	font-size: 22px;
}

.wooweb-sc-header__icon--svg svg {
	display: block;
	width: 1em;
	height: 1em;
	overflow: visible;
}

.wooweb-sc-header__icon--font {
	font-family: 'Woo-Side-Cart' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wooweb-sc-header__icon--font:before {
	display: block;
}

.wooweb-sc-header__icon img,
img.wooweb-sc-header__icon {
	display: block;
	width: 1em;
	height: 1em;
	object-fit: contain;
}

.wooweb-sc-header__count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: #e83e8c;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.05rem;
	text-align: center;
	box-sizing: border-box;
	pointer-events: none;
}

.wooweb-sc-header--empty.wooweb-sc-header--hide-empty-count .wooweb-sc-header__count,
.wooweb-sc-header--hide-empty-count.wooweb-sc-header--empty .wooweb-sc-header__count {
	display: none;
}
