/* Product Icons Bar — single product page, admin-only test block */

.pib {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	width: fit-content;
	margin: 1.6rem auto;
}

.pib-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	width: 5.6rem;
	min-height: 5.8rem;
	padding: .8rem;
	border: 0;
	border-radius: 12px;
	background: #f5f5f5;
	cursor: pointer;
}

.pib-btn:focus-visible {
	outline: 2px solid #007aff;
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.pib-btn {
		width: 5.6rem;
		min-height: 4.6rem;
	}
}

.pib-btn__icon {
	width: 20px;
	height: 20px;
	color: #101010;
	position: relative;
}

.pib-btn__icon svg,
.pib-btn__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pib-btn__label {
	font-size: 1.1rem;
	line-height: 1.2;
	white-space: nowrap;
	color: #101010;
}

@media (min-width: 768px) {
	.pib-btn__label {
		font-size: 1.1rem;
	}
}

.pib-btn__badge {
	position: absolute;
	top: 11px;
	right: -9px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 2px solid #f5f5f5;
	border-radius: 50%;
	background: #101010;
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	line-height: 1;
}

html[dir="ltr"] .pib-btn__badge {
	right: auto;
	left: -6px;
}

/* Tooltip: shown on hover (desktop) and on click via .is-open (touch) */

.pib-btn__tooltip {
	position: absolute;
	z-index: 20;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	min-width: 12rem;
	/*max-width: calc(100vw - 4.8rem);*/
	max-width: 200px;
	padding: .6rem 1rem;
	border-radius: 6px;
	background: #101010;
	color: #fff;
	font-size: 1.2rem;
	line-height: 1.4;
	text-align: center;
	white-space: normal;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}

.pib-btn:hover .pib-btn__tooltip,
.pib-btn.is-open .pib-btn__tooltip {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.pib-btn:first-child .pib-btn__tooltip {
	left: auto;
	right: 0;
	transform: none;
}

html[dir="ltr"] .pib-btn:first-child .pib-btn__tooltip {
	right: auto;
	left: 0;
}
