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

.slw-switcher {
	--slw-control-height: 38px;
	--slw-gap: 8px;
	--slw-border: #d6dde7;
	--slw-muted: #64748b;
	color: var(--slw-text, #1f2937);
	font-family: inherit;
	font-size: 14px;
	letter-spacing: 0;
	line-height: 1.3;
}

.slw-switcher a {
	text-decoration: none;
}

.slw-switcher-placement--inline,
.slw-switcher-placement--header-inline {
	align-items: center;
	display: flex;
	justify-content: flex-end;
	margin: 0 auto;
	max-width: 1220px;
	padding: 0 24px;
	position: relative;
	z-index: 40;
}

.slw-switcher--dropdown {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	z-index: 999;
}

.slw-switcher__toggle,
.slw-switcher__pill {
	align-items: center;
	appearance: none;
	background: var(--slw-bg, #ffffff);
	border: 1px solid var(--slw-border);
	border-radius: var(--slw-radius, 6px);
	box-shadow: none;
	color: var(--slw-text, #1f2937);
	display: inline-flex;
	font: inherit;
	font-weight: 500;
	gap: var(--slw-gap);
	justify-content: center;
	letter-spacing: 0;
	min-height: var(--slw-control-height);
	padding: 8px 12px;
	text-transform: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
	white-space: nowrap;
}

.slw-switcher__toggle {
	cursor: pointer;
}

.slw-switcher__toggle:hover,
.slw-switcher__pill:hover {
	border-color: color-mix(in srgb, var(--slw-accent, #2563eb) 58%, var(--slw-border));
	color: var(--slw-accent, #2563eb);
}

.slw-switcher__toggle:focus-visible,
.slw-switcher__pill:focus-visible,
.slw-switcher__option:focus-visible {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--slw-accent, #2563eb) 24%, transparent);
	outline: 2px solid transparent;
}

.slw-switcher__globe {
	color: currentColor;
	flex: 0 0 auto;
	height: 17px;
	opacity: 0.78;
	width: 17px;
}

.slw-switcher__chevron {
	color: currentColor;
	flex: 0 0 auto;
	height: 9px;
	opacity: 0.62;
	transition: transform 180ms ease;
	width: 9px;
}

.slw-switcher.is-open .slw-switcher__chevron {
	transform: rotate(180deg);
}

.slw-switcher__flag {
	align-items: center;
	background: #eef2f7;
	border: 1px solid rgba(15, 23, 42, 0.16);
	border-radius: 2px;
	color: #475569;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: Arial, sans-serif;
	font-size: 7px;
	font-weight: 800;
	height: 14px;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
	overflow: hidden;
	width: 20px;
}

.slw-flag--de { background: linear-gradient(to bottom, #171717 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%); color: transparent; }
.slw-flag--fr { background: linear-gradient(to right, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66%); color: transparent; }
.slw-flag--es { background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); color: transparent; }
.slw-flag--it { background: linear-gradient(to right, #009246 0 33.33%, #ffffff 33.33% 66.66%, #ce2b37 66.66%); color: transparent; }
.slw-flag--nl { background: linear-gradient(to bottom, #ae1c28 0 33.33%, #ffffff 33.33% 66.66%, #21468b 66.66%); color: transparent; }
.slw-flag--pl { background: linear-gradient(to bottom, #ffffff 0 50%, #dc143c 50%); color: transparent; }
.slw-flag--pt { background: linear-gradient(to right, #046a38 0 40%, #da291c 40%); color: transparent; }
.slw-flag--sa { background: #006c35; color: transparent; }
.slw-flag--ae { background: linear-gradient(to bottom, #00732f 0 33.33%, #ffffff 33.33% 66.66%, #000000 66.66%); border-left: 6px solid #ff0000; color: transparent; }
.slw-flag--jp { background: radial-gradient(circle, #bc002d 0 32%, #ffffff 34%); color: transparent; }
.slw-flag--ar { background: linear-gradient(to bottom, #74acdf 0 33.33%, #ffffff 33.33% 66.66%, #74acdf 66.66%); color: transparent; }
.slw-flag--us {
	background:
		linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 45% 54% no-repeat,
		repeating-linear-gradient(to bottom, #b22234 0 7.69%, #ffffff 7.69% 15.38%);
	color: transparent;
}

.slw-switcher__label {
	color: inherit;
	display: inline-block;
	letter-spacing: 0;
	white-space: nowrap;
}

.slw-switcher__menu {
	background: #ffffff;
	border: 1px solid var(--slw-border);
	border-radius: min(var(--slw-radius, 6px), 10px);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
	list-style: none;
	margin: 0;
	max-height: min(360px, calc(100vh - 32px));
	max-width: calc(100vw - 24px);
	min-width: 190px;
	opacity: 0;
	overflow: auto;
	padding: 6px;
	position: absolute;
	right: 0;
	top: calc(100% + 7px);
	transform: translateY(-5px);
	transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
	visibility: hidden;
	width: max-content;
	z-index: 1000;
}

.slw-switcher.is-open .slw-switcher__menu {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.slw-switcher.is-align-left .slw-switcher__menu {
	left: 0;
	right: auto;
}

.slw-switcher.is-drop-up .slw-switcher__menu {
	bottom: calc(100% + 7px);
	top: auto;
	transform: translateY(5px);
}

.slw-switcher.is-drop-up.is-open .slw-switcher__menu {
	transform: translateY(0);
}

.slw-switcher__menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.slw-switcher__option {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 5px;
	color: #27364a;
	display: flex;
	font: inherit;
	font-weight: 450;
	gap: 10px;
	justify-content: flex-start;
	letter-spacing: 0;
	min-height: 39px;
	padding: 8px 10px;
	text-align: start;
	text-transform: none;
	transition: background-color 120ms ease, color 120ms ease;
	width: 100%;
}

.slw-switcher__option:hover,
.slw-switcher__option:focus {
	background: #f1f5f9;
	color: var(--slw-accent, #2563eb);
	outline: none;
}

.slw-switcher__option.is-active {
	background: color-mix(in srgb, var(--slw-accent, #2563eb) 9%, #ffffff);
	color: var(--slw-accent, #2563eb);
	font-weight: 650;
}

.slw-switcher__check {
	display: none;
	flex: 0 0 auto;
	height: 16px;
	margin-inline-start: auto;
	width: 16px;
}

.slw-switcher__option.is-active .slw-switcher__check {
	display: block;
}

.slw-switcher--pills {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 7px;
}

.slw-switcher__pill.is-active {
	background: color-mix(in srgb, var(--slw-accent, #2563eb) 9%, var(--slw-bg, #ffffff));
	border-color: var(--slw-accent, #2563eb);
	color: var(--slw-accent, #2563eb);
}

/* Minimal Outline: restrained and compatible with most navigation bars. */
.slw-switcher--style-minimal .slw-switcher__toggle,
.slw-switcher--style-minimal .slw-switcher__pill {
	background: color-mix(in srgb, var(--slw-bg, #ffffff) 92%, transparent);
}

/* Soft Surface: subtle fill without a heavy card treatment. */
.slw-switcher--style-soft .slw-switcher__toggle,
.slw-switcher--style-soft .slw-switcher__pill {
	background: color-mix(in srgb, var(--slw-bg, #ffffff) 84%, #e8eef6);
	border-color: color-mix(in srgb, var(--slw-text, #1f2937) 12%, transparent);
}

.slw-switcher--style-soft .slw-switcher__menu {
	border-color: color-mix(in srgb, var(--slw-text, #1f2937) 12%, transparent);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

/* Compact: optimized for small header and drawer footprints. */
.slw-switcher--style-compact {
	--slw-control-height: 32px;
	--slw-gap: 6px;
	font-size: 12px;
}

.slw-switcher--style-compact .slw-switcher__toggle,
.slw-switcher--style-compact .slw-switcher__pill {
	font-weight: 700;
	padding: 5px 9px;
}

.slw-switcher--style-compact .slw-switcher__globe {
	height: 14px;
	width: 14px;
}

.slw-switcher--style-compact .slw-switcher__flag {
	font-size: 14px;
}

/* Floating: elevated but still neutral enough for commerce headers. */
.slw-switcher--style-floating .slw-switcher__toggle,
.slw-switcher--style-floating .slw-switcher__pill {
	border-color: transparent;
	box-shadow: 0 5px 16px rgba(15, 23, 42, 0.12);
}

.slw-switcher--style-floating .slw-switcher__toggle:hover,
.slw-switcher--style-floating .slw-switcher__pill:hover {
	box-shadow: 0 7px 20px rgba(15, 23, 42, 0.16);
	transform: translateY(-1px);
}

/* Text + Underline: visually joins an existing menu instead of boxing it. */
.slw-switcher--style-underline .slw-switcher__toggle,
.slw-switcher--style-underline .slw-switcher__pill {
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	padding-inline: 7px;
}

.slw-switcher--style-underline .slw-switcher__toggle:hover,
.slw-switcher--style-underline .slw-switcher__pill:hover,
.slw-switcher--style-underline .slw-switcher__pill.is-active {
	border-bottom-color: var(--slw-accent, #2563eb);
}

/* Segmented: connected direct choices; dropdown remains compact. */
.slw-switcher--style-segmented.slw-switcher--pills {
	background: color-mix(in srgb, var(--slw-text, #1f2937) 7%, transparent);
	border: 1px solid color-mix(in srgb, var(--slw-text, #1f2937) 13%, transparent);
	border-radius: min(var(--slw-radius, 6px), 10px);
	flex-wrap: nowrap;
	gap: 0;
	padding: 3px;
}

.slw-switcher--style-segmented .slw-switcher__pill {
	background: transparent;
	border: 0;
	box-shadow: none;
	min-width: 42px;
}

.slw-switcher--style-segmented .slw-switcher__pill.is-active {
	background: var(--slw-bg, #ffffff);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.slw-switcher--style-segmented.slw-switcher--dropdown .slw-switcher__toggle {
	background: color-mix(in srgb, var(--slw-bg, #ffffff) 88%, #e8eef6);
}

/* Borderless Menu: disappears into an existing navigation bar. */
.slw-switcher--style-borderless .slw-switcher__toggle,
.slw-switcher--style-borderless .slw-switcher__pill {
	background: transparent;
	border-color: transparent;
	padding-inline: 6px;
}

.slw-switcher--style-borderless .slw-switcher__toggle:hover,
.slw-switcher--style-borderless .slw-switcher__pill:hover {
	background: color-mix(in srgb, var(--slw-text, #1f2937) 7%, transparent);
}

/* Glass: translucent for layered and media-backed headers. */
.slw-switcher--style-glass .slw-switcher__toggle,
.slw-switcher--style-glass .slw-switcher__pill {
	backdrop-filter: blur(12px);
	background: color-mix(in srgb, var(--slw-bg, #ffffff) 68%, transparent);
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

/* Dark Contrast: a strong neutral control for light headers. */
.slw-switcher--style-dark .slw-switcher__toggle,
.slw-switcher--style-dark .slw-switcher__pill {
	background: #172033;
	border-color: #172033;
	color: #ffffff;
}

.slw-switcher--style-dark .slw-switcher__toggle:hover,
.slw-switcher--style-dark .slw-switcher__pill:hover {
	background: #27364a;
	border-color: #27364a;
	color: #ffffff;
}

/* Flag Chip: compact flag-led trigger with minimal text weight. */
.slw-switcher--style-flag-chip {
	--slw-control-height: 34px;
	--slw-gap: 6px;
	font-size: 12px;
}

.slw-switcher--style-flag-chip .slw-switcher__toggle,
.slw-switcher--style-flag-chip .slw-switcher__pill {
	border-radius: 999px;
	font-weight: 700;
	padding: 5px 10px 5px 6px;
}

.slw-switcher--style-flag-chip .slw-switcher__flag {
	border-radius: 999px;
	height: 21px;
	width: 21px;
}

.slw-mobile-nav-mount[hidden] {
	display: none;
}

.slw-mobile-nav-mount {
	display: none;
}

.rtl-language .slw-switcher__menu,
.slw-switcher [dir="rtl"] {
	direction: rtl;
}

.rtl-language .slw-switcher__menu {
	left: 0;
	right: auto;
}

@media (max-width: 1024px) {
	.slw-switcher-placement--inline,
	.slw-switcher-placement--header-inline {
		padding: 0 12px;
	}

	.slw-mobile-nav-mount.is-mounted {
		display: block;
	}

	.slw-mobile-nav-bar {
		background: color-mix(in srgb, var(--slw-bg, #ffffff) 96%, transparent);
		border-bottom: 1px solid #e5eaf0;
		padding: 12px 16px;
		position: relative;
		width: 100%;
		z-index: 12;
	}

	.slw-mobile-nav-bar .slw-switcher {
		width: 100%;
	}

	.slw-mobile-nav-bar .slw-switcher__toggle {
		justify-content: flex-start;
		width: 100%;
	}

	.slw-mobile-nav-bar .slw-switcher__chevron {
		margin-inline-start: auto;
	}

	.slw-mobile-nav-bar .slw-switcher__menu {
		bottom: auto;
		left: auto;
		margin-top: 7px;
		max-width: none;
		min-width: 0;
		position: static;
		right: auto;
		top: auto;
		width: 100%;
	}

	.slw-mobile-nav-bar .slw-switcher--pills {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
	}

	.slw-mobile-nav-bar .slw-switcher--pills .slw-switcher__pill {
		flex: 1 1 auto;
		min-width: 58px;
	}
}

@media (max-width: 480px) {
	.slw-switcher__toggle,
	.slw-switcher__pill {
		min-height: 36px;
		padding: 7px 10px;
	}

	.slw-mobile-nav-bar {
		padding: 10px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slw-switcher *,
	.slw-switcher *::before,
	.slw-switcher *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
