.rwmb-switch-label {
	--size: 13px;
	--padding: 2px;
	--color: var(--wp-admin-theme-color, #2271b1);

	cursor: pointer;
	position: relative;
	display: inline-block;
	background-color: #ccc;
	padding: var(--padding);
	border-radius: 3px;
	min-width: calc(var(--size) * 2 + var(--padding) * 2);
	height: calc(var(--size) + var(--padding) * 2);
	box-sizing: border-box;
}
.rwmb-switch.rwmb-switch {
	display: none;
}

.rwmb-switch:checked + .rwmb-switch-status .rwmb-switch-slider {
	background-color: var(--color);
	box-shadow: 0 0 1px var(--color);
}

.rwmb-switch:checked + .rwmb-switch-status .rwmb-switch-slider:before {
	left: calc(100% - var(--size) - var(--padding));
}

.rwmb-switch:checked + .rwmb-switch-status .rwmb-switch-off {
	visibility: hidden;
	display: none;
}

.rwmb-switch:not(:checked) + .rwmb-switch-status .rwmb-switch-on {
	visibility: hidden;
	display: none;
}

.rwmb-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 15;
	transition: .4s;
}

.rwmb-switch-slider:before {
	position: absolute;
	content: attr(title-before) "";
	height: var(--size);
	width: var(--size);
	left: var(--padding);
	bottom: var(--padding);
	z-index: 99;
	background-color: white;
	transition: .4s;
	border-radius: 2px;
}

.rwmb-switch-label--square .rwmb-switch-slider {
	border-radius: 3px;
}

.rwmb-switch-label--rounded,
.rwmb-switch-label--rounded .rwmb-switch-slider {
	border-radius: 99px;
}

.rwmb-switch-label--rounded .rwmb-switch-slider:before {
	border-radius: 50%;
}

.rwmb-switch-on,
.rwmb-switch-off {
	display: inline-block;
	float: left;
	margin: 0 4px;
	color: #fff;
	text-transform: uppercase;
	font-size: 11px;
	position: relative;
	z-index: 20;
	line-height: var(--size);
}

.rwmb-switch-on {
	padding-right: calc(var(--size) + var(--padding));
}

.rwmb-switch-off {
	padding-left: calc(var(--size) + var(--padding));
}

/* Admin color schemes */
.admin-color-blue .rwmb-switch-label  {
	--color: var(--wp-admin-theme-color, #e1a948);
}
.admin-color-coffee .rwmb-switch-label {
	--color: var(--wp-admin-theme-color, #c7a589);
}
.admin-color-ectoplasm .rwmb-switch-label {
	--color: var(--wp-admin-theme-color, #a3b745);
}
.admin-color-light .rwmb-switch-label {
	--color: var(--wp-admin-theme-color, #04a4cc);
}
.admin-color-midnight .rwmb-switch-label {
	--color: var(--wp-admin-theme-color, #e14d43);
}
.admin-color-modern .rwmb-switch-label {
	--color: var(--wp-admin-theme-color, #3858e9);
}
.admin-color-ocean .rwmb-switch-label {
	--color: var(--wp-admin-theme-color, #9ebaa0);
}
.admin-color-sunrise .rwmb-switch-label {
	--color: var(--wp-admin-theme-color, #dd823b);
}
