/* Çerez onay bandı — KVKK rehberi gereği tüm butonlar eşit boyut, renk ve yazı tipinde. */
:root {
	--sif-cc-bg: #ffffff;
	--sif-cc-fg: #1d2327;
	--sif-cc-muted: #50575e;
	--sif-cc-border: #dcdcde;
	--sif-cc-btn-bg: #1d2327;
	--sif-cc-btn-fg: #ffffff;
	--sif-cc-btn-hover: #3c434a;
	--sif-cc-accent: #c16315;
}

.sif-cc[hidden], .sif-cc-modal[hidden], .sif-cc-float[hidden] { display: none !important; }

.sif-cc-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
	background: var(--sif-cc-bg); color: var(--sif-cc-fg);
	border-top: 1px solid var(--sif-cc-border);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
	font-family: inherit; font-size: 14px; line-height: 1.55;
	animation: sif-cc-up .25s ease-out;
}
@keyframes sif-cc-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sif-cc-banner { animation: none; } }

.sif-cc-inner {
	max-width: 1200px; margin: 0 auto; padding: 18px 20px;
	display: flex; align-items: center; gap: 24px; box-sizing: border-box;
}
.sif-cc-text { flex: 1 1 auto; min-width: 0; }
.sif-cc-title { display: block; font-size: 16px; margin-bottom: 4px; }
.sif-cc-text p { margin: 0; color: var(--sif-cc-muted); }
.sif-cc-text a, .sif-cc-body a { color: var(--sif-cc-accent); text-decoration: underline; font-weight: 600; }

.sif-cc-actions { flex: 0 0 auto; display: flex; gap: 10px; }

.sif-cc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 150px; min-height: 44px; padding: 10px 18px; margin: 0;
	border: 0; border-radius: 6px;
	background: var(--sif-cc-btn-bg); color: var(--sif-cc-btn-fg);
	font: 600 14px/1.2 inherit; font-family: inherit; text-transform: none; letter-spacing: normal;
	cursor: pointer; box-shadow: none; white-space: nowrap;
}
.sif-cc-btn:hover { background: var(--sif-cc-btn-hover); color: var(--sif-cc-btn-fg); }
.sif-cc-btn:focus-visible, .sif-cc-x:focus-visible, .sif-cc-float:focus-visible, .sif-cc-switch input:focus-visible + .sif-cc-slider {
	outline: 3px solid var(--sif-cc-accent); outline-offset: 2px;
}

/* Tercih penceresi */
.sif-cc-modal {
	position: fixed; inset: 0; z-index: 2147483001; background: rgba(0, 0, 0, .55);
	display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
	font-family: inherit; font-size: 14px; line-height: 1.55;
}
html.sif-cc-lock { overflow: hidden; }
.sif-cc-box {
	background: var(--sif-cc-bg); color: var(--sif-cc-fg); width: 100%; max-width: 640px; max-height: 90vh;
	display: flex; flex-direction: column; border-radius: 10px; box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}
.sif-cc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--sif-cc-border); }
.sif-cc-head h2 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--sif-cc-fg); }
.sif-cc-x { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--sif-cc-muted); cursor: pointer; padding: 0 4px; }
.sif-cc-x:hover { color: var(--sif-cc-fg); background: none; }
.sif-cc-body { padding: 8px 20px 16px; overflow-y: auto; }
.sif-cc-body > p { color: var(--sif-cc-muted); }
.sif-cc-cat { border: 1px solid var(--sif-cc-border); border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.sif-cc-cat p { margin: 6px 0 0; color: var(--sif-cc-muted); font-size: 13px; }
.sif-cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sif-cc-cat-label { font-weight: 700; }
.sif-cc-always { font-size: 12px; font-weight: 600; color: #1e6b3a; white-space: nowrap; }
.sif-cc-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--sif-cc-border); }
.sif-cc-foot .sif-cc-btn { flex: 1 1 0; min-width: 0; }

/* Anahtar */
.sif-cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; margin: 0; }
.sif-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sif-cc-slider { position: absolute; inset: 0; background: #8c8f94; border-radius: 26px; transition: background .15s; }
.sif-cc-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.sif-cc-switch input:checked + .sif-cc-slider { background: #1e7e34; }
.sif-cc-switch input:checked + .sif-cc-slider::before { transform: translateX(20px); }

/* Kalıcı tercih simgesi */
.sif-cc-float {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147482999;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sif-cc-border);
	background: var(--sif-cc-bg); color: var(--sif-cc-accent); cursor: pointer; padding: 0;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.sif-cc-float:hover { background: #f6f7f7; color: var(--sif-cc-accent); }

/* Politika sayfası */
.sif-cc-inline { margin: 6px 0 14px; }
.sif-cc-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.sif-cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sif-cc-table th, .sif-cc-table td { border: 1px solid #dcdcde; padding: 8px 10px; text-align: left; vertical-align: top; }
.sif-cc-table th { background: #f6f7f7; }
.sif-cc-table .sif-cc-name { font-family: monospace; font-size: 13px; word-break: break-word; }

/* Mobil */
@media (max-width: 860px) {
	.sif-cc-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
	.sif-cc-actions { flex-direction: column; }
	.sif-cc-btn { width: 100%; min-width: 0; }
	.sif-cc-foot { flex-direction: column; }
	.sif-cc-text { max-height: 40vh; overflow-y: auto; }
}
