/* 訂閱流程：header 右上角語言 / 貨幣切換 */

.vs-sub-locale-switcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.vs-sub-dd {
	position: relative;
}

.vs-sub-dd__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.vs-sub-dd__btn:hover,
.vs-sub-dd__btn[aria-expanded='true'] {
	border-color: #01488c;
	box-shadow: 0 2px 8px rgba(1, 72, 140, 0.12);
}

.vs-sub-dd__btn:focus-visible {
	outline: 2px solid #01488c;
	outline-offset: 2px;
}

.vs-sub-dd__flag {
	display: block;
	width: 18px;
	height: 12px;
	object-fit: cover;
	border-radius: 2px;
	flex-shrink: 0;
}

.vs-sub-dd__label {
	max-width: 96px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vs-sub-dd__sep {
	color: #94a3b8;
	font-weight: 400;
	flex-shrink: 0;
}

.vs-sub-dd__ccy {
	color: #475569;
	font-weight: 600;
	flex-shrink: 0;
}

.vs-sub-dd__item-label {
	flex: 1 1 auto;
	min-width: 0;
}

.vs-sub-dd__item-ccy {
	margin-left: auto;
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.vs-sub-dd__item.is-active .vs-sub-dd__item-ccy {
	color: #01488c;
}

.vs-sub-dd__btn--test {
	border-style: dashed;
	border-color: #f59e0b;
	background: #fffbeb;
}

.vs-sub-dd__btn--test:hover,
.vs-sub-dd__btn--test[aria-expanded='true'] {
	border-color: #d97706;
	box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.vs-sub-dd__meta {
	font-size: 11px;
	font-weight: 600;
	color: #b45309;
	text-transform: uppercase;
	flex-shrink: 0;
}

.vs-sub-dd--geo-test .vs-sub-dd__menu {
	min-width: 160px;
}

.vs-sub-dd__caret {
	font-size: 10px;
	color: #667085;
	line-height: 1;
}

.vs-sub-dd__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 1200;
	min-width: 180px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.vs-sub-dd__menu[hidden] {
	display: none;
}

.vs-sub-dd__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: #334155;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.3;
}

.vs-sub-dd__item:hover,
.vs-sub-dd__item:focus {
	background: #f0f6fc;
	color: #01488c;
	outline: none;
}

.vs-sub-dd__item.is-active {
	background: #eef4fb;
	color: #01488c;
	font-weight: 600;
}

@media (max-width: 992px) {
	.header-controls-new .vs-sub-locale-switcher {
		display: inline-flex !important;
	}

	.vs-sub-dd__label {
		max-width: 72px;
		font-size: 12px;
	}

	.vs-sub-dd__btn {
		padding: 5px 8px;
	}
}

@media (max-width: 480px) {
	.vs-sub-locale-switcher {
		gap: 6px;
	}

	.vs-sub-dd__label {
		max-width: 64px;
		font-size: 12px;
	}

	.vs-sub-dd__ccy {
		font-size: 12px;
	}
}
