/* TM Cookie Consent — banner + reopen button styles */

.tmcc-banner,
.tmcc-banner *,
.tmcc-reopen,
.tmcc-reopen * {
	box-sizing: border-box;
}

.tmcc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 720px;
	margin: 0 auto;
	z-index: 2147483640;
	background: #ffffff;
	color: #1a1a1a;
	border: 1px solid #d8d8d8;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	transform: translateY(20px);
	opacity: 0;
	transition: transform .2s ease, opacity .2s ease;
}

.tmcc-banner[data-visible="1"] {
	transform: translateY(0);
	opacity: 1;
}

.tmcc-banner__inner {
	padding: 20px 22px;
}

.tmcc-banner__title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #111;
}

.tmcc-banner__body p {
	margin: 0 0 10px;
}

.tmcc-banner__links {
	font-size: 13px;
	margin-top: 4px;
}

.tmcc-banner__links a {
	color: #0b5cad;
	text-decoration: underline;
}

.tmcc-banner__links a:hover,
.tmcc-banner__links a:focus {
	color: #084080;
}

.tmcc-banner__links span {
	margin: 0 6px;
	color: #999;
}

.tmcc-banner__categories {
	margin: 14px 0 6px;
	border-top: 1px solid #ececec;
	padding-top: 14px;
}

.tmcc-cat {
	border: 0;
	padding: 8px 0;
	margin: 0;
	border-bottom: 1px solid #f1f1f1;
}

.tmcc-cat:last-child {
	border-bottom: 0;
}

.tmcc-cat legend {
	font-size: 14px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tmcc-cat p {
	margin: 4px 0 0;
	font-size: 13px;
	color: #555;
}

.tmcc-cat__required {
	font-size: 12px;
	color: #666;
	font-weight: 500;
	background: #f3f3f3;
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: 6px;
}

/* Toggle switch */
.tmcc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.tmcc-toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.tmcc-toggle__track {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	background: #c8c8c8;
	border-radius: 999px;
	transition: background .15s ease;
}

.tmcc-toggle__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: transform .15s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tmcc-toggle input:checked + .tmcc-toggle__track {
	background: #1f8a4c;
}

.tmcc-toggle input:checked + .tmcc-toggle__track::after {
	transform: translateX(16px);
}

.tmcc-toggle input:focus-visible + .tmcc-toggle__track {
	outline: 2px solid #0b5cad;
	outline-offset: 2px;
}

/* Action row */
.tmcc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	justify-content: flex-end;
}

.tmcc-btn {
	font: inherit;
	font-weight: 600;
	border-radius: 8px;
	padding: 10px 16px;
	min-height: 40px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tmcc-btn:focus-visible {
	outline: 2px solid #0b5cad;
	outline-offset: 2px;
}

.tmcc-btn--primary {
	background: #0b5cad;
	color: #fff;
	border-color: #0b5cad;
}

.tmcc-btn--primary:hover,
.tmcc-btn--primary:focus {
	background: #084080;
	border-color: #084080;
}

/* Reject is equal prominence to Accept (ICO requirement) */
.tmcc-btn--secondary {
	background: #fff;
	color: #0b5cad;
	border-color: #0b5cad;
}

.tmcc-btn--secondary:hover,
.tmcc-btn--secondary:focus {
	background: #eef4fb;
}

.tmcc-btn--ghost {
	background: transparent;
	color: #444;
	border-color: transparent;
	text-decoration: underline;
	padding-left: 8px;
	padding-right: 8px;
}

.tmcc-btn--ghost:hover,
.tmcc-btn--ghost:focus {
	color: #111;
	background: #f5f5f5;
	text-decoration: none;
}

/* Floating reopen button */
.tmcc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147483639;
	background: #1a1a1a;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 8px 14px 8px 10px;
	font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	opacity: 0.85;
	transition: opacity .15s ease, transform .15s ease;
}

.tmcc-reopen:hover,
.tmcc-reopen:focus {
	opacity: 1;
	transform: translateY(-1px);
}

.tmcc-reopen:focus-visible {
	outline: 2px solid #0b5cad;
	outline-offset: 2px;
}

/* Mobile */
@media (max-width: 540px) {
	.tmcc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		border-radius: 12px;
	}
	.tmcc-banner__inner {
		padding: 16px 14px 14px;
	}
	.tmcc-banner__actions {
		justify-content: stretch;
	}
	.tmcc-banner__actions .tmcc-btn--secondary,
	.tmcc-banner__actions .tmcc-btn--primary {
		flex: 1 1 0;
		min-width: 0;
	}
	.tmcc-banner__actions .tmcc-btn--ghost {
		flex: 0 0 100%;
		order: 3;
		text-align: center;
	}
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.tmcc-banner,
	.tmcc-toggle__track,
	.tmcc-toggle__track::after {
		transition: none;
	}
}
