.tcs-root {
	--tcs-bg: #fff;
	--tcs-fg: #1a1a1a;
	--tcs-muted: #555;
	--tcs-line: #e4e4e4;
	--tcs-dark: #111;
	--tcs-dark-hover: #333;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--tcs-fg);
}

.tcs-root *,
.tcs-root *::before,
.tcs-root *::after {
	box-sizing: border-box;
}

.tcs-root [hidden] {
	display: none !important;
}

.tcs-root .tcs-banner {
	position: fixed;
	z-index: 2147483000;
	left: 50%;
	bottom: 20px;
	width: calc(100% - 40px);
	max-width: 720px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 24px;
	margin: 0;
	background: var(--tcs-bg);
	color: var(--tcs-fg);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	transform: translateX(-50%);
	animation: tcs-banner-in 0.2s ease-out;
}

.tcs-root .tcs-title {
	margin: 0 0 8px;
	padding: 0 40px 0 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tcs-fg);
	text-transform: none;
	letter-spacing: normal;
}

.tcs-root .tcs-text {
	margin: 0 0 16px;
	padding: 0;
	font-size: 15px;
	color: var(--tcs-fg);
}

.tcs-root .tcs-text a {
	color: var(--tcs-fg);
	text-decoration: underline;
}

.tcs-root .tcs-actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.tcs-root .tcs-btn,
.tcs-root .tcs-close,
.tcs-root .tcs-fab,
button.tcs-trigger {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}

.tcs-root .tcs-btn {
	display: inline-block;
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: #fff;
	background: #111;
	border: 2px solid #111;
	border-radius: 8px;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tcs-root .tcs-btn:hover {
	color: #fff;
	background: #333;
	border-color: #333;
}

.tcs-root .tcs-btn--outline {
	color: #111;
	background: transparent;
}

.tcs-root .tcs-btn--outline:hover {
	color: #111;
	background: #f0f0f0;
	border-color: #111;
}

.tcs-root .tcs-close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--tcs-fg);
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
}

.tcs-root .tcs-close:hover {
	color: var(--tcs-fg);
	background: #f0f0f0;
}

.tcs-root .tcs-fab {
	position: fixed;
	z-index: 2147483000;
	bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: #fff;
	background: #111;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	animation: tcs-fade-in 0.2s ease-out;
}

.tcs-root .tcs-fab:hover {
	color: #fff;
	background: #333;
}

.tcs-root .tcs-fab--left {
	left: 20px;
}

.tcs-root .tcs-fab--right {
	right: 20px;
}

.tcs-root .tcs-overlay {
	position: fixed;
	z-index: 2147483001;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.5);
	overscroll-behavior: contain;
	animation: tcs-fade-in 0.2s ease-out;
}

.tcs-root .tcs-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: 100%;
	background: var(--tcs-bg);
	color: var(--tcs-fg);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	animation: tcs-modal-in 0.2s ease-out;
}

.tcs-root .tcs-modal:focus {
	outline: none;
}

.tcs-root .tcs-modal-head {
	padding: 20px 24px 12px;
	border-bottom: 1px solid var(--tcs-line);
}

.tcs-root .tcs-modal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0 24px;
	overscroll-behavior: contain;
}

.tcs-root .tcs-modal-actions {
	padding: 16px 24px;
	border-top: 1px solid var(--tcs-line);
}

.tcs-root .tcs-category {
	padding: 16px 0;
	border-bottom: 1px solid var(--tcs-line);
}

.tcs-root .tcs-category:last-child {
	border-bottom: 0;
}

.tcs-root .tcs-category p {
	margin: 6px 0 0;
	padding: 0;
	font-size: 14px;
	color: var(--tcs-muted);
}

.tcs-root .tcs-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 28px;
}

.tcs-root .tcs-category-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--tcs-fg);
}

.tcs-root label.tcs-category-title {
	cursor: pointer;
}

.tcs-root .tcs-tag {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--tcs-fg);
}

.tcs-root .tcs-switch {
	position: relative;
	flex: none;
	display: inline-block;
	width: 44px;
	height: 26px;
}

.tcs-root .tcs-switch input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.tcs-root .tcs-switch-track {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #bbb;
	border-radius: 13px;
	transition: background-color 0.15s ease;
}

.tcs-root .tcs-switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
}

.tcs-root .tcs-switch input:checked + .tcs-switch-track {
	background: #111;
}

.tcs-root .tcs-switch input:checked + .tcs-switch-track::after {
	transform: translateX(18px);
}

.tcs-root .tcs-cookies {
	margin-top: 8px;
	font-size: 14px;
}

.tcs-root .tcs-cookies summary {
	padding: 4px 0;
	font-weight: 600;
	color: var(--tcs-fg);
	cursor: pointer;
}

.tcs-root .tcs-cookies table {
	width: 100%;
	margin: 8px 0 0;
	border: 0;
	border-collapse: collapse;
	font-size: 13px;
	table-layout: auto;
}

.tcs-root .tcs-cookies th,
.tcs-root .tcs-cookies td {
	padding: 6px 8px 6px 0;
	font-size: 13px;
	text-align: left;
	vertical-align: top;
	color: var(--tcs-fg);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--tcs-line);
	word-break: break-word;
}

.tcs-root .tcs-cookies th {
	font-weight: 700;
}

.tcs-root button:focus-visible,
.tcs-root a:focus-visible,
.tcs-root summary:focus-visible,
button.tcs-trigger:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.tcs-root .tcs-fab:focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 5px #111;
}

.tcs-root .tcs-switch input:focus-visible + .tcs-switch-track {
	outline: 2px solid #111;
	outline-offset: 2px;
}

button.tcs-trigger {
	display: inline;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	text-decoration: underline;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

button.tcs-trigger:hover {
	color: inherit;
	background: none;
}

button.tcs-trigger--button {
	display: inline-block;
	min-height: 44px;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #111;
	border: 2px solid #111;
	border-radius: 8px;
}

button.tcs-trigger--button:hover {
	color: #fff;
	background: #333;
	border-color: #333;
}

@keyframes tcs-banner-in {
	from {
		opacity: 0;
		transform: translate(-50%, 12px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes tcs-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tcs-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes tcs-sheet-in {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

@media (max-width: 639px) {
	.tcs-root .tcs-banner {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		max-height: 85vh;
		padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		border-radius: 12px 12px 0 0;
		transform: none;
		animation-name: tcs-sheet-in;
	}

	.tcs-root .tcs-actions {
		grid-template-columns: 1fr;
	}

	.tcs-root .tcs-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.tcs-root .tcs-modal {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 12px 12px 0 0;
		animation-name: tcs-sheet-in;
	}

	.tcs-root .tcs-modal-head {
		padding: 16px 16px 12px;
	}

	.tcs-root .tcs-modal-body {
		padding: 0 16px;
	}

	.tcs-root .tcs-modal-actions {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.tcs-root .tcs-cookies thead {
		display: none;
	}

	.tcs-root .tcs-cookies table,
	.tcs-root .tcs-cookies tbody,
	.tcs-root .tcs-cookies tr,
	.tcs-root .tcs-cookies td {
		display: block;
		width: 100%;
	}

	.tcs-root .tcs-cookies tr {
		padding: 6px 0;
		border-bottom: 1px solid var(--tcs-line);
	}

	.tcs-root .tcs-cookies td {
		padding: 2px 0;
		border: 0;
	}

	.tcs-root .tcs-cookies td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcs-root .tcs-banner,
	.tcs-root .tcs-fab,
	.tcs-root .tcs-overlay,
	.tcs-root .tcs-modal {
		animation: none;
	}

	.tcs-root .tcs-btn,
	.tcs-root .tcs-switch-track,
	.tcs-root .tcs-switch-track::after {
		transition: none;
	}
}
