/* Balance Clinic – vlastná cookie lišta v dizajne webu:
 * karta vľavo dole (na mobile spodný panel), nadpis Comfortaa so zelenou čiarou,
 * zelené tlačidlá v štýle webu. Stránku neblokuje, sledovanie sa spustí až po súhlase. */
.bc-cookie-bar {
	position: fixed; left: 20px; bottom: 20px; z-index: 99998;
	width: 420px; max-width: calc(100% - 40px);
	animation: bc-ck-in .5s cubic-bezier(.2, .7, .2, 1) both;
}
.bc-cookie-bar[hidden] { display: none; }
@keyframes bc-ck-in { from { opacity: 0; transform: translateY(20px); } }
.bc-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 #8b7360;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
	font: 400 15px/1.55 Sansation, sans-serif;
}
.bc-cookie-bar__title {
	margin: 0 0 14px; color: #4b782c;
	font: 400 24px/1.1 Comfortaa, sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.bc-cookie-bar__title::after { content: ""; display: block; width: 50px; margin: 12px auto 0; border-top: 1px solid #4b782c; }
.bc-cookie-bar__text { margin: 0 0 20px; font-size: 14px; }
.bc-cookie-bar__text a { color: #4b782c; text-decoration: underline; text-underline-offset: 2px; }
.bc-cookie-bar__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-cookie-bar__btns .bc-cbtn--link { grid-column: 1 / -1; }

.bc-cbtn {
	appearance: none; cursor: pointer; margin: 0;
	padding: 10px 14px; border: 2px solid #4b782c; border-radius: 8px;
	background: #4b782c; color: #fff;
	font: 400 15px/1.2 Comfortaa, sans-serif; letter-spacing: 0; text-transform: none;
	transition: background .25s, color .25s, border-color .25s;
}
.bc-cbtn:hover, .bc-cbtn:focus-visible { background: #3a5f22; border-color: #3a5f22; color: #fff; }
.bc-cbtn--ghost { background: transparent; color: #4b782c; }
.bc-cbtn--ghost:hover, .bc-cbtn--ghost:focus-visible { background: #4b782c; border-color: #4b782c; color: #fff; }
.bc-cbtn--link {
	padding: 4px; border-color: transparent; background: none; color: #545454;
	font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.bc-cbtn--link:hover, .bc-cbtn--link:focus-visible { background: none; border-color: transparent; color: #4b782c; }
.bc-cbtn:focus-visible { outline: 2px solid #8b7360; outline-offset: 2px; }

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

/* Okno s nastaveniami */
.bc-cookie-modal {
	width: min(640px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border: 0;
	border-top: 4px solid #8b7360;
	background: #fff; color: #333; box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
	font: 400 14px/1.6 Sansation, sans-serif;
}
.bc-cookie-modal[open] { animation: bc-ck-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.bc-cookie-modal::backdrop { background: rgba(17, 17, 17, .55); }
.bc-cookie-modal__inner { position: relative; padding: 34px 30px 28px; }
.bc-cookie-modal h2 {
	margin: 0 0 14px; text-align: center; color: #4b782c;
	font: 400 24px/1.2 Comfortaa, sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.bc-cookie-modal h2::after { content: ""; display: block; width: 50px; margin: 12px auto 0; border-top: 1px solid #4b782c; }
.bc-cookie-modal__close {
	position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; padding: 0;
	border: 0; background: #4b782c; color: #fff; font-size: 24px; line-height: 32px; cursor: pointer;
	transition: background .25s;
}
.bc-cookie-modal__close:hover { background: #8b7360; }
.bc-cookie-cat { margin-top: 10px; background: #f2f2f2; border-left: 3px solid #8b7360; }
.bc-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 Comfortaa, sans-serif; letter-spacing: 0; text-transform: uppercase; color: #000;
}
.bc-cookie-cat summary::-webkit-details-marker { display: none; }
.bc-cookie-cat summary em {
	font: 400 13px/1.3 Sansation, sans-serif; font-style: normal;
	letter-spacing: 0; text-transform: none; color: #4b782c;
}
.bc-cookie-cat p { margin: 0; padding: 0 15px 12px; }
.bc-cookie-modal__btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bc-switch { position: relative; display: inline-block; width: 42px; height: 22px; flex: none; }
.bc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bc-switch__ui { position: absolute; inset: 0; border-radius: 22px; background: #c9c9c9; transition: background .2s; pointer-events: none; }
.bc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.bc-switch input:checked + .screen-reader-text + .bc-switch__ui { background: #4b782c; }
.bc-switch input:checked + .screen-reader-text + .bc-switch__ui::after { transform: translateX(20px); }
.bc-switch input:focus-visible + .screen-reader-text + .bc-switch__ui { outline: 2px solid #8b7360; outline-offset: 2px; }
@media (max-width: 767px) {
	.bc-cookie-modal__inner { padding: 30px 18px 22px; }
	.bc-cookie-modal__btns { display: grid; grid-template-columns: 1fr 1fr; }
}


/* prepínač kategórie je mimo <summary>, umiestnený vpravo v jej riadku */
.bc-cookie-cat { position: relative; }
.bc-cookie-cat > .bc-switch { position: absolute; top: 11px; right: 15px; }
.bc-cookie-cat:has(> .bc-switch) summary { padding-right: 72px; }
