/* E-Project WooCommerce promotions */
.woocommerce ul.products li.product,
.wc-block-components-product-image,
.wc-block-grid__product-image {
	position: relative;
}

.wc-bogo-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 12;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-height: 34px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
	white-space: nowrap;
	pointer-events: auto;
}

.wc-bogo-badge--has-tooltip {
	cursor: help;
}

.wc-bogo-badge--block {
	top: 10px;
	right: 10px;
}

.wc-bogo-badge__icon {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	overflow: visible;
}

.wc-bogo-badge__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding-top: 1px;
}

.wc-bogo-tooltip {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 100;
	width: max-content;
	max-width: min(260px, 72vw);
	padding: 9px 11px;
	border-radius: 7px;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: left;
	white-space: normal;
	box-shadow: 0 5px 18px rgba(0,0,0,.24);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
	pointer-events: none;
}

.wc-bogo-tooltip::before {
	content: "";
	position: absolute;
	right: 18px;
	bottom: 100%;
	border: 6px solid transparent;
	border-bottom-color: #111;
}

.wc-bogo-badge:hover .wc-bogo-tooltip,
.wc-bogo-badge:focus-within .wc-bogo-tooltip,
.woocommerce ul.products li.product a:focus .wc-bogo-tooltip,
.wc-block-components-product-image a:focus .wc-bogo-tooltip,
.wc-block-grid__product-image a:focus .wc-bogo-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wc-bogo-product-message {
	margin: 0 0 1.25em;
	padding: 12px 14px;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 6px;
	font-weight: 600;
	line-height: 1.45;
}

@media (max-width: 480px) {
	.wc-bogo-badge {
		top: 8px;
		right: 8px;
		gap: 7px;
		min-height: 32px;
		padding: 6px 11px;
		font-size: 12px;
	}

	.wc-bogo-badge__icon {
		width: 17px;
		height: 17px;
		flex-basis: 17px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wc-bogo-tooltip {
		transition: none;
	}
}
