/* ========================================================================== 
   Perfectbud Child — Sticky CTA
   Desktop: pionowy kafelek przy prawej krawędzi.
   Mobile: poziomy przycisk przy dolnej krawędzi.
   ========================================================================== */

.perfectbud-sticky-cta {
	--perfectbud-cta-background: var(--e-global-color-primary, #ef3123);
	--perfectbud-cta-background-hover: #000000;
	--perfectbud-cta-foreground: #ffffff;
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 9990;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 68px;
	min-height: 280px;
	padding: 20px 12px;
	border-radius: 12px 0 0 12px;
	background-color: var(--perfectbud-cta-background);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	color: var(--perfectbud-cta-foreground);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.perfectbud-sticky-cta:hover,
.perfectbud-sticky-cta:focus-visible {
	background-color: var(--perfectbud-cta-background-hover);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
	color: var(--perfectbud-cta-foreground);
	text-decoration: none;
	transform: translateY(-50%) translateX(-4px);
}

.perfectbud-sticky-cta:hover .perfectbud-sticky-cta__text,
.perfectbud-sticky-cta:focus-visible .perfectbud-sticky-cta__text,
.perfectbud-sticky-cta:hover .perfectbud-sticky-cta__icon,
.perfectbud-sticky-cta:focus-visible .perfectbud-sticky-cta__icon {
	color: var(--perfectbud-cta-foreground);
}

.perfectbud-sticky-cta:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: -6px;
}

.perfectbud-sticky-cta__icon {
	display: block;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: var(--perfectbud-cta-foreground);
}

.perfectbud-sticky-cta .perfectbud-sticky-cta__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.perfectbud-sticky-cta .perfectbud-sticky-cta__text {
	display: block;
	color: var(--perfectbud-cta-foreground);
	text-orientation: mixed;
	white-space: nowrap;
	writing-mode: vertical-rl;
}

@media (max-width: 767px) {
	.perfectbud-sticky-cta {
		top: auto;
		right: 12px;
		bottom: max(12px, env(safe-area-inset-bottom));
		flex-direction: row;
		width: auto;
		min-height: 48px;
		max-width: calc(100vw - 24px);
		padding: 12px 16px;
		border-radius: 999px;
		font-size: 13px;
		transform: none;
	}

	.perfectbud-sticky-cta .perfectbud-sticky-cta__text {
		white-space: normal;
		writing-mode: horizontal-tb;
	}

	.perfectbud-sticky-cta:hover,
	.perfectbud-sticky-cta:focus-visible {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.perfectbud-sticky-cta {
		transition: none;
	}
}
