/* MeSosyal Çerez Onayı Pro — ön yüz */
:where(#mscc-root) {
	--mscc-primary: #47a435;
	--mscc-accent: #2e7d32;
	--mscc-radius: 18px;
	--mscc-font: inherit;
}
#mscc-root {
	--mscc-bg: #ffffff;
	--mscc-text: #0f172a;
	--mscc-muted: #475569;
	--mscc-border: rgba(15, 23, 42, .09);
	--mscc-soft: #f1f5f9;
	--mscc-shadow: 0 24px 60px -12px rgba(15, 23, 42, .28), 0 4px 14px rgba(15, 23, 42, .08);
	--mscc-z: 2147483000;
	font-family: var(--mscc-font);
	-webkit-font-smoothing: antialiased;
}
#mscc-root.mscc--theme-dark {
	--mscc-bg: #0d1324;
	--mscc-text: #e2e8f0;
	--mscc-muted: #94a3b8;
	--mscc-border: rgba(255, 255, 255, .09);
	--mscc-soft: rgba(255, 255, 255, .06);
	--mscc-shadow: 0 24px 60px -12px rgba(0, 0, 0, .6), 0 4px 14px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
	#mscc-root.mscc--theme-auto {
		--mscc-bg: #0d1324;
		--mscc-text: #e2e8f0;
		--mscc-muted: #94a3b8;
		--mscc-border: rgba(255, 255, 255, .09);
		--mscc-soft: rgba(255, 255, 255, .06);
		--mscc-shadow: 0 24px 60px -12px rgba(0, 0, 0, .6), 0 4px 14px rgba(0, 0, 0, .35);
	}
}

#mscc-root *, #mscc-root *::before, #mscc-root *::after { box-sizing: border-box; }
#mscc-root [hidden] { display: none !important; }
#mscc-root h2 { margin: 0; padding: 0; border: 0; letter-spacing: -.01em; text-transform: none; }
#mscc-root p { margin: 0; }
#mscc-root code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: var(--mscc-soft); color: var(--mscc-text); padding: 2px 6px; border-radius: 6px; }

/* ---------- Banner ---------- */
#mscc-root .mscc-banner {
	position: fixed;
	z-index: var(--mscc-z);
	background: var(--mscc-bg);
	color: var(--mscc-text);
	border: 1px solid var(--mscc-border);
	border-radius: var(--mscc-radius);
	box-shadow: var(--mscc-shadow);
	padding: 22px;
	font-size: 14px;
	line-height: 1.6;
	overflow: hidden;
	transition: opacity .32s ease, transform .32s cubic-bezier(.2, .8, .2, 1), filter .2s;
	opacity: 0;
}
#mscc-root .mscc-banner::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--mscc-primary), var(--mscc-accent));
}
#mscc-root .mscc-banner.is-visible { opacity: 1; transform: none; }
#mscc-root .mscc-banner.is-behind { filter: blur(2px); opacity: .4; pointer-events: none; }

#mscc-root.mscc--anim-slide .mscc-banner { transform: translateY(28px); }
#mscc-root.mscc--anim-slide .mscc-banner.is-visible { transform: none; }
#mscc-root.mscc--anim-none .mscc-banner { transition: none !important; }

/* Kutu */
#mscc-root.mscc--box .mscc-banner { bottom: 22px; width: min(450px, calc(100% - 32px)); }
#mscc-root.mscc--box.mscc--pos-left .mscc-banner { left: 22px; }
#mscc-root.mscc--box.mscc--pos-right .mscc-banner { right: 22px; }
#mscc-root.mscc--box.mscc--pos-center .mscc-banner { left: 50%; margin-left: max(-225px, calc((100% - 32px) / -2)); }

/* Çubuk */
#mscc-root.mscc--bar .mscc-banner { left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 24px; padding: 18px 22px; }
#mscc-root.mscc--bar .mscc-banner__body { flex: 1 1 auto; }
#mscc-root.mscc--bar .mscc-actions { flex: 0 0 auto; margin-top: 0 !important; }

/* Popup */
#mscc-root.mscc--popup .mscc-banner { top: 50%; left: 50%; width: min(560px, calc(100% - 32px)); transform: translate(-50%, -46%) scale(.97); padding: 30px; }
#mscc-root.mscc--popup .mscc-banner.is-visible { transform: translate(-50%, -50%); }
#mscc-root.mscc--popup .mscc-banner__body { flex-direction: column; align-items: center; text-align: center; }
#mscc-root.mscc--popup .mscc-links { justify-content: center; }
#mscc-root.mscc--popup .mscc-banner__icon { width: 64px; height: 64px; }
#mscc-root.mscc--popup .mscc-banner__icon .mscc-icon { width: 38px; height: 38px; }

#mscc-root .mscc-backdrop {
	position: fixed; inset: 0; z-index: calc(var(--mscc-z) - 1);
	background: rgba(2, 6, 23, .45);
	-webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
	opacity: 0; transition: opacity .3s;
}
#mscc-root .mscc-backdrop.is-visible { opacity: 1; }

#mscc-root .mscc-banner__body { display: flex; gap: 14px; align-items: flex-start; }
#mscc-root .mscc-banner__icon {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
	display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, var(--mscc-primary), var(--mscc-accent));
	box-shadow: 0 8px 20px -6px var(--mscc-primary);
}
#mscc-root .mscc-title { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; color: var(--mscc-text); }
#mscc-root .mscc-desc { color: var(--mscc-muted); font-size: 13.5px; }
#mscc-root .mscc-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; }
#mscc-root .mscc-links a { color: var(--mscc-primary); font-weight: 600; text-decoration: none; border-bottom: 1px dashed currentColor; }
#mscc-root .mscc-links a:hover { border-bottom-style: solid; }

#mscc-root .mscc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 18px; }
#mscc-root.mscc--bar .mscc-actions { display: flex; flex-wrap: wrap; }

/* ---------- Butonlar ---------- */
#mscc-root .mscc-btn {
	appearance: none; -webkit-appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 42px; padding: 10px 16px; margin: 0;
	font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none;
	border-radius: calc(var(--mscc-radius) * .6);
	border: 1.5px solid transparent;
	cursor: pointer; text-align: center; white-space: nowrap;
	transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
	box-shadow: none; text-shadow: none;
}
#mscc-root .mscc-btn:hover { transform: translateY(-1px); }
#mscc-root .mscc-btn:active { transform: translateY(0); }
#mscc-root .mscc-btn:focus-visible, #mscc-root button:focus-visible, #mscc-root a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mscc-primary) 45%, transparent); outline-offset: 2px;
}
#mscc-root .mscc-btn--primary {
	background: var(--mscc-primary); color: #fff;
	box-shadow: 0 8px 18px -8px var(--mscc-primary);
}
#mscc-root .mscc-btn--primary:hover { box-shadow: 0 12px 24px -8px var(--mscc-primary); }
/* KVKK Çerez Rehberi: "Reddet" seçeneği "Kabul Et" kadar görünür olmalıdır. */
#mscc-root.mscc--btn-equal .mscc-btn--secondary { background: var(--mscc-primary) !important; color: #fff !important; box-shadow: 0 8px 18px -8px var(--mscc-primary) !important; }
#mscc-root.mscc--btn-highlight .mscc-btn--secondary { background: transparent !important; color: var(--mscc-text) !important; border-color: var(--mscc-border) !important; }
#mscc-root .mscc-btn--ghost { background: var(--mscc-soft); color: var(--mscc-text); border-color: var(--mscc-border); }
#mscc-root .mscc-btn--ghost:hover { border-color: var(--mscc-primary); color: var(--mscc-primary); }

#mscc-root .mscc-x {
	position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; padding: 0;
	border: 0; border-radius: 10px; background: var(--mscc-soft); color: var(--mscc-muted);
	font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
#mscc-root .mscc-x:hover { color: var(--mscc-text); }

/* ---------- Tercih merkezi (modal) ---------- */
#mscc-root .mscc-modal { position: fixed; inset: 0; z-index: calc(var(--mscc-z) + 2); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s ease; }
#mscc-root .mscc-modal.is-visible { opacity: 1; }
#mscc-root .mscc-modal__overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#mscc-root .mscc-modal__panel {
	position: relative; width: min(640px, 100%); max-height: min(88vh, 820px);
	display: flex; flex-direction: column;
	background: var(--mscc-bg); color: var(--mscc-text);
	border: 1px solid var(--mscc-border); border-radius: calc(var(--mscc-radius) + 4px);
	box-shadow: var(--mscc-shadow); overflow: hidden; outline: none;
	transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	font-size: 14px; line-height: 1.6;
}
#mscc-root .mscc-modal.is-visible .mscc-modal__panel { transform: none; }
#mscc-root .mscc-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--mscc-border); position: relative; }
#mscc-root .mscc-modal__head::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--mscc-primary), var(--mscc-accent)); }
#mscc-root .mscc-modal__brand { display: flex; align-items: center; gap: 10px; color: var(--mscc-primary); }
#mscc-root .mscc-modal__brand h2 { font-size: 17px; font-weight: 800; color: var(--mscc-text); }
#mscc-root .mscc-x--modal { position: static; }
#mscc-root .mscc-modal__body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
#mscc-root .mscc-modal__intro { color: var(--mscc-muted); font-size: 13.5px; margin-bottom: 14px; }
#mscc-root .mscc-modal__foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding: 16px 22px; border-top: 1px solid var(--mscc-border); background: var(--mscc-soft); }

#mscc-root .mscc-cat { border: 1px solid var(--mscc-border); border-radius: 14px; margin-bottom: 10px; background: var(--mscc-bg); transition: border-color .2s; }
#mscc-root .mscc-cat:hover { border-color: color-mix(in srgb, var(--mscc-primary) 35%, var(--mscc-border)); }
#mscc-root .mscc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
#mscc-root .mscc-cat__toggle {
	appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
	display: flex; align-items: center; gap: 10px; flex: 1; text-align: left;
	font: inherit; font-weight: 700; font-size: 14.5px; color: var(--mscc-text);
}
#mscc-root .mscc-cat__count { font-size: 11.5px; font-weight: 600; color: var(--mscc-muted); background: var(--mscc-soft); padding: 2px 8px; border-radius: 99px; }
#mscc-root .mscc-cat__count:empty { display: none; }
#mscc-root .mscc-chevron { width: 9px; height: 9px; border-right: 2px solid var(--mscc-muted); border-bottom: 2px solid var(--mscc-muted); transform: rotate(-45deg); transition: transform .2s; flex: 0 0 auto; }
#mscc-root .mscc-cat__toggle[aria-expanded="true"] .mscc-chevron { transform: rotate(45deg); }
#mscc-root .mscc-cat__body { padding: 0 14px 14px 33px; color: var(--mscc-muted); font-size: 13px; }
#mscc-root .mscc-always { font-size: 12px; font-weight: 700; color: #16a34a; background: rgba(22, 163, 74, .1); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

#mscc-root .mscc-switch { position: relative; display: inline-flex; cursor: pointer; flex: 0 0 auto; }
#mscc-root .mscc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
#mscc-root .mscc-switch__track { width: 46px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background .2s; }
#mscc-root.mscc--theme-dark .mscc-switch__track { background: #334155 !important; }
#mscc-root .mscc-switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
#mscc-root .mscc-switch input:checked + .mscc-switch__track { background: linear-gradient(90deg, var(--mscc-primary), var(--mscc-accent)) !important; }
#mscc-root .mscc-switch input:checked + .mscc-switch__track .mscc-switch__thumb { transform: translateX(20px); }
#mscc-root .mscc-switch input:focus-visible + .mscc-switch__track { outline: 3px solid color-mix(in srgb, var(--mscc-primary) 45%, transparent); outline-offset: 2px; }

#mscc-root .mscc-ck-grid { display: grid; gap: 8px; margin-top: 10px; }
#mscc-root .mscc-ck { background: var(--mscc-soft); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; }
#mscc-root .mscc-ck__name { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
#mscc-root .mscc-ck__name span { font-size: 11.5px; color: var(--mscc-muted); white-space: nowrap; }
#mscc-root .mscc-ck__row b { color: var(--mscc-text); font-weight: 600; }
#mscc-root .mscc-empty { font-style: italic; margin-top: 8px; }
#mscc-root .mscc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--mscc-muted); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--mscc-border); }
#mscc-root .mscc-powered { text-align: center; font-size: 11px; color: var(--mscc-muted); padding: 7px; border-top: 1px solid var(--mscc-border); }
#mscc-root .mscc-powered a { color: inherit; text-decoration: none; font-weight: 700; }

/* ---------- Tekrar açma düğmesi ---------- */
#mscc-root .mscc-revisit {
	position: fixed; bottom: 20px; z-index: calc(var(--mscc-z) - 2);
	width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, var(--mscc-primary), var(--mscc-accent));
	box-shadow: 0 10px 24px -8px var(--mscc-primary), 0 0 0 4px color-mix(in srgb, var(--mscc-bg) 70%, transparent);
	opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
#mscc-root .mscc-revisit.is-visible { opacity: 1; transform: scale(1); }
#mscc-root .mscc-revisit:hover { transform: scale(1.08) rotate(-12deg); }
#mscc-root .mscc-revisit--left { left: 20px; }
#mscc-root .mscc-revisit--right { right: 20px; }
.mscc-banner-open #mscc-root .mscc-revisit { display: none; }

/* ---------- Bildirim ---------- */
#mscc-root .mscc-toast {
	position: fixed; left: 50%; bottom: 26px; z-index: calc(var(--mscc-z) + 3);
	transform: translate(-50%, 20px); opacity: 0;
	background: #0f172a; color: #fff; font-size: 13.5px; font-weight: 600;
	padding: 10px 18px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	transition: opacity .3s, transform .3s;
}
#mscc-root .mscc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Engellenen iframe ---------- */
.mscc-iframe-wrap iframe[data-mscc-blocked] { display: none !important; }
.mscc-iframe-wrap.is-loaded { display: contents; }
.mscc-iframe-ph {
	width: 100%; min-height: 220px; display: grid; place-items: center; text-align: center;
	background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--mscc-primary, #47a435) 14%, transparent), transparent 55%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--mscc-accent, #2e7d32) 12%, transparent), transparent 50%), #f8fafc;
	border: 1px dashed rgba(15, 23, 42, .18); border-radius: 14px; padding: 24px; margin: 0 auto 1em;
	font-size: 14px; color: #334155;
}
.mscc-iframe-ph__inner { max-width: 420px; }
.mscc-iframe-ph__icon { font-size: 34px; display: block; margin-bottom: 6px; }
.mscc-iframe-ph p { margin: 0 0 4px; }
.mscc-iframe-ph small { display: block; opacity: .7; margin-bottom: 12px; }
.mscc-iframe-ph__btn {
	appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px;
	background: var(--mscc-primary, #47a435); color: #fff; padding: 10px 18px; border-radius: 10px;
}

/* ---------- Kısa kod tabloları ---------- */
.mscc-policy-table .mscc-table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
.mscc-policy-table table, .mscc-status__table { width: 100%; border-collapse: collapse; font-size: .92em; }
.mscc-policy-table th, .mscc-policy-table td, .mscc-status__table td { border: 1px solid rgba(0, 0, 0, .1); padding: 8px 10px; text-align: left; vertical-align: top; }
.mscc-policy-table th { background: rgba(0, 0, 0, .04); }
.mscc-status__meta { font-size: .85em; opacity: .8; margin-top: .5em; }
.mscc-open-settings { cursor: pointer; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
	#mscc-root.mscc--box .mscc-banner, #mscc-root.mscc--bar .mscc-banner {
		left: 8px !important; right: 8px !important; bottom: 8px !important; width: auto !important; margin: 0 !important;
		display: block; padding: 18px;
	}
	#mscc-root.mscc--bar .mscc-actions, #mscc-root .mscc-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px !important; }
	#mscc-root .mscc-actions .mscc-btn--ghost { grid-column: 1 / -1; order: 3; }
	#mscc-root .mscc-banner__icon { width: 38px; height: 38px; border-radius: 12px; }
	#mscc-root .mscc-banner__icon .mscc-icon { width: 22px; height: 22px; }
	#mscc-root .mscc-modal { padding: 0; place-items: end center; }
	#mscc-root .mscc-modal__panel { border-radius: 22px 22px 0 0; max-height: 92vh; }
	#mscc-root .mscc-modal__foot { grid-template-columns: 1fr; }
	#mscc-root .mscc-revisit { width: 44px; height: 44px; bottom: 14px; }
	#mscc-root .mscc-revisit--left { left: 14px; }
	#mscc-root .mscc-revisit--right { right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	#mscc-root * { transition: none !important; }
}
@media print { #mscc-root { display: none !important; } }
