.tf-cookie-banner,
.tf-cookie-settings {
	display: none !important;
}

.tsc-consent[hidden],
.tsc-nudge[hidden],
.tsc-recent[hidden],
.tsc-settings[hidden],
.tsc-actions[hidden] {
	display: none !important;
}

.tsc-consent,
.tsc-nudge,
.tsc-preferences,
.tsc-recent {
	--tsc-black: #0d0d0d;
	--tsc-charcoal: #171717;
	--tsc-gold: #b99352;
	--tsc-gold-light: #d7bd87;
	--tsc-white: #fff;
	--tsc-muted: #d2d2d2;
	--tsc-border: rgba(255, 255, 255, 0.18);
	box-sizing: border-box;
	font-family: inherit;
}

.tsc-consent *,
.tsc-nudge *,
.tsc-preferences *,
.tsc-recent * {
	box-sizing: border-box;
}

.tsc-consent {
	position: fixed;
	z-index: 2147483000;
	right: 20px;
	bottom: 20px;
	left: 20px;
	width: min(820px, calc(100% - 40px));
	max-height: calc(100vh - 40px);
	margin: auto;
	overflow: auto;
	padding: 26px;
	color: var(--tsc-white);
	background: linear-gradient(145deg, #171717 0%, #080808 100%);
	border: 1px solid var(--tsc-border);
	border-radius: 18px;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.tsc-consent h2,
.tsc-recent h2 {
	margin: 4px 0 10px;
	color: inherit;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	line-height: 1.18;
}

.tsc-consent p,
.tsc-nudge p {
	margin: 0;
	color: var(--tsc-muted);
	line-height: 1.55;
}

.tsc-kicker {
	display: block;
	margin-bottom: 4px;
	color: var(--tsc-gold-light);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tsc-actions,
.tsc-settings__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.tsc-button,
.tsc-preferences {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.tsc-button--primary {
	color: #0a0a0a !important;
	background: var(--tsc-gold) !important;
	border-color: var(--tsc-gold) !important;
}

.tsc-button--secondary {
	color: var(--tsc-white) !important;
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
}

.tsc-button--text {
	color: var(--tsc-gold-light) !important;
	background: transparent !important;
	border-color: transparent !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsc-button:hover,
.tsc-button:focus-visible,
.tsc-preferences:hover,
.tsc-preferences:focus-visible {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.tsc-button:focus-visible,
.tsc-preferences:focus-visible,
.tsc-icon-button:focus-visible,
.tsc-consent a:focus-visible,
.tsc-recent a:focus-visible,
.tsc-switch input:focus-visible + span {
	outline: 3px solid var(--tsc-gold-light);
	outline-offset: 3px;
}

.tsc-settings {
	margin-top: 18px;
	border-top: 1px solid var(--tsc-border);
}

.tsc-choice {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--tsc-border);
}

.tsc-choice strong,
.tsc-choice span {
	display: block;
}

.tsc-choice > div > span {
	margin-top: 4px;
	color: var(--tsc-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.tsc-switch {
	position: relative;
	display: inline-flex;
}

.tsc-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tsc-switch input + span {
	position: relative;
	display: block;
	width: 50px;
	height: 28px;
	background: #4a4a4a;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	transition: background 160ms ease;
}

.tsc-switch input + span::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	content: "";
	background: #fff;
	border-radius: 50%;
	transition: transform 160ms ease;
}

.tsc-switch input:checked + span {
	background: var(--tsc-gold);
}

.tsc-switch input:checked + span::after {
	transform: translateX(22px);
}

.tsc-switch input:disabled + span {
	opacity: 0.72;
}

.tsc-privacy-link {
	display: inline-block;
	margin-top: 16px;
	color: var(--tsc-muted) !important;
	font-size: 0.88rem;
	text-underline-offset: 3px;
}

.tsc-preferences {
	position: fixed;
	z-index: 2147482000;
	bottom: 14px;
	left: 14px;
	min-height: 38px;
	padding: 8px 13px;
	color: #fff;
	background: #111;
	border-color: rgba(185, 147, 82, 0.65);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
	font-size: 0.78rem;
}

.tsc-nudge {
	position: fixed;
	z-index: 2147482500;
	right: 18px;
	bottom: 18px;
	width: min(370px, calc(100% - 36px));
	padding: 22px;
	color: var(--tsc-white);
	background: linear-gradient(145deg, #171717, #090909);
	border: 1px solid rgba(185, 147, 82, 0.55);
	border-radius: 16px;
	box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.tsc-nudge > strong {
	display: block;
	margin: 3px 36px 7px 0;
	font-size: 1.2rem;
}

.tsc-nudge p {
	margin: 0 24px 16px 0;
}

.tsc-icon-button {
	position: absolute;
	top: 9px;
	right: 9px;
	display: inline-flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.tsc-recent {
	width: min(1180px, calc(100% - 32px));
	margin: 38px auto;
	padding: 28px;
	color: #171717;
	background: #f8f5ef;
	border: 1px solid #e4dac8;
	border-radius: 18px;
}

.tsc-recent .tsc-kicker {
	color: #8b672f;
}

.tsc-recent-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.tsc-recent-grid a {
	display: block;
	min-width: 0;
	padding: 18px;
	color: #111;
	background: #fff;
	border: 1px solid #ddd2c0;
	border-radius: 12px;
	text-decoration: none;
}

.tsc-recent-grid a:hover {
	border-color: #b99352;
	box-shadow: 0 8px 24px rgba(60, 42, 18, 0.09);
}

.tsc-recent-grid span,
.tsc-recent-grid strong {
	display: block;
	overflow-wrap: anywhere;
}

.tsc-recent-grid span {
	margin-bottom: 5px;
	color: #73572e;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 720px) {
	.tsc-consent {
		right: 10px;
		bottom: 10px;
		left: 10px;
		width: calc(100% - 20px);
		max-height: calc(100vh - 20px);
		padding: 20px;
		border-radius: 14px;
	}

	.tsc-actions > *,
	.tsc-settings__actions > * {
		width: 100%;
	}

	.tsc-choice {
		gap: 12px;
	}

	.tsc-preferences {
		bottom: 8px;
		left: 8px;
	}

	.tsc-nudge {
		right: 10px;
		bottom: 10px;
		width: calc(100% - 20px);
	}

	.tsc-recent {
		width: calc(100% - 24px);
		padding: 20px;
	}

	.tsc-recent-grid {
		grid-template-columns: 1fr;
	}

	/* The legacy quote CTA carries a desktop left margin inside two-column
	   related-product cards. Neutralise it at mobile widths to prevent
	   horizontal page overflow without changing the catalogue layout. */
	.single-product .related.products li.product .tq-fasttrack-quote {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsc-button,
	.tsc-preferences,
	.tsc-switch input + span,
	.tsc-switch input + span::after {
		transition: none !important;
	}
}
