﻿/* Layout for toggle facet */
.toggle-checkbox.product_facet {
	display: flex;
	align-items: center;
	position: relative; /* anchor for tooltip */
}

/* Label text (left) */
.toggle-checkbox.product_facet > label.mb-0:first-of-type {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
}

/* Info button next to label */
.toggle-checkbox.product_facet > .facet-info-btn {
	flex: 0 0 auto;
	margin-left: .35rem;
}

/* Toggle switch pushed to the right */
.toggle-checkbox.product_facet > label.switcher {
	margin-left: auto;
	flex: 0 0 auto;
}

/* Info button look */
.toggle-checkbox.product_facet .facet-info-btn {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 1px solid #3C4F64;
	color: #3C4F64;
	background: transparent;
	font-size: 12px;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	outline: none;
}

.toggle-checkbox.product_facet .facet-info-btn:focus-visible {
	outline: 2px solid #3C4F64;
	outline-offset: 2px;
}

.toggle-checkbox.product_facet .facet-info-btn:hover {
	background: rgba(60, 79, 100, 0.08);
}

/* Tooltip bubble – light theme */
.toggle-checkbox.product_facet .facet-tooltip {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 50;

	max-width: 260px;
	padding: 8px 10px;
	border-radius: 8px;

	background: #ffffff;
	color: #3C4F64;

	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: 0.01em;

	border: 1px solid rgba(60, 79, 100, 0.25);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

	white-space: normal;
}

/* Tooltip arrow */
.toggle-checkbox.product_facet .facet-tooltip::before {
	content: "";
	position: absolute;
	top: -28px;
	left: 50%;
	transform: translateX(-50%);
	border: 14px solid transparent;
	border-bottom-color: #ffffff;
}

.toggle-checkbox.product_facet .facet-tooltip::after {
	content: "";
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	border: 15px solid transparent;
	border-bottom-color: rgba(60, 79, 100, 0.25);
	z-index: -1;
}