/* Pekné časy – vlastná cookie lišta v dizajne webu:
 * karta vľavo dole (na mobile spodný panel), nadpis Unica One s oranžovou čiarou,
 * hnedé tlačidlá v štýle webu. Stránku neblokuje, sledovanie sa spustí až po súhlase. */
.pc-cookie-bar {
	position: fixed; left: 20px; bottom: 20px; z-index: 99998;
	width: 420px; max-width: calc(100% - 40px);
	animation: pc-ck-in .5s cubic-bezier(.2, .7, .2, 1) both;
}
.pc-cookie-bar[hidden] { display: none; }
@keyframes pc-ck-in { from { opacity: 0; transform: translateY(20px); } }
.pc-cookie-bar__box {
	position: relative; max-height: calc(100vh - 40px); overflow-y: auto;
	padding: 30px 30px 26px; background: #fff; color: #333; text-align: center;
	border-top: 4px solid #a49f71;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
	font: 400 15px/1.55 "Signika Negative", Helvetica, Arial, sans-serif;
}
.pc-cookie-bar__title {
	margin: 0 0 14px; color: #a2613b;
	font: 400 24px/1.1 "Unica One", "Oswald", sans-serif; letter-spacing: 6px; text-transform: uppercase;
}
.pc-cookie-bar__title::after { content: ""; display: block; width: 50px; margin: 12px auto 0; border-top: 1px solid #a94d18; }
.pc-cookie-bar__text { margin: 0 0 20px; font-size: 14px; }
.pc-cookie-bar__text a { color: #a2613b; text-decoration: underline; text-underline-offset: 2px; }
.pc-cookie-bar__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-cookie-bar__btns .pc-cbtn--link { grid-column: 1 / -1; }

.pc-cbtn {
	appearance: none; cursor: pointer; margin: 0;
	padding: 10px 14px; border: 1px solid #a2613b; border-radius: 0;
	background: #a2613b; color: #fff;
	font: 400 15px/1.2 "Unica One", "Oswald", sans-serif; letter-spacing: 2px; text-transform: uppercase;
	transition: background .25s, color .25s, border-color .25s;
}
.pc-cbtn:hover, .pc-cbtn:focus-visible { background: #7e4b2e; border-color: #7e4b2e; color: #fff; }
.pc-cbtn--ghost { background: transparent; color: #a2613b; }
.pc-cbtn--ghost:hover, .pc-cbtn--ghost:focus-visible { background: #a2613b; border-color: #a2613b; color: #fff; }
.pc-cbtn--link {
	padding: 4px; border-color: transparent; background: none; color: #6d7583;
	font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.pc-cbtn--link:hover, .pc-cbtn--link:focus-visible { background: none; border-color: transparent; color: #a2613b; }
.pc-cbtn:focus-visible { outline: 2px solid #a49f71; outline-offset: 2px; }

@media (max-width: 767px) {
	.pc-cookie-bar { left: 0; bottom: 0; width: 100%; max-width: none; }
	.pc-cookie-bar__box { padding: 24px 20px 18px; max-height: 85vh; }
	.pc-cookie-bar__title { font-size: 21px; margin-bottom: 10px; }
	.pc-cookie-bar__text { margin-bottom: 16px; }
}

/* Okno s nastaveniami */
.pc-cookie-modal {
	width: min(640px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border: 0;
	border-top: 4px solid #a49f71;
	background: #fff; color: #333; box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
	font: 400 14px/1.6 "Signika Negative", Helvetica, Arial, sans-serif;
}
.pc-cookie-modal[open] { animation: pc-ck-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.pc-cookie-modal::backdrop { background: rgba(17, 17, 17, .55); }
.pc-cookie-modal__inner { position: relative; padding: 34px 30px 28px; }
.pc-cookie-modal h2 {
	margin: 0 0 14px; text-align: center; color: #a2613b;
	font: 400 24px/1.2 "Unica One", "Oswald", sans-serif; letter-spacing: 5px; text-transform: uppercase;
}
.pc-cookie-modal h2::after { content: ""; display: block; width: 50px; margin: 12px auto 0; border-top: 1px solid #a94d18; }
.pc-cookie-modal__close {
	position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; padding: 0;
	border: 0; background: #a2613b; color: #fff; font-size: 24px; line-height: 32px; cursor: pointer;
	transition: background .25s;
}
.pc-cookie-modal__close:hover { background: #a49f71; }
.pc-cookie-cat { margin-top: 10px; background: #f2f2f2; border-left: 3px solid #a49f71; }
.pc-cookie-cat summary {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 15px; cursor: pointer; list-style: none;
	font: 400 16px/1.3 "Unica One", "Oswald", sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #000;
}
.pc-cookie-cat summary::-webkit-details-marker { display: none; }
.pc-cookie-cat summary em {
	font: 400 13px/1.3 "Signika Negative", Helvetica, Arial, sans-serif; font-style: normal;
	letter-spacing: 0; text-transform: none; color: #a2613b;
}
.pc-cookie-cat p { margin: 0; padding: 0 15px 12px; }
.pc-cookie-modal__btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pc-switch { position: relative; display: inline-block; width: 42px; height: 22px; flex: none; }
.pc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pc-switch__ui { position: absolute; inset: 0; border-radius: 22px; background: #c9c9c9; transition: background .2s; pointer-events: none; }
.pc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.pc-switch input:checked + .screen-reader-text + .pc-switch__ui { background: #a2613b; }
.pc-switch input:checked + .screen-reader-text + .pc-switch__ui::after { transform: translateX(20px); }
.pc-switch input:focus-visible + .screen-reader-text + .pc-switch__ui { outline: 2px solid #a49f71; outline-offset: 2px; }
@media (max-width: 767px) {
	.pc-cookie-modal__inner { padding: 30px 18px 22px; }
	.pc-cookie-modal__btns { display: grid; grid-template-columns: 1fr 1fr; }
}
/* na desktope vedľa bočného panelu s menu */
@media (min-width: 993px) { .pc-cookie-bar { left: calc(180px + 20px); } }
/* prepínač kategórie je mimo <summary>, umiestnený vpravo v jej riadku */
.pc-cookie-cat { position: relative; }
.pc-cookie-cat > .pc-switch { position: absolute; top: 11px; right: 15px; }
.pc-cookie-cat:has(> .pc-switch) summary { padding-right: 72px; }
