/* "Brzi linkovi" dock. Fixed position only, so it never shifts page layout. */

.dlk-dock {
	position: fixed;
	z-index: 9980; /* above page content and Avada's sticky header, below the calendar card (99998+) and CookieYes */
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.2;
}
.dlk-dock *, .dlk-dock *::before, .dlk-dock *::after { box-sizing: border-box; }
.dlk-dock .dlk-dock__list {
	list-style: none;
	margin: 0;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #1f222a;
	border: 1px solid #2f333c;
}
.dlk-dock .dlk-dock__li { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
.dlk-dock .dlk-dock__li::before { content: none; }
.dlk-dock .dlk-dock__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	color: #46c3d2;
	text-decoration: none;
	box-shadow: none;
	background: transparent;
}
.dlk-dock .dlk-dock__item:hover,
.dlk-dock .dlk-dock__item:focus-visible { background: #2b2e36; color: #46c3d2; }
.dlk-dock .dlk-dock__item:focus-visible { outline: 2px solid #46c3d2; outline-offset: 2px; }
.dlk-dock .dlk-dock__icon { width: 22px; height: 22px; flex: none; display: block; stroke: currentColor; }

/* label that slides out on hover / keyboard focus (desktop) */
.dlk-dock .dlk-dock__label {
	position: absolute;
	right: 52px;
	top: 50%;
	margin-top: -17px;
	height: 34px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border-radius: 8px;
	background: #1f222a;
	border: 1px solid #2f333c;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateX(8px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}
.dlk-dock .dlk-dock__item:hover .dlk-dock__label,
.dlk-dock .dlk-dock__item:focus-visible .dlk-dock__label { opacity: 1; transform: translateX(0); }

/* desktop: vertical dock on the right edge, vertically centred */
@media (min-width: 1024px) {
	.dlk-dock { right: 0; top: 50%; transform: translateY(-50%); }
	.dlk-dock .dlk-dock__list { border-right: 0; border-radius: 14px 0 0 14px; box-shadow: -8px 0 28px rgba(0, 0, 0, 0.35); }
}

/* below 1024 px: pill bottom-left, first two items as icon buttons (Avada's back-to-top is bottom-right) */
@media (max-width: 1023.98px) {
	.dlk-dock {
		left: calc(16px + env(safe-area-inset-left, 0px));
		bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--dlk-dock-lift, 0px));
		/* no transition on bottom: dock.js reads the resolved value and must never see a half-animated one */
	}
	.dlk-dock .dlk-dock__list { flex-direction: row; padding: 4px; gap: 2px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
	.dlk-dock .dlk-dock__li:nth-child(n+3) { display: none; }
	.dlk-dock .dlk-dock__li + .dlk-dock__li::before { content: ''; width: 1px; height: 24px; margin-right: 2px; background: #2f333c; }
	.dlk-dock .dlk-dock__item { border-radius: 999px; }
	.dlk-dock .dlk-dock__label { display: none; }
	/* The dock is never hidden while waiting for dock.js: if an optimiser delays or breaks the script,
	   it stays visible (dock.js only lifts it above the CookieYes banner). */
}
@media (max-width: 759.98px) {
	body:has(.dlk-sticky.is-on) .dlk-dock:not(.is-measured) { --dlk-dock-lift: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	.dlk-dock .dlk-dock__label { transition: none; }
}
@media print {
	.dlk-dock { display: none !important; }
}
