/* Websel Çerez — banner + ayar penceresi. Renkler inline CSS değişkenlerinden gelir:
   --wscz-bg (zemin), --wscz-tx (metin), --wscz-ac (vurgu). */

#wscz, #wscz * { box-sizing: border-box; }
#wscz { position: fixed; z-index: 999999; inset: auto 0 0 0; font-size: 15px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; }
#wscz[hidden], #wscz [hidden], #wscz-reopen[hidden] { display: none !important; }

/* ---- banner ---- */
.wscz .wscz-banner { background: var(--wscz-bg, #0f172a); color: var(--wscz-tx, #e2e8f0);
	box-shadow: 0 -6px 30px rgba(0, 0, 0, .25); }
.wscz-bar .wscz-banner { width: 100%; }
.wscz-bar .wscz-inner { max-width: 1120px; margin: 0 auto; padding: 18px 22px;
	display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

#wscz.wscz-kart { inset: auto 20px 20px auto; } /* #wscz taban kuralını (ID özgüllüğü) ezmek için ID+sınıf */
.wscz-kart .wscz-banner { width: min(420px, calc(100vw - 40px)); border-radius: 14px; }
.wscz-kart .wscz-inner { padding: 20px; }
.wscz-kart .wscz-actions { margin-top: 14px; }

.wscz-info { flex: 1 1 320px; min-width: 0; }
.wscz-title { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.wscz-text { margin: 0; opacity: .92; font-size: 14px; }
.wscz-policy { color: var(--wscz-ac, #f97316); text-decoration: underline; }
.wscz-policy:hover { opacity: .85; }

.wscz-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* KVKK: Reddet, Kabul ile eşit boy ve görünürlükte */
.wscz-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px;
	cursor: pointer; transition: filter .15s, background .15s; line-height: 1.2; }
.wscz-btn:hover { filter: brightness(1.1); }
.wscz-solid { background: var(--wscz-ac, #f97316); color: #fff; border: 2px solid var(--wscz-ac, #f97316); }
.wscz-outline { background: transparent; color: var(--wscz-tx, #e2e8f0); border: 2px solid currentColor; }
.wscz-ghost { background: transparent; color: var(--wscz-tx, #e2e8f0); border: 2px solid transparent;
	text-decoration: underline; padding-left: 8px; padding-right: 8px; }

/* ---- ayar penceresi ---- */
.wscz-overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, .6); backdrop-filter: blur(2px);
	display: flex; align-items: center; justify-content: center; padding: 20px; }
.wscz-panel { background: var(--wscz-bg, #0f172a); color: var(--wscz-tx, #e2e8f0);
	width: min(560px, 100%); max-height: min(80vh, 640px); border-radius: 14px;
	display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.wscz-panel-head { display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px 12px; font-size: 16px; }
.wscz-close { background: none; border: 0; color: inherit; font-size: 26px; line-height: 1;
	cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.wscz-close:hover { background: rgba(255, 255, 255, .1); }
.wscz-panel-body { padding: 0 22px; overflow-y: auto; flex: 1; }
.wscz-cat { border-top: 1px solid rgba(148, 163, 184, .25); padding: 14px 0; }
.wscz-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wscz-cat-label { font-weight: 700; }
.wscz-cat-desc { margin: 6px 0 0; font-size: 13px; opacity: .85; }
.wscz-locked { font-size: 12px; font-weight: 600; color: var(--wscz-ac, #f97316);
	border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* kategori altı çerez detayları (katmanlı aydınlatma) */
.wscz-cat-toggle { background: none; border: 0; color: var(--wscz-ac, #f97316); font: inherit;
	font-size: 12.5px; font-weight: 600; padding: 0; margin-top: 8px; cursor: pointer;
	text-decoration: underline; }
.wscz-cat-toggle:hover { opacity: .85; }
.wscz-cookie-list { list-style: none; margin: 8px 0 0; padding: 10px 12px;
	border: 1px solid rgba(148, 163, 184, .28); border-radius: 8px; font-size: 12.5px;
	display: grid; gap: 8px; max-height: 180px; overflow-y: auto; }
.wscz-cookie-list li { margin: 0; }
.wscz-cookie-list code { font-size: 12px; background: rgba(148, 163, 184, .18);
	padding: 1px 6px; border-radius: 4px; }
.wscz-ck-meta { opacity: .7; margin-left: 6px; }
.wscz-ck-purpose { display: block; opacity: .85; margin-top: 2px; }
.wscz-panel-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
	padding: 16px 22px 20px; border-top: 1px solid rgba(148, 163, 184, .25); }
.wscz-spacer { flex: 1; }

/* anahtar (switch) */
.wscz-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.wscz-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0;
	cursor: pointer; z-index: 1; }
.wscz-slider { position: absolute; inset: 0; background: rgba(148, 163, 184, .45);
	border-radius: 999px; transition: background .18s; pointer-events: none; }
.wscz-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
	background: #fff; border-radius: 50%; transition: transform .18s; }
.wscz-switch input:checked + .wscz-slider { background: var(--wscz-ac, #f97316); }
.wscz-switch input:checked + .wscz-slider::before { transform: translateX(20px); }
.wscz-switch input:focus-visible + .wscz-slider { outline: 2px solid var(--wscz-ac, #f97316); outline-offset: 2px; }

/* yalnız panel görünümü (tercihleri sonradan açma) */
.wscz-panel-only .wscz-banner { display: none; }

/* ---- yeniden açma ikonu ---- */
#wscz-reopen { position: fixed; z-index: 999998; left: 18px; bottom: 18px; width: 44px; height: 44px;
	border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
	background: var(--wscz-bg, #0f172a); color: var(--wscz-ac, #f97316);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .3); transition: transform .15s; }
#wscz-reopen:hover { transform: scale(1.08); }

/* ---- politika sayfası tablosu ---- */
.wscz-politika .wscz-tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.wscz-politika .wscz-tablo th, .wscz-politika .wscz-tablo td { border: 1px solid rgba(148, 163, 184, .4);
	padding: 8px 10px; text-align: left; vertical-align: top; }
.wscz-politika .wscz-tablo th { font-weight: 700; }

/* ---- mobil ---- */
@media (max-width: 640px) {
	.wscz-bar .wscz-inner { padding: 14px 16px; }
	.wscz-actions { width: 100%; }
	.wscz-actions .wscz-btn { flex: 1 1 auto; text-align: center; }
	#wscz.wscz-kart { inset: auto 10px 10px 10px; }
	.wscz-kart .wscz-banner { width: 100%; }
	.wscz-panel-foot .wscz-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	#wscz *, #wscz-reopen { transition: none !important; }
}
