/* Týčko Core: cookie lišta a panely pro vložený obsah (barvy a písmo shodné se šablonou Týčko Blog). */
.consent {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; max-height: 90vh; overflow-y: auto; background: #fff; color: #353535;
	border-top: 1px solid #e8e2d6; box-shadow: 0 -12px 40px -16px rgba(22, 39, 31, .35);
	font: 15px/1.5 Inter, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.consent__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; max-width: 1368px; margin: 0 auto; padding: 20px 24px; }
.consent__body { flex: 1 1 520px; min-width: 0; }
.consent__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #4a4a4a; }
.consent__text strong { color: #262940; }
.consent__text a { color: #1e6f5a; }
.consent__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.consent__btn { height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.consent__btn[hidden], .consent__options[hidden] { display: none; }
.consent__btn--primary { background: #268068; color: #fff; }
.consent__btn--primary:hover { background: #1a5948; }
.consent__btn--outline { border-color: #262940; background: #fff; color: #262940; }
.consent__btn--outline:hover { background: #f4f1ea; }
.consent__btn--link { background: none; color: #262940; text-decoration: underline; text-underline-offset: 3px; }
.consent__btn--link:hover { color: #1a5948; }
.consent__btn:focus-visible, .consent input:focus-visible + .consent__switch { outline: 3px solid #268068; outline-offset: 2px; }
.consent__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 16px 0 0; }
.consent__option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #ece6da; border-radius: 10px; background: #faf7f2; cursor: pointer; }
.consent__option input { position: absolute; opacity: 0; pointer-events: none; }
.consent__switch { position: relative; flex: 0 0 40px; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px; background: #c9c0ad; transition: background-color .2s ease; }
.consent__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.consent input:checked + .consent__switch { background: #268068; }
.consent input:checked + .consent__switch::after { transform: translateX(16px); }
.consent input:disabled + .consent__switch { opacity: .6; }
.consent__label { display: grid; gap: 2px; font-size: 14px; }
.consent__label strong { color: #262940; }
.consent__label small { font-size: 13px; color: #5c5c5c; }
@media (max-width: 767px) {
	.consent { max-height: 88vh; }
	.consent__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
	.consent__body { flex: none; }
	.consent__actions { justify-content: stretch; }
	.consent__actions .consent__btn--primary, .consent__actions .consent__btn--outline { flex: 1 1 calc(50% - 4px); padding: 0 10px; }
	.consent__actions .consent__btn--link { flex: 1 1 100%; order: 3; height: 36px; }
}

/* Panel místo vloženého videa nebo příspěvku, dokud není souhlas s externím obsahem */
.consent-embed { margin-block: 28px; }
.consent-embed__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 16 / 9; padding: 20px; border-radius: 12px; background: #f2ebde; color: #262940; text-align: center; }
.consent-embed__box[hidden] { display: none; }
.consent-embed__box p { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.5; }
.consent-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
/* Mobil: krátký text, „Více informací“ rozbalí zbytek; menší a klidnější lišta */
.consent__more { display: none; }
@media (max-width: 767px) {
	.consent { border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px -12px rgba(22, 39, 31, .3); font-size: 14px; }
	.consent__inner { gap: 12px; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
	.consent__text { font-size: 14px; line-height: 1.5; }
	.consent__more { display: inline; margin-left: 4px; padding: 0; border: 0; background: none; color: #1e6f5a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
	.consent__more:focus-visible { outline: 3px solid #268068; outline-offset: 2px; border-radius: 4px; }
	.consent:not(.consent--expanded) .consent__extra { display: none; }
	.consent__actions { gap: 8px; }
	.consent__actions .consent__btn { height: 42px; font-size: 14.5px; }
	.consent__actions .consent__btn--link { height: 32px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .consent__switch, .consent__switch::after, .consent__btn { transition: none; } }
