/* SWITCHER */
.sw_off, .sw_on {
	min-width: 90px;
	float: right;
	text-align: right;
	font: 14px/20px var(--font-base) !important;
}

.sw_off span, .sw_on span {
	font: 14px/20px var(--font-base) !important;
}

.sw_off {
	display: inline-block;
}

.sw_on {
	display: none
}

h4.sw_pre {
	color: var(--base-txt-tertiary)
}

h4.sw_act {
	color: var(--base-txt-accent)
}

.sw_act .sw_on {
	display: inline-block
}

.sw_act .sw_off {
	display: none
}

.sw_on span, .sw_off span {
	color: inherit !important;
	font-weight: inherit !important
}

.sw_on, .sw_hover .sw_off {
	color: var(--base-btn-fresh-minor) !important;
	font-weight: bold !important
}

.sw_off, .sw_hover .sw_on {
	color: var(--base-txt-btn-w) !important;
	font-weight: bold !important
}

.sw_hover .sw_off span {
	border-bottom: 1px dashed var(--base-btn-fresh-minor)
}

.sw_hover .sw_on span {
	border-bottom: 1px dashed var(--base-btn-alert-primary-minor)
}

.sw_txt:before {
	content: attr(data-txt-off);
	color: var(--base-txt-tertiary);
	text-transform:uppercase;
}

.sw_act .sw_txt:before {
	content: attr(data-txt-on);
	color: var(--base-btn-togg-on);
}

.sw {
	float: right;
	width: 20px;
	height: 12px;
	padding: 2px;
	border-radius: 8px;
	transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
	margin: 0 0 0 10px;
}

.sw span {
	float: left;
	width: 6px;
	height: 6px;
	margin: 3px;
	border-radius: 10px;
	transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
}

.sw_act .sw span {
	background: var(--base-txt-alt-light);
	width: 10px;
	height: 10px;
	margin: 1px 0 1px 9px;
}

.sw {
	/* background: var(--base-cont-top); */
	box-shadow: 0 0 0 1px var(--base-btn-togg-ghost) inset;
}

.sw span {
	background: var(--base-btn-togg-ghost);
}

.sw_act .sw {
	background: var(--base-btn-togg-on);
	box-shadow: none;
}
.sw_act_always .sw {
	/*background: var(--base-txt-muted);*/
	opacity: 0.25;
}

/* new sw color classes with backward compatibility (if not present) */
a.sw[class*="sw_color_"], .sw_pre[class*="sw_color_"] a.sw { box-shadow: 0 0 0 1px var(--base-txt-tertiary) inset; } /* all off switches border */
a.sw[class*="sw_color_"] span, .sw_pre[class*="sw_color_"] a.sw span { background: var(--base-txt-tertiary); } /* all off switches toggle pill bg */
a.sw[class*="sw_color_"] .sw_txt:before, .sw_pre[class*="sw_color_"] .sw_txt:before { color: var(--base-txt-tertiary); font: var(--font-ui-12-mini-med); } /* all off switches txt (on|off) */

a:hover.sw[class*="sw_color_"], .sw_pre[class*="sw_color_"]:hover a.sw { box-shadow: 0 0 0 1px var(--base-txt-secondary) inset; background: var(--base-hlt-g-hover); } /* all off HOVERED switches border & background */
a:hover.sw[class*="sw_color_"] span, .sw_pre[class*="sw_color_"]:hover a.sw span { background: var(--base-txt-secondary); } /* all off HOVERED switches toggle pill bg */
a:hover.sw[class*="sw_color_"] .sw_txt:before, .sw_pre[class*="sw_color_"]:hover .sw_txt:before { color: var(--base-txt-secondary); font: var(--font-ui-12-mini-med); } /* all off HOVERED switches txt (on|off) */

span.sw[class*="sw_color_"], .sw_pre[class*="sw_color_"] span.sw { box-shadow: 0 0 0 1px var(--base-txt-ghost) inset; } /* all off INACTIVE switches border */
span.sw[class*="sw_color_"] span, .sw_pre[class*="sw_color_"] span.sw span { background: var(--base-txt-ghost); } /* all off INACTIVE switches toggle pill bg */

/* ------ COLOR A ------ */
span.sw.sw_color_a.sw_def, .sw_pre.sw_color_a.sw_def span.sw {background: var(--base-hlt-g-focus);} /* all off INACTIVE switches border */
span.sw.sw_color_a.sw_def span, .sw_pre.sw_color_a.sw_def span.sw span { background: var(--base-txt-alt-light); } /* all off INACTIVE switches toggle pill bg */


a.sw.sw_color_a.sw_act, .sw_pre.sw_color_a.sw_act a.sw { box-shadow: none; background: var(--base-hlt-invert); }
a.sw.sw_color_a.sw_act span, .sw_pre.sw_color_a.sw_act a.sw span { background: var(--base-txt-alt-light); }
a.sw.sw_color_a.sw_act .sw_txt:before, .sw_pre.sw_color_a.sw_act .sw_txt:before { color: var(--base-hlt-invert); font: var(--font-ui-14-regular-semi); }

a.sw.sw_color_a.sw_act:hover, .sw_pre.sw_color_a.sw_act:hover a.sw { background: var(--base-hlt-invert-major); }
a.sw.sw_color_a.sw_act:hover .sw_txt:before, .sw_pre.sw_color_a.sw_act:hover .sw_txt:before { color: var(--base-hlt-invert-major); }

span.sw.sw_color_a.sw_act, .sw_pre.sw_color_a.sw_act span.sw { background: var(--base-hlt-invert); } /* all off INACTIVE switches border */
span.sw.sw_color_a.sw_act span, .sw_pre.sw_color_a.sw_act span.sw span { background: var(--base-txt-alt-light); } /* all off INACTIVE switches toggle pill bg */
/* ------ COLOR A ------ */

/* ------ COLOR B ------ */
a.sw.sw_color_b.sw_act, .sw_pre.sw_color_b.sw_act a.sw { box-shadow: none; background: var(--base-hlt-b-invert); }
a.sw.sw_color_b.sw_act span, .sw_pre.sw_color_b.sw_act a.sw span { background: var(--base-txt-alt-light); }
a.sw.sw_color_b.sw_act .sw_txt:before, .sw_pre.sw_color_b.sw_act .sw_txt:before { color: var(--base-hlt-b-invert); font: var(--font-ui-14-regular-semi); }

a.sw.sw_color_b.sw_act:hover, .sw_pre.sw_color_b.sw_act:hover a.sw { background: var(--base-hlt-b-invert-major); }
a.sw.sw_color_b.sw_act:hover .sw_txt:before, .sw_pre.sw_color_b.sw_act:hover .sw_txt:before { color: var(--base-hlt-b-invert-major); }
/* ------ COLOR B ------ */

/* ------ COLOR C ------ */
a.sw.sw_color_c.sw_act, .sw_pre.sw_color_c.sw_act a.sw { box-shadow: none; background: var(--base-txt-new-minor); }
a.sw.sw_color_c.sw_act span, .sw_pre.sw_color_c.sw_act a.sw span { background: var(--base-txt-alt-light); }
a.sw.sw_color_c.sw_act .sw_txt:before, .sw_pre.sw_color_c.sw_act .sw_txt:before { color: var(--base-txt-new-minor); font: var(--font-ui-14-regular-semi); }

a.sw.sw_color_c.sw_act:hover, .sw_pre.sw_color_c.sw_act:hover a.sw { background: var(--base-txt-new-major); }
a.sw.sw_color_c.sw_act:hover .sw_txt:before, .sw_pre.sw_color_c.sw_act:hover .sw_txt:before { color: var(--base-txt-new-major); }

span.sw.sw_color_c.sw_act, .sw_pre.sw_color_c.sw_act span.sw { background: var(--base-txt-new-minor); } /* all off INACTIVE switches border */
span.sw.sw_color_c.sw_act span, .sw_pre.sw_color_c.sw_act span.sw span { background: var(--base-txt-alt-light); } /* all off INACTIVE switches toggle pill bg */
/* ------ COLOR C ------ */

/* ------ COLOR W ------ */
a.sw.sw_color_w.sw_act, .sw_pre.sw_color_w.sw_act a.sw { box-shadow: none; background: var(--base-hlt-w-invert); }
a.sw.sw_color_w.sw_act span, .sw_pre.sw_color_w.sw_act a.sw span { background: var(--base-txt-alt-light); }
a.sw.sw_color_w.sw_act .sw_txt:before, .sw_pre.sw_color_w.sw_act .sw_txt:before { color: var(--base-hlt-w-invert); font: var(--font-ui-14-regular-semi); }

a.sw.sw_color_w.sw_act:hover, .sw_pre.sw_color_w.sw_act:hover a.sw { background: var(--base-hlt-w-invert-major); }
a.sw.sw_color_w.sw_act:hover .sw_txt:before, .sw_pre.sw_color_w.sw_act:hover .sw_txt:before { color: var(--base-hlt-w-invert-major); }
/* ------ COLOR W ------ */

/* TODO: add active unclickable classes when new colors arrive */

.sw_disabled {
	opacity: 0.5;
	pointer-events: none;
}

.sw_small:not(.flex_row) {
	display: inline-block;
	vertical-align: bottom;
}

.menu .sw, .menuFake .sw, .sw_small .sw {
	width: 18px;
	height: 12px;
	margin: 4px 0 4px 5px;
	padding: 0;
}
.menu .sw, .menuFake .sw {
	margin:0 4px;
}

.menu .sw span, .menuFake .sw span, .sw_small .sw span {
	width: 4px;
	height: 4px;
	margin: 4px;
}

.menu .sw_act .sw span, .menuFake .sw_act .sw span, .sw_small.sw_act .sw span {
	margin: 2px 2px 2px 8px;
	width: 8px;
	height: 8px;
}

.sw_pre.sw_act .sw_lim {
	background: var(--base-btn-alert-primary-minor)
}

body.mobile #filterButton__config__menu .sw {
	width: 20px
}

.fileItem .sw {
	margin: 1px;
	float: left;
	padding: 0;
}

.fileItem .sw_act .sw {
	background: var(--base-txt-link-minor);
}

.sw_off .a2, .sw_on .a2 {
	display: none
}

.sw_hover .sw_off .a1, .sw_hover .sw_on .a1 {
	display: none
}

.sw_hover .sw_off .a2, .sw_hover .sw_on .a2 {
	display: inline
}

.sw.sw_big {
    width: 20px;
    padding: 2px;
    margin: 0 2px 0 0;
}

.sw.sw_big span {
    width: 6px!important;
    height: 6px!important;
    margin: 3px!important;
}
.sw_act .sw.sw_big span {
    width: 10px!important;
    height: 10px!important;
    margin: 1px 0 1px 9px!important;
}

.switch_block {
	background: var(--base-cont-mid);
	padding: 15px;
	color: var(--base-txt-secondary);
	font: 13px/20px var(--font-base);
}

.commentForm .switch_block {
	border-radius: 10px;
}

#google_data .switch_block {
	margin: -8px 0;
	border-top: none;
	display: inline-block;
	padding: 8px 15px;
	background: var(--base-cont-mod-top)
}

.ws-btn-reset {display: none;}

@media (max-width: 480px) {
	.setupPage .ws-btn-reset {max-width: 80px;}
}

.sw_loading {
	pointer-events: none;
}
.sw_loading .sw {
	position: relative;
}
.sw_loading .sw span {
	opacity: 0;
}
/* like .loader--curling but css only */
.sw_loading .sw::after {
	position: absolute;
	display: block;
	content: "";
	border: unset;
	animation: loader .6s linear infinite;
	border-radius: 50%;
	padding: 2px;
	background: conic-gradient(from 90deg at 50.17% 50%, #73C7FF -7.5deg, rgba(255, 255, 255, 0) 41.25deg, rgba(255, 255, 255, 0) 93.75deg, #FFFFFF 179.31deg, #FFD6F6 258.75deg, #73C7FF 352.5deg, rgba(255, 255, 255, 0) 401.25deg);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	width: 6px;
	height: 6px;
	top: calc(50% - 5px);
	/* left: calc(50% - 5px); */
	left: 2px;
}
.sw_loading.sw_act .sw::after {
	left: unset;
	right: 2px;
}