.greenbalance-product-labels-active .woocommerce ul.products li.product,
.greenbalance-product-labels-active .products .product,
.greenbalance-product-labels-active .woocommerce-product-gallery,
.greenbalance-product-labels-active .woocommerce-product-gallery .woocommerce-product-gallery__image {
	position: relative;
}

.greenbalance-product-labels-active .woocommerce ul.products li.product .onsale,
.greenbalance-product-labels-active .woocommerce-product-gallery .onsale,
.greenbalance-product-labels-active.single-product .onsale {
	display: none !important;
}

.gb-product-labels {
	position: absolute !important;
	top: calc(var(--gb-product-label-top, 0px) + var(--gb-label-top-offset, 0px));
	z-index: var(--gb-label-group-z, 999) !important;
	display: block;
	box-sizing: border-box;
	pointer-events: auto;
}

.gb-product-labels--right {
	right: calc(var(--gb-product-label-side, 0px) + var(--gb-label-extra-side, 0px));
}

.gb-product-labels--left {
	left: calc(var(--gb-product-label-side, 0px) + var(--gb-label-extra-side, 0px));
}

.gb-product-labels--template-ribbon {
	overflow: visible;
}

.gb-product-labels--template-badge {
	overflow: visible;
}

.gb-product-label-shell {
	background-color: transparent !important;
	box-sizing: border-box;
	color: var(--gb-label-color, #fff);
	display: block;
	height: 145px;
	overflow: hidden;
	position: relative;
	right: 0;
	text-align: center;
	width: 145px;
}

.gb-product-label-shell > i {
	background-color: transparent;
	border: 0;
	box-sizing: border-box;
	display: block;
	height: 0;
	position: absolute;
	width: 0;
}

.gb-product-label-shell > i.template-i {
	line-height: 30px;
	z-index: 99;
}

.gb-product-label-shell > i.template-i-before {
	background-color: var(--gb-label-bg, #4b8d58);
	border-color: var(--gb-label-bg, #4b8d58);
	height: 37px;
	opacity: var(--gb-label-opacity, 0.9);
	top: 14px;
	width: 145px;
	z-index: 99;
}

.gb-product-labels--right .gb-product-label-shell > i.template-i-before {
	right: -40px;
	transform: rotate(45deg) scale(var(--gb-label-size, 1));
}

.gb-product-labels--left .gb-product-label-shell > i.template-i-before {
	left: -40px;
	transform: rotate(-45deg) scale(var(--gb-label-size, 1));
}

.gb-product-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	order: var(--gb-label-order, 1);
	min-height: 28px;
	max-width: 150px;
	padding: 6px 10px;
	border-radius: 2px;
	background: var(--gb-label-bg, #4b8d58);
	color: var(--gb-label-color, #fff);
	font-family: var(--gb-label-font-family, 'Roboto', Helvetica, Arial, Lucida, sans-serif);
	font-size: var(--gb-label-font-size, 12px);
	font-weight: var(--gb-label-font-weight, 700);
	letter-spacing: 0;
	line-height: var(--gb-label-line-height, 1.05);
	opacity: var(--gb-label-opacity, 0.9);
	text-align: center;
	white-space: normal;
}

.gb-product-label.has-shadow {
	box-shadow: 0 2px 5px rgba(8, 38, 24, 0.18);
}

.gb-product-label--template-ribbon {
	position: absolute;
	top: 14px;
	width: 145px;
	height: 38px;
	min-height: 0;
	max-width: none;
	padding: 0 16px;
	border-radius: 0;
	background: transparent !important;
	box-sizing: border-box;
	z-index: 100;
	transform-origin: center center;
}

.gb-product-labels--right .gb-product-label--template-ribbon {
	right: -40px;
	transform: rotate(45deg) scale(var(--gb-label-size, 1));
}

.gb-product-labels--left .gb-product-label--template-ribbon {
	left: -40px;
	transform: rotate(-45deg) scale(var(--gb-label-size, 1));
}

.gb-product-label--template-badge {
	position: relative;
	transform: scale(var(--gb-label-size, 1));
	transform-origin: top right;
}

.gb-product-labels--right .gb-product-label--template-badge {
	right: 0;
}

.gb-product-labels--left .gb-product-label--template-badge {
	left: 0;
	transform-origin: top left;
}

.gb-product-labels--loop .gb-product-label--template-badge {
	min-height: 25px;
	max-width: 132px;
	padding: 5px 9px;
}

.gb-product-labels--loop .gb-product-label--template-ribbon {
	top: 14px;
	width: 145px;
	height: 38px;
	max-width: none;
	padding: 0 16px;
}

.gb-product-labels--loop.gb-product-labels--right .gb-product-label--template-ribbon {
	right: -40px;
}

.gb-product-labels--loop.gb-product-labels--left .gb-product-label--template-ribbon {
	left: -40px;
}

@media (min-width: 1025px) {
	.gb-product-labels.hide-desktop,
	.gb-product-label.hide-desktop {
		display: none !important;
	}
}

@media (min-width: 701px) and (max-width: 1024px) {
	.gb-product-labels.hide-tablet,
	.gb-product-label.hide-tablet {
		display: none !important;
	}
}

@media (max-width: 700px) {
	.gb-product-labels.hide-mobile,
	.gb-product-label.hide-mobile {
		display: none !important;
	}
}

@media (max-width: 600px) {
	.gb-product-labels {
		--gb-label-active-size: var(--gb-label-mobile-size, 1);
	}

	.gb-product-labels--right .gb-product-label-shell > i.template-i-before,
	.gb-product-labels--right .gb-product-label--template-ribbon {
		transform: rotate(45deg) scale(var(--gb-label-mobile-size, 1));
	}

	.gb-product-labels--left .gb-product-label-shell > i.template-i-before,
	.gb-product-labels--left .gb-product-label--template-ribbon {
		transform: rotate(-45deg) scale(var(--gb-label-mobile-size, 1));
	}

	.gb-product-label--template-badge {
		transform: scale(var(--gb-label-mobile-size, 1));
	}
}
