.t4x-contact-dock {
	--dock-ink: #142636;
	--dock-orange: #ff7b2c;
	position: fixed;
	z-index: 40;
	inset-inline-end: max(15px, env(safe-area-inset-right));
	bottom: clamp(22px, 9vh, 100px);
	font-family: inherit;
}
.t4x-contact-dock__actions {
	display: grid;
	gap: 5px;
	padding: 5px;
	border: 1px solid #d4dce1;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 30px #14263626;
}
.t4x-contact-dock__toggle { display: none; }
.t4x-contact-dock__link {
	position: relative;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 9px;
	color: #fff !important;
	background: var(--channel, var(--dock-ink));
	text-decoration: none;
}
.t4x-contact-dock__link--whatsapp { --channel: #08764d; }
.t4x-contact-dock__link--email { --channel: #a0440b; }
.t4x-contact-dock__link--facebook { --channel: #174db1; }
.t4x-contact-dock__link--tiktok { --channel: #18232e; }
.t4x-contact-dock__link--wechat { --channel: #11634c; border: 0; padding: 0; font: inherit; cursor: pointer; }
.t4x-contact-dock svg { width: 21px; height: 21px; flex: 0 0 auto; }
.t4x-contact-dock__link span {
	position: absolute;
	inset-inline-end: calc(100% + 10px);
	padding: 5px 10px;
	border-radius: 5px;
	color: #fff;
	background: var(--dock-ink);
	font-size: .83rem;
	font-weight: 650;
	line-height: 1.4;
	white-space: nowrap;
	clip-path: inset(50%);
	pointer-events: none;
}
.t4x-contact-dock__link:hover span,
.t4x-contact-dock__link:focus-visible span { clip-path: none; }
.t4x-contact-dock__link:hover { filter: brightness(1.15); }
.t4x-contact-dock :focus-visible,
.t4x-wechat-dialog :focus-visible,
.t4x-language-picker :focus-visible { outline: 2px solid #ff8b3c; outline-offset: 2px; }

.t4x-wechat-dialog {
	width: min(390px, calc(100% - 28px));
	max-height: calc(100% - 28px);
	max-height: calc(100dvh - 28px);
	margin: auto;
	padding: 0;
	border: 1px solid #d4dce1;
	border-radius: 16px;
	color: #142636;
	background: #fff;
	box-shadow: 0 14px 48px #0b1d2b55;
	overflow: auto;
}
.t4x-wechat-dialog:not([open]) { display: none; }
.t4x-wechat-dialog::backdrop { background: #0b1d2baa; }
.t4x-wechat-dialog__content { position: relative; padding: 20px 18px 18px; text-align: center; }
.t4x-wechat-dialog__content h2 {
	margin: 0 42px 8px;
	color: #142636;
	font: 750 clamp(1.05rem, 4vw, 1.35rem)/1.25 system-ui, sans-serif;
	text-transform: none;
}
.t4x-wechat-dialog__content p { margin: 0 auto 10px; max-width: 32ch; color: #435565; font-size: .875rem; line-height: 1.45; }
.t4x-wechat-dialog__content img { display: block; width: min(100%, 290px); height: auto; margin: 0 auto 12px; }
.t4x-wechat-dialog__close-form { position: absolute; inset: 5px 5px auto auto; margin: 0; }
.t4x-wechat-dialog__close,
.t4x-wechat-dialog__save { min-height: 44px; border: 1px solid #d4dce1; border-radius: 8px; color: #142636 !important; background: #f7f9fa; }
.t4x-wechat-dialog__close { display: grid; width: 44px; place-items: center; padding: 0; font: 500 1.55rem/1 system-ui, sans-serif; cursor: pointer; }
.t4x-wechat-dialog__save { display: inline-grid; place-items: center; padding: 5px 16px; font: 650 .875rem/1.3 system-ui, sans-serif; }
.t4x-wechat-dialog__close:hover,
.t4x-wechat-dialog__save:hover { background: #e8eef0; }

.t4x-header-inner:has(.t4x-language-picker) { gap: clamp(10px, 1.35vw, 22px); }
.t4x-header-inner:has(.t4x-language-picker) .t4x-primary-nav { gap: clamp(8px, 1vw, 17px); }
.t4x-language-picker { position: relative; flex: 0 0 auto; font-size: .875rem; line-height: 1.25; }
.t4x-language-picker summary {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 6px;
	padding: 0 10px;
	border: 1px solid #ffffff65;
	border-radius: 4px;
	color: #fff;
	background: #ffffff0b;
	font: 700 .84rem/1.2 system-ui, sans-serif;
	list-style: none;
	cursor: pointer;
}
.t4x-language-picker summary::-webkit-details-marker { display: none; }
.t4x-language-picker summary:hover,
.t4x-language-picker[open] summary { border-color: #ff8b3c; }
.t4x-language-picker summary svg { width: 16px; height: 16px; }
.t4x-language-picker summary svg:last-child { width: 11px; height: 11px; }
.t4x-language-picker[open] summary svg:last-child { transform: rotate(180deg); }
.t4x-language-picker__links {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 8px);
	min-width: 148px;
	padding: 5px;
	border: 1px solid #d4dce1;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 8px 30px #14263635;
}
.t4x-language-picker__links a {
	display: flex;
	min-height: 42px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 4px;
	color: #142636 !important;
	font-weight: 650;
	white-space: nowrap;
}
.t4x-language-picker__links a:hover { background: #edf1f3; }
.t4x-language-picker__links a[aria-current] { background: #fff0e5; }

html:lang(zh) .t4x-hero h1 {
	font-size: clamp(2.25rem, 3.45vw, 3.1rem);
	font-family: "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", sans-serif;
	line-height: 1.17;
	letter-spacing: 0;
}

@media (max-width: 640px) {
	html:lang(zh) .t4x-hero h1 { font-size: clamp(1.4rem, 7.05vw, 2.8rem); }
}

@media (max-width: 740px) {
	.t4x-contact-dock {
		inset-inline-end: max(12px, env(safe-area-inset-right));
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}
	.t4x-contact-dock__toggle {
		display: flex;
		min-height: 44px;
		align-items: center;
		gap: 7px;
		padding: 7px 12px;
		border: 1px solid #33495b;
		border-radius: 24px;
		color: #fff;
		background: var(--dock-ink);
		box-shadow: 0 5px 18px #14263635;
		font: 700 .82rem/1.35 system-ui, sans-serif;
		cursor: pointer;
	}
	.t4x-contact-dock__toggle svg { color: var(--dock-orange); }
	.t4x-contact-dock__actions {
		position: absolute;
		inset-inline-end: 0;
		bottom: calc(100% + 7px);
		width: max-content;
		min-width: 160px;
		gap: 3px;
		max-height: calc(100dvh - 82px - env(safe-area-inset-bottom, 0px));
		overflow: auto;
	}
	.t4x-contact-dock__toggle[aria-expanded="false"] + .t4x-contact-dock__actions { display: none; }
	.t4x-contact-dock__link {
		display: flex;
		width: auto;
		align-items: center;
		gap: 11px;
		padding: 0 9px;
		color: var(--dock-ink) !important;
		background: #fff;
	}
	.t4x-contact-dock__link:hover { background: #edf1f3; filter: none; }
	.t4x-contact-dock__link svg { color: var(--channel); }
	.t4x-contact-dock__link span {
		position: static;
		padding: 0;
		color: inherit;
		background: transparent;
		clip-path: none;
	}
}
