/* Cookie Consent Mode V2 — style */
#ccmv2-root, #ccmv2-root * { box-sizing: border-box; }

.ccmv2-banner {
	position: fixed;
	z-index: 999999;
	background: #ffffff;
	color: #1f2937;
	box-shadow: 0 -4px 24px rgba(0,0,0,.15);
	padding: 20px 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	max-width: 100%;
	overflow: hidden;
	animation: ccmv2-slide-up .35s ease-out;
}
.ccmv2-banner.pos-bottom { left: 0; right: 0; bottom: 0; }
.ccmv2-banner.pos-top { left: 0; right: 0; top: 0; }
.ccmv2-banner.pos-bottom-left { left: 20px; bottom: 20px; max-width: 420px; border-radius: 12px; }
.ccmv2-banner.pos-bottom-right { right: 20px; bottom: 20px; max-width: 420px; border-radius: 12px; }

@keyframes ccmv2-slide-up {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.ccmv2-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}
.ccmv2-banner__text { flex: 1 1 260px; min-width: 0; }
.ccmv2-banner__title { font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.ccmv2-banner__desc { margin: 0; color: #4b5563; }
.ccmv2-banner__desc a { color: var(--ccmv2-color, #2563eb); text-decoration: underline; }

.ccmv2-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}

/* Na szerszych ekranach, gdy baner jest na całą szerokość (pos-bottom / pos-top),
   przyciski mogą stać obok tekstu w jednej linii zamiast zawsze zajmować pełną szerokość */
@media (min-width: 900px) {
	.ccmv2-banner.pos-bottom .ccmv2-banner__actions,
	.ccmv2-banner.pos-top .ccmv2-banner__actions {
		flex: 0 1 auto;
		width: auto;
	}
}

.ccmv2-btn {
	border: 1px solid #d1d5db;
	background: #f9fafb;
	color: #1f2937;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .15s ease;
}
.ccmv2-btn:hover { filter: brightness(0.96); }
.ccmv2-btn--primary {
	background: var(--ccmv2-color, #2563eb);
	border-color: var(--ccmv2-color, #2563eb);
	color: #fff;
}

/* Modal ze szczegółami */
.ccmv2-overlay {
	position: fixed; inset: 0; background: rgba(15,23,42,.5);
	z-index: 1000000; display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.ccmv2-modal {
	background: #fff; border-radius: 14px; max-width: 560px; width: 100%;
	max-height: 88vh; overflow-y: auto; padding: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
	animation: ccmv2-pop .2s ease-out;
}
@keyframes ccmv2-pop {
	from { transform: scale(.96); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.ccmv2-modal h2 { margin: 0 0 16px; font-size: 18px; }
.ccmv2-cat {
	border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
}
.ccmv2-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ccmv2-cat__title { font-weight: 700; font-size: 14px; margin: 0; }
.ccmv2-cat__desc { margin: 6px 0 0; font-size: 13px; color: #6b7280; }

.ccmv2-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 auto; }
.ccmv2-switch input { opacity: 0; width: 0; height: 0; }
.ccmv2-switch__track {
	position: absolute; cursor: pointer; inset: 0; background: #d1d5db; border-radius: 999px; transition: .2s;
}
.ccmv2-switch__track:before {
	content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px;
	background: #fff; border-radius: 50%; transition: .2s;
}
.ccmv2-switch input:checked + .ccmv2-switch__track { background: var(--ccmv2-color, #2563eb); }
.ccmv2-switch input:checked + .ccmv2-switch__track:before { transform: translateX(18px); }
.ccmv2-switch input:disabled + .ccmv2-switch__track { opacity: .5; cursor: not-allowed; }

.ccmv2-modal__actions {
	display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: flex-end;
}

/* Pływająca ikonka cookies (do ponownego otwarcia ustawień) */
.ccmv2-fab {
	position: fixed;
	z-index: 999998;
	bottom: 20px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: var(--ccmv2-color, #2563eb);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	animation: ccmv2-fab-in .25s ease-out;
	padding: 0;
}
.ccmv2-fab:hover { filter: brightness(1.08); }
.ccmv2-fab.pos-bottom-left { left: 20px; }
.ccmv2-fab.pos-bottom-right { right: 20px; }

@keyframes ccmv2-fab-in {
	from { transform: scale(.6); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
	.ccmv2-fab { width: 44px; height: 44px; bottom: 14px; }
	.ccmv2-fab.pos-bottom-left { left: 14px; }
	.ccmv2-fab.pos-bottom-right { right: 14px; }
}

@media (max-width: 640px) {
	.ccmv2-banner__inner { flex-direction: column; align-items: stretch; }
	.ccmv2-banner__actions { justify-content: stretch; }
	.ccmv2-btn { flex: 1 1 auto; text-align: center; }
}
