/**
 * Wsparcie Baner — frontend
 * Popup lightbox + full-width sticky bar.
 */

/* ========== TYPOGRAFIA — sztywne wartości (odporne na motyw) ========== */

body > #wsb-banner.wsb-banner,
#wsb-banner.wsb-banner,
body > #wsb-popup.wsb-popup,
#wsb-popup.wsb-popup,
#wsb-banner.wsb-banner *,
#wsb-popup.wsb-popup * {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

#wsb-banner .wsb-banner__text,
#wsb-banner .wsb-banner__text-item {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: 0.02em !important;
	font-style: normal !important;
	text-transform: none !important;
}

#wsb-banner .wsb-btn,
#wsb-banner .wsb-btn-label {
	font-size: 9px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: 0.04em !important;
	font-style: normal !important;
	text-transform: uppercase !important;
}

#wsb-banner .wsb-banner__close {
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

#wsb-popup .wsb-popup__text {
	font-size: 20px !important;
	font-weight: 650 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.01em !important;
	font-style: normal !important;
	text-transform: none !important;
}

#wsb-popup .wsb-btn--popup,
#wsb-popup .wsb-btn--popup .wsb-btn-label {
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: 0.04em !important;
	font-style: normal !important;
	text-transform: uppercase !important;
}

#wsb-popup .wsb-popup__timer,
#wsb-popup .wsb-popup__timer-label,
#wsb-popup .wsb-popup__timer-unit {
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.02em !important;
	font-style: normal !important;
	text-transform: none !important;
}

#wsb-popup .wsb-popup__timer-count {
	font-size: 13px !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums !important;
}

#wsb-popup .wsb-popup__close {
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

@media (max-width: 720px) {
	#wsb-banner .wsb-banner__text,
	#wsb-banner .wsb-banner__text-item {
		font-size: 11px !important;
		line-height: 1.2 !important;
	}

	#wsb-banner .wsb-btn,
	#wsb-banner .wsb-btn-label {
		font-size: 9px !important;
		line-height: 1.1 !important;
	}

	#wsb-popup .wsb-popup__text {
		font-size: 16px !important;
	}

	#wsb-popup .wsb-btn--popup,
	#wsb-popup .wsb-btn--popup .wsb-btn-label {
		font-size: 13px !important;
	}
}

/* ========== BANNER ========== */

body > #wsb-banner.wsb-banner,
#wsb-banner.wsb-banner {
	--wsb-h: 2.75rem;
	--wsb-bg: #1c1c1e;
	--wsb-fg: #ffffff;
	--wsb-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--wsb-pad-x: clamp(0.75rem, 2vw, 1.75rem);

	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 2147483000 !important;
	height: auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	background: transparent;
	color: var(--wsb-fg);
	box-shadow: none;
	transform: translate3d(0, 110%, 0);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: visible;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box !important;
}

#wsb-banner.wsb-banner[hidden] {
	display: none !important;
}

#wsb-banner.wsb-banner.is-visible {
	display: flex !important;
	transform: translate3d(0, 0, 0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	animation: wsb-slide-up 0.7s var(--wsb-ease) forwards;
}

#wsb-banner.wsb-banner.is-hiding {
	animation: wsb-slide-down 0.45s var(--wsb-ease) forwards;
	pointer-events: none;
}

/* × w kółku — nad paskiem, po prawej */
.wsb-banner__close {
	appearance: none;
	align-self: flex-end;
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0 var(--wsb-pad-x) 0.4rem;
	padding: 0;
	border: 1.5px solid rgba(28, 28, 30, 0.55);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1c1c1e;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transition:
		transform 0.2s var(--wsb-ease),
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.wsb-banner__close:hover,
.wsb-banner__close:focus-visible {
	background: #fff;
	transform: scale(1.06);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	outline: none;
}

.wsb-banner__close:focus-visible {
	outline: 2px solid rgba(28, 28, 30, 0.45);
	outline-offset: 2px;
}

.wsb-banner__close span {
	display: block;
	margin-top: -0.05em;
}

/* Pasek treści — dolna krawędź = dół strony */
.wsb-banner__bar {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: var(--wsb-h);
	background: var(--wsb-bg);
	color: var(--wsb-fg);
	box-shadow:
		0 -8px 32px rgba(0, 0, 0, 0.28),
		0 -1px 0 rgba(255, 255, 255, 0.06) inset;
	overflow: hidden;
}

@keyframes wsb-slide-up {
	0% {
		transform: translate3d(0, 110%, 0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

@keyframes wsb-slide-down {
	0% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
	100% {
		transform: translate3d(0, 110%, 0);
		opacity: 0;
	}
}

.wsb-banner__shine {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent 40%,
		rgba(255, 255, 255, 0.07) 50%,
		transparent 60%
	);
	transform: translateX(-120%);
	opacity: 0;
}

.wsb-banner.is-visible .wsb-banner__shine {
	animation: wsb-shine 1.4s 0.35s var(--wsb-ease) forwards;
}

@keyframes wsb-shine {
	0% {
		transform: translateX(-120%);
		opacity: 0;
	}
	20% {
		opacity: 1;
	}
	100% {
		transform: translateX(120%);
		opacity: 0;
	}
}

/* Full width content strip */
.wsb-banner__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	height: auto;
	min-height: var(--wsb-h);
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0.35rem var(--wsb-pad-x);
	box-sizing: border-box;
}

.wsb-banner__text {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(0.72rem, 1.35vw, 0.9rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	opacity: 0;
	transform: translate3d(-2rem, 0, 0);
}

.wsb-banner__text-track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	will-change: transform;
}

.wsb-banner__text-item {
	display: inline-block;
	flex: 0 0 auto;
	white-space: nowrap;
	padding-right: 0;
	box-sizing: content-box;
}

.wsb-banner__text.is-marquee .wsb-banner__text-item {
	padding-right: 2.5rem;
}

.wsb-banner__text.is-marquee .wsb-banner__text-track {
	animation-name: wsb-marquee;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.wsb-banner__text.is-ellipsis .wsb-banner__text-item {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 0;
}

.wsb-banner.is-ready .wsb-banner__text {
	animation: wsb-text-in 0.65s 0.15s var(--wsb-ease) forwards;
}

@keyframes wsb-text-in {
	0% {
		opacity: 0;
		transform: translate3d(-2rem, 0, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes wsb-marquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

.wsb-banner__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 0.4rem;
	max-width: min(100%, 42rem);
}

/* Shared button base (banner size) */
.wsb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	height: calc(var(--wsb-h) - 0.55rem);
	max-height: 2.15rem;
	padding: 0 0.7rem;
	border-radius: 0.28rem;
	background: var(--wsb-btn-bg, #333);
	color: var(--wsb-btn-fg, #fff);
	text-decoration: none !important;
	font-size: clamp(0.65rem, 1.1vw, 0.78rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	transition:
		box-shadow 0.25s ease,
		filter 0.25s ease;
	opacity: 0;
	transform: translate3d(2rem, 0, 0);
	will-change: transform, box-shadow, filter;
	box-sizing: border-box;
}

/* Desktop banner: ikona nad tekstem, wyśrodkowane */
#wsb-banner .wsb-btn {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 0.2rem;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	max-height: none;
	padding: 0.35rem 0.65rem;
	font-size: 9px;
	white-space: nowrap;
	text-align: center;
	line-height: 1.15;
}

#wsb-banner .wsb-btn-icon {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto;
}

#wsb-banner .wsb-btn-label {
	display: block;
	text-align: center;
	white-space: nowrap;
	max-width: none;
}

/* Wejście: buttony po kolei z prawej */
.wsb-banner.is-ready:not(.is-settled) .wsb-btn {
	animation: wsb-btn-in 0.55s var(--wsb-ease) forwards;
}

.wsb-banner.is-ready:not(.is-settled) .wsb-btn:nth-child(1) {
	animation-delay: 0.12s;
}

.wsb-banner.is-ready:not(.is-settled) .wsb-btn:nth-child(2) {
	animation-delay: 0.24s;
}

.wsb-banner.is-ready:not(.is-settled) .wsb-btn:nth-child(3) {
	animation-delay: 0.36s;
}

.wsb-banner.is-ready:not(.is-settled) .wsb-btn:nth-child(4) {
	animation-delay: 0.48s;
}

.wsb-banner.is-ready:not(.is-settled) .wsb-btn:nth-child(5) {
	animation-delay: 0.6s;
}

/* Po wjeździe — spokojny stan (bez konfliktu z pulsem) */
.wsb-banner.is-settled .wsb-btn {
	opacity: 1;
	transform: none;
	animation: none;
}

@keyframes wsb-btn-in {
	0% {
		opacity: 0;
		transform: translate3d(1.75rem, 0, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.wsb-btn:hover,
.wsb-btn:focus-visible {
	transform: translateY(-1px) scale(1.02);
	filter: brightness(1.05);
	box-shadow:
		0 4px 14px rgba(0, 0, 0, 0.28),
		0 1px 0 rgba(255, 255, 255, 0.14) inset;
	outline: none;
	color: var(--wsb-btn-fg, #fff);
	transition:
		transform 0.25s var(--wsb-ease),
		box-shadow 0.25s ease,
		filter 0.25s ease;
}

.wsb-btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.55);
	outline-offset: 2px;
}

.wsb-btn-icon {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex-shrink: 0;
}

.wsb-btn-label {
	display: inline-block;
}

/* Delikatne 3× pulsowanie */
#wsb-banner.wsb-banner.is-settled .wsb-btn.is-pulsing,
.wsb-banner.is-settled .wsb-btn.is-pulsing {
	animation: wsb-pulse-triple 0.85s ease-in-out;
	z-index: 2;
	transition: none;
}

@keyframes wsb-pulse-triple {
	0%,
	100% {
		transform: scale(1);
		filter: brightness(1);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	}
	12% {
		transform: scale(1.045);
		filter: brightness(1.06);
		box-shadow:
			0 0 0 2px rgba(255, 255, 255, 0.14),
			0 4px 12px rgba(0, 0, 0, 0.22);
	}
	24% {
		transform: scale(1);
		filter: brightness(1);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	}
	40% {
		transform: scale(1.045);
		filter: brightness(1.06);
		box-shadow:
			0 0 0 2px rgba(255, 255, 255, 0.14),
			0 4px 12px rgba(0, 0, 0, 0.22);
	}
	52% {
		transform: scale(1);
		filter: brightness(1);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	}
	68% {
		transform: scale(1.045);
		filter: brightness(1.06);
		box-shadow:
			0 0 0 2px rgba(255, 255, 255, 0.14),
			0 4px 12px rgba(0, 0, 0, 0.22);
	}
	80% {
		transform: scale(1);
		filter: brightness(1);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	}
}

/* ========== POPUP / LIGHTBOX ========== */

body > #wsb-popup.wsb-popup,
#wsb-popup.wsb-popup {
	--wsb-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--wsb-bg: #1c1c1e;
	--wsb-fg: #ffffff;

	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483600 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	box-sizing: border-box;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

#wsb-popup.wsb-popup[hidden] {
	display: none !important;
}

#wsb-popup.wsb-popup.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	animation: wsb-popup-fade-in 0.35s var(--wsb-ease) forwards;
}

#wsb-popup.wsb-popup.is-hiding {
	animation: wsb-popup-fade-out 0.3s var(--wsb-ease) forwards;
	pointer-events: none;
}

@keyframes wsb-popup-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes wsb-popup-fade-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.wsb-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.wsb-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 48rem);
	max-height: min(90vh, 36rem);
	overflow: auto;
	background: var(--wsb-bg);
	color: var(--wsb-fg);
	border-radius: 0.75rem;
	padding: clamp(1.25rem, 4vw, 2rem) clamp(1.1rem, 4vw, 1.75rem);
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.06);
	transform: translate3d(0, 1.25rem, 0) scale(0.96);
	opacity: 0;
}

.wsb-popup.is-visible .wsb-popup__dialog {
	animation: wsb-dialog-in 0.45s 0.05s var(--wsb-ease) forwards;
}

@keyframes wsb-dialog-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 1.25rem, 0) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

.wsb-popup__close {
	appearance: none;
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s ease, background 0.2s ease;
	z-index: 2;
}

.wsb-popup__close:hover,
.wsb-popup__close:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.16);
	outline: none;
}

.wsb-popup__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(1rem, 3vw, 1.5rem);
	padding-top: 0.35rem;
}

.wsb-popup__text {
	margin: 0;
	max-width: 40rem;
	font-size: clamp(1rem, 2.8vw, 1.25rem);
	font-weight: 650;
	line-height: 1.4;
	letter-spacing: 0.01em;
	opacity: 0;
	transform: translate3d(0, -0.85rem, 0);
}

.wsb-popup.is-visible .wsb-popup__text {
	animation: wsb-popup-text-in 0.55s 0.12s var(--wsb-ease) forwards;
}

.wsb-popup.is-ready .wsb-popup__text {
	opacity: 1;
	transform: none;
	animation: none;
}

.wsb-popup__image {
	margin: 1rem 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	opacity: 0;
	transform: translate3d(0, 0.6rem, 0);
}

.wsb-popup.is-visible .wsb-popup__image {
	animation: wsb-popup-image-in 0.5s 0.22s var(--wsb-ease) forwards;
}

.wsb-popup.is-ready .wsb-popup__image {
	opacity: 1;
	transform: none;
	animation: none;
}

@keyframes wsb-popup-image-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 0.6rem, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.wsb-popup__image-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(40vh, 220px);
	object-fit: contain;
	margin: 0 auto;
	border-radius: 0.4rem;
}

.wsb-popup__image-link {
	display: block;
	text-decoration: none !important;
	color: inherit;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s var(--wsb-ease);
}

.wsb-popup__image-link:hover,
.wsb-popup__image-link:focus-visible {
	opacity: 0.92;
	transform: scale(1.01);
	outline: none;
}

.wsb-popup__image-link:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.45);
	outline-offset: 3px;
	border-radius: 0.4rem;
}

@keyframes wsb-popup-text-in {
	0% {
		opacity: 0;
		transform: translate3d(0, -0.85rem, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.wsb-popup__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
}

.wsb-popup__timer {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	opacity: 0;
	line-height: 1.3;
	transform: translate3d(0, 0.4rem, 0);
}

.wsb-popup.is-visible .wsb-popup__timer {
	animation: wsb-popup-timer-in 0.45s 0.55s var(--wsb-ease) forwards;
}

.wsb-popup.is-ready .wsb-popup__timer {
	opacity: 0.7;
	transform: none;
	animation: none;
}

@keyframes wsb-popup-timer-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 0.4rem, 0);
	}
	100% {
		opacity: 0.7;
		transform: translate3d(0, 0, 0);
	}
}

.wsb-popup__timer-count {
	display: inline-block;
	min-width: 1.25em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: inherit;
}

/* Larger popup buttons — entrance once, then one pulse each */
.wsb-btn--popup {
	opacity: 0;
	transform: translate3d(0, 1rem, 0) scale(0.96);
	height: auto;
	max-height: none;
	min-height: 3rem;
	padding: 0.85rem 1.25rem;
	font-size: clamp(0.8rem, 2.4vw, 0.95rem);
	border-radius: 0.4rem;
	gap: 0.55rem;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	will-change: transform, box-shadow, filter;
}

.wsb-popup.is-visible .wsb-btn--popup {
	animation: wsb-popup-btn-in 0.55s var(--wsb-ease) forwards;
}

.wsb-popup.is-visible .wsb-btn--popup:nth-child(1) {
	animation-delay: 0.28s;
}

.wsb-popup.is-visible .wsb-btn--popup:nth-child(2) {
	animation-delay: 0.42s;
}

.wsb-popup.is-visible .wsb-btn--popup:nth-child(3) {
	animation-delay: 0.56s;
}

.wsb-popup.is-visible .wsb-btn--popup:nth-child(4) {
	animation-delay: 0.7s;
}

.wsb-popup.is-visible .wsb-btn--popup:nth-child(5) {
	animation-delay: 0.84s;
}

.wsb-popup.is-ready .wsb-btn--popup {
	opacity: 1;
	transform: none;
	animation: none;
}

@keyframes wsb-popup-btn-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 1rem, 0) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

/* Puls popupu — jak baner (3×), bez pętli (sterowane w JS) */
.wsb-popup.is-ready .wsb-btn--popup.is-pulsing {
	animation: wsb-pulse-triple 0.85s ease-in-out;
	z-index: 2;
	transition: none;
}

.wsb-btn--popup .wsb-btn-icon {
	width: 32px;
	height: 32px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 720px) {
	#wsb-banner.wsb-banner {
		height: auto;
		min-height: 0;
	}

	#wsb-banner .wsb-banner__bar {
		min-height: 0;
	}

	#wsb-banner .wsb-banner__inner {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: center;
		padding: 0.35rem var(--wsb-pad-x) 0.4rem;
		gap: 0.35rem;
		height: auto;
		min-height: 0;
	}

	#wsb-banner .wsb-banner__text {
		flex: 0 0 auto;
		width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-align: center;
		font-size: 0.7rem;
		line-height: 1.2;
		order: 1;
	}

	#wsb-banner .wsb-banner__actions {
		order: 2;
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: stretch;
		width: 100%;
		max-width: none;
		gap: 0.3rem;
	}

	#wsb-banner .wsb-btn {
		flex-direction: column;
		flex: 1 1 0;
		gap: 0.15rem;
		width: auto;
		min-width: 0;
		height: auto;
		max-height: none;
		padding: 0.3rem 0.35rem;
		font-size: 9px;
		white-space: nowrap;
		line-height: 1.1;
	}

	#wsb-banner .wsb-btn-icon {
		width: 18px;
		height: 18px;
		margin: 0 auto;
	}

	#wsb-banner .wsb-btn-label {
		display: block;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
		text-align: center;
	}

	#wsb-banner .wsb-banner__close {
		margin-right: var(--wsb-pad-x);
		margin-bottom: 0.35rem;
	}

	.wsb-popup__dialog {
		width: 100%;
		border-radius: 0.65rem;
		padding: 1.35rem 1rem 1.15rem;
	}

	.wsb-popup__actions {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: wrap;
		gap: 0.55rem;
	}

	.wsb-btn--popup {
		width: 100%;
		flex: 1 1 auto;
		min-height: 2.75rem;
		padding: 0.75rem 1rem;
		font-size: 0.82rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	#wsb-banner.wsb-banner,
	#wsb-banner.wsb-banner.is-visible,
	#wsb-banner.wsb-banner.is-hiding,
	#wsb-banner .wsb-banner__text,
	#wsb-banner .wsb-banner__text-track,
	#wsb-banner .wsb-btn,
	#wsb-banner .wsb-banner__shine,
	#wsb-popup.wsb-popup,
	#wsb-popup .wsb-popup__dialog,
	#wsb-popup .wsb-popup__text,
	#wsb-popup .wsb-popup__image,
	#wsb-popup .wsb-popup__timer,
	#wsb-popup .wsb-btn--popup {
		animation: none !important;
		transition: none !important;
	}

	#wsb-banner.wsb-banner.is-visible {
		display: flex !important;
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	#wsb-banner.is-ready .wsb-banner__text,
	#wsb-banner.is-ready .wsb-btn,
	#wsb-banner.is-settled .wsb-btn,
	#wsb-popup.is-visible .wsb-btn--popup,
	#wsb-popup.is-visible .wsb-popup__dialog,
	#wsb-popup.is-visible .wsb-popup__text,
	#wsb-popup.is-visible .wsb-popup__image,
	#wsb-popup.is-visible .wsb-popup__timer {
		opacity: 1;
		transform: none;
	}

	#wsb-banner .wsb-btn.is-pulsing {
		outline: 2px solid rgba(255, 255, 255, 0.45);
	}
}

/* Spacer w flow = realna wysokość banera (ustawiana w JS) */
.wsb-spacer {
	display: block;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	pointer-events: none;
	visibility: hidden;
	flex-shrink: 0;
}

.wsb-spacer[hidden] {
	display: none !important;
}

html.wsb-has-banner,
body.wsb-has-banner {
	scroll-padding-bottom: var(--wsb-spacer, var(--wsb-h, 2.75rem));
}
