/* ============================================================
   Thermostar PL - System zgod na pliki cookies
   Design spojny ze strona: Montserrat + naglowki Michroma,
   firmowy niebieski #1b75bc
   ============================================================ */

#tscc-bar, #tscc-modal-overlay, .tscc-media-placeholder {
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
#tscc-bar *, #tscc-modal-overlay *, .tscc-media-placeholder * { box-sizing: border-box; }

/* ---------- pasek dolny ---------- */
#tscc-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 2147483000;
	background: #fff;
	border-top: 3px solid #1b75bc;
	box-shadow: 0 -6px 24px rgba(0,0,0,.18);
	padding: 1.1rem 1.25rem;
	color: #3a3a3a;
	font-size: .82rem;
	line-height: 1.5;
	display: none;
}
#tscc-bar.tscc-visible { display: block; }
.tscc-bar-inner {
	max-width: 75rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}
.tscc-bar-text { flex: 1 1 26rem; min-width: 16rem; }
.tscc-bar-title {
	font-family: MicrogrammaDMedExt, Montserrat, sans-serif;
	color: #1b75bc;
	font-size: .95rem;
	margin: 0 0 .35rem;
	font-weight: 700;
}
.tscc-bar-text p { margin: 0; }
.tscc-bar-text a { color: #1b75bc; font-weight: 700; text-decoration: underline; }
.tscc-bar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}

/* ---------- przyciski ---------- */
.tscc-btn {
	display: inline-block;
	border: 2px solid #1b75bc;
	border-radius: 3px;
	padding: .55rem 1.1rem;
	font-size: .78rem;
	font-weight: 700;
	font-family: Montserrat, sans-serif;
	cursor: pointer;
	transition: background .15s, color .15s;
	white-space: nowrap;
}
.tscc-btn-primary { background: #1b75bc; color: #fff; }
.tscc-btn-primary:hover { background: #155d96; border-color: #155d96; color: #fff; }
.tscc-btn-secondary { background: #fff; color: #1b75bc; }
.tscc-btn-secondary:hover { background: #eef5fb; }
.tscc-btn-link {
	background: none; border: none;
	color: #6a6a6a;
	font-size: .78rem;
	text-decoration: underline;
	cursor: pointer;
	padding: .55rem .35rem;
	font-family: Montserrat, sans-serif;
}
.tscc-btn-link:hover { color: #1b75bc; }

/* ---------- okno ustawien ---------- */
#tscc-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: rgba(10,10,10,.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
#tscc-modal-overlay.tscc-visible { display: flex; }
#tscc-modal {
	background: #fff;
	border-radius: 6px;
	max-width: 34rem;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.6rem;
	color: #3a3a3a;
	font-size: .82rem;
	line-height: 1.55;
	box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.tscc-modal-title {
	font-family: MicrogrammaDMedExt, Montserrat, sans-serif;
	color: #1b75bc;
	font-size: 1.05rem;
	margin: 0 0 .8rem;
}
.tscc-modal-intro { margin: 0 0 1.1rem; }
.tscc-modal-intro a { color: #1b75bc; font-weight: 700; }

.tscc-cat {
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	padding: .85rem 1rem;
	margin-bottom: .7rem;
}
.tscc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}
.tscc-cat-name { font-weight: 700; color: #222; font-size: .85rem; }
.tscc-cat-desc { margin: .45rem 0 0; color: #6a6a6a; font-size: .78rem; }
.tscc-cat-always { color: #2e8b57; font-size: .72rem; font-weight: 700; white-space: nowrap; }

/* przelacznik */
.tscc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.tscc-switch input { opacity: 0; width: 0; height: 0; }
.tscc-slider {
	position: absolute; inset: 0;
	background: #ccc; border-radius: 24px;
	transition: background .15s; cursor: pointer;
}
.tscc-slider:before {
	content: ""; position: absolute;
	width: 18px; height: 18px;
	left: 3px; top: 3px;
	background: #fff; border-radius: 50%;
	transition: transform .15s;
	box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.tscc-switch input:checked + .tscc-slider { background: #1b75bc; }
.tscc-switch input:checked + .tscc-slider:before { transform: translateX(20px); }
.tscc-switch input:disabled + .tscc-slider { background: #8fbadd; cursor: not-allowed; }

.tscc-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.2rem;
	justify-content: flex-end;
}

/* ---------- placeholder zablokowanego filmu ---------- */
.tscc-media-placeholder {
	background: #f2f2f2 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24'><path fill='%23c9c9c9' d='M10 8.64v6.72L15.27 12 10 8.64zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z'/></svg>") center 28% no-repeat;
	border: 1px dashed #c2c2c2;
	border-radius: 4px;
	padding: 5.2rem 1.2rem 1.4rem;
	text-align: center;
	color: #555;
	font-size: .8rem;
	line-height: 1.5;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: .7rem;
}
.tscc-media-placeholder p { margin: 0; max-width: 30rem; }
.tscc-media-placeholder .tscc-btn { font-size: .74rem; }

/* w modalach wideo (ciemne tlo) placeholder ma byc widoczny */
.video-modal .tscc-media-placeholder {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	width: min(90vw, 34rem);
	background-color: #fff;
	min-height: 0;
	padding-top: 4.6rem;
}

@media (max-width: 640px) {
	#tscc-bar { font-size: .78rem; padding: 1rem; }
	.tscc-bar-actions { width: 100%; }
	.tscc-bar-actions .tscc-btn { flex: 1 1 auto; text-align: center; }
}
