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

.plcs-switcher {
	--plcs-summary-bg: #fff;
	--plcs-summary-hover: #fafafa;
	--plcs-summary-text: #202124;
	--plcs-summary-border: rgba(17, 24, 39, .14);
	--plcs-summary-border-hover: rgba(17, 24, 39, .28);
	--plcs-summary-flag-border: rgba(17, 24, 39, .12);
	--plcs-summary-accent: #e81f76;
	--plcs-menu-bg: #fff;
	--plcs-option-hover: #f5f6f7;
	--plcs-text: #202124;
	--plcs-muted: #6b7280;
	--plcs-menu-border: rgba(17, 24, 39, .1);
	--plcs-flag-border: rgba(17, 24, 39, .12);
	--plcs-summary-shadow: 0 1px 3px rgba(17, 24, 39, .08);
	--plcs-menu-shadow: 0 14px 38px rgba(17, 24, 39, .18);
	--plcs-accent: #e81f76;
	--plcs-open-border: rgba(232, 31, 118, .45);
	--plcs-open-ring: rgba(232, 31, 118, .1);
	--plcs-selected: #fff0f6;
	--plcs-selected-hover: #ffe7f1;
	--plcs-check: #18794e;
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	color: var(--plcs-text);
	font: inherit;
	line-height: 1.2;
}

.plcs-switcher--light {
	--plcs-summary-border: transparent;
	--plcs-summary-border-hover: transparent;
	--plcs-summary-shadow: none;
	--plcs-open-border: transparent;
	--plcs-open-ring: transparent;
	color-scheme: light;
}

.plcs-switcher--dark {
	--plcs-summary-bg: transparent;
	--plcs-summary-hover: transparent;
	--plcs-summary-text: #f8fafc;
	--plcs-summary-border: transparent;
	--plcs-summary-border-hover: transparent;
	--plcs-summary-flag-border: rgba(255, 255, 255, .3);
	--plcs-summary-accent: #ff5fa2;
	--plcs-summary-shadow: none;
	--plcs-open-border: transparent;
	--plcs-open-ring: transparent;
	color-scheme: light;
}

.plcs-switcher > summary {
	list-style: none;
}

.plcs-switcher > summary::-webkit-details-marker {
	display: none;
}

.plcs-switcher .plcs-switcher__summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 92px;
	min-height: 40px;
	margin: 0;
	padding: 6px 11px;
	border: 1px solid var(--plcs-summary-border);
	border-radius: 10px;
	background: var(--plcs-summary-bg);
	box-shadow: var(--plcs-summary-shadow);
	color: var(--plcs-summary-text);
	cursor: pointer;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	user-select: none;
	white-space: nowrap;
}

.plcs-switcher .plcs-switcher__summary:hover {
	border-color: var(--plcs-summary-border-hover);
	background: var(--plcs-summary-hover);
}

.plcs-switcher .plcs-switcher__summary:focus-visible {
	outline: 2px solid var(--plcs-summary-accent);
	outline-offset: 2px;
}

.plcs-switcher[open] .plcs-switcher__summary {
	border-color: var(--plcs-open-border);
	box-shadow: 0 0 0 3px var(--plcs-open-ring);
}

.plcs-switcher .plcs-switcher__flag {
	display: block;
	flex: 0 0 24px;
	width: 24px;
	height: 18px;
	max-width: none;
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--plcs-flag-border);
	object-fit: cover;
}

.plcs-switcher .plcs-switcher__summary .plcs-switcher__flag {
	box-shadow: 0 0 0 1px var(--plcs-summary-flag-border);
}

.plcs-switcher .plcs-switcher__code,
.plcs-switcher .plcs-switcher__option-code {
	color: var(--plcs-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	text-transform: uppercase;
}

.plcs-switcher .plcs-switcher__summary .plcs-switcher__code {
	color: var(--plcs-summary-text);
}

.plcs-switcher__chevron {
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	margin: -3px 1px 0 3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: margin .15s ease, transform .15s ease;
}

.plcs-switcher[open] .plcs-switcher__chevron {
	margin-top: 3px;
	transform: rotate(225deg);
}

.plcs-switcher .plcs-switcher__menu {
	position: absolute;
	z-index: 99999;
	top: calc(100% + 8px);
	right: 0;
	left: auto;
	width: 218px;
	max-width: calc(100vw - 16px);
	max-height: 520px;
	max-height: min(70vh, 520px);
	max-height: min(70dvh, 520px);
	padding: 7px;
	overflow-x: hidden;
	overflow-y: auto;
	border: 1px solid var(--plcs-menu-border);
	border-radius: 12px;
	background: var(--plcs-menu-bg);
	box-shadow: var(--plcs-menu-shadow);
	color: var(--plcs-text);
	overscroll-behavior: contain;
}

.plcs-switcher .plcs-switcher__form {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.plcs-switcher .plcs-switcher__option {
	-webkit-appearance: none;
	appearance: none;
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 7px 10px !important;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--plcs-text);
	cursor: pointer;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.2;
	text-align: left !important;
	text-transform: none !important;
	white-space: normal !important;
}

.plcs-switcher__option > .plcs-switcher__option-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.plcs-switcher .plcs-switcher__option:hover {
	background: var(--plcs-option-hover) !important;
}

.plcs-switcher .plcs-switcher__option:focus-visible {
	outline: 2px solid var(--plcs-accent);
	outline-offset: -2px;
}

.plcs-switcher .plcs-switcher__option.is-current {
	background: var(--plcs-selected) !important;
	box-shadow: inset 3px 0 0 var(--plcs-accent) !important;
}

.plcs-switcher .plcs-switcher__option.is-current:hover {
	background: var(--plcs-selected-hover) !important;
}

.plcs-switcher__option-inner > .plcs-switcher__flag {
	flex: 0 0 24px !important;
	width: 24px !important;
	height: 18px !important;
	margin: 0 !important;
}

.plcs-switcher__option-inner > .plcs-switcher__option-text {
	display: flex !important;
	align-items: flex-start !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	flex-direction: column !important;
	line-height: 1.25;
	text-align: left !important;
}

.plcs-switcher .plcs-switcher__option-label {
	margin-top: 2px;
	overflow: hidden;
	color: var(--plcs-muted);
	font-size: 12px;
	letter-spacing: normal;
	text-overflow: ellipsis;
	text-transform: none;
	white-space: nowrap;
}

.plcs-switcher .plcs-switcher__check {
	flex: 0 0 18px !important;
	margin-left: auto !important;
	color: var(--plcs-check);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

@media (max-width: 767px) {
	.plcs-switcher .plcs-switcher__summary {
		min-width: 96px;
		min-height: 44px;
		padding: 7px 10px;
	}

	.plcs-switcher__summary .plcs-switcher__flag {
		flex-basis: 26px;
		width: 26px;
		height: 20px;
	}

	.plcs-switcher .plcs-switcher__menu {
		right: 0;
		left: auto;
		width: 204px;
		max-width: calc(100vw - 16px);
		max-height: 360px;
		max-height: min(62vh, 360px);
		max-height: min(62dvh, 360px);
		padding: 5px;
	}

	.plcs-switcher .plcs-switcher__option {
		min-height: 44px !important;
		padding: 5px 7px !important;
	}

	.plcs-switcher__option > .plcs-switcher__option-inner {
		gap: 8px !important;
	}

	.plcs-switcher .plcs-switcher__option-label {
		margin-top: 1px;
		font-size: 11px;
	}
}

.plcs-switcher--light .plcs-switcher__summary,
.plcs-switcher--dark .plcs-switcher__summary {
	padding-inline-end: 0;
}
