.atp-switcher {
	position: relative;
	display: inline-block;
	font-size: 13px;
	line-height: 1.4;
}

.atp-switcher__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	font: inherit;
	color: #222;
}

.atp-switcher__toggle:hover {
	border-color: #bbb;
}

.atp-switcher__flag {
	display: inline-flex;
	align-items: center;
	width: 18px;
	height: 13px;
	font-size: 13px;
	line-height: 1;
	flex-shrink: 0;
}

.atp-switcher__flag svg {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 2px;
}

.atp-switcher__label {
	white-space: nowrap;
}

.atp-switcher__caret {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid #888;
	transition: transform 0.15s ease;
}

.atp-switcher.is-open .atp-switcher__caret {
	transform: rotate(180deg);
}

.atp-switcher__list {
	list-style: none;
	margin: 4px 0 0;
	padding: 4px;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 180px;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	z-index: 1;
}

.atp-switcher__list[hidden] {
	display: none;
}

.atp-switcher__item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 4px;
	text-decoration: none;
	color: #222;
	white-space: nowrap;
}

.atp-switcher__item a:hover {
	background: #f2f2f2;
}

.atp-switcher__item.is-current a {
	font-weight: 700;
	background: #f5f5f5;
}

.atp-switcher--float {
	position: fixed;
	bottom: 16px;
	right: 16px;
	z-index: 99999;
}

/* Perto do rodapé da tela, a lista abre pra cima em vez de descer pra fora da viewport. */
.atp-switcher--float .atp-switcher__list {
	top: auto;
	bottom: 100%;
	margin: 0 0 4px;
}
