/* Atonika language switcher
   Header pill + drawer row + footer select
--------------------------------------------------------------- */
.atk-lang {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.atk-flag {
	width: 24px;
	height: 16px;
	border-radius: 3px;
	display: inline-block;
	flex: 0 0 24px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
	overflow: hidden;
	vertical-align: middle;
}
.atk-flag--mx { background: linear-gradient(90deg, #006847 0 33.33%, #fff 33.33% 66.66%, #ce1126 66.66% 100%); }
.atk-flag--us { background: repeating-linear-gradient(180deg, #b22234 0 1.23px, #fff 1.23px 2.46px); position: relative; }
.atk-flag--us::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 8px; background: #3c3b6e; }
.atk-flag--br { background: linear-gradient(180deg, #009c3b 0 100%); position: relative; }
.atk-flag--br::before { content: ""; position: absolute; inset: 3px 2px; background: #ffdf00; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.atk-flag--br::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #002776; }
.atk-flag--de { background: linear-gradient(180deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%); }
.atk-flag--fr { background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66% 100%); }
.atk-flag--it { background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66% 100%); }

/* --- Header pill --- */
.site-actions .atk-lang--header { margin-right: 6px; }

.atk-lang__current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	min-width: 72px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(196, 154, 99, .38);
	background: #fff;
	color: var(--atk-navy);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(16, 29, 66, .07);
	transition: border-color .15s ease;
}
.atk-lang__current:hover { border-color: var(--atk-gold-dark); }

.atk-lang__chev {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--atk-navy);
	margin-left: 2px;
}

.atk-lang__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 9999;
	display: none;
	grid-template-columns: 1fr;
	gap: 8px;
	min-width: 168px;
	padding: 10px;
	background: #fff;
	border: 1px solid rgba(16, 29, 66, .08);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(16, 29, 66, .16);
}
.atk-lang.is-open .atk-lang__menu { display: grid; }

.atk-lang__option {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--atk-navy);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
}
.atk-lang__option:hover,
.atk-lang__option.is-active { background: #f5f2ed; }

/* --- Drawer row --- */
.atk-lang-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 18px 0 4px;
}
.atk-lang-row .atk-lang__option {
	height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(196, 154, 99, .38);
	border-radius: 999px;
	background: #fff;
}
.atk-lang-row .atk-lang__option.is-active {
	background: var(--atk-gold);
	border-color: var(--atk-gold);
	color: var(--atk-navy);
}

/* --- Footer --- */
.site-footer__lang .lang-links [data-atk-lang-option] { cursor: pointer; }
.site-footer__lang .lang-links [data-atk-lang-option].is-active { color: var(--atk-gold-dark); font-weight: 700; }
.atk-lang-select { cursor: pointer; }

@media (max-width: 1024px) {
	.site-actions .atk-lang--header { display: none; }
}
@media (max-width: 420px) {
	.atk-lang__menu { min-width: 150px; }
}
