/* Floating «Вызвать замерщика». Does not affect document flow. */

.call-btn-zam {
	display: none !important;
}

.dk-measure-fab {
	position: fixed;
	z-index: 1400;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 250px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px 0 0 12px;
	background: var(--dk-green, #0e6b50);
	color: var(--dk-white, #fff);
	box-shadow: -6px 0 18px rgba(23, 32, 29, 0.16);
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dk-measure-fab.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.dk-measure-fab:hover {
	background: var(--dk-green-hover, #095842);
	box-shadow: -8px 0 22px rgba(23, 32, 29, 0.22);
}

.dk-measure-fab:focus {
	outline: none;
}

.dk-measure-fab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.dk-measure-fab__rot {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	height: 52px;
	transform: translate(-50%, -50%) rotate(-90deg);
	white-space: nowrap;
}

.dk-measure-fab__short {
	display: none;
}

@media (max-width: 767px) {
	.dk-measure-fab {
		top: auto;
		left: max(16px, env(safe-area-inset-left));
		right: auto;
		bottom: max(16px, env(safe-area-inset-bottom));
		transform: none;
		width: auto;
		height: 48px;
		min-height: 44px;
		padding: 0 16px;
		border-radius: 12px;
		font-size: 16px;
	}

	.dk-measure-fab__rot {
		display: none;
	}

	.dk-measure-fab__short {
		display: inline;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dk-measure-fab {
		transition: none;
	}
}
