/* SY Çerez Onayı — banner, tercih merkezi, gömülü içerik kapısı. Site paleti: lacivert #0a2c69, altın --sy-gold. */
:root { --sy-cerez-h: 0px; }
/* display:flex sınıf kuralı tarayıcının [hidden]{display:none} kuralını ezer; gizli durumu burada kesinleştiriyoruz. */
.sy-cerez[hidden], .sy-cerez-modal[hidden] { display: none !important; }

/* ---------- Banner (kalıcı bildirim; sayfayı kilitlemez) ---------- */
.sy-cerez {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	z-index: 1190;
	display: flex;
	justify-content: center;
	pointer-events: none;
}
.sy-cerez-kutu {
	pointer-events: auto;
	width: 100%;
	max-width: min(1180px, calc(100vw - 200px));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding: 16px 22px;
	border: 1px solid #dfeaf5;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(2, 25, 56, .22);
	color: #3d4d66;
	font-size: 14.5px;
	line-height: 1.5;
	animation: sy-cerez-gir .32s ease both;
}
@keyframes sy-cerez-gir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sy-cerez-metin { flex: 1 1 520px; min-width: 260px; }
.sy-cerez-metin p { margin: 0; }
.sy-cerez-baslik { margin: 0 0 2px !important; color: #0a2c69; font-size: 16px; font-weight: 700; }
.sy-cerez-metin a { color: #0a2c69; text-decoration: underline; text-underline-offset: 2px; }
.sy-cerez-butonlar { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Kabul ve reddet: aynı boy, aynı ağırlık (eşit görünürlük). */
.sy-cerez-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1.5px solid #0a2c69;
	border-radius: 999px;
	background: #fff;
	color: #0a2c69;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.sy-cerez-btn--kabul { background: #0a2c69; color: #fff; }
.sy-cerez-btn--kabul:hover, .sy-cerez-btn--kabul:focus-visible { background: var(--sy-gold-strong, #b8924f); border-color: var(--sy-gold-strong, #b8924f); color: #fff; }
.sy-cerez-btn--red:hover, .sy-cerez-btn--red:focus-visible { background: #eef4fb; }
.sy-cerez-btn--ayar { border-color: transparent; padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; }
.sy-cerez-btn--ayar:hover, .sy-cerez-btn--ayar:focus-visible { background: #f1f6fc; }
.sy-cerez-btn:focus-visible { outline: 3px solid var(--sy-gold, #cca668); outline-offset: 2px; }

/* ---------- Tercih merkezi (gerçek modal) ---------- */
.sy-cerez-modal {
	position: fixed;
	inset: 0;
	z-index: 100060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(2, 25, 56, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.sy-cerez-kart {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 36px);
	overflow: auto;
	padding: 30px 30px 26px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(2, 25, 56, .35);
	color: #3d4d66;
	animation: sy-cerez-gir .26s ease both;
}
.sy-cerez-kart h2 { margin: 0 34px 8px 0; color: #0a2c69; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.sy-cerez-modal-metin { margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.sy-cerez-kapat {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: #f1f6fc;
	color: #0a2c69;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.sy-cerez-kapat:hover, .sy-cerez-kapat:focus-visible { background: #e2ecf8; outline: none; }
.sy-cerez-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e6eef7; }
.sy-cerez-satir {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid #e6eef7;
}
.sy-cerez-satir-metin { min-width: 0; }
.sy-cerez-kat { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #0a2c69; font-size: 16px; font-weight: 700; cursor: pointer; }
.sy-cerez-satir-metin p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.sy-cerez-rozet { padding: 2px 9px; border-radius: 999px; background: #eef4fb; color: #0a2c69; font-size: 12px; font-weight: 600; }

/* Anahtar (switch): gerçek checkbox, görsel kapak. Varsayılan KAPALI. */
.sy-cerez-anahtar { position: relative; flex: 0 0 auto; width: 48px; height: 28px; margin-top: 2px; cursor: pointer; }
.sy-cerez-anahtar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sy-cerez-anahtar > span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #cfdaea;
	transition: background-color .18s ease;
}
.sy-cerez-anahtar > span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(2, 25, 56, .3);
	transition: transform .18s ease;
}
.sy-cerez-anahtar input:checked + span { background: #0a2c69; }
.sy-cerez-anahtar input:checked + span::after { transform: translateX(20px); }
.sy-cerez-anahtar input:focus-visible + span { outline: 3px solid var(--sy-gold, #cca668); outline-offset: 2px; }
.sy-cerez-anahtar.is-sabit { cursor: default; }
.sy-cerez-anahtar.is-sabit > span { background: #8fa3c2; }
.sy-cerez-anahtar.is-sabit > span::after { transform: translateX(20px); }
.sy-cerez-not { margin: 14px 0 0; font-size: 13px; color: #5b6b84; line-height: 1.55; }
.sy-cerez-not a { color: #0a2c69; }
.sy-cerez-modal-butonlar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.sy-cerez-modal-butonlar .sy-cerez-btn { min-height: 44px; padding: 0 20px; font-size: 14.5px; }

/* ---------- Gömülü içerik kapısı ---------- */
.sy-cerez-yer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	max-height: 100%; /* sabit yükseklikli kaplarda (iletişim haritası) taşmasın */
	box-sizing: border-box;
	padding: 20px;
	border: 1px dashed #b9cbe3;
	border-radius: 16px;
	background: linear-gradient(180deg, #f6f9fd, #edf3fa);
	color: #3d4d66;
	text-align: center;
}
.sy-cerez-yer-ic { display: block; max-width: 440px; }
.sy-cerez-yer-baslik, .sy-cerez-yer-metin, .sy-cerez-yer-butonlar, .sy-cerez-yer-link { display: block; }
.sy-cerez-yer-butonlar { display: flex; }
/* İletişim sayfası haritası: kap sabit yükseklikte, yer tutucu kabı doldurur. */
.sy-contact-map .sy-cerez-yer { aspect-ratio: auto; height: 100%; }
/* Footer haritası: <a><span> içinde; kutunun (span.sy-footer-map) boyutunu doldurur, tıklama bağlantıya gider. */
.sy-footer-map .sy-cerez-yer { aspect-ratio: auto; height: 100%; min-height: inherit; padding: 16px; border: 0; border-radius: 0; background: transparent; color: rgba(236, 246, 255, .85); pointer-events: none; }
.sy-footer-map .sy-cerez-yer .sy-cerez-yer-baslik { color: #fff; }
.sy-footer-map .sy-cerez-yer .sy-cerez-yer-metin { margin: 0 !important; font-size: 13px; }
.sy-cerez-yer-baslik { margin: 0 0 6px !important; color: #0a2c69; font-size: 16px; font-weight: 700; }
.sy-cerez-yer-metin { margin: 0 0 14px !important; font-size: 14px; line-height: 1.55; }
.sy-cerez-yer-butonlar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sy-cerez-yer .sy-cerez-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.sy-cerez-yer-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #0a2c69; }

/* Footer'daki koyu zeminde yer tutucu okunaklı kalsın. */
.sy-footer .sy-cerez-yer, .wp-block-template-part .sy-cerez-yer { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: rgba(236, 246, 255, .85); }
.sy-footer .sy-cerez-yer .sy-cerez-yer-baslik, .wp-block-template-part .sy-cerez-yer .sy-cerez-yer-baslik, .wp-block-template-part .sy-cerez-yer-link { color: #fff; }
.wp-block-template-part .sy-cerez-yer .sy-cerez-btn--red { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }

/* ---------- Dar ekran ---------- */
@media (max-width: 1023px) {
	.sy-cerez { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
	.sy-cerez-kutu { max-width: none; padding: 14px 16px 14px; gap: 12px; font-size: 14px; }
	.sy-cerez-butonlar { width: 100%; gap: 8px; flex-wrap: nowrap; }
	.sy-cerez-butonlar .sy-cerez-btn { font-size: 13px; }
	.sy-cerez-btn--red, .sy-cerez-btn--kabul { flex: 1 1 0; min-width: 0; padding: 0 8px; white-space: nowrap; }
	.sy-cerez-btn--ayar { flex: 0 0 auto; padding: 0 6px; }
	/* Telefon/WhatsApp düğmeleri banner'ın üstüne çıkar. */
	html.sy-cerez-acik .sy-float { bottom: calc(var(--sy-cerez-h) + 12px); }
	.sy-cerez-kart { padding: 24px 20px 20px; }
	.sy-cerez-kart h2 { font-size: 21px; }
	.sy-cerez-modal-butonlar .sy-cerez-btn { flex: 1 1 0; }
}
/* Telefon: alt sayfa (bottom sheet) — başparmakla erişilir, kart kısa kalır. */
@media (max-width: 600px) {
	.sy-cerez-modal { align-items: flex-end; padding: 0; }
	.sy-cerez-kart { max-height: 92vh; max-height: 92dvh; padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; }
	.sy-cerez-kart h2 { font-size: 20px; }
	.sy-cerez-modal-metin { margin-bottom: 12px; font-size: 14px; }
	.sy-cerez-satir { gap: 14px; padding: 13px 0; }
	.sy-cerez-kat { font-size: 15px; }
	.sy-cerez-satir-metin p { font-size: 13.5px; }
	.sy-cerez-not { margin-top: 10px; font-size: 12.5px; }
	.sy-cerez-modal-butonlar { margin-top: 14px; }
	.sy-cerez-kapat { top: 12px; right: 12px; width: 34px; height: 34px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.sy-cerez-kutu, .sy-cerez-kart { animation: none; }
	.sy-cerez-btn, .sy-cerez-anahtar > span, .sy-cerez-anahtar > span::after { transition: none; }
}
