.neo-header-actions,
.neo-header-actions * {
	box-sizing: border-box;
}

.neo-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	color: #493528;
}

.neo-header-actions__language {
	display: inline-flex;
	align-items: center;
}

.neo-header-actions__language-dropdown {
	position: relative;
}

.neo-header-actions__language-trigger {
	display: inline-flex;
	min-width: 64px;
	margin: 0;
	padding: 8px 10px 8px 2px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 0;
	outline-offset: 5px;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-weight: 400;
	font-size: 16px;
	line-height: 120%;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}

.neo-header-actions__language-trigger:hover,
.neo-header-actions__language-trigger:focus,
.neo-header-actions__language-trigger:active {
	border: 0;
	background: transparent !important;
	box-shadow: none;
	color: #fff;
}

.neo-header-actions__language-trigger:focus-visible {
	outline: 1px solid currentColor;
}

.neo-header-actions__language-chevron {
	display: block;
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease, margin-top .2s ease;
}

.neo-header-actions__language-menu {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 8px);
	left: 50%;
	min-width: 96px;
	margin: 0;
	padding: 8px 0;
	visibility: hidden;
	list-style: none;
	border: 1px solid rgba(181, 138, 75, .25);
	background: #fff;
	box-shadow: 0 10px 30px rgba(73, 53, 40, .16);
	opacity: 0;
	transform: translate(-50%, -4px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	pointer-events: none;
}

.neo-header-actions__language-menu::before {
	position: absolute;
	top: -9px;
	right: 0;
	left: 0;
	height: 9px;
	content: '';
}

.neo-header-actions__language-dropdown:hover .neo-header-actions__language-menu,
.neo-header-actions__language-dropdown.is-open .neo-header-actions__language-menu {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.neo-header-actions__language-dropdown:hover .neo-header-actions__language-chevron,
.neo-header-actions__language-dropdown.is-open .neo-header-actions__language-chevron {
	margin-top: 3px;
	transform: rotate(225deg);
}

.neo-header-actions__language-option {
	display: block;
	padding: 9px 18px;
	color: #493528 !important;
	-webkit-text-fill-color: #493528;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 1.5px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.neo-header-actions__language-option:hover,
.neo-header-actions__language-option:focus-visible,
.neo-header-actions__language-option.is-current {
	background: rgba(181, 138, 75, .12);
	color: #9d7337 !important;
	-webkit-text-fill-color: #9d7337;
}

.ast-theme-transparent-header .neo-header-actions,
.ast-theme-transparent-header .neo-header-actions__language-trigger,
.ast-theme-transparent-header .neo-header-actions__language-trigger:hover,
.ast-theme-transparent-header .neo-header-actions__language-trigger:focus,
.ast-theme-transparent-header .neo-header-actions__language-trigger:active {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

body:not(.ast-theme-transparent-header) .neo-header-actions,
body:not(.ast-theme-transparent-header) .neo-header-actions__language-trigger,
body:not(.ast-theme-transparent-header) .neo-header-actions__language-trigger:hover,
body:not(.ast-theme-transparent-header) .neo-header-actions__language-trigger:focus,
body:not(.ast-theme-transparent-header) .neo-header-actions__language-trigger:active {
	color: #493528 !important;
	-webkit-text-fill-color: #493528;
}

.neo-header-actions__divider {
	display: block;
	width: 1px;
	height: 48px;
	background: #b58a4b;
}

/* 設計稿：單一語系切換連結，右側霧金分隔線 */
.neo-header-actions__language-switch {
	display: inline-flex;
	align-items: center;
	padding: 4px 16px;
	border-right: 1px solid #b58a4b;
	color: inherit !important;
	font-family: "Raleway", "Noto Sans TC", sans-serif;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 2px;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .2s ease;
}

.neo-header-actions__language-switch:hover,
.neo-header-actions__language-switch:focus-visible {
	color: #b58a4b !important;
	-webkit-text-fill-color: #b58a4b;
}

.ast-theme-transparent-header .neo-header-actions__language-switch {
	color: #f5f0e6 !important;
	-webkit-text-fill-color: #f5f0e6;
}

.neo-header-actions__button {
	display: inline-grid;
	padding: 8px 24px;
	place-items: center;
	border-radius: 999px;
	background: #b58a4b;
	color: #fafafc;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease;
}

.neo-header-actions__button:hover,
.neo-header-actions__button:focus-visible {
	background: #9d7337;
	color: #fff;
}

.neo-header-actions__button:focus-visible {
	outline: 2px solid #493528;
	outline-offset: 3px;
}

.neo-header-actions__button svg {
	display: block;
	width: 24px;
	height: 24px;
}

@media (max-width: 768px) {
	.neo-header-actions {
		gap: 12px;
	}


	.neo-header-actions__language-trigger {
		min-width: 52px;
		padding-right: 4px;
		font-size: 18px;
	}

	.neo-header-actions__divider {
		height: 36px;
	}

	.neo-header-actions__button {
		width: 72px;
		height: 48px;
	}

	.neo-header-actions__button svg {
		width: 21px;
		height: 21px;
	}
}
