/* Cookie lišta – barvy podle skins/red.css */
.cc-bar, .cc-modal, .cc-embed {
	--cc-accent: #cb1103;
	--cc-accent-dark: #a00d02;
	--cc-text: #333;
	--cc-muted: #666;
	--cc-bg: #fff;
	--cc-line: #e5e5e5;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cc-text);
}

.cc-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	background: var(--cc-bg);
	border-top: 3px solid var(--cc-accent);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
	padding: 16px;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	animation: cc-slide .3s ease-out;
}
.cc-bar__inner {
	max-width: 1170px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}
.cc-bar__text {
	flex: 1 1 420px;
	margin: 0;
}
.cc-bar__buttons, .cc-modal__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cc-btn {
	display: inline-block;
	min-height: 40px;
	padding: 8px 18px;
	border: 2px solid var(--cc-accent);
	border-radius: 3px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.cc-btn--primary { background: var(--cc-accent); color: #fff; }
.cc-btn--primary:hover { background: var(--cc-accent-dark); border-color: var(--cc-accent-dark); }
/* Odmítnout je stejně výrazné jako Přijmout (požadavek dozorových úřadů) */
.cc-btn--secondary { background: #fff; color: var(--cc-accent); }
.cc-btn--secondary:hover { background: #fbeceb; }
.cc-btn--ghost { background: transparent; color: var(--cc-text); border-color: #bbb; }
.cc-btn--ghost:hover { border-color: var(--cc-text); }
.cc-btn:focus-visible, .cc-modal__close:focus-visible, .cc-switch input:focus-visible + label {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

.cc-modal[hidden] { display: none; }
.cc-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.cc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}
.cc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--cc-bg);
	border-top: 4px solid var(--cc-accent);
	border-radius: 4px;
	padding: 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.cc-modal__dialog:focus { outline: none; }
.cc-modal__title {
	margin: 0 0 12px;
	font-size: 22px;
	color: var(--cc-text);
}
.cc-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: var(--cc-muted);
	cursor: pointer;
}
.cc-modal__buttons {
	justify-content: flex-end;
	margin-top: 20px;
}

.cc-cat {
	border: 1px solid var(--cc-line);
	border-radius: 4px;
	padding: 12px 16px;
	margin-top: 12px;
}
.cc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.cc-cat__name { font-weight: 700; margin: 0; }
.cc-cat__desc { margin: 6px 0 0; color: var(--cc-muted); font-size: 13px; }
.cc-cat code { font-size: 12px; background: #f5f5f5; padding: 0 3px; color: inherit; }

/* přepínač */
.cc-switch { position: relative; flex: none; }
.cc-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.cc-switch label {
	display: block;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: #bbb;
	cursor: pointer;
	position: relative;
	transition: background .2s;
}
.cc-switch label::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}
.cc-switch input:checked + label { background: var(--cc-accent); }
.cc-switch input:checked + label::after { transform: translateX(20px); }
.cc-switch--locked label { opacity: .6; cursor: not-allowed; }

.cc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
html.cc-lock, html.cc-lock body { overflow: hidden; }

@media (max-width: 600px) {
	.cc-bar__buttons, .cc-modal__buttons { width: 100%; }
	.cc-btn { flex: 1 1 auto; }
	.cc-modal__dialog { padding: 20px 16px; }
}
@keyframes cc-slide { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.cc-bar { animation: none; }
	.cc-btn, .cc-switch label, .cc-switch label::after { transition: none; }
}

/* zástupný box místo mapy Google (do souhlasu s externím obsahem) */
.cc-embed {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 24px 16px;
	background: repeating-linear-gradient(45deg, #f4f4f4 0 12px, #ececec 12px 24px);
	border: 1px solid var(--cc-line);
	border-radius: 4px;
	text-align: center;
	box-sizing: border-box;
}
.cc-embed__box { max-width: 420px; background: rgba(255, 255, 255, .94); padding: 20px; border-radius: 4px; }
.cc-embed__box p { margin: 0 0 12px; }
.cc-embed__box p:last-child { margin-bottom: 0; }
.cc-embed__title { font-size: 16px; }
.cc-embed__note { font-size: 13px; color: var(--cc-muted); }
