/* Qaxa — izolovaný návrh cookie lišty a modalu, dočasne iba na českej 404 stránke. */
.cookie-consent {
	position: fixed;
	z-index: 90;
	right: 24px;
	bottom: 24px;
	left: 24px;
	width: min(calc(100% - 48px), calc(var(--container-w) + var(--bleed) * 2));
	margin-inline: auto;
	overflow: hidden;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid rgba(31, 27, 19, .12);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

.cookie-consent[hidden] { display: none; }

.cookie-consent__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
	gap: clamp(28px, 5vw, 72px);
	padding: 28px 32px;
}

.cookie-consent__copy { max-width: 760px; display: flex;
	align-items: center; }

.cookie-consent__title {
	margin: 0;
	font-size: clamp(1.5rem, 2vw, 2rem);
	line-height: 1.1;
}

.cookie-consent__text {
	margin: 12px 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink-muted);
}

.cookie-consent__actions {
	display: grid;
	gap: 10px;
}

.cookie-consent__button {
	width: 100%;
	min-width: 0;
}

.cookie-consent__options {
	display: grid;
	grid-template-columns: auto repeat(3, minmax(150px, 1fr)) auto;
	align-items: center;
	gap: 24px;
	padding: 20px 32px;
	border-top: 1px solid var(--line-strong);
}

.cookie-consent__logo {
	width: 96px;
	height: auto;
}

.cookie-consent__option {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 0;
}

.cookie-consent__option strong,
.cookie-consent__option label {
	display: block;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.cookie-consent__option span {
	display: block;
	margin-top: 2px;
	font-size: .6875rem;
	color: var(--ink-muted);
}

.cookie-consent__details {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 0;
	color: var(--ink);
	background: transparent;
	border: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}

.cookie-consent__details span {
	font-size: 1.35rem;
	transition: transform .18s var(--ease);
}

.cookie-consent__details:hover span { transform: translateX(4px); }

.cookie-modal {
	width: min(calc(100% - 32px), 1100px);
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	color: var(--ink);
	background: transparent;
	border: 0;
	overflow: visible;
}

.cookie-modal::backdrop {
	background: rgba(31, 27, 19, .62);
	backdrop-filter: blur(4px);
}

.cookie-modal__surface {
	height: min(780px, calc(100dvh - 32px));
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid rgba(31, 27, 19, .12);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

.cookie-modal__header {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 32px 20px;
}

.cookie-modal__header > div { margin-right: auto; }

.cookie-modal__title {
	margin: 0;
	font-size: clamp(1.5rem, 2vw, 2rem);
	line-height: 1.1;
}

.cookie-modal__title:focus { outline: 0; }

.cookie-modal__logo {
	width: 104px;
	height: auto;
}

.cookie-modal__close {
	width: 44px;
	height: 44px;
	flex: none;
	display: grid;
	place-items: center;
	padding: 0 0 4px;
	color: var(--ink);
	background: var(--paper-2);
	border: 0;
	border-radius: 14px;
	font-size: 2rem;
	line-height: 1;
}

.cookie-modal__tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line-strong);
	border-bottom: 1px solid var(--line-strong);
}

.cookie-modal__tab {
	position: relative;
	min-height: 68px;
	padding: 12px 20px;
	font-size: var(--fs-base);
	font-weight: 800;
	line-height: 1.2;
	color: var(--ink-muted);
	background: var(--paper);
	border: 0;
}

.cookie-modal__tab + .cookie-modal__tab { border-left: 1px solid var(--line-strong); }

.cookie-modal__tab::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	background: transparent;
}

.cookie-modal__tab[aria-selected='true'] { color: var(--ink); }
.cookie-modal__tab[aria-selected='true']::after { background: var(--brand); }

.cookie-modal__body {
	overflow: auto;
	overscroll-behavior: contain;
	padding: clamp(26px, 4vw, 44px);
}

.cookie-modal__panel[hidden] { display: none; }

.cookie-modal__panel > h3 {
	margin: 0 0 14px;
	font-size: clamp(1.5rem, 2.4vw, 2.25rem);
	line-height: 1.1;
}

.cookie-modal__panel > p {
	max-width: 900px;
	margin: 0;
	color: var(--ink-muted);
}

.cookie-modal__categories {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: clamp(28px, 5vw, 56px);
	border: 1px solid var(--line-strong);
	border-radius: var(--r);
	overflow: hidden;
}

.cookie-modal__category {
	min-height: 145px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	text-align: center;
	background: var(--paper);
}

.cookie-modal__category + .cookie-modal__category { border-left: 1px solid var(--line-strong); }

.cookie-modal__category strong,
.cookie-modal__category label {
	display: block;
	font-size: var(--fs-base);
	font-weight: 800;
	line-height: 1.25;
}

.cookie-modal__category span {
	display: block;
	font-size: .6875rem;
	color: var(--ink-muted);
	margin-top: 2px;
	margin-bottom: -2px;
}

.cookie-modal__switch {
	position: relative;
	width: 58px;
	height: 32px;
	flex: none;
	margin: 0;
	appearance: none;
	background: #d2d0c8;
	border: 0;
	border-radius: var(--r-pill);
	transition: background-color .18s var(--ease);
	cursor: pointer;
}

.cookie-modal__switch::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	width: 24px;
	height: 24px;
	background: var(--paper);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(31, 27, 19, .22);
	transition: transform .18s var(--ease), background-color .18s var(--ease);
}

.cookie-modal__switch:checked { background: var(--ink); }
.cookie-modal__switch:checked::after { transform: translateX(26px); background: var(--brand); }
.cookie-modal__switch:disabled { opacity: 1; cursor: default; }

.cookie-modal__lead { margin-bottom: 18px !important; }

.cookie-modal__details {
	border-top: 1px solid var(--line-strong);
}

.cookie-modal__detail {
	padding: 22px 0;
	border-bottom: 1px solid var(--line-strong);
}

.cookie-modal__detail:last-child {
	border-bottom: none;
}

.cookie-modal__detail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.cookie-modal__detail-head > div {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cookie-modal__detail h4 {
	margin: 0;
	font-size: var(--fs-lead);
	line-height: 1.25;
}

.cookie-modal__detail p {
	max-width: 850px;
	margin: 10px 80px 0 0;
	font-size: 18px;
	color: var(--ink-muted);
}

.cookie-modal__badge {
	display: inline-flex;
	align-items: center;
	padding: 10px 15px;
	font-size: var(--fs-badge);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--paper);
	border: 1px solid var(--line-dim);
	border-radius: 20px;
	background: var(--brand-soft);
	color: var(--ink);
	height: 30px;
}

.cookie-consent__perex {
	max-width: 900px;
	margin: 0;
	color: var(--ink-muted);
}

.cookie-consent__perex h2 {
	color: var(--ink);
	margin-bottom: 10px;
}

.cookie-modal__panel--about {
	max-width: 850px;
}

.cookie-modal__panel--about p + p { margin-top: 22px; }

.cookie-modal__info-link {
	display: inline-block;
	margin-top: 28px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.cookie-modal__actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 20px 32px;
	background: var(--paper);
	border-top: 1px solid var(--line-strong);
}

.cookie-modal__button { min-width: 0; padding-inline: 12px; }

@media (max-width: 1050px) {
	.cookie-consent__main {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cookie-consent__actions { grid-template-columns: repeat(3, 1fr); }

	.cookie-consent__options {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px 24px;
	}

	.cookie-consent__logo { display: none; }
	.cookie-consent__details { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 760px) {
	.cookie-consent { display: none; }

	.cookie-modal {
		width: calc(100% - 20px);
		max-height: calc(100dvh - 20px);
	}

	.cookie-modal__surface {
		height: calc(100dvh - 20px);
		border-radius: 20px;
	}

	.cookie-modal__header { gap: 14px; padding: 18px; }
	.cookie-modal__logo { display: none; }
	.cookie-modal__close { width: 40px; height: 40px; }

	.cookie-modal__tab {
		min-height: 56px;
		padding: 10px 8px;
		font-size: .875rem;
	}

	.cookie-modal__body { padding: 22px 18px 12px 18px; }
	.cookie-modal__panel > h3 { font-size: 1.5rem; }
	.cookie-modal__panel > p { font-size: 15px; }

	.cookie-modal__categories {
		grid-template-columns: 1fr;
		margin-top: 24px;
	}

	.cookie-modal__category {
		min-height: 78px;
		flex-direction: row;
		justify-content: space-between;
		gap: 18px;
		padding: 16px 18px;
		text-align: left;
	}

	.cookie-modal__category + .cookie-modal__category {
		border-top: 1px solid var(--line-strong);
		border-left: 0;
	}

	.cookie-modal__detail h4 { font-size: var(--fs-base); }
	.cookie-modal__detail p { margin-right: 0; font-size: 15px; }
	/* .cookie-modal__detail-head > div { align-items: flex-start; flex-direction: column; gap: 6px; } */

	.cookie-modal__actions {
		grid-template-columns: 1fr 1fr;
		padding: 14px 18px 18px;
	}

	.cookie-modal__actions .btn { padding-inline: 10px; }
	.cookie-modal__actions .btn--outline-ink { grid-column: 1; grid-row: 1; }
	.cookie-modal__actions .btn--brand { grid-column: 2; grid-row: 1; }
	.cookie-modal__actions .btn--ink { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.cookie-modal__switch,
	.cookie-modal__switch::after { transition: none; }
}
