/* ══════════════════════════════════════════════════════════════════════════
   Thai Relax: cookie lišta

   Barvy a písmo jsou převzaté ze šablony Megatron (akcent #ec8d2f, Raleway),
   ať lišta nepůsobí jako cizí prvek. Lišta je záměrně nízká a přes skoro
   celou šířku, aby se text i tlačítka vešly na jeden řádek a nezakrývaly
   obsah stránky.
   ══════════════════════════════════════════════════════════════════════════ */
.cookie-bar,
.cookie-reopen-float {
	--cc-bg: #ffffff;
	--cc-fg: #3c3c3c;
	--cc-fg-muted: #7a7a7a;
	--cc-accent: #ec8d2f;
	--cc-accent-dark: #d97b1c;
	--cc-border: rgba(60, 60, 60, 0.18);
	--cc-radius: 3px;
	--cc-font: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cookie-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: var(--cc-bg);
	border-top: 3px solid var(--cc-accent);
	box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.16);
	transform: translateY(110%);
	transition: transform 0.35s ease;
	padding-bottom: env(safe-area-inset-bottom);
	font-family: var(--cc-font);
	color: var(--cc-fg);
	box-sizing: border-box;
}

.cookie-bar * {
	box-sizing: border-box;
}

.cookie-bar.show {
	transform: translateY(0);
}

.cookie-inner {
	max-width: min(1600px, calc(100vw - 2 * clamp(16px, 3vw, 40px)));
	margin: 0 auto;
	padding: 13px clamp(16px, 3vw, 40px);
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 36px);
	flex-wrap: wrap;
}

.cookie-text {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cc-fg);
	font-weight: 400;
}

.cookie-text a {
	color: var(--cc-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-text a:hover,
.cookie-text a:focus {
	color: var(--cc-accent);
}

.cookie-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cookie-btn {
	font-family: var(--cc-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 11px 22px;
	border-radius: var(--cc-radius);
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-ghost {
	background: transparent;
	color: var(--cc-fg-muted);
	border: 1px solid var(--cc-border);
}

.cookie-ghost:hover,
.cookie-ghost:focus-visible {
	border-color: var(--cc-accent);
	color: var(--cc-accent-dark);
}

.cookie-primary {
	background: var(--cc-accent);
	color: #fff;
	border: 1px solid var(--cc-accent);
}

.cookie-primary:hover,
.cookie-primary:focus-visible {
	background: var(--cc-accent-dark);
	border-color: var(--cc-accent-dark);
	color: #fff;
}

.cookie-btn:focus-visible {
	outline: 2px solid var(--cc-accent-dark);
	outline-offset: 2px;
}

/* ─── detail s kategoriemi ─── */
.cookie-details {
	flex: 1 1 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px clamp(20px, 3vw, 44px);
	margin-top: 2px;
	padding-top: 16px;
	border-top: 1px solid var(--cc-border);
}

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

.cookie-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 5px;
}

.cookie-cat-name {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-fg);
}

.cookie-cat-state {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cc-accent-dark);
	white-space: nowrap;
}

.cookie-cat-desc {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: var(--cc-fg-muted);
}

.cookie-details-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
}

/* ─── přepínač ─── */
.cookie-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex: 0 0 auto;
	margin: 0;
}

.cookie-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-slider {
	position: absolute;
	inset: 0;
	background: #e2e2e2;
	border: 1px solid var(--cc-border);
	border-radius: 24px;
	transition: background 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

.cookie-slider::before {
	content: "";
	position: absolute;
	height: 16px;
	width: 16px;
	left: 3px;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-slider {
	background: var(--cc-accent);
	border-color: var(--cc-accent);
}

.cookie-switch input:checked + .cookie-slider::before {
	transform: translate(20px, -50%);
}

.cookie-switch input:focus-visible + .cookie-slider {
	outline: 2px solid var(--cc-accent-dark);
	outline-offset: 2px;
}

/* ─── odkaz na znovuotevření (zkratka do patičky) ─── */
.cookie-reopen {
	display: inline-block;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	pointer-events: auto;
}

.cookie-reopen:hover {
	color: var(--cc-accent);
}

/* ─── drobné plovoucí tlačítko po udělení souhlasu ─── */
.cookie-reopen-float {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--cc-border);
	border-radius: 40px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	font-family: var(--cc-font);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cc-fg-muted);
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-reopen-float:hover,
.cookie-reopen-float:focus-visible {
	opacity: 1;
	color: var(--cc-accent-dark);
	border-color: var(--cc-accent);
}

.cookie-reopen-float svg {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	fill: currentColor;
}

@media (max-width: 991px) {
	.cookie-details {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.cookie-inner {
		padding: 14px 18px;
		gap: 12px;
	}

	.cookie-text {
		font-size: 12.5px;
	}

	.cookie-actions {
		width: 100%;
	}

	.cookie-actions .cookie-btn {
		flex: 1 1 auto;
		text-align: center;
		padding: 12px 14px;
	}

	.cookie-details {
		grid-template-columns: 1fr;
	}

	.cookie-reopen-float span {
		display: none;
	}

	.cookie-reopen-float {
		padding: 9px;
	}
}

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