/* Alfiz – cookie lišta a tlačítko Zpět nahoru */
.alfizd-cookie {
	position: fixed; left: 20px; bottom: 20px; z-index: 9990; box-sizing: border-box;
	display: flex; flex-direction: column; gap: 14px; width: min(480px, calc(100vw - 40px)); padding: 24px 26px;
	border-radius: 20px; border: 1px solid #E3E6E0; background: #FFFFFF; color: #5B6269;
	box-shadow: 0 30px 70px -20px rgba(16, 22, 26, .22);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px; line-height: 1.6;
	animation: alfizd-in .5s cubic-bezier(.2, .7, .2, 1) both;
}
.alfizd-cookie[hidden] { display: none; }
@keyframes alfizd-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.alfizd-cookie.is-leaving { animation: alfizd-out .3s ease both; }
@keyframes alfizd-out { to { opacity: 0; transform: translateY(24px); } }
.alfizd-cookie__title { margin: 0; color: #10161A; font-size: 18px; font-weight: 700; }
.alfizd-cookie__text { margin: 0; }
.alfizd-cookie__text a { color: #0E6B53; font-weight: 600; }
.alfizd-cookie__text a:hover { color: #0A5040; }
.alfizd-cookie__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.alfizd-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
	border: 1.5px solid transparent; font: 600 15px Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s;
}
.alfizd-btn[hidden] { display: none; }
.alfizd-btn:hover { transform: translateY(-1px); }
.alfizd-btn:focus-visible, .alfizd-top:focus-visible, .alfizd-switch input:focus-visible + .alfizd-switch__ui { outline: 2px solid #0E6B53; outline-offset: 3px; }
.alfizd-btn--primary { background: #0E6B53; color: #FFFFFF; }
.alfizd-btn--primary:hover { background: #0A5040; }
.alfizd-btn--ghost { background: transparent; border-color: #E3E6E0; color: #10161A; }
.alfizd-btn--ghost:hover { border-color: #0E6B53; }
.alfizd-cookie__settings { display: flex; flex-direction: column; gap: 10px; }
.alfizd-cookie__settings[hidden] { display: none; }
.alfizd-switch { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 14px; background: #F4F5F1; cursor: pointer; }
.alfizd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.alfizd-switch__ui { position: relative; flex-shrink: 0; width: 42px; height: 24px; margin-top: 2px; border-radius: 999px; background: #E3E6E0; transition: background .2s; }
.alfizd-switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.alfizd-switch input:checked + .alfizd-switch__ui { background: #0E6B53; }
.alfizd-switch input:checked + .alfizd-switch__ui::after { transform: translateX(18px); }
.alfizd-switch input:disabled + .alfizd-switch__ui { opacity: .6; }
.alfizd-switch strong { display: block; color: #10161A; font-size: 15px; }
.alfizd-switch small { display: block; color: #5B6269; font-size: 13px; line-height: 1.5; }

/* Zpět nahoru */
.alfizd-top {
	position: fixed; right: 24px; bottom: calc(24px + var(--alfizd-lift, 0px)); z-index: 9980;
	display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
	border: 0; border-radius: 50%; background: #0E6B53; color: #fff; cursor: pointer;
	box-shadow: 0 14px 30px -10px rgba(14, 107, 83, .55);
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
	transition: opacity .3s, visibility .3s, transform .3s cubic-bezier(.2, .7, .2, 1), background .2s, bottom .3s;
}
.alfizd-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.alfizd-top:hover { background: #0A5040; transform: translateY(-3px); }
.alfizd-top svg { transition: transform .3s; }
.alfizd-top:hover svg { transform: translateY(-2px); }

@media (max-width: 680px) {
	.alfizd-cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
	.alfizd-cookie__btns { justify-content: stretch; }
	.alfizd-cookie__btns .alfizd-btn { flex: 1 1 auto; }
	.alfizd-top { right: 16px; bottom: calc(16px + var(--alfizd-lift, 0px)); width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.alfizd-cookie, .alfizd-top, .alfizd-top svg, .alfizd-btn { animation: none !important; transition: none !important; }
}
@media print { .alfizd-cookie, .alfizd-top { display: none !important; } }
