/* Çerez onayı */
.tsec-consent {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 1500;
	width: min(460px, calc(100vw - 24px));
	padding: 22px;
	background: #fff;
	color: #222;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
	font-size: 14px;
	line-height: 1.55;
	animation: tsec-consent-in .3s ease;
}
.tsec-consent[hidden] { display: none; }
@keyframes tsec-consent-in { from { opacity: 0; transform: translateY(16px); } }
.tsec-consent h2 { margin: 0 0 8px; font-size: 16px; }
.tsec-consent p { margin: 0; color: #555; }
.tsec-consent a { color: #000; text-decoration: underline; }

.tsec-consent__prefs { display: grid; gap: 8px; margin-top: 14px; }
.tsec-consent__prefs[hidden] { display: none; }
.tsec-consent__pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid #eee; border-radius: 10px; cursor: pointer; }
.tsec-consent__pref span { display: grid; gap: 2px; }
.tsec-consent__pref small { color: #777; font-size: 12px; }
.tsec-consent__pref input { width: 40px; height: 22px; flex: none; appearance: none; border-radius: 11px; background: #ccc; position: relative; cursor: pointer; transition: background .2s ease; }
.tsec-consent__pref input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.tsec-consent__pref input:checked { background: #111; }
.tsec-consent__pref input:checked::after { transform: translateX(18px); }
.tsec-consent__pref input:disabled { opacity: .5; cursor: not-allowed; }
.tsec-consent__pref input:focus-visible { outline: 2px solid var(--tsec-accent, #ea8f10); outline-offset: 2px; }

.tsec-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tsec-consent__btn {
	flex: 1 1 auto;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid #111;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.tsec-consent__btn[hidden] { display: none; }
.tsec-consent__btn--primary { background: #111; color: #fff; }
.tsec-consent__btn:hover { background: #111; color: #fff; }

/* Onay kutusu açıkken sol alttaki asistan butonu üst üste binmesin */
body:has(.tsec-consent:not([hidden])) .tsec-sa { display: none; }

@media (max-width: 575px) {
	.tsec-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
	.tsec-consent__btn { flex-basis: calc(50% - 4px); }
	.tsec-consent__btn--primary { flex-basis: 100%; order: -1; }
}
