/**
 * Massos — Çerez Kartı (Consent Mode / KVKK)
 */

:root {
	--ofc-font: "Keyz Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ofc-paper: #fbf8f4;
	--ofc-paper-2: #f5efe7;
	--ofc-ink: #171411;
	--ofc-muted: #6e655d;
	--ofc-line: #ddd3c7;
	--ofc-line-strong: #cfc2b3;
	--ofc-dark: #171310;
	--ofc-accent: #171310;
	--ofc-off: #d8cec3;
	--ofc-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
	--ofc-ease: cubic-bezier(0.22, 0.72, 0.18, 1);
}

body.ofcore-consent-open {
	overflow: hidden;
}

#ofcore-consent-root {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	font-family: var(--ofc-font);
	color: var(--ofc-ink);
	-webkit-font-smoothing: antialiased;
	pointer-events: none;
}

#ofcore-consent-root[hidden] {
	display: none !important;
}

.ofcore-consent-overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 14, 11, 0.38);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	pointer-events: auto;
}

.ofc-card {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	width: min(1180px, calc(100% - 32px));
	overflow: hidden;
	border: 1px solid rgba(210, 198, 184, 0.92);
	border-radius: 20px;
	background: rgba(251, 248, 244, 0.98);
	box-shadow: var(--ofc-shadow);
	pointer-events: auto;
	animation: ofc-in 0.32s var(--ofc-ease);
}

@keyframes ofc-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

.ofc-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: 22px 24px;
}

.ofc-brandline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 11px;
}

.ofc-brandmark {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border: 1px solid var(--ofc-line-strong);
	border-radius: 9px;
	font-size: 10px;
	font-weight: 800;
	background: #fff;
}

.ofc-brandname {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.ofc-privacy {
	color: #9a8268;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.ofc-copy h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.1;
	letter-spacing: -0.035em;
	font-weight: 500;
}

.ofc-copy p,
.ofc-desc {
	margin: 8px 0 0;
	max-width: 700px;
	color: var(--ofc-muted);
	font-size: 12px;
	line-height: 1.62;
}

.ofc-desc a {
	color: var(--ofc-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ofc-policy-links {
	display: flex;
	gap: 13px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.ofc-policy-links[hidden] {
	display: none !important;
}

.ofc-policy-links a {
	color: #675847;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	border-bottom: 1px solid #b79d80;
	padding-bottom: 1px;
}

.ofc-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ofc-btn {
	appearance: none;
	-webkit-appearance: none;
	min-height: 40px;
	padding: 0 15px;
	border-radius: 10px;
	border: 1px solid var(--ofc-line-strong);
	background: #f8f3ed;
	color: var(--ofc-ink);
	font: inherit;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	transition: transform 0.18s var(--ofc-ease);
}

.ofc-btn:hover {
	transform: translateY(-1px);
}

.ofc-btn.secondary {
	background: #f2ebe2;
}

.ofc-btn.primary {
	background: var(--ofc-accent, var(--ofc-dark));
	color: #fff;
	border-color: var(--ofc-accent, var(--ofc-dark));
}

/* Preferences panel — expands in place */
.ofc-prefs {
	max-height: 0;
	overflow: hidden;
	border-top: 1px solid transparent;
	background: var(--ofc-paper, #fff);
	transition: max-height 0.38s var(--ofc-ease), border-color 0.25s ease;
}

.ofc-card.is-customizing .ofc-prefs {
	max-height: 560px;
	border-top-color: var(--ofc-line);
}

.ofc-prefs-head {
	padding: 18px 24px 12px;
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 18px;
}

.ofc-prefs-head h3 {
	margin: 0;
	font-size: 15px;
	letter-spacing: -0.025em;
	font-weight: 500;
}

.ofc-prefs-head p {
	margin: 5px 0 0;
	color: var(--ofc-muted);
	font-size: 12px;
	line-height: 1.5;
}

.ofc-count {
	color: var(--ofc-muted);
	font-size: 12px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.ofc-prefs-list {
	margin: 0 24px;
	border-top: 1px solid var(--ofc-line);
}

.ofc-pref {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	min-height: 64px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ofc-line);
}

.ofc-pref h4 {
	margin: 0;
	font-size: 13px;
	letter-spacing: -0.015em;
	font-weight: 500;
}

.ofc-pref p {
	margin: 3px 0 0;
	color: var(--ofc-muted);
	font-size: 12px;
	line-height: 1.5;
}

.ofc-always {
	font-size: 12px;
	font-weight: 500;
	color: var(--ofc-muted);
	white-space: nowrap;
}

.ofc-switch {
	position: relative;
	width: 44px;
	height: 26px;
	display: block;
}

.ofc-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ofc-track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--ofc-off);
	cursor: pointer;
	transition: 0.2s ease;
}

.ofc-track::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	top: 4px;
	left: 4px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.14);
	transition: transform 0.22s var(--ofc-ease);
}

.ofc-switch input:checked + .ofc-track {
	background: var(--ofc-accent, #25211d);
}

.ofc-switch input:checked + .ofc-track::after {
	transform: translateX(18px);
}

.ofc-switch input:disabled + .ofc-track {
	opacity: 0.72;
	cursor: not-allowed;
}

.ofc-prefs-footer {
	padding: 14px 24px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}

.ofc-status {
	color: var(--ofc-muted);
	font-size: 12px;
	text-align: center;
	flex: 1;
}

@media (max-width: 900px) {
	.ofc-main {
		grid-template-columns: 1fr;
	}

	.ofc-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 620px) {
	.ofc-card {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		transform: none;
		border-radius: 16px;
		animation-name: ofc-in-mobile;
	}

	@keyframes ofc-in-mobile {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.ofc-main {
		padding: 18px;
	}

	.ofc-copy h2 {
		font-size: 19px;
	}

	.ofc-copy p,
	.ofc-desc {
		font-size: 11px;
	}

	.ofc-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.ofc-actions .primary {
		grid-column: 1 / -1;
	}

	.ofc-actions .ofc-btn {
		width: 100%;
	}

	.ofc-prefs-head {
		padding: 16px 18px 10px;
	}

	.ofc-prefs-list {
		margin: 0 18px;
	}

	.ofc-pref {
		gap: 14px;
	}

	.ofc-prefs-footer {
		padding: 14px 18px 18px;
		flex-wrap: wrap;
	}

	.ofc-status {
		order: 3;
		flex: 1 1 100%;
		text-align: left;
	}
}
