/*
 * Torun Çerez Onayı – bant stilleri.
 * Serhat Oto Çekici temasının renk değişkenlerini kullanır; tema yoksa
 * varsayılan koyu/turuncu renklere düşer.
 */
html body .tco-banner,
html > .tco-banner {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	margin: 0 !important;
	transform: none !important;
	z-index: 2147483000 !important;
}

.tco-banner {
	--tco-bg: var(--sotc-bg2, #1c1c1c);
	--tco-text: var(--sotc-text, #ffffff);
	--tco-muted: var(--sotc-muted, #a1a1aa);
	--tco-accent: var(--sotc-accent, #ff6b00);
	--tco-accent-text: var(--sotc-accent-text, #111111);
	--tco-line: #333333;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: var(--tco-bg);
	color: var(--tco-text);
	border-top: 3px solid var(--tco-accent);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	max-height: 85vh;
	max-height: 85dvh;
	overflow-y: auto;
	padding-bottom: env(safe-area-inset-bottom);
}

.tco-banner[hidden] {
	display: none !important;
}

.tco-banner__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 18px 20px;
	display: grid;
	gap: 14px;
}

.tco-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--tco-text);
	padding: 0;
	border: 0;
}

.tco-title::before {
	display: none;
}

.tco-message {
	margin: 0;
	color: var(--tco-muted);
}

.tco-policy {
	color: var(--tco-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.tco-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.tco-btn {
	min-height: 46px;
	padding: 8px 16px;
	border-radius: 2px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	border: 2px solid var(--tco-accent);
}

/* "Kabul Et" ve "Reddet" bilerek aynı görünürlükte. */
.tco-btn--solid {
	background: var(--tco-accent);
	color: var(--tco-accent-text);
}

.tco-btn--outline {
	grid-column: 1 / -1;
	background: transparent;
	color: var(--tco-text);
}

.tco-btn:hover {
	background: var(--tco-text);
	border-color: var(--tco-text);
	color: #111111;
}

.tco-btn:focus-visible,
.tco-switch input:focus-visible + .tco-switch__ui,
.tco-policy:focus-visible,
.tco-reopen-link:focus-visible,
.tco-reopen-float:focus-visible {
	outline: 3px solid var(--tco-accent);
	outline-offset: 2px;
}

.tco-btn[hidden] {
	display: none;
}

/* Tercih paneli */
.tco-prefs[hidden] {
	display: none;
}

.tco-prefs fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	gap: 8px;
}

.tco-cat {
	padding: 12px 14px;
	border: 1px solid var(--tco-line);
	background: rgba(0, 0, 0, .2);
}

.tco-switch {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-weight: 700;
}

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

.tco-switch__ui {
	flex: none;
	position: relative;
	width: 42px;
	height: 24px;
	background: #3f3f46;
	border-radius: 12px;
	transition: background-color .15s;
}

.tco-switch__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform .15s;
}

.tco-switch input:checked + .tco-switch__ui {
	background: var(--tco-accent);
}

.tco-switch input:checked + .tco-switch__ui::after {
	transform: translateX(18px);
}

.tco-switch input:disabled + .tco-switch__ui {
	opacity: .6;
}

.tco-cat__title small {
	font-weight: 500;
	color: var(--tco-muted);
}

.tco-cat__desc {
	margin: 6px 0 0 54px;
	color: var(--tco-muted);
	font-size: 14px;
}

@media (min-width: 900px) {
	.tco-banner__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 16px 32px;
		padding: 20px 32px;
	}

	.tco-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		max-width: 520px;
	}

	.tco-btn {
		min-width: 160px;
	}

	.tco-banner.is-prefs .tco-banner__inner {
		grid-template-columns: 1fr;
	}

	.tco-banner.is-prefs .tco-prefs fieldset {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tco-banner.is-prefs .tco-actions {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tco-switch__ui,
	.tco-switch__ui::after {
		transition: none;
	}
}

/* Bant açıkken temanın sabit arama/WhatsApp butonlarını bandın üstüne taşı. */
.tco-open .sotc-float {
	bottom: calc(var(--tco-h, 0px) + 12px);
}

/* Tercihleri yeniden açma */
.tco-reopen-bar {
	background: var(--sotc-bg3, #0b0b0b);
	text-align: center;
	padding: 10px 16px 14px;
	font-size: 13px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.tco-reopen-link {
	color: var(--sotc-muted, #a1a1aa);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tco-reopen-link:hover {
	color: var(--sotc-accent, #ff6b00);
}

.tco-reopen-float {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 89;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--sotc-bg2, #1c1c1c);
	color: var(--sotc-text, #ffffff);
	border: 1px solid #333333;
	border-radius: 2px;
}

.tco-open .tco-reopen-float {
	display: none;
}

/* Tema ekran okuyucu sınıfı tanımlamıyorsa yedek */
.tco-banner .screen-reader-text,
.tco-reopen-float .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}
