/* Auto PDK – cookie lišta v dizajne webu (2026-11-24):
 * tmavá karta vľavo dole vedľa bočného menu (na mobile spodný panel), biely nadpis s riedeným písmom a červenou linkou,
 * tlačidlá Prijať / Odmietnuť rovnocenné, nastavenia ako odkaz. Stránku neblokuje, GA4 sa spustí až po súhlase. */
.ap-cookie-bar {
	position: fixed; left: 220px; bottom: 20px; z-index: 99998;
	width: 400px; max-width: calc(100% - 40px);
	animation: ap-ck-in .6s cubic-bezier(.2, .7, .2, 1) .4s both;
}
.ap-cookie-bar[hidden] { display: none; }
.ap-cookie-bar.is-leaving { animation: ap-ck-out .35s ease both; }
@keyframes ap-ck-in { from { opacity: 0; transform: translateY(30px); } }
@keyframes ap-ck-out { to { opacity: 0; transform: translateY(30px); } }
.ap-cookie-bar__box {
	position: relative; max-height: calc(100vh - 40px); overflow-y: auto;
	padding: 28px 28px 22px; border-radius: 8px;
	background: rgba(17, 17, 17, .96); color: #d8d8d8;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	font: 400 14px/1.6 "Red Hat Display", Helvetica, Arial, sans-serif;
}
.ap-cookie-bar__box::before { content: ""; position: absolute; left: 28px; top: 0; width: 50px; height: 3px; background: #be3b2f; }
.ap-cookie-bar__head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.ap-cookie-bar__icon { flex: none; width: 24px; height: 24px; color: #be3b2f; }
.ap-cookie-bar__title {
	margin: 0; color: #fff;
	font: 600 15px/1.2 "Red Hat Display", Helvetica, Arial, sans-serif; letter-spacing: 6px; text-transform: uppercase;
}
.ap-cookie-bar__text { margin: 0 0 20px; }
.ap-cookie-bar__text a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid #be3b2f; transition: color .25s; }
.ap-cookie-bar__text a:hover { color: #e1200f; }
.ap-cookie-bar__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-cookie-bar__btns .ap-cbtn--link { grid-column: 1 / -1; justify-self: center; }

.ap-cbtn {
	appearance: none; cursor: pointer; margin: 0;
	padding: 12px 14px; border: 1px solid #be3b2f; border-radius: 5px;
	background: #be3b2f; color: #fff;
	font: 900 13px/1.2 "Red Hat Display", Helvetica, Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase;
	transition: background .25s, color .25s, border-color .25s;
}
.ap-cbtn:hover, .ap-cbtn:focus-visible { background: #e1200f; border-color: #e1200f; color: #fff; }
.ap-cbtn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.ap-cbtn--ghost:hover, .ap-cbtn--ghost:focus-visible { background: #fff; border-color: #fff; color: #111; }
.ap-cbtn--link {
	padding: 6px 4px 2px; border: 0; border-radius: 0; background: none; color: #8b8d94;
	font-weight: 700; font-size: 12px; letter-spacing: 2px;
}
.ap-cbtn--link:hover, .ap-cbtn--link:focus-visible { background: none; color: #fff; }
.ap-cbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 992px) {
	.ap-cookie-bar { left: 15px; bottom: 15px; max-width: calc(100% - 30px); }
}
@media (max-width: 767px) {
	.ap-cookie-bar { left: 0; bottom: 0; width: 100%; max-width: none; }
	.ap-cookie-bar__box { padding: 24px 20px 16px; max-height: 85vh; border-radius: 10px 10px 0 0; }
	.ap-cookie-bar__box::before { left: 20px; }
}

/* Okno s nastaveniami */
.ap-cookie-modal {
	width: min(620px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border: 0; border-radius: 8px;
	background: #fff; color: #333; box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
	font: 400 14px/1.6 "Red Hat Display", Helvetica, Arial, sans-serif;
}
.ap-cookie-modal[open] { animation: ap-ck-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.ap-cookie-modal::backdrop { background: rgba(10, 10, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ap-cookie-modal__inner { position: relative; padding: 36px 32px 28px; }
.ap-cookie-modal__inner::before { content: ""; position: absolute; left: 32px; top: 0; width: 50px; height: 3px; background: #be3b2f; }
.ap-cookie-modal h2 {
	margin: 0 50px 14px 0; color: #be3b2f;
	font: 600 16px/1.4 "Red Hat Display", Helvetica, Arial, sans-serif; letter-spacing: 6px; text-transform: uppercase;
}
.ap-cookie-modal__close {
	position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 3px; background: #be3b2f; color: #fff; font-size: 0; cursor: pointer;
	transition: background .25s;
}
.ap-cookie-modal__close::before, .ap-cookie-modal__close::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}
.ap-cookie-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ap-cookie-modal__close:hover { background: #111; }
.ap-cookie-cat { position: relative; margin-top: 10px; border-radius: 5px; background: #f1f1f1; }
.ap-cookie-cat summary {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 14px 16px; cursor: pointer; list-style: none;
	font: 900 13px/1.3 "Red Hat Display", Helvetica, Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #000;
}
.ap-cookie-cat summary::-webkit-details-marker { display: none; }
.ap-cookie-cat summary > span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 10px; border-right: 2px solid #be3b2f; border-bottom: 2px solid #be3b2f; transform: rotate(45deg); transition: transform .25s; }
.ap-cookie-cat details[open] summary > span::after { transform: rotate(-135deg); margin-bottom: -2px; }
.ap-cookie-cat summary em {
	font: 600 12px/1.3 "Red Hat Display", Helvetica, Arial, sans-serif; font-style: normal;
	letter-spacing: 0; text-transform: none; color: #be3b2f;
}
.ap-cookie-cat p { margin: 0; padding: 0 16px 14px; color: #555; }
.ap-cookie-modal__btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ap-cookie-modal .ap-cbtn--ghost { border-color: #111; color: #111; }
.ap-cookie-modal .ap-cbtn--ghost:hover, .ap-cookie-modal .ap-cbtn--ghost:focus-visible { background: #111; color: #fff; }
.ap-switch { position: relative; display: inline-block; width: 42px; height: 22px; flex: none; }
.ap-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ap-switch__ui { position: absolute; inset: 0; border-radius: 22px; background: #c9c9c9; transition: background .2s; pointer-events: none; }
.ap-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.ap-switch input:checked + .screen-reader-text + .ap-switch__ui { background: #be3b2f; }
.ap-switch input:checked + .screen-reader-text + .ap-switch__ui::after { transform: translateX(20px); }
.ap-switch input:focus-visible + .screen-reader-text + .ap-switch__ui { outline: 2px solid #111; outline-offset: 2px; }
/* prepínač kategórie je mimo <summary>, umiestnený vpravo v jej riadku */
.ap-cookie-cat > .ap-switch { position: absolute; top: 12px; right: 16px; }
.ap-cookie-cat:has(> .ap-switch) summary { padding-right: 74px; }
@media (max-width: 767px) {
	.ap-cookie-modal__inner { padding: 32px 18px 22px; }
	.ap-cookie-modal__inner::before { left: 18px; }
	.ap-cookie-modal__btns { display: grid; grid-template-columns: 1fr 1fr; }
}
