/**
 * Header kiểu sàn TMĐT — "Ship to" · "EN – USD" · Sign in · Register.
 * Markup: inc/currency.php (Ship to), inc/header-market.php (chip ngôn ngữ),
 * template-parts/header/partials/element-account.php (Sign in / Register).
 */

/* Widget gốc GTranslate vẫn chạy (dịch trang) nhưng ẩn — thay bằng chip "EN – USD" */
.smt-i18n-bar .gtranslate_wrapper {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

.smt-i18n-bar {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ===== Ship to ===== */
.smt-currency-switcher .smt-cs__toggle {
	gap: 6px;
}

.smt-cs__k {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	text-transform: none;
	letter-spacing: 0;
}

.smt-cs__toggle .smt-cs__label--full,
.smt-cs__toggle .smt-cs__cur {
	display: none;
}

.smt-cs__toggle .smt-cs__label--code {
	font-weight: 700;
}

/* ===== Chip ngôn ngữ – tiền tệ ===== */
.smt-locale {
	position: relative;
}

.smt-locale__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid #dfe5ee;
	border-radius: 999px;
	background: #fff;
	color: #1f2a44;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: border-color 0.2s;
}

.smt-locale__toggle:hover,
.smt-locale.is-open .smt-locale__toggle {
	border-color: #26b4e9;
}

.smt-locale__toggle svg {
	color: #1e73be;
}

.smt-locale__sep {
	color: #9aa3b2;
	font-weight: 400;
}

.smt-locale__caret {
	font-size: 10px;
	color: #6b7280;
}

.smt-locale__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1000;
	width: 250px;
	padding: 12px;
	border: 1px solid #e3e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(11, 37, 80, 0.16);
	text-align: left;
}

.smt-locale__panel[hidden] {
	display: none;
}

.smt-locale__k {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.smt-locale__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smt-locale__list li {
	margin: 0;
}

.smt-locale__list button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #1f2a44;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.smt-locale__list button span {
	min-width: 26px;
	font-size: 12px;
	font-weight: 700;
	color: #1e73be;
}

.smt-locale__list button:hover,
.smt-locale__list li.is-active button {
	background: #f1f6fc;
}

.smt-locale__note {
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 1px solid #eef1f6;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
}

/* ===== Sign in / Register ===== */
#masthead .smt-hdr-auth {
	display: flex;
	align-items: center;
	gap: 10px;
}

#masthead .smt-hdr-auth__signin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	color: #1f2a44;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

#masthead .smt-hdr-auth__signin:hover {
	color: #1e73be;
}

#masthead .smt-hdr-auth__register {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff8a3d 0%, #e8572a 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(232, 87, 42, 0.28);
}

#masthead .smt-hdr-auth__register:hover {
	filter: brightness(1.05);
	color: #fff;
}

@media (max-width: 849px) {
	#masthead .smt-hdr-auth__signin span {
		display: none;
	}
}
