/* Basic token vars, adjust as needed */
:root {
	--tt-bg: #fff;
	--tt-fg: #222;
	--tt-radius: 2px;
	--tt-pad: 16px 20px;
	--tt-shadow: 0 0 42px rgba(0, 0, 0, .10);
	--tt-arrow: 20px;
	--tt-gap: 12px;
	/* arrow size (width = height) */
}

/* CSS-only fallback when data-tooltip is present */
.has-tooltip[data-tooltip] {
	position: relative;
}

.has-tooltip[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	margin-top: var(--tt-gap);
	background: #fff;
	color: var(--tt-fg);
	padding: var(--tt-pad);
	border-radius: var(--tt-radius);
	white-space: nowrap;
	box-shadow: var(--tt-shadow);
	opacity: 0;
	pointer-events: none;
	transition: opacity .12s ease;
	z-index: 9999;
}

.has-tooltip[data-tooltip]:hover::after,
.has-tooltip[data-tooltip]:focus-visible::after {
	opacity: 1;
}

/* JS-injected floating tooltip element */
.tt-float {
	position: absolute;
	left: 0;
	top: 0;
	visibility: hidden;
	pointer-events: none;
	/* root ignores clicks */
	z-index: 2147483000;
}

.tt-float.is-visible {
	visibility: visible;
}

.tt-float__bubble {
	position: relative;
	/* required for arrow positioning */
	display: inline-block;
	background: var(--tt-bg);
	color: var(--tt-fg);
	padding: var(--tt-pad);
	border-radius: var(--tt-radius);
	box-shadow: var(--tt-shadow);
	line-height: 1.35;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(2px);
	transition: transform .12s ease, opacity .12s ease;
}

.tt-float__bubble {
	font-size: 15px;
	text-align: center;
}

.tt-float__bubble p {
	margin-bottom: 10px;
}

.tt-float__bubble p:last-child {
	margin-bottom: 10px;
}

.tt-float__bubble a.panel-tel {
	color: #000;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.tt-float__bubble .panel-tel__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tt-float__bubble .panel-tel__inner::before {
	content: "";
	background-image: url(../../svg/icon-phone.svg);
	width: 18px;
	height: 32px;
	display: inline-flex;
}

.tt-float.is-visible .tt-float__bubble {
	opacity: 1;
}

/* Arrow (diamond) */
.tt-float__bubble::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: var(--tt-arrow);
	height: var(--tt-arrow);
	background: inherit;
	/* same as bubble background */
	transform: translate(-50%, -50%) rotate(45deg);
}

.tt-float--top .tt-float__bubble::before {
	top: auto;
	bottom: -18px;
}

/* invisible bridge that covers the space above the bubble up to the trigger */
.tt-float__hit {
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	/* JS overrides to match GAP */
	height: 8px;
	/* JS overrides to match GAP */
	pointer-events: auto;
	/* captures hover to keep open */
}

.panel-tel {
	font-size: 20px;
}

.working-hours-panel-js[data-open="true"] .is-open-closed {
	color: #4F7F37;
}

.working-hours-panel-js[data-open="false"] .is-open-closed {
	color: #8D2C2C;
}
