/* nanoCookie - on yuz stilleri */

.nanocookie-root {
	--nc-accent: #2563eb;
	--nc-dark: #111827;
	--nc-radius: 18px;
	--nc-font: 14px;
	--nc-bg: #ffffff;
	--nc-text: #111827;
	--nc-muted: #6b7280;
	--nc-line: #e8eaee;
	--nc-soft: #f4f5f7;
	--nc-soft-hover: #eceef1;
	position: relative;
	z-index: 999999;
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
}

.nanocookie-root *,
.nanocookie-root *::before,
.nanocookie-root *::after {
	box-sizing: border-box;
}

.nanocookie-root button {
	font-family: inherit;
	cursor: pointer;
}

/* Bazi temalar [hidden] davranisini ezdigi icin garantiye aliyoruz. */
.nanocookie-root [hidden] {
	display: none !important;
}

body.nc-locked {
	overflow: hidden;
}

/* ---------- Ortak dugmeler ---------- */

.nanocookie-root .nc-btn {
	border: 0;
	border-radius: 999px;
	padding: 12px 22px;
	font-size: calc(var(--nc-font) - 0.5px);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .16s ease, color .16s ease, transform .1s ease, box-shadow .16s ease;
}

.nanocookie-root .nc-btn:active {
	transform: translateY(1px);
}

.nanocookie-root .nc-btn--dark {
	background: var(--nc-dark);
	color: #fff;
	box-shadow: 0 6px 16px rgba(17, 24, 39, .18);
}

.nanocookie-root .nc-btn--dark:hover {
	background: #000;
}

.nanocookie-root .nc-btn--soft {
	background: var(--nc-soft);
	color: var(--nc-text);
}

.nanocookie-root .nc-btn--soft:hover {
	background: var(--nc-soft-hover);
}

.nanocookie-root .nc-btn:focus-visible,
.nanocookie-root .nc-check input:focus-visible + .nc-check__box,
.nanocookie-root .nc-meta__link:focus-visible,
.nanocookie-root .nc-back:focus-visible {
	outline: 2px solid var(--nc-accent);
	outline-offset: 2px;
}

/* ---------- Bar ---------- */

.nc-banner {
	position: fixed;
	z-index: 999999;
	width: min(460px, calc(100vw - 28px));
	background: var(--nc-bg);
	color: var(--nc-text);
	border: 1px solid var(--nc-line);
	border-radius: calc(var(--nc-radius) + 6px);
	box-shadow: 0 20px 50px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06);
	padding: 20px 22px;
	font-size: var(--nc-font);
	line-height: 1.55;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .24s ease, transform .24s cubic-bezier(.2, .8, .3, 1);
}

.nc-banner.is-open {
	opacity: 1;
	transform: translateY(0);
}

.nc-pos-bottom-left .nc-banner {
	left: 18px;
	bottom: 18px;
}

.nc-pos-bottom-right .nc-banner {
	right: 18px;
	bottom: 18px;
}

.nc-pos-bottom-bar .nc-banner {
	left: 50%;
	bottom: 18px;
	width: min(880px, calc(100vw - 28px));
	transform: translate(-50%, 14px);
}

.nc-pos-bottom-bar .nc-banner.is-open {
	transform: translate(-50%, 0);
}

.nc-pos-center .nc-banner {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -46%);
}

.nc-pos-center .nc-banner.is-open {
	transform: translate(-50%, -50%);
}

.nc-banner__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.nc-banner__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fdf1e3;
	color: #c2703a;
	flex: 0 0 auto;
}

.nc-banner__icon svg {
	width: 17px;
	height: 17px;
}

.nc-banner__title {
	margin: 0;
	font-size: calc(var(--nc-font) + 2px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--nc-text);
}

.nc-banner__text {
	margin: 0;
	color: var(--nc-muted);
	font-size: calc(var(--nc-font) - 0.5px);
}

.nc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

/* Editorle girilen icerik (p, ul, ol, a) icin ortak duzen. */
.nc-banner__text p,
.nc-modal__desc p,
.nc-cat__desc p,
.nc-policy p {
	margin: 0 0 8px;
}

.nc-banner__text > :last-child,
.nc-modal__desc > :last-child,
.nc-cat__desc > :last-child,
.nc-policy > :last-child {
	margin-bottom: 0;
}

.nc-banner__text ul,
.nc-banner__text ol,
.nc-modal__desc ul,
.nc-modal__desc ol,
.nc-cat__desc ul,
.nc-cat__desc ol,
.nc-policy ul,
.nc-policy ol {
	margin: 8px 0;
	padding-left: 20px;
}

.nc-banner__text a,
.nc-inline-link {
	color: var(--nc-text);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	background: none;
	border: 0;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
	cursor: pointer;
}

.nc-banner__text a:hover,
.nc-inline-link:hover {
	color: var(--nc-accent);
}

/* ---------- Tercih penceresi ---------- */

.nc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .2s ease;
}

.nc-modal.is-open {
	opacity: 1;
}

.nc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	backdrop-filter: blur(3px);
}

.nanocookie-root[data-nc-overlay="0"] .nc-modal__overlay {
	background: transparent;
	backdrop-filter: none;
}

.nc-modal__box {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	max-height: min(88vh, 820px);
	background: var(--nc-bg);
	color: var(--nc-text);
	border-radius: calc(var(--nc-radius) + 8px);
	box-shadow: 0 28px 70px rgba(15, 23, 42, .3);
	padding: 22px 24px 20px;
	font-size: var(--nc-font);
	line-height: 1.55;
	transform: translateY(14px) scale(.985);
	transition: transform .24s cubic-bezier(.2, .8, .3, 1);
}

.nc-modal.is-open .nc-modal__box {
	transform: translateY(0) scale(1);
}

.nc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.nc-modal__title {
	margin: 0;
	font-size: calc(var(--nc-font) + 4px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--nc-text);
}

.nc-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nc-muted);
	flex: 0 0 auto;
	transition: background-color .15s ease, color .15s ease;
}

.nc-modal__close:hover {
	background: var(--nc-soft);
	color: var(--nc-text);
}

.nc-panel {
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: 0 -4px;
	padding: 0 4px;
}

.nc-modal__desc {
	margin: 0 0 14px;
	color: var(--nc-muted);
	font-size: calc(var(--nc-font) - 0.5px);
}

/* Kategori kartlari */

.nc-cats {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nc-cat {
	background: var(--nc-soft);
	border: 1px solid transparent;
	border-radius: calc(var(--nc-radius) - 2px);
	padding: 16px 18px;
	transition: border-color .16s ease, background-color .16s ease;
}

.nc-cat:hover {
	border-color: var(--nc-line);
}

.nc-cat.is-locked {
	background: #f7f8f9;
}

.nc-cat__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nc-cat__title {
	margin: 0;
	font-size: calc(var(--nc-font) + 1px);
	font-weight: 600;
	line-height: 1.3;
	color: var(--nc-text);
	flex: 1 1 auto;
}

.nc-cat__always {
	font-size: calc(var(--nc-font) - 3px);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--nc-muted);
	white-space: nowrap;
}

.nc-cat__desc {
	margin: 6px 0 0;
	color: var(--nc-muted);
	font-size: calc(var(--nc-font) - 1px);
	padding-right: 34px;
}

/* Onay kutusu */

.nc-check {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.nc-check input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	margin: 0;
	cursor: inherit;
}

.nc-check__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	border: 1.5px solid #c9ccd2;
	background: #fff;
	color: transparent;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.nc-check input:checked + .nc-check__box {
	background: var(--nc-dark);
	border-color: var(--nc-dark);
	color: #fff;
}

.nc-check input:disabled + .nc-check__box {
	background: #c9ccd2;
	border-color: #c9ccd2;
	color: #fff;
	cursor: not-allowed;
}

.nc-check input:not(:disabled):hover + .nc-check__box {
	border-color: var(--nc-dark);
}

/* Onay ID + politika satiri */

.nc-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding: 0 4px;
}

.nc-meta__id {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #9aa0ab;
	font-size: calc(var(--nc-font) - 3px);
	letter-spacing: .01em;
}

.nc-meta__id svg {
	width: 13px;
	height: 13px;
	opacity: .8;
}

.nc-meta__id code {
	background: none;
	padding: 0;
	color: inherit;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: inherit;
	word-break: break-all;
}

.nc-meta__link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--nc-muted);
	font-family: inherit;
	font-size: calc(var(--nc-font) - 2px);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.nc-meta__link:hover {
	color: var(--nc-text);
}

/* Politika gorunumu */

.nc-back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--nc-soft);
	border: 0;
	border-radius: 999px;
	padding: 7px 14px 7px 11px;
	margin-bottom: 14px;
	color: var(--nc-text);
	font-size: calc(var(--nc-font) - 2px);
	font-weight: 600;
}

.nc-back:hover {
	background: var(--nc-soft-hover);
}

.nc-policy {
	color: var(--nc-muted);
	font-size: calc(var(--nc-font) - 0.5px);
}

.nc-cat__desc a,
.nc-modal__desc a,
.nc-policy a {
	color: var(--nc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Alt dugmeler */

.nc-modal__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--nc-line);
}

/* ---------- Yeniden acma dugmesi ---------- */

.nc-float {
	position: fixed;
	bottom: 18px;
	left: 18px;
	z-index: 999998;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--nc-line);
	background: #fff;
	color: #c2703a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
	opacity: 0;
	transition: opacity .2s ease, transform .2s ease;
}

.nc-float.is-open {
	opacity: 1;
}

.nc-float:hover {
	transform: scale(1.07);
}

.nc-pos-bottom-right .nc-float {
	left: auto;
	right: 18px;
}

.nanocookie-root .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Mobil ---------- */

@media (max-width: 600px) {
	.nc-banner {
		left: 10px !important;
		right: 10px !important;
		bottom: 10px;
		width: auto;
		padding: 18px;
		transform: translateY(14px) !important;
	}

	.nc-banner.is-open {
		transform: translateY(0) !important;
	}

	/* Ana dugme tam genislik, digerleri yan yana. */
	.nc-banner__actions .nc-btn {
		flex: 1 1 calc(50% - 4px);
		text-align: center;
	}

	.nc-banner__actions .nc-btn--dark {
		flex: 1 1 100%;
	}

	.nc-modal {
		padding: 10px;
		align-items: flex-end;
	}

	.nc-modal__box {
		padding: 20px 18px 18px;
		max-height: 92vh;
		width: 100%;
	}

	.nc-modal__footer .nc-btn {
		flex: 1 1 100%;
		text-align: center;
	}

	.nc-cat__desc {
		padding-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nc-banner,
	.nc-modal,
	.nc-modal__box,
	.nc-btn,
	.nc-check__box {
		transition: none;
	}
}
