/*	Header quick switcher for the active access						*/
/*	(frontend/templates/gl/access-switcher.php, access-switcher.js)	*/
/*	Positioned by JS directly left of the user name, so the account	*/
/*	component itself stays untouched.								*/

			#asw {
				position: fixed;
				top: 0;
				right: 0;
				height: 55px;
				/* above the account toggle (2200), whose absolutely positioned
				   300px name box reaches under this button */
				z-index: 2210;
				pointer-events: none;
				visibility: hidden;
			}
			#asw[data-placed="1"] { visibility: visible; }
			html[data-asw="1"] #asw { z-index: 2250; }

			#asw .access-switcher {
				position: relative;
				box-sizing: border-box;
				height: 55px;
				padding-top: 12px;
			}

			/* toggle */

			#asw .access-switcher-toggle {
				display: flex;
				align-items: center;
				gap: 6px;
				position: relative;
				box-sizing: border-box;
				height: 32px;
				max-width: var(--asw-max-width, 260px);
				margin: 0;
				padding: 0 8px 0 6px;
				border: 1px solid var(--shade_medium);
				border-radius: 3px;
				background-color: rgba(255,255,255,0.6);
				color: inherit;
				font-family: inherit;
				font-weight: 300;
				font-size: var(--paragraph_fontsize);
				line-height: 30px;
				cursor: pointer;
				pointer-events: all;
				z-index: 2;
				appearance: none;
				-webkit-appearance: none;
			}
			#asw .access-switcher-toggle:hover,
			html[data-asw="1"] #asw .access-switcher-toggle { background-color: white; }
			#asw .access-switcher-toggle i {
				flex: 0 0 auto;
				width: 18px;
				height: 18px;
				background-repeat: no-repeat;
				background-position: center center;
				background-size: 18px 18px;
				background-image: url("../images/assets/positive/user.svg");
			}
			#asw .access-switcher[data-active-type="school"] .access-switcher-toggle i {
				background-image: url("../images/assets/positive/school.svg");
			}
			#asw .access-switcher-toggle em {
				flex: 1 1 auto;
				min-width: 0;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				font-style: normal;
				opacity: 0.85;
			}
			#asw .access-switcher-toggle .caret {
				flex: 0 0 auto;
				width: 10px;
				height: 10px;
				background-repeat: no-repeat;
				background-position: center center;
				background-size: 10px 10px;
				background-image: url("../images/assets/positive/arrow-1-down.svg");
				opacity: 0.6;
				transition: transform .2s ease;
			}
			html[data-asw="1"] #asw .access-switcher-toggle .caret { transform: rotate(180deg); }

			#asw[data-compact="1"] .access-switcher-toggle em,
			#asw[data-compact="1"] .access-switcher-toggle .caret { display: none; }
			#asw[data-compact="1"] .access-switcher-toggle { padding: 0 6px; }

			/* cover + menu (same open/close pattern as #act) */

			#asw .pagecover {
				position: fixed;
				left: 0;
				top: 0;
				width: 100vw;
				height: 100vh;
				background-color: var(--cover_page_color);
				backdrop-filter: blur(1px);
				z-index: 1;
				visibility: hidden;
				pointer-events: none;
				opacity: 0;
				transition: opacity .2s ease, visibility 0s ease .5s;
			}
			html[data-asw="1"] #asw .pagecover {
				visibility: visible;
				pointer-events: all;
				opacity: 1;
				transition: opacity .2s ease, visibility 0s linear 0s;
			}

			#asw .access-switcher-menu {
				position: absolute;
				top: 55px;
				right: 0;
				min-width: 260px;
				max-width: 420px;
				max-height: calc(100vh - 75px);
				overflow-y: auto;
				background-color: white;
				box-shadow: 0 1px 10px 0 rgba(0,0,0,0.3);
				border-bottom-left-radius: 3px;
				border-bottom-right-radius: 3px;
				text-align: left;
				z-index: 2;
				visibility: hidden;
				pointer-events: none;
				opacity: 0;
				transition: opacity .15s ease, visibility 0s linear .15s;
			}
			html[data-asw="1"] #asw .access-switcher-menu {
				visibility: visible;
				pointer-events: all;
				opacity: 1;
				transition: opacity .15s ease, visibility 0s linear 0s;
			}
			#asw .access-switcher-menu ul {
				display: block;
				margin: 0;
				padding: 8px 0;
				list-style: none;
			}
			#asw .access-switcher-menu li {
				display: block;
				float: none;
				width: auto;
				margin: 0;
				padding: 0;
			}
			#asw .access-switcher-menu .access-switcher-group {
				margin: 6px 15px 2px 15px;
				padding-top: 8px;
				border-top: 1px solid var(--shade_medium);
				font-size: calc(var(--paragraph_fontsize) * 0.8);
				line-height: var(--paragraph_leading);
				opacity: 0.6;
			}
			#asw .access-switcher-menu button {
				display: flex;
				align-items: flex-start;
				gap: 10px;
				width: 100%;
				margin: 0;
				padding: 8px 15px;
				border: none;
				background: none;
				color: inherit;
				font-family: inherit;
				font-weight: 300;
				font-size: var(--paragraph_fontsize);
				line-height: var(--paragraph_leading);
				text-align: left;
				cursor: pointer;
				appearance: none;
				-webkit-appearance: none;
			}
			#asw .access-switcher-menu button:hover,
			#asw .access-switcher-menu button:focus-visible { background-color: var(--shade_light); }
			#asw .access-switcher-menu button i {
				flex: 0 0 auto;
				width: 16px;
				height: 16px;
				margin-top: 3px;
				background-repeat: no-repeat;
				background-position: center center;
				background-size: 14px 14px;
			}
			#asw .access-switcher-menu button[aria-checked="true"] { font-weight: 600; }
			#asw .access-switcher-menu button[aria-checked="true"] i {
				background-image: url("../images/assets/positive/checked.svg");
			}
			#asw .access-switcher-menu button em {
				font-style: normal;
				overflow-wrap: anywhere;
			}

	/*   -L   */ @media screen and (min-width:0px) and (max-width:1039px) {
			#asw .access-switcher-menu {
				position: fixed;
				left: 20px;
				right: auto;
				width: calc(100vw - 40px);
				max-width: none;
				min-width: 0;
			}
	}
