/* LiteSpeed / önbellek: rıza verilmişse head içi script ile gizlenir */
html.gdpr-kvkk-has-consent #gdpr-kvkk-banner,
html.gdpr-kvkk-has-consent #gdpr-kvkk-modal {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.gdpr-kvkk-banner {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 999999;
	width: calc(100% - 32px);
	max-width: 720px;
	padding: 0;
	background: transparent;
	border: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: #374151;
}

.gdpr-kvkk-banner__card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 22px 24px 20px;
}

.gdpr-kvkk-banner__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #374151;
}

.gdpr-kvkk-banner__link {
	color: #2563eb;
	font-weight: 700;
	text-decoration: none;
	margin-left: 2px;
}

.gdpr-kvkk-banner__link:hover {
	text-decoration: underline;
}

.gdpr-kvkk-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.gdpr-kvkk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	border-radius: 10px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.gdpr-kvkk-btn__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Kabul Et — mavi dolu */
.gdpr-kvkk-btn--accept {
	background: #2563eb;
	border: 1px solid #2563eb;
	color: #ffffff;
}

.gdpr-kvkk-btn--accept:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

/* Ayarlar — açık gri + dişli */
.gdpr-kvkk-btn--settings {
	background: #f3f4f6;
	border: 1px solid #f3f4f6;
	color: #374151;
}

.gdpr-kvkk-btn--settings:hover {
	background: #e5e7eb;
	border-color: #e5e7eb;
}

/* Reddet — çerçeveli / ghost */
.gdpr-kvkk-btn--reject {
	background: #ffffff;
	border: 1px solid #d1d5db;
	color: #9ca3af;
	font-weight: 500;
}

.gdpr-kvkk-btn--reject:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #6b7280;
}

/* Ayarlar modal */
.gdpr-kvkk-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.gdpr-kvkk-modal.is-open {
	display: flex;
}

.gdpr-kvkk-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.gdpr-kvkk-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 480px;
	width: 100%;
	padding: 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.gdpr-kvkk-modal__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.gdpr-kvkk-modal__options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.gdpr-kvkk-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.45;
	color: #111827;
}

.gdpr-kvkk-option__text {
	flex: 1 1 auto;
	min-width: 0;
}

.gdpr-kvkk-option--disabled {
	opacity: 0.85;
	cursor: default;
}

/* Toggle switches — theme hides global checkboxes (opacity:0) */
#gdpr-kvkk-modal .gdpr-kvkk-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 46px;
	width: 46px;
	height: 26px;
}

#gdpr-kvkk-modal .gdpr-kvkk-switch input[type="checkbox"] {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	cursor: pointer;
	z-index: 2;
}

#gdpr-kvkk-modal .gdpr-kvkk-switch__track {
	position: absolute;
	inset: 0;
	background: #d1d5db;
	border-radius: 999px;
	transition: background 0.2s ease;
	pointer-events: none;
}

#gdpr-kvkk-modal .gdpr-kvkk-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

#gdpr-kvkk-modal .gdpr-kvkk-switch input[type="checkbox"]:checked + .gdpr-kvkk-switch__track {
	background: #2563eb;
}

#gdpr-kvkk-modal .gdpr-kvkk-switch input[type="checkbox"]:checked + .gdpr-kvkk-switch__track::after {
	transform: translateX(20px);
}

#gdpr-kvkk-modal .gdpr-kvkk-switch input[type="checkbox"]:focus-visible + .gdpr-kvkk-switch__track {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

#gdpr-kvkk-modal .gdpr-kvkk-option--disabled .gdpr-kvkk-switch input[type="checkbox"] {
	cursor: not-allowed;
}

#gdpr-kvkk-modal .gdpr-kvkk-option--disabled .gdpr-kvkk-switch__track {
	background: #9ca3af;
}

.gdpr-kvkk-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

@media (max-width: 560px) {
	.gdpr-kvkk-banner {
		bottom: 16px;
		width: calc(100% - 24px);
	}

	.gdpr-kvkk-banner__card {
		padding: 18px 16px 16px;
	}

	.gdpr-kvkk-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.gdpr-kvkk-banner__actions .gdpr-kvkk-btn {
		width: 100%;
	}
}
