.inputReplaceRow, .checkList {
	display: grid;
	margin: 5px 0;
	gap: 5px .75em;
	align-items: flex-start;
	grid-template-columns: 1.5em auto;
}

.inputReplaceLabel, .checkList label {
	align-self: center;
	line-height: 1.25em;
	margin: 0;
	padding: 0;
}

.inputReplaceLabel label {
	padding: 0;
	margin: 0;
}

input[type="checkbox"], input[type="radio"] {
	appearance: none;
	/* For iOS < 15 */
	background-color: white;
	width: 1.25rem;
	height: 1.25rem;
	transform: translateY(-0.05em);
	place-content: center;
	border: 1px solid #b2b2b2;
	border-radius: 2px;
	position: relative;
	display: grid;
	transition: all .15s;
	cursor: pointer;
	flex: none;
	margin: 0;
	padding: 0;
	min-height: 0;
	border-radius: 2px;
}

input[type="radio"] {
	border-radius: 50%;
}


/* hover */

input[type="checkbox"]:enabled:hover, input[type="radio"]:enabled:hover, input[type="checkbox"]:enabled:focus, input[type="radio"]:enabled:focus {
	border-color: #427b00;
}


/* zaskrtnuti */

input[type="checkbox"]:checked, input[type="radio"]:checked {
	background: #427b00;
	border-color: #427b00;
	box-shadow: 2px 1px 3px rgba(0, 0, 0, .1) inset;
}

input[type="checkbox"]:checked:after, input[type="radio"]:checked:after {
	opacity: 1;
	transform: scale(1.2);
}

input[type="checkbox"]:after, input[type="radio"]:after {
	content: ' ';
	pointer-events: none;
	transform: scale(2);
	transition: 100ms transform ease-out;
	opacity: 0;
	display: grid;
}

input[type="checkbox"]:after {
	width: .5em;
	height: .5em;
	clip-path: polygon(32% 70%, 90% 17%, 99% 28%, 33% 90%, 1% 59%, 11% 49%);
	filter: invert(1);
	/* Windows High Contrast Mode */
	background-color: CanvasText;
}

input[type="radio"]:after {
	background-color: white;
	border-radius: 50%;
	width: .5em;
	height: .5em;
}

label a {
	color: currentColor;
}

input[type="checkbox"]:disabled, input[type="radio"]:disabled {
	filter: grayscale(1);
	opacity: .5;
	pointer-events: none;
}

.switcher {
	display: inline-flex;
}

.switcher__l, .switcher__r {
	position: relative;
	flex: 1;
	border: 1px solid #ccc;
	border-width: 1px 0 1px 1px;
	border-radius: 2px 0 0 2px;
	padding: 2px;
}

.switcher__r {
	border-left-width: 0;
	border-width: 1px 1px 1px 0;
	border-radius: 0 2px 2px 0;
}

.switcher .switcher__input {
	appearance: none;
	border-radius: 0;
	width: 4em;
	height: 2em;
	background: transparent;
	border-width: 0;
	display: block;
	transition-delay: 0;
	box-shadow: none;
	transform: none;
	transition: none;
	border-radius: 2px;
	cursor: pointer;
	background-color: #fff;
}

.switcher__label {
	display: grid;
	place-content: center;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	font-size: .875em;
	padding: 0;
	margin: 0;
	z-index: 2;
	color: var(--textColor);
	transition: color .2s;
	transition-delay: 0;
	pointer-events: none;
}

.switcher .switcher__input:not(:checked):hover {
	background: rgba(0, 0, 0, 0.05);
}


/* posouvátko */

.switcher .switcher__input:checked:before {
	content: ' ';
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	background: var(--primColor);
	border-radius: 2px;
	z-index: 2;
}

.switcher .switcher__input:checked + .switcher__label {
	color: white;
	transition-delay: .15s;
}


/* biColor */


/*
.switcher__l .switcher__input:checked, .switcher__l .switcher__input:checked:before {
	background: green;
}

.switcher__r .switcher__input:checked, .switcher__r .switcher__input:checked:before {
	background: red;
}
*/

.switcher__l .switcher__input:checked:focus::before {
	/*cas posunu */
	animation: s1 .3s ease-in-out;
}

.switcher__r .switcher__input:checked:focus::before {
	/*cas posunu */
	animation: s2 .3s ease-in-out;
}

.switcher .switcher__input:checked {
	transition: background .1s;
	/*cas posunu */
	transition-delay: .3s;
	box-shadow: none;
	/* prevence opetovneho kliknuti na chcecked */
	pointer-events: none;
}

@keyframes s1 {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0%);
	}
}

@keyframes s2 {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0%);
	}
}

.switcher .switcher__input:after {
	display: none;
}
