/* Shared footer from the original WT Tent HTML. */

/* Blocksy still outputs its footer template. Hide only that template, leaving
 * wp_footer() and all theme/plugin scripts intact. */
body.wsc-plugin-footer-active .ct-footer {
	display: none !important;
}

.wsc-site-footer {
	background: var(--wsc-footer-bg, #15171b);
	color: var(--wsc-footer-text, #b3b3b5);
	font-family: inherit;
	padding: 70px 0 30px;
}

.wsc-footer__wrap {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

.wsc-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: 40px;
	margin-bottom: 50px;
}

.wsc-footer__brand {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	line-height: 0;
}

.wsc-footer__brand img {
	display: block;
	width: var(--wsc-footer-logo-width, 180px);
	max-width: 100%;
	height: auto;
}

.wsc-footer__about p {
	max-width: 340px;
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.65;
}

.wsc-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	max-width: 340px;
	margin-top: 18px;
}

.wsc-footer__social-item {
	position: relative;
	display: inline-flex;
}

.wsc-site-footer .wsc-footer__social-link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	color: var(--wsc-footer-heading, #fff);
	line-height: 1;
	padding: 0;
	font: inherit;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wsc-footer__social-link svg {
	display: block;
}

.wsc-site-footer .wsc-footer__social-link:hover,
.wsc-site-footer .wsc-footer__social-link:focus-visible {
	border-color: var(--wsc-footer-hover, var(--theme-palette-color-1, #51a9dc));
	background: var(--wsc-footer-hover, var(--theme-palette-color-1, #51a9dc));
	color: var(--wsc-footer-bg, #15171b);
	transform: translateY(-2px);
}

.wsc-footer__social-qr {
	position: absolute;
	bottom: calc(100% + 11px);
	left: 50%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 184px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	color: #17191d;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 6px);
	visibility: hidden;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.wsc-footer__social-qr::after {
	position: absolute;
	bottom: -6px;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 1px solid rgba(255, 255, 255, 0.16);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	background: #fff;
	content: "";
	transform: translateX(-50%) rotate(45deg);
}

.wsc-footer__social-qr img {
	display: block;
	width: 164px;
	height: 164px;
	background: #fff;
	object-fit: contain;
}

.wsc-footer__social-qr a {
	position: relative;
	z-index: 1;
	color: #1769aa;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.wsc-footer__social-qr a:hover,
.wsc-footer__social-qr a:focus-visible {
	color: #0b4e84;
}

@media (hover: hover) and (pointer: fine) {
	.wsc-footer__social-item--has-qr:hover .wsc-footer__social-qr,
	.wsc-footer__social-item--has-qr:focus-within .wsc-footer__social-qr {
		opacity: 1;
		pointer-events: auto;
		transform: translate(-50%, 0);
		visibility: visible;
	}
}

@media (hover: none), (pointer: coarse) {
	.wsc-footer__social-item--has-qr.is-qr-open .wsc-footer__social-qr {
		opacity: 1;
		pointer-events: auto;
		transform: translate(-50%, 0);
		visibility: visible;
	}
}

.wsc-site-footer .wsc-footer__social-link:focus-visible {
	outline: 2px solid var(--wsc-footer-heading, #fff);
	outline-offset: 3px;
}

.wsc-footer__column h2 {
	margin: 0 0 18px;
	color: var(--wsc-footer-heading, #fff);
	font-size: var(--wsc-footer-heading-size, 16px);
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.35;
}

.wsc-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wsc-footer__menu li + li {
	margin-top: 10px;
}

.wsc-site-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.wsc-site-footer a:hover,
.wsc-site-footer a:focus-visible {
	color: var(--wsc-footer-hover, var(--theme-palette-color-1, #51a9dc));
}

.wsc-footer__menu a,
.wsc-footer__contact p {
	font-size: 14px;
}

.wsc-footer__contact p {
	display: flex;
	gap: 10px;
	margin: 0 0 10px;
	line-height: 1.55;
}

.wsc-footer__contact p a {
	color: var(--wsc-footer-text, #b3b3b5);
	font-weight: 400;
}

.wsc-footer__contact p a:hover,
.wsc-footer__contact p a:focus-visible {
	color: var(--wsc-footer-hover, var(--theme-palette-color-1, #51a9dc));
}

.wsc-footer__contact .wsc-footer__contact-row--address {
	align-items: flex-start;
}

.wsc-footer__contact-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--theme-palette-color-1, #0e7cc5);
}

.wsc-footer__contact-icon svg {
	display: block;
}

.wsc-footer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 14px;
	padding: 12px 22px;
	border-radius: 10px;
	background: var(--theme-palette-color-1, #0e7cc5);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.wsc-footer__button:hover,
.wsc-footer__button:focus-visible {
	background: var(--theme-palette-color-2, #0567ad);
	color: #fff !important;
	transform: translateY(-2px);
}

.wsc-footer__bottom {
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
	line-height: 1.5;
}

.wsc-footer__bottom-main {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.wsc-footer__legal,
.wsc-footer__filing-links,
.wsc-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.wsc-footer__legal {
	gap: 10px;
}

.wsc-footer__legal-links {
	gap: 0;
}

.wsc-footer__filing-links + .wsc-footer__legal-links::before {
	margin: 0 10px;
	color: currentColor;
	content: "|";
}

.wsc-footer__filing-links a + a::before,
.wsc-footer__legal-links a + a::before {
	margin: 0 10px;
	color: currentColor;
	content: "|";
}

.wsc-footer__public-security-link {
	display: inline-flex;
	align-items: center;
}

.wsc-footer__public-security-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-right: 5px;
	object-fit: contain;
}

.wsc-footer__copyright {
	display: block;
	margin-top: 10px;
}

/* English footer: certification left, legal links stay between it and copyright. */
@media (min-width: 761px) {
	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__bottom {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 20px;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__bottom-main {
		display: contents;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__bottom-right {
		order: 1;
		flex: 0 1 auto;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__legal {
		order: 2;
		flex: 0 1 auto;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__copyright {
		order: 3;
		flex: 0 0 auto;
		margin-top: 0;
		margin-left: auto;
		white-space: nowrap;
	}
}

/* Keep the Chinese desktop footer on one line without squeezing tablet or phone layouts. */
@media (min-width: 1100px) {
	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__bottom {
		display: flex;
		align-items: center;
		gap: 20px;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__bottom-main {
		flex: 1 1 auto;
		flex-wrap: nowrap;
		align-items: center;
		min-width: 0;
		gap: 20px;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__legal {
		flex-wrap: nowrap;
		min-width: 0;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__bottom-right,
	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__copyright {
		flex: 0 0 auto;
		margin-top: 0;
		white-space: nowrap;
	}
}

@media (max-width: 1024px) {
	.wsc-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr;
	}

	.wsc-footer__contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.wsc-site-footer {
		padding-top: 54px;
	}

	.wsc-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 24px;
		margin-bottom: 38px;
	}

	.wsc-footer__about,
	.wsc-footer__contact {
		grid-column: 1 / -1;
	}

	.wsc-footer__brand img {
		width: min(var(--wsc-footer-logo-width, 180px), 160px);
	}

	.wsc-footer__bottom-main {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Keep the same English order on phones: certification, legal links, copyright. */
	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__bottom {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__bottom-main {
		display: contents;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__bottom-right {
		order: 1;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__legal {
		order: 2;
	}

	.wsc-site-footer--en.wsc-site-footer--has-bottom-links .wsc-footer__copyright {
		order: 3;
		margin-top: 0;
	}

	.wsc-footer__legal {
		align-items: flex-start;
	}

	/* Only the Chinese footer separates filing, certification and legal links. */
	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__bottom-main {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 14px;
		align-items: start;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__legal {
		display: contents;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__filing-links {
		grid-column: 1 / -1;
		grid-row: 1;
		min-width: 0;
		width: 100%;
		justify-content: flex-start;
		gap: 8px 12px;
		line-height: 1.5;
		text-align: left;
	}

	/* Filing records can wrap independently on a phone. Use spacing, not a
	 * leading pipe, so a wrapped public-security record begins cleanly. */
	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__filing-links a + a::before {
		display: none;
		margin: 0;
		content: none;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__bottom-right {
		grid-column: 1;
		grid-row: 2;
		min-width: 0;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__legal-links {
		grid-column: 2;
		grid-row: 2;
		justify-content: flex-end;
		white-space: nowrap;
	}

	.wsc-site-footer--zh-cn.wsc-site-footer--has-bottom-links .wsc-footer__filing-links + .wsc-footer__legal-links::before {
		display: none;
	}

	.wsc-footer__social-qr {
		width: 196px;
	}

	.wsc-footer__social-qr img {
		width: 176px;
		height: 176px;
	}
}
