/* FX Scroll Home Pill */

/* Kontejner widgetu: absolutně, na střed. Top řeší control (responzivně).
   Centrování přes auto margin (ne transform) => linka zůstane na celých pixelech = ostrá. */
.elementor-widget-fx_scroll_home_pill {
	--fxshp-w: 30px;
	--fxshp-h: 56px;
	--fxshp-radius: 10px;
	--fxshp-arrow: 14px;
	--fxshp-edge: 8px;
	--fxshp-line-w: 1px;
	--fxshp-hit: 24px;
	--fxshp-line-c: rgba(255, 255, 255, .5);
	--fxshp-arrow-c: rgba(255, 255, 255, .5);
	--fxshp-line-ch: rgba(255, 255, 255, .8);
	--fxshp-arrow-ch: rgba(255, 255, 255, .8);
	--fxshp-bg-c: transparent;
	--fxshp-glow: rgba(255, 255, 255, .35);
	--fxshp-total: 1.2s;
	--fxshp-speed-h: 150;
	--fxshp-kf-arrow: none;
	--fxshp-kf-line: none;
	--fxshp-kf-ring: none;
	--fxshp-ring: 8px;
	--fxshp-scale: 1;
	--fxshp-shift: 0px;
	--fxshp-travel: calc((var(--fxshp-h) - var(--fxshp-arrow)) / 2 - var(--fxshp-edge));

	position: absolute;
	top: 600px;
	left: var(--fxshp-shift);
	right: calc(var(--fxshp-shift) * -1);
	width: fit-content !important;
	max-width: 100%;
	margin: 0 auto !important;
	transform: none;
	z-index: 20;
}

.fxshp-hit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--fxshp-hit);
	min-width: 44px;
	min-height: 44px;
	box-sizing: content-box;
	text-decoration: none !important;
	border: 0;
	outline: 0;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	cursor: pointer;
}

.fxshp-pill {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: var(--fxshp-w);
	height: var(--fxshp-h);
	border: var(--fxshp-line-w) solid var(--fxshp-line-c);
	border-radius: var(--fxshp-radius);
	background-color: var(--fxshp-bg-c);
	transition: border-color .25s ease, background-color .25s ease;
}

/* prstenec pulzu (zapnutý jen přes checkbox) */
.fxshp-pill::after {
	content: "";
	position: absolute;
	inset: calc(var(--fxshp-line-w) * -1);
	border-radius: var(--fxshp-radius);
	box-shadow: 0 0 0 0 var(--fxshp-glow);
	opacity: 0;
	pointer-events: none;
}

.fxshp-arrow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--fxshp-arrow);
	height: var(--fxshp-arrow);
	margin: calc(var(--fxshp-arrow) / -2) 0 0 calc(var(--fxshp-arrow) / -2);
	color: var(--fxshp-arrow-c);
	fill: currentColor;
	overflow: visible;
	transition: color .25s ease;
	animation: var(--fxshp-kf-arrow) var(--fxshp-total) linear infinite;
}

/* ----- pulzování bez hoveru ----- */
.fxshp-pulse-idle-yes .fxshp-pill {
	animation: var(--fxshp-kf-line) var(--fxshp-total) linear infinite;
}
.fxshp-pulse-idle-yes .fxshp-pill::after {
	animation: var(--fxshp-kf-ring) var(--fxshp-total) linear infinite;
}

/* ----- hover / focus ----- */
.fxshp-hit:hover .fxshp-pill,
.fxshp-hit:focus-visible .fxshp-pill {
	border-color: var(--fxshp-line-ch);
	background-color: var(--fxshp-bg-ch, var(--fxshp-bg-c));
	transform: scale(var(--fxshp-scale));
	animation: none;
}
.fxshp-hit:hover .fxshp-pill::after,
.fxshp-hit:focus-visible .fxshp-pill::after {
	animation: none;
}
.fxshp-hit:hover .fxshp-arrow,
.fxshp-hit:focus-visible .fxshp-arrow {
	color: var(--fxshp-arrow-ch);
	animation-duration: calc(var(--fxshp-total) * 100 / var(--fxshp-speed-h));
}
/* pulzování při hoveru */
.fxshp-pulse-hover-yes .fxshp-hit:hover .fxshp-pill::after,
.fxshp-pulse-hover-yes .fxshp-hit:focus-visible .fxshp-pill::after {
	animation: var(--fxshp-kf-ring) calc(var(--fxshp-total) * 100 / var(--fxshp-speed-h)) linear infinite;
}
.fxshp-hit:focus-visible .fxshp-pill {
	outline: 1px dashed var(--fxshp-line-ch);
	outline-offset: 6px;
}

/* Keyframes (šipka, linka, prstenec) generuje widget pro každou instanci – viz build_keyframes() v PHP. */

@media (prefers-reduced-motion: reduce) {
	.fxshp-pill,
	.fxshp-pill::after,
	.fxshp-arrow { animation: none !important; }
	.fxshp-arrow { opacity: 1; }
}
