/* BV Tooltip */

/* Base */
.bv-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 5px;
	vertical-align: middle;
	outline: none;
	touch-action: manipulation;
}

.bv-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid var(--wp--preset--color--accent-10, #E7E9EE);
	border-radius: 999px;
	background: var(--wp--preset--color--accent-9, #F2F4F7);
	color: var(--wp--preset--color--entry, #111827);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: help;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.bv-tooltip:hover .bv-tooltip-icon,
.bv-tooltip:focus-visible .bv-tooltip-icon {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1, #C99A3A) 44%, var(--wp--preset--color--accent-10, #E7E9EE));
	background: color-mix(in srgb, var(--wp--preset--color--accent-1, #C99A3A) 10%, var(--wp--preset--color--base, #fff));
	color: var(--wp--preset--color--contrast, #061B33);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent-1, #C99A3A) 14%, transparent);
}

/* Hidden Source Content */
.bv-tooltip-content {
	display: none !important;
}

/* Floating */
.bv-tooltip-floating {
	position: fixed;
	z-index: 2147483001;
	box-sizing: border-box;
	width: max-content;
	max-width: min(280px, calc(100vw - 24px));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(4px);
	transition:
		opacity 0.18s ease,
		visibility 0.18s ease,
		transform 0.18s ease;
}

.bv-tooltip-floating.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bv-tooltip-floating__content {
	box-sizing: border-box;
	padding: 14px 18px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base, #fff) 10%, transparent);
	border-radius: 10px;
	background: var(--wp--preset--color--contrast, #061B33);
	color: var(--wp--preset--color--base, #fff);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	white-space: normal;
	box-shadow: 0 8px 24px rgba(6, 27, 51, 0.18);
}

.bv-tooltip-floating::after {
	position: absolute;
	left: var(--bv-tooltip-arrow-left, 50%);
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--contrast, #061B33);
	content: "";
	transform: translateX(-50%) rotate(45deg);
}

.bv-tooltip-floating--top::after {
	bottom: -4px;
}

.bv-tooltip-floating--bottom::after {
	top: -4px;
}

.bv-tooltip-floating.is-visible {
	pointer-events: auto;
}

.bv-tooltip-content__title,
.bv-tooltip-content__desc,
.bv-tooltip-content__link {
	display: block;
}

.bv-tooltip-content__title {
	margin: 0 0 5px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: currentColor;
}

.bv-tooltip-content__desc {
	font-size: 13px;
	line-height: 1.5;
	color: currentColor;
	opacity: .92;
}

.bv-tooltip-content__link {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--accent-1, #C99A3A);
	text-decoration: none;
}

.bv-tooltip-content__link:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
	.bv-tooltip-floating {
		max-width: min(260px, calc(100vw - 32px));
	}

	.bv-tooltip-floating__content {
		font-size: 12px;
	}
}

@media (max-width: 420px) {
	.bv-tooltip-icon {
		width: 21px;
		height: 21px;
		font-size: 13px;
	}
}
