/* Çerez onay bandı ve ayarlar penceresi */
:root {
	--cerez-ana-renk: #d9b526;
	--cerez-ana-renk-hover: #c4a21c;
	--cerez-buton-yazi: #222;
}

.cerez-bandi[hidden],
.cerez-ayarlar[hidden] {
	display: none !important;
}

.cerez-bandi {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99998;
	max-width: 520px;
	width: calc(100% - 40px);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
	padding: 20px 22px;
	font-size: 14px;
	line-height: 1.55;
	color: #222;
}

.cerez-bandi__logo {
	display: block;
	max-height: 40px;
	width: auto;
	margin-bottom: 12px;
}

.cerez-bandi__metin {
	margin: 0 0 16px;
}

.cerez-bandi__link {
	color: #222;
	font-weight: bold;
	text-decoration: underline;
}

.cerez-bandi__butonlar,
.cerez-ayarlar__butonlar {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.cerez-btn {
	background: var(--cerez-ana-renk);
	color: var(--cerez-buton-yazi);
	border: 0;
	border-radius: 4px;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	transition: background .2s;
}

.cerez-btn:hover,
.cerez-btn:focus {
	background: var(--cerez-ana-renk-hover);
	outline: none;
}

.cerez-ayarlar {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.cerez-ayarlar__kutu {
	position: relative;
	background: #fff;
	border-radius: 6px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	color: #222;
	font-size: 14px;
	line-height: 1.55;
}

.cerez-ayarlar__kapat {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #888;
	cursor: pointer;
}

.cerez-ayarlar__baslik {
	margin: 0 0 8px;
	font-size: 20px;
}

.cerez-ayarlar__aciklama {
	margin: 0 0 16px;
}

.cerez-kategori {
	border-top: 1px solid #eee;
	padding: 12px 0;
}

.cerez-kategori p {
	margin: 6px 0 0;
	color: #555;
	font-size: 13px;
}

.cerez-kategori__ust {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cerez-ayarlar__butonlar {
	border-top: 1px solid #eee;
	padding-top: 16px;
}

/* Aç/kapa anahtarı */
.cerez-anahtar {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	margin: 0;
	flex-shrink: 0;
}

.cerez-anahtar input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cerez-anahtar span {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	cursor: pointer;
	transition: background .2s;
}

.cerez-anahtar span:before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
}

.cerez-anahtar input:checked + span {
	background: var(--cerez-ana-renk);
}

.cerez-anahtar input:checked + span:before {
	transform: translateX(18px);
}

.cerez-anahtar input:disabled + span {
	opacity: .6;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.cerez-bandi {
		left: 10px;
		bottom: 10px;
		width: calc(100% - 20px);
		padding: 16px;
	}

	.cerez-bandi__butonlar .cerez-btn,
	.cerez-ayarlar__butonlar .cerez-btn {
		flex: 1 1 auto;
	}
}
