/* AUTOOL AI Translate — browser-language suggestion popup.
 * Same surface as the header language popup (AUTOOL Brand Header & Footer #abbhf-langs, 1.8.2): dark
 * glass rgba(20,21,24,.8) + saturate(160%) blur(18px), 6px panel / 4px cells, centred title bar with a
 * close button, name + grey alt name per row, check on the current language. Phone <768: sheet rising
 * from the bottom with 52px hairline rows; tablet / desktop: centred 480px panel with cells.
 * Light mode (AUTOOL Brand Color Mode, html[data-abcm="light"]) swaps the tokens for white glass. */
.abat-sg {
	--sg-font: "ABBHF Inter", "ABH Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sg-ease: cubic-bezier(.19, 1, .22, 1);
	--sg-gutter: 20px;
	--sg-text: #F0F0FA;
	--sg-text-2: rgba(240, 240, 250, .56);
	--sg-glass: rgba(20, 21, 24, .8);
	--sg-blur: saturate(160%) blur(18px);
	--sg-solid: #17191D;
	--sg-line: rgba(240, 240, 250, .1);
	--sg-cell: rgba(240, 240, 250, .06);
	--sg-hover: rgba(240, 240, 250, .12);
	--sg-edge: inset 0 0 0 1px rgba(240, 240, 250, .1);
	--sg-shadow: 0 24px 64px rgba(0, 0, 0, .45);
	--sg-check: var(--abbhf-brand, #F0F0FA);
	--sg-backdrop: rgba(0, 0, 0, .5);
	--sg-r: 6px;
	--sg-r-s: 4px;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: transparent;
	color: var(--sg-text);
	font-family: var(--sg-font);
	-webkit-font-smoothing: antialiased;
}
html[data-abcm="light"] .abat-sg {
	--sg-text: #15181C;
	--sg-text-2: #5F636B;
	--sg-glass: rgba(255, 255, 255, .84);
	--sg-blur: saturate(180%) blur(18px);
	--sg-solid: #FFFFFF;
	--sg-line: rgba(21, 24, 28, .1);
	--sg-cell: rgba(21, 24, 28, .045);
	--sg-hover: rgba(21, 24, 28, .09);
	--sg-edge: inset 0 0 0 1px rgba(255, 255, 255, .6);
	--sg-shadow: 0 24px 64px rgba(21, 24, 28, .2);
	--sg-check: #15181C;
	--sg-backdrop: rgba(21, 24, 28, .32);
}
.abat-sg[open] { display: flex; align-items: flex-end; justify-content: center; }
.abat-sg::backdrop { background: var(--sg-backdrop, rgba(0, 0, 0, .5)); opacity: 0; transition: opacity .25s ease; }
.abat-sg.is-open::backdrop { opacity: 1; }
.abat-sg__in {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100% - 12px - env(safe-area-inset-top, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	border-radius: var(--sg-r) var(--sg-r) 0 0;
	background: var(--sg-glass);
	-webkit-backdrop-filter: var(--sg-blur);
	backdrop-filter: var(--sg-blur);
	box-shadow: var(--sg-edge), var(--sg-shadow);
	transform: translateY(100%);
	transition: transform .4s var(--sg-ease);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.abat-sg__in { background: var(--sg-solid); }
}
@media (prefers-reduced-transparency: reduce) {
	.abat-sg__in { background: var(--sg-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.abat-sg.is-open .abat-sg__in { transform: none; }

.abat-sg__ico {
	width: 1em;
	height: 1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.abat-sg__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.abat-sg :focus-visible { outline: 2px solid var(--sg-text); outline-offset: 2px; box-shadow: none; }
.abat-sg .abat-sg__in:focus { outline: 0; }

.abat-sg__head {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 56px;
	border-bottom: 1px solid var(--sg-line);
}
.abat-sg__h { margin: 0; color: var(--sg-text); font: 600 17px/1.3 var(--sg-font); letter-spacing: 0; text-align: center; text-transform: none; }
.abat-sg__x {
	position: absolute;
	top: 6px;
	inset-inline-end: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--sg-r-s);
	background: transparent;
	color: var(--sg-text);
	font-size: 22px;
	cursor: pointer;
	transition: background-color .2s ease;
}
.abat-sg__x:hover { background: var(--sg-hover); color: var(--sg-text); }
.abat-sg__p { margin: 0; padding: 16px var(--sg-gutter) 12px; color: var(--sg-text-2); font: 400 15px/1.5 var(--sg-font); }

.abat-sg__list { margin: 0; padding: 0; list-style: none; }
.abat-sg .abat-sg__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 var(--sg-gutter);
	box-shadow: inset 0 -1px 0 var(--sg-line);
	color: var(--sg-text);
	font: 400 16px/1.3 var(--sg-font);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s ease;
}
.abat-sg .abat-sg__list a:hover,
.abat-sg .abat-sg__list a:active { background: var(--sg-hover); color: var(--sg-text); }
.abat-sg__list li:first-child a { font-weight: 600; }
.abat-sg__list a[aria-current="true"] { font-weight: 400; }
.abat-sg__name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abat-sg__alt { flex: 0 1 auto; min-width: 0; margin-inline-start: auto; overflow: hidden; color: var(--sg-text-2); font-size: 14px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.abat-sg__check { color: var(--sg-check); font-size: 18px; stroke-width: 2; }
.abat-sg__go { font-size: 16px; opacity: .6; transition: transform .35s var(--sg-ease); }
.abat-sg__name + .abat-sg__check,
.abat-sg__name + .abat-sg__go { margin-inline-start: auto; }
.abat-sg__list a:hover .abat-sg__go { transform: translateX(3px); }
[dir="rtl"] .abat-sg__go,
[dir="rtl"] .abat-sg__chev { transform: scaleX(-1); }
[dir="rtl"] .abat-sg__list a:hover .abat-sg__go { transform: scaleX(-1) translateX(3px); }

/* Like the header drawer's language row: globe, label, chevron. */
.abat-sg__more {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0 var(--sg-gutter);
	border: 0;
	background: transparent;
	color: var(--sg-text-2);
	font: 400 15px/1.3 var(--sg-font);
	letter-spacing: 0;
	text-align: start;
	text-transform: none;
	cursor: pointer;
	transition: color .2s ease;
}
.abat-sg__more[hidden] { display: none; }
.abat-sg__more:hover { background: transparent; color: var(--sg-text); }
.abat-sg__more .abat-sg__ico { font-size: 18px; }
.abat-sg__more .abat-sg__chev { margin-inline-start: auto; font-size: 16px; opacity: .6; transition: transform .35s var(--sg-ease); }
.abat-sg__more:hover .abat-sg__chev { transform: translateX(3px); }

@media (min-width: 768px) {
	.abat-sg { --sg-gutter: 32px; }
	.abat-sg[open] { align-items: center; padding: 48px 32px; }
	.abat-sg__in { width: min(480px, 100%); max-height: 100%; padding-bottom: 20px; border-radius: var(--sg-r); opacity: 0; transform: translateY(16px); transition: transform .35s var(--sg-ease), opacity .25s ease; }
	.abat-sg.is-open .abat-sg__in { opacity: 1; }
	.abat-sg__h { font-size: 16px; }
	.abat-sg__p { padding: 20px 32px 16px; font-size: 14px; }
	.abat-sg__list { display: grid; gap: 8px; padding: 0 32px; }
	.abat-sg .abat-sg__list a { min-height: 48px; padding: 0 16px; border-radius: var(--sg-r-s); background: var(--sg-cell); box-shadow: none; font-size: 14px; }
	.abat-sg__name { flex: none; max-width: 60%; }
	.abat-sg__check { font-size: 16px; }
	.abat-sg__alt + .abat-sg__check,
	.abat-sg__alt + .abat-sg__go { margin-inline-start: -4px; }
	.abat-sg__more { min-height: 44px; margin-top: 8px; padding: 0 32px; font-size: 14px; }
}
@media (max-height: 560px) and (min-width: 768px) {
	.abat-sg[open] { padding: 12px 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.abat-sg__in, .abat-sg::backdrop, .abat-sg__go, .abat-sg__chev { transition: none; }
}
