/**
 * Runnerp — GDPR cookie banner (dno stranice).
 */

.runnerp-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	padding: 20px 0;
	background: #fff;
	border-top: 1px solid #e8e8e8;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	transform: translateY(0);
	transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.runnerp-cookie-banner--hidden {
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.runnerp-cookie-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 24px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.runnerp-cookie-banner__main {
	flex: 1 1 320px;
	min-width: 0;
	max-width: 720px;
}

.runnerp-cookie-banner__title {
	margin: 0 0 8px;
	font-family: "Syne", sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: #604235;
}

.runnerp-cookie-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #555;
}

.runnerp-cookie-banner__link {
	display: inline-block;
	margin-top: 6px;
	font-family: "Syne", sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #604235;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.runnerp-cookie-banner__link:hover {
	color: #7A5A45;
}

.runnerp-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 1 auto;
}

.runnerp-cookie-banner__btn {
	margin: 0;
	padding: 12px 20px;
	border: 1px solid #000;
	border-radius: 0;
	background: transparent;
	color: #604235;
	font-family: "Syne", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.runnerp-cookie-banner__btn:hover {
	background: #f5f5f5;
}

.runnerp-cookie-banner__btn--primary {
	background: #000;
	color: #F3ECE6;
}

.runnerp-cookie-banner__btn--primary:hover {
	background: #7A5A45;
	border-color: #7A5A45;
	color: #F3ECE6;
}

.runnerp-cookie-banner__btn--ghost {
	border-color: #cfcfcf;
}

.runnerp-cookie-banner__preferences {
	flex: 1 1 100%;
	width: 100%;
	margin: 4px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid #e8e8e8;
}

.runnerp-cookie-banner__preferences[hidden] {
	display: none !important;
}

.runnerp-cookie-banner__pref-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid #eee;
}

.runnerp-cookie-banner__pref-row:last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.runnerp-cookie-banner__pref-info {
	flex: 1 1 240px;
	min-width: 0;
}

.runnerp-cookie-banner__pref-info strong {
	display: block;
	margin: 0 0 4px;
	font-family: "Syne", sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #604235;
}

.runnerp-cookie-banner__pref-info span {
	display: block;
	font-size: 13px;
	line-height: 1.45;
	color: #666;
}

.runnerp-cookie-banner__pref-badge {
	font-family: "Syne", sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}

.runnerp-cookie-banner__pref-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #604235;
	cursor: pointer;
}

.runnerp-cookie-banner__pref-actions {
	margin-top: 16px;
}

/* Floating reopen link */
.runnerp-cookie-settings {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99989;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #e8e8e8;
	border-radius: 0;
	background: #fff;
	color: #604235;
	font-family: "Syne", sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

.runnerp-cookie-settings.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.runnerp-cookie-settings:hover {
	border-color: #604235;
	color: #7A5A45;
}

body.runnerp-cookie-consent-pending {
	padding-bottom: 0;
}

@media only screen and (max-width: 768px) {
	.runnerp-cookie-banner {
		padding: 16px 0;
	}

	.runnerp-cookie-banner__inner {
		padding: 0 16px;
	}

	.runnerp-cookie-banner__actions {
		width: 100%;
		justify-content: stretch;
	}

	.runnerp-cookie-banner__btn {
		flex: 1 1 auto;
		min-width: calc(50% - 5px);
		text-align: center;
	}

	.runnerp-cookie-banner__btn--primary {
		flex: 1 1 100%;
	}
}
