/* DS Çerez Onayı */
.dsc-banner, .dsc-modal, .dsc-floating {
	--dsc-bg: #ffffff;
	--dsc-text: #1f2937;
	--dsc-muted: #4b5563;
	--dsc-border: #e5e7eb;
	--dsc-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--dsc-text);
	box-sizing: border-box;
}
.dsc-banner *, .dsc-modal *, .dsc-floating * { box-sizing: border-box; }
.dsc-banner[hidden], .dsc-modal[hidden], .dsc-floating[hidden] { display: none !important; }

/* Banner */
.dsc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	display: flex;
	justify-content: center;
	pointer-events: none;
}
.dsc-banner__inner {
	pointer-events: auto;
	width: 100%;
	max-width: 1080px;
	background: var(--dsc-bg);
	border: 1px solid var(--dsc-border);
	border-radius: var(--dsc-radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	animation: dsc-in .25s ease-out;
}
.dsc-banner__body { flex: 1 1 auto; min-width: 0; }
.dsc-banner__title { margin: 0 0 4px; font-weight: 600; font-size: 16px; color: var(--dsc-text); }
.dsc-banner__text { margin: 0; color: var(--dsc-muted); font-size: 14px; }
.dsc-banner__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.dsc-links { white-space: nowrap; }
.dsc-links a, .dsc-modal__intro a { color: var(--dsc-primary); text-decoration: underline; }

/* Butonlar – Kabul ve Reddet eşit görünürlükte */
.dsc-btn {
	appearance: none;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid var(--dsc-primary);
	background: var(--dsc-primary);
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	transition: filter .15s ease;
}
.dsc-btn:hover { filter: brightness(1.12); }
.dsc-btn:focus-visible, .dsc-modal__close:focus-visible, .dsc-floating:focus-visible, .dsc-switch input:focus-visible + .dsc-switch__track {
	outline: 2px solid var(--dsc-primary);
	outline-offset: 2px;
}
.dsc-btn--outline { background: transparent; color: var(--dsc-primary); }
.dsc-btn--outline:hover { filter: none; background: rgba(0, 0, 0, .04); }
.dsc-btn--link {
	background: transparent;
	border-color: transparent;
	color: var(--dsc-primary);
	text-decoration: underline;
	padding-left: 8px;
	padding-right: 8px;
}
.dsc-btn--link:hover { filter: none; }

/* Modal */
.dsc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.dsc-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); }
.dsc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	background: var(--dsc-bg);
	border-radius: var(--dsc-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	outline: none;
	animation: dsc-in .2s ease-out;
}
.dsc-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid var(--dsc-border);
}
.dsc-modal__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--dsc-text); line-height: 1.3; }
.dsc-modal__close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border-radius: 8px;
	color: var(--dsc-muted);
	cursor: pointer;
}
.dsc-modal__close:hover { background: rgba(0, 0, 0, .05); }
.dsc-modal__body { padding: 16px 24px; overflow-y: auto; }
.dsc-modal__intro { margin: 0 0 12px; color: var(--dsc-muted); font-size: 14px; }
.dsc-modal__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	padding: 16px 24px;
	border-top: 1px solid var(--dsc-border);
}

.dsc-cat { padding: 14px 0; border-top: 1px solid var(--dsc-border); }
.dsc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dsc-cat__title { font-weight: 600; font-size: 15px; margin: 0; cursor: pointer; color: var(--dsc-text); }
.dsc-cat__always { font-size: 13px; font-weight: 600; color: var(--dsc-primary); white-space: nowrap; }
.dsc-cat__desc { margin: 4px 0 0; font-size: 13.5px; color: var(--dsc-muted); }

/* Anahtar */
.dsc-switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 44px; height: 24px; }
.dsc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.dsc-switch__track {
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #d1d5db;
	position: relative;
	transition: background .15s ease;
}
.dsc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}
.dsc-switch input:checked + .dsc-switch__track { background: var(--dsc-primary); }
.dsc-switch input:checked + .dsc-switch__track::after { transform: translateX(20px); }

/* Yüzen buton */
.dsc-floating {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--dsc-border);
	background: var(--dsc-bg);
	color: var(--dsc-primary);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .85;
	transition: opacity .15s ease, transform .15s ease;
}
.dsc-floating:hover { opacity: 1; transform: scale(1.05); }

html.dsc-lock, html.dsc-lock body { overflow: hidden; }

@keyframes dsc-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
	.dsc-banner { left: 8px; right: 8px; bottom: 8px; }
	.dsc-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
	.dsc-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.dsc-banner__actions .dsc-btn--link { grid-column: 1 / -1; order: 3; }
	.dsc-links { white-space: normal; }
	.dsc-modal { padding: 0; align-items: flex-end; }
	.dsc-modal__dialog { max-width: none; max-height: 92vh; border-radius: var(--dsc-radius) var(--dsc-radius) 0 0; }
	.dsc-modal__footer { display: grid; grid-template-columns: 1fr 1fr; }
	.dsc-modal__footer .dsc-btn--outline { grid-column: 1 / -1; }
	.dsc-btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.dsc-banner__inner, .dsc-modal__dialog { animation: none; }
	.dsc-switch__track, .dsc-switch__track::after, .dsc-floating { transition: none; }
}
