.anlm-menu-item {
	align-self: center;
}

.anlm-switcher {
	--anlm-ink: #08486d;
	--anlm-focus: #08659b;
	--anlm-border: #c4d5df;
	display: inline-block;
	position: relative;
	margin: 0;
	padding: 0;
	font-family: inherit;
	line-height: 1;
	text-align: start;
	vertical-align: middle;
}

.anlm-switcher,
.anlm-switcher * {
	box-sizing: border-box;
}

.anlm-switcher .anlm-trigger {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	margin: 0;
	padding: 6px 11px;
	border: 1px solid var(--anlm-border);
	border-radius: 999px;
	color: var(--anlm-ink);
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	list-style: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	white-space: nowrap;
}

.anlm-switcher .anlm-trigger::marker {
	content: "";
}

.anlm-switcher .anlm-trigger::-webkit-details-marker {
	display: none;
}

.anlm-switcher .anlm-trigger:hover,
.anlm-switcher[open] .anlm-trigger {
	border-color: #7297ad;
	background-color: #f1f7fa;
}

.anlm-switcher .anlm-code {
	letter-spacing: .03em;
}

.anlm-switcher img.anlm-flag {
	display: inline-block;
	flex: 0 0 24px;
	width: 24px;
	height: 18px;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	outline: 1px solid rgb(16 54 75 / 18%);
	outline-offset: -1px;
	object-fit: cover;
	vertical-align: middle;
}

.anlm-switcher .anlm-chevron,
.anlm-switcher .anlm-globe,
.anlm-switcher .anlm-check {
	display: block;
	flex-shrink: 0;
}

.anlm-switcher .anlm-chevron {
	width: 12px;
	height: 12px;
	transition: transform 140ms ease;
}

.anlm-switcher[open] .anlm-chevron {
	transform: rotate(180deg);
}

.anlm-switcher .anlm-panel {
	position: absolute;
	z-index: 10001;
	inset: auto;
	inset-block-start: calc(100% + 7px);
	inset-inline-end: 0;
	width: min(230px, calc(100vw - 24px));
	max-width: none;
	max-height: min(540px, 80vh);
	margin: 0;
	padding: 5px;
	overflow: auto;
	overscroll-behavior: contain;
	background: #fff;
	border: 1px solid #d3dfe6;
	border-radius: 12px;
	color: var(--anlm-ink);
	box-shadow: 0 8px 28px rgb(8 57 86 / 17%);
	scroll-padding: 5px;
}

.anlm-switcher .anlm-panel[data-anlm-floating] {
	position: fixed;
	inset: auto;
	left: var(--anlm-left);
	top: var(--anlm-top);
	width: var(--anlm-width);
	max-height: var(--anlm-height);
}

.anlm-switcher .anlm-panel .anlm-option {
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 7px 10px !important;
	background: transparent;
	border: 0;
	border-radius: 7px;
	box-shadow: none;
	color: #173f55 !important;
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: normal;
	line-height: 1.3 !important;
	text-align: start;
	text-decoration: none !important;
	text-transform: none !important;
}

.anlm-switcher .anlm-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: normal;
}

.anlm-switcher .anlm-panel .anlm-option[aria-current] {
	background: #eaf4fa;
	color: #08486d !important;
	font-weight: 700 !important;
}

.anlm-switcher .anlm-panel .anlm-option:hover,
.anlm-switcher .anlm-panel .anlm-option:focus-visible {
	background: #dcecf5;
	color: #064569 !important;
}

.anlm-switcher .anlm-trigger:focus-visible,
.anlm-switcher .anlm-panel .anlm-option:focus-visible {
	outline: 2px solid var(--anlm-focus);
	outline-offset: -2px;
}

.anlm-switcher .anlm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.slideout-navigation .anlm-menu-item {
	align-self: stretch;
	padding: 7px 17px;
}

.slideout-navigation .anlm-switcher,
.wp-block-navigation__responsive-container.is-menu-open .anlm-switcher {
	display: block;
	max-width: 100%;
}

.slideout-navigation .anlm-switcher .anlm-panel,
.wp-block-navigation__responsive-container.is-menu-open .anlm-switcher .anlm-panel {
	position: static;
	width: min(230px, 100%);
	max-height: min(360px, 48vh);
	margin-block-start: 7px;
}

@media (pointer: coarse) {
	.anlm-switcher .anlm-trigger,
	.anlm-switcher .anlm-panel .anlm-option {
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.anlm-switcher .anlm-chevron {
		transition: none;
	}
}
