/* Cookie banner and Çerez Yönetimi switches (jj-core JJ_Consent). Colours
   and fonts are the site's (theme custom properties, literal fallbacks). */
.jj-cookie {
	position: fixed;
	z-index: 28; /* above the header (20) and the landscape layer (15), under the menu (30) */
	left: max( 12px, env( safe-area-inset-left, 0px ) );
	right: max( 12px, env( safe-area-inset-right, 0px ) );
	bottom: calc( 12px + env( safe-area-inset-bottom, 0px ) );
	max-width: 760px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 20px 52px 18px 22px;
	background: var( --jj-dark, #1c110b );
	color: var( --jj-cream, #f2e6cf );
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba( 28, 17, 11, 0.35 );
	font: 400 14px/1.5 var( --jj-text, "Barlow", system-ui, sans-serif );
}
.jj-cookie[hidden] { display: none; }
.jj-cookie-text { margin: 0 0 14px; }
.jj-cookie a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.jj-cookie-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
/* "Kabul et" and "Reddet": the same size and the same weight (rehber) */
.jj-cookie-btn {
	flex: 0 0 auto;
	min-width: 132px;
	height: 44px;
	padding: 0 20px;
	border: 1.5px solid var( --jj-cream, #f2e6cf );
	border-radius: 999px;
	background: var( --jj-cream, #f2e6cf );
	color: var( --jj-dark, #1c110b );
	font: 600 13px/1 var( --jj-text, "Barlow", system-ui, sans-serif );
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}
.jj-cookie-btn:focus-visible, .jj-cookie-x:focus-visible, .jj-cookie a:focus-visible { outline: 2px solid var( --jj-yellow, #d3912f ); outline-offset: 3px; }
.jj-cookie-prefs { font-weight: 600; margin-left: 4px; }
.jj-cookie-x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
/* Narrow phones (the text grew, 28 Sep 2026): the two buttons and
   "Tercihler" share one row, tighter padding, so the band stays low. */
@media ( max-width: 480px ) {
	.jj-cookie { padding: 14px 38px 12px 16px; font-size: 13px; line-height: 1.45; }
	.jj-cookie-text { margin-bottom: 10px; }
	.jj-cookie-btns { flex-wrap: nowrap; gap: 8px; }
	.jj-cookie-btn { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 10px; font-size: 12px; letter-spacing: 0.08em; }
	.jj-cookie-prefs { flex: none; margin-left: 2px; }
	.jj-cookie-x { top: 4px; right: 4px; width: 34px; height: 34px; font-size: 24px; }
}
/* Phone on its side: one low row, text left and buttons right, so the
   "hold it upright" layer keeps its logo, icon and text above the band. */
@media ( max-height: 500px ) and ( orientation: landscape ) {
	.jj-cookie:not( [hidden] ) { display: grid; grid-template-columns: minmax( 0, 1fr ) auto; align-items: center; gap: 8px 16px; }
	.jj-cookie { max-width: 820px; padding: 10px 40px 10px 16px; font-size: 12.5px; line-height: 1.4; }
	.jj-cookie-text { margin: 0; }
	.jj-cookie-btns { flex-wrap: nowrap; gap: 8px; }
	.jj-cookie-btn { min-width: 0; width: 104px; height: 38px; padding: 0 8px; font-size: 12px; letter-spacing: 0.08em; } /* same width for both */
	.jj-cookie-x { top: 2px; right: 2px; width: 34px; height: 34px; font-size: 22px; }
}

/* Çerez Yönetimi */
.jj-prefs { margin: 28px 0; }
.jj-prefs-row { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba( 28, 17, 11, 0.18 ); }
.jj-prefs-row:last-of-type { border-bottom: 1px solid rgba( 28, 17, 11, 0.18 ); }
.jj-prefs-row p { margin: 0; }
.jj-switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.jj-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.jj-switch input:disabled { cursor: not-allowed; }
.jj-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba( 28, 17, 11, 0.25 ); transition: background 0.2s; }
.jj-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.jj-switch input:checked + span { background: var( --jj-dark, #1c110b ); }
.jj-switch input:checked + span::after { transform: translateX( 22px ); }
.jj-switch input:disabled + span { opacity: 0.55; }
.jj-switch input:focus-visible + span { outline: 2px solid var( --jj-yellow, #d3912f ); outline-offset: 3px; }
.jj-prefs-save {
	margin-top: 22px;
	height: 46px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var( --jj-dark, #1c110b );
	color: var( --jj-cream, #f2e6cf );
	font: 600 13px/1 var( --jj-text, "Barlow", system-ui, sans-serif );
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}
