.custom-store-switcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.custom-store-switcher__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid rgba(17, 17, 17, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #111;
	line-height: 1.2;
	cursor: pointer;
	font: inherit;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-store-switcher__button:hover,
.custom-store-switcher__button:focus {
	background: #fff;
	border-color: rgba(17, 17, 17, 0.28);
}

.custom-store-popup {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 9999;
	max-width: min(380px, calc(100vw - 36px));
}

.custom-store-popup[hidden] {
	display: none !important;
}

.custom-store-popup__panel {
	position: relative;
	width: 100%;
	background: rgba(255, 255, 255, 0.97);
	color: #111;
	padding: 18px 18px 16px;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
	backdrop-filter: blur(10px);
}

.custom-store-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	color: #111;
	cursor: pointer;
	font: inherit;
	font-size: 28px;
	line-height: 1;
	padding: 0;
	opacity: 0.7;
}

.custom-store-popup__title {
	margin: 0 28px 14px 0;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.custom-store-popup__form {
	display: grid;
	gap: 10px;
}

.custom-store-popup__field {
	display: grid;
	gap: 0;
}

.custom-store-popup__label {
	display: block;
	margin: 0;
	padding: 11px 14px 4px;
	border: 1px solid #d9d9d9;
	border-bottom: 0;
	color: #666;
	font-size: 12px;
	line-height: 1.2;
}

.custom-store-popup__select-wrap {
	position: relative;
}

.custom-store-popup__select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 1.2px solid #111;
	border-bottom: 1.2px solid #111;
	transform: rotate(45deg);
	pointer-events: none;
}

.custom-store-popup__select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 52px;
	border: 1px solid #d9d9d9;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 16px;
	padding: 0 42px 0 14px;
	border-radius: 0;
}

.custom-store-popup__submit {
	margin-top: 4px;
	width: 100%;
	min-height: 44px;
	border: 0;
	background: #111;
	color: #fff;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.custom-store-popup__message {
	margin: 2px 0 0;
	min-height: 18px;
	font-size: 13px;
	color: #666;
}

.custom-store-footer-switcher {
	width: 100%;
	margin-top: 4px;
}

.custom-store-footer-switcher__trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.custom-store-footer-switcher__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
}

.custom-store-footer-switcher__summary {
	display: inline-block;
	font-size: 16px;
	line-height: 1.4;
}

@media (max-width: 991px) {
	.custom-store-popup {
		max-width: min(380px, calc(100vw - 36px));
	}
}

@media (max-width: 640px) {
	.custom-store-popup {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}

	.custom-store-popup__panel {
		padding: 18px 16px 16px;
	}

	.custom-store-popup__close {
		top: 8px;
		right: 8px;
	}

	.custom-store-popup__title {
		margin-bottom: 12px;
		font-size: 18px;
	}

	.custom-store-popup__label {
		padding: 11px 12px 4px;
	}

	.custom-store-popup__select {
		height: 50px;
		font-size: 16px;
		padding: 0 40px 0 12px;
	}

	.custom-store-popup__select-wrap::after {
		right: 14px;
	}

	.custom-store-footer-switcher__summary {
		font-size: 15px;
	}
}
