/**
 * Arinda Çerez Onayı — ön yüz stilleri.
 * Tema değişkenleri varsa onları kullanır, yoksa kendi renklerine düşer.
 */

.arinda-cc[hidden],
.arinda-cc-modal[hidden] {
	display: none !important;
}
html.arinda-cc-lock { overflow: hidden; }
.arinda-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	background: #ffffff;
	border-top: 1px solid #cfcfcf;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, .08);
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1c1c1c;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
}
.arinda-cc.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.arinda-cc__inner {
	max-width: 1500px;
	margin: 0 auto;
	padding: 22px 40px;
	display: flex;
	align-items: center;
	gap: 32px;
	justify-content: space-between;
}
.arinda-cc__text { max-width: 760px; }
.arinda-cc__title {
	margin: 0 0 6px;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: 0;
	color: #111111;
}
.arinda-cc__desc {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: #5c5c5c;
}
.arinda-cc__desc a {
	color: #111111;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.arinda-cc__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.arinda-cc__btn {
	appearance: none;
	border: 1px solid #111111;
	background: transparent;
	color: #111111;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 13px 22px;
	border-radius: 2px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
	line-height: 1;
}
.arinda-cc__btn:hover { background: #f2f2f2; }
.arinda-cc__btn--solid {
	background: #111111;
	color: #ffffff;
}
.arinda-cc__btn--solid:hover { background: #333333; color: #ffffff; }
.arinda-cc__btn--link {
	border-color: transparent;
	padding: 13px 6px;
	text-decoration: underline;
	text-underline-offset: 4px;
	font-weight: 500;
	letter-spacing: .1em;
}
.arinda-cc__btn--link:hover { background: transparent; opacity: .6; }

/* Tercih penceresi */
.arinda-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.arinda-cc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .45);
}
.arinda-cc-modal__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #ffffff;
	color: #1c1c1c;
	padding: 34px 34px 28px;
	border: 1px solid #cfcfcf;
	border-radius: 2px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}
.arinda-cc-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #111111;
	cursor: pointer;
	padding: 4px 8px;
}
.arinda-cc-modal__title {
	margin: 0 0 8px;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.15;
	color: #111111;
}
.arinda-cc-modal__lead {
	margin: 0 0 22px;
	font-size: 12.5px;
	line-height: 1.7;
	color: #5c5c5c;
}
.arinda-cc-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
	border-top: 1px solid #e6e6e6;
}
.arinda-cc-row:last-of-type { border-bottom: 1px solid #e6e6e6; }
.arinda-cc-row__text { display: flex; flex-direction: column; gap: 4px; }
.arinda-cc-row__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111111;
}
.arinda-cc-row__hint {
	font-size: 12px;
	line-height: 1.6;
	color: #6b6b6b;
	max-width: 400px;
}
.arinda-cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.arinda-cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.arinda-cc-switch__track {
	position: absolute;
	inset: 0;
	background: #d9d9d9;
	border-radius: 999px;
	transition: background .2s ease;
	cursor: pointer;
}
.arinda-cc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform .2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.arinda-cc-switch input:checked + .arinda-cc-switch__track { background: #111111; }
.arinda-cc-switch input:checked + .arinda-cc-switch__track::after { transform: translateX(20px); }
.arinda-cc-switch input:disabled + .arinda-cc-switch__track { background: #111111; opacity: .55; cursor: not-allowed; }
.arinda-cc-modal__actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}
.arinda-cc-modal__actions .arinda-cc__btn { flex: 1 1 auto; text-align: center; }

/* Mobil */
@media (max-width: 900px) {
	.arinda-cc__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 20px 20px 22px;
	}
	.arinda-cc__actions { justify-content: stretch; gap: 8px; }
	.arinda-cc__actions .arinda-cc__btn { flex: 1 1 0; padding: 13px 10px; }
	.arinda-cc__btn--link { flex: 1 1 100%; order: -1; text-align: left; padding-left: 0; }
	.arinda-cc-modal { padding: 0; align-items: flex-end; }
	.arinda-cc-modal__panel {
		max-width: none;
		max-height: 92vh;
		border-radius: 0;
		padding: 28px 20px 24px;
	}
	.arinda-cc-modal__title { font-size: 24px; }
	.arinda-cc-modal__actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
	.arinda-cc, .arinda-cc__btn, .arinda-cc-switch__track, .arinda-cc-switch__track::after { transition: none; }
}

/* Tema footer'ındaki "Çerez Ayarları" bağlantısı */
.footer-legal [data-arinda-consent-open] { cursor: pointer; }
