.wpsc-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 999998; }
.wpsc-banner {
	position: fixed; z-index: 999999; background: var(--wpsc-bg, #fff); color: var(--wpsc-text, #1e293b);
	border-radius: var(--wpsc-radius, 8px); box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
	font-family: inherit; font-size: 14px; line-height: 1.5; box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.08);
}
.wpsc-banner[hidden], .wpsc-backdrop[hidden], .wpsc-revisit[hidden], .wpsc-preferences[hidden] { display: none !important; }

.wpsc-layout-bar-bottom { left: 0; right: 0; bottom: 0; border-radius: 0; }
.wpsc-layout-bar-top { left: 0; right: 0; top: 0; border-radius: 0; }
.wpsc-layout-box-bottom-left { left: 20px; bottom: 20px; max-width: 420px; width: calc(100% - 40px); }
.wpsc-layout-box-bottom-right { right: 20px; bottom: 20px; max-width: 420px; width: calc(100% - 40px); }
.wpsc-layout-modal-center { top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 560px; width: calc(100% - 32px); max-height: 90vh; overflow-y: auto; }

.wpsc-banner-inner { padding: 20px 24px; max-width: 1200px; margin: 0 auto; }
.wpsc-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: inherit; }
.wpsc-desc { margin: 0 0 14px; font-size: 14px; opacity: 0.9; }
.wpsc-policy-link { color: var(--wpsc-primary, #2563eb); text-decoration: underline; margin-left: 6px; }

.wpsc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wpsc-btn {
	padding: 9px 18px; border-radius: calc(var(--wpsc-radius, 8px) * 0.75); font-size: 14px; font-weight: 600;
	cursor: pointer; border: 1px solid transparent; transition: opacity 0.15s ease;
}
.wpsc-btn:hover { opacity: 0.9; }
.wpsc-btn-accept { background: var(--wpsc-primary, #2563eb); color: var(--wpsc-primary-text, #fff); }
.wpsc-btn-reject { background: var(--wpsc-reject-bg, #e2e8f0); color: var(--wpsc-reject-text, #1e293b); }
.wpsc-btn-customize { background: transparent; color: inherit; border-color: rgba(100, 116, 139, 0.4); }

.wpsc-preferences { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(100, 116, 139, 0.2); }
.wpsc-category-item { padding: 8px 0; border-bottom: 1px solid rgba(100, 116, 139, 0.1); }
.wpsc-cat-header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; cursor: pointer; }
.wpsc-cat-desc { margin: 4px 0 0; font-size: 12.5px; opacity: 0.8; }
.wpsc-prefs-footer { margin-top: 14px; display: flex; justify-content: flex-end; }

.wpsc-revisit {
	position: fixed; bottom: 18px; z-index: 999990; width: 42px; height: 42px; border-radius: 50%;
	background: var(--wpsc-primary, #2563eb); color: var(--wpsc-primary-text, #fff);
	border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.wpsc-revisit-bottom-left { left: 18px; }
.wpsc-revisit-bottom-right { right: 18px; }

.wpsc-blocked-iframe {
	background: #f1f5f9; border: 1px dashed #94a3b8; border-radius: 8px; padding: 28px 20px;
	text-align: center; color: #334155; margin: 12px 0;
}
.wpsc-iframe-unblock-btn {
	margin-top: 10px; padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer;
	background: var(--wpsc-primary, #2563eb); color: var(--wpsc-primary-text, #fff); font-weight: 600;
}
.wpsc-declaration-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.wpsc-declaration-table th, .wpsc-declaration-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.wpsc-banner, .wpsc-btn, .wpsc-iframe-unblock-btn { font-family: var(--wpsc-font, inherit); }
.wpsc-btn-reject { border-color: var(--wpsc-reject-border, transparent); }
.wpsc-cat-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.wpsc-cat-expand { display: flex; align-items: center; gap: 8px; flex: 1; padding: 2px 0; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.wpsc-cat-expand:focus-visible, .wpsc-svc-cookies summary:focus-visible { outline: 2px solid var(--wpsc-primary, #2563eb); outline-offset: 2px; }
.wpsc-chev::before { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s ease; }
.wpsc-cat-expand[aria-expanded="true"] .wpsc-chev::before { transform: rotate(45deg); }
.wpsc-cat-panel[hidden] { display: none !important; }
.wpsc-cat-panel { margin-top: 8px; padding-left: 12px; border-left: 2px solid rgba(100, 116, 139, 0.25); }
.wpsc-svc { padding: 6px 0; }
.wpsc-svc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; }
.wpsc-svc-cookies summary { cursor: pointer; font-size: 12px; opacity: 0.85; }
.wpsc-svc-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12px; }
.wpsc-svc-table th, .wpsc-svc-table td { border-bottom: 1px solid rgba(100, 116, 139, 0.2); padding: 4px 6px; text-align: left; vertical-align: top; }
.wpsc-declaration-wrap h3 { margin: 20px 0 4px; }
.wpsc-declaration-wrap h4 { margin: 12px 0 0; }

/* Przełączniki zgód (1.2.2): własny wygląd odporny na motywy, które przestylowują checkboxy
   (np. Uncode: appearance:none + niewidoczne pole). Wysoka specyficzność + !important na kluczowych właściwościach. */
#wpsc-banner input.wpsc-cat-checkbox,
#wpsc-banner input.wpsc-svc-checkbox {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative !important;
	display: inline-block !important;
	flex: 0 0 auto;
	width: 40px !important;
	height: 22px !important;
	min-width: 40px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: #b8c0cc !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	cursor: pointer;
	vertical-align: middle;
	transition: background-color .2s ease;
}
#wpsc-banner input.wpsc-cat-checkbox::before,
#wpsc-banner input.wpsc-svc-checkbox::before {
	content: "" !important;
	position: absolute !important;
	top: 3px !important;
	left: 3px !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .3) !important;
	transform: none !important;
	transition: left .2s ease;
	display: block !important;
	font-size: 0 !important;
}
#wpsc-banner input.wpsc-cat-checkbox::after,
#wpsc-banner input.wpsc-svc-checkbox::after {
	content: none !important;
	display: none !important;
}
#wpsc-banner input.wpsc-cat-checkbox:checked,
#wpsc-banner input.wpsc-svc-checkbox:checked {
	background: var(--wpsc-primary, #2563eb) !important;
}
#wpsc-banner input.wpsc-cat-checkbox:checked::before,
#wpsc-banner input.wpsc-svc-checkbox:checked::before {
	left: 21px !important;
}
#wpsc-banner input.wpsc-cat-checkbox:disabled {
	opacity: .55 !important;
	cursor: not-allowed;
}
#wpsc-banner input.wpsc-cat-checkbox:focus-visible,
#wpsc-banner input.wpsc-svc-checkbox:focus-visible {
	outline: 2px solid var(--wpsc-primary, #2563eb) !important;
	outline-offset: 2px !important;
}
