/* TikToker.love compact footer — preserves the SANGO footer DOM. */

.footer,
#footer {
	background: #fff !important;
	border-radius: 0 !important;
	border-top: 1px solid #dedfe5 !important;
	box-shadow: none !important;
	color: #171717 !important;
	min-height: 68px;
	padding: 0 !important;
	position: relative;
}

.footer::before,
#footer::before {
	background: linear-gradient(90deg, #4c5fd4 0 58%, #fbd56a 58% 76%, #050505 76% 100%) !important;
	content: "";
	display: block;
	height: 3px;
	width: 100%;
}

.footer #footer-menu,
#footer #footer-menu,
.footer-menu {
	background: transparent !important;
	box-sizing: border-box;
	margin: 0 auto !important;
	max-width: 1240px;
	min-height: 65px;
	padding: 0 20px !important;
	width: 100%;
}

.footer #footer-menu > div,
#footer #footer-menu > div,
.footer-menu > div {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: center;
	min-height: 65px;
}

.footer .footer-menu__btn,
#footer .footer-menu__btn,
.footer .footer-links a,
#footer .footer-links a,
.footer .privacy-policy-link,
#footer .privacy-policy-link {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #171717 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-decoration: none !important;
}

.footer .footer-menu__btn i,
#footer .footer-menu__btn i {
	display: none !important;
}

.footer .footer-menu__btn,
#footer .footer-menu__btn,
.footer #footer-menu > div:first-child,
#footer #footer-menu > div:first-child {
	display: none !important;
}

.footer .footer-menu__btn:hover,
#footer .footer-menu__btn:hover,
.footer .footer-links a:hover,
#footer .footer-links a:hover,
.footer .privacy-policy-link:hover,
#footer .privacy-policy-link:hover {
	color: #4c5fd4 !important;
}

.footer nav,
#footer nav,
.footer .footer-links,
#footer .footer-links,
.footer .footer-links ul,
#footer .footer-links ul {
	align-items: center;
	display: flex;
	gap: 16px;
	margin: 0 !important;
	padding: 0 !important;
}

.footer .footer-links li,
#footer .footer-links li {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.footer .copyright,
#footer .copyright {
	color: #666970 !important;
	font-size: 10px !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	padding: 0 !important;
	white-space: nowrap;
}

/* Two deliberately quiet lines: legal links, then copyright. */
.footer #footer-menu,
#footer #footer-menu,
.footer-menu {
	align-items: center;
	display: flex !important;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: center;
}

.footer-menu nav,
.footer-menu .footer-links,
.footer-menu .footer-links ul,
.footer #footer-menu nav,
#footer #footer-menu nav,
.footer #footer-menu .footer-links,
#footer #footer-menu .footer-links,
.footer #footer-menu .footer-links ul,
#footer #footer-menu .footer-links ul {
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: 8px;
	display: flex !important;
}

.footer-menu nav,
.footer #footer-menu nav,
#footer #footer-menu nav {
	align-items: center !important;
	justify-content: center;
	width: 100%;
}

.footer-menu nav a,
.footer #footer-menu nav a,
#footer #footer-menu nav a {
	align-items: center;
	display: flex !important;
	font-size: 12px !important;
	height: 12px;
	line-height: 1 !important;
}

.footer #footer-menu nav .privacy-policy-link,
#footer #footer-menu nav .privacy-policy-link,
.footer #footer-menu nav .tkl-footer-ai-link,
#footer #footer-menu nav .tkl-footer-ai-link {
	font-size: 12px !important;
}

.footer-menu nav .footer-links,
.footer-menu nav .footer-links ul,
.footer-menu nav .footer-links li,
.footer #footer-menu nav .footer-links,
.footer #footer-menu nav .footer-links ul,
.footer #footer-menu nav .footer-links li,
#footer #footer-menu nav .footer-links,
#footer #footer-menu nav .footer-links ul,
#footer #footer-menu nav .footer-links li {
	align-items: center !important;
	display: flex !important;
	height: 12px;
	line-height: 1 !important;
}

.footer-menu nav > .privacy-policy-link::before,
.footer-menu nav > .tkl-footer-ai-link::before,
.footer #footer-menu nav > .privacy-policy-link::before,
.footer #footer-menu nav > .tkl-footer-ai-link::before,
#footer #footer-menu nav > .privacy-policy-link::before,
#footer #footer-menu nav > .tkl-footer-ai-link::before {
	color: #a1a3a9;
	content: "|";
	margin-right: 8px;
}

.footer #footer-menu a,
#footer #footer-menu a,
.footer #footer-menu .tkl-footer-ai-link,
#footer #footer-menu .tkl-footer-ai-link,
.footer #footer-menu .privacy-policy-link,
#footer #footer-menu .privacy-policy-link,
.footer #footer-menu .copyright,
#footer #footer-menu .copyright {
	color: #666970 !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	white-space: nowrap;
}

.footer #footer-menu .copyright,
#footer #footer-menu .copyright {
	flex: 0 0 100%;
	text-align: center;
}

.footer #footer-menu .tkl-footer-amazon-disclosure,
#footer #footer-menu .tkl-footer-amazon-disclosure {
	color: #666970 !important;
	flex: 0 0 100%;
	font-size: 10px !important;
	font-weight: 500;
	line-height: 1.4 !important;
	margin: 5px auto 0;
	max-width: 680px;
	padding: 0 16px;
	text-align: center;
}

@media screen and (max-width: 768px) {

	.footer,
	#footer {
		min-height: 64px;
	}

	.footer #footer-menu,
	#footer #footer-menu,
	.footer-menu {
		min-height: 61px;
		padding: 7px 8px !important;
	}

	.footer #footer-menu > div,
	#footer #footer-menu > div,
	.footer-menu > div {
		flex-wrap: wrap;
		gap: 0;
		justify-content: center;
		min-height: 47px;
	}

	.footer nav,
	#footer nav,
	.footer .footer-links,
	#footer .footer-links,
	.footer .footer-links ul,
	#footer .footer-links ul {
		gap: 6px;
	}

	.footer .footer-menu__btn,
	#footer .footer-menu__btn,
	.footer .footer-links a,
	#footer .footer-links a,
	.footer .tkl-footer-ai-link,
	#footer .tkl-footer-ai-link,
	.footer .privacy-policy-link,
	#footer .privacy-policy-link,
	.footer .copyright,
	#footer .copyright {
		font-size: 8px !important;
	}

	.footer #footer-menu a,
	#footer #footer-menu a,
	.footer #footer-menu .privacy-policy-link,
	#footer #footer-menu .privacy-policy-link,
	.footer #footer-menu .tkl-footer-ai-link,
	#footer #footer-menu .tkl-footer-ai-link,
	.footer #footer-menu .copyright,
	#footer #footer-menu .copyright {
		font-size: 8px !important;
		line-height: 1 !important;
	}

	.footer #footer-menu .tkl-footer-amazon-disclosure,
	#footer #footer-menu .tkl-footer-amazon-disclosure {
		font-size: 8px !important;
		line-height: 1 !important;
		margin-top: 7px;
	}

	.footer #footer-menu nav a,
	#footer #footer-menu nav a {
		font-size: 10px !important;
		height: 10px;
	}

	.footer #footer-menu nav .privacy-policy-link,
	#footer #footer-menu nav .privacy-policy-link,
	.footer #footer-menu nav .tkl-footer-ai-link,
	#footer #footer-menu nav .tkl-footer-ai-link {
		font-size: 10px !important;
	}

	.footer #footer-menu nav .footer-links,
	.footer #footer-menu nav .footer-links ul,
	.footer #footer-menu nav .footer-links li,
	#footer #footer-menu nav .footer-links,
	#footer #footer-menu nav .footer-links ul,
	#footer #footer-menu nav .footer-links li {
		height: 10px;
	}
}

/* Trust-page footer navigation: six links, with the mobile contract fixed at 3 × 2. */
.footer #footer-menu,
#footer #footer-menu,
.footer-menu { display: flex !important; flex-direction: column; gap: 12px; padding: 16px 20px !important; }
.footer #footer-menu .tkl-footer-policy-links,
#footer #footer-menu .tkl-footer-policy-links { display: grid !important; gap: 8px 16px; grid-template-columns: repeat(6, auto); justify-content: center; width: 100%; }
.footer #footer-menu .tkl-footer-policy-links a,
#footer #footer-menu .tkl-footer-policy-links a { align-items: center; color: #666970 !important; display: flex !important; font-size: 12px !important; font-weight: 400 !important; height: auto; justify-content: center; line-height: 1.45 !important; text-align: center; white-space: normal; }
.footer #footer-menu .tkl-footer-policy-links a:hover,
#footer #footer-menu .tkl-footer-policy-links a:hover { color: #4c5fd4 !important; }
.footer #footer-menu .copyright,
#footer #footer-menu .copyright { flex: 0 0 auto; font-size: 10px !important; text-align: center; }
@media screen and (max-width: 768px) {
	.footer #footer-menu .tkl-footer-policy-links,
	#footer #footer-menu .tkl-footer-policy-links { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; width: 100%; }
	.footer #footer-menu .tkl-footer-policy-links a,
	#footer #footer-menu .tkl-footer-policy-links a { font-size: 11px !important; min-width: 0; padding: 3px 0; }
}

/* Match the TikToker.love accent and reduce the parent theme's 54px top button by ~15%. */
.totop { background: #6d28d9 !important; height: 46px; width: 46px; }
.totop i { line-height: 44px; }
.totop.active,
.totop.active:hover { opacity: 0.5 !important; }
