/* ==========================================================================
   Pricing Carousel — style
   Tło całej karuzeli jest zawsze transparentne (dziedziczy tło strony).
   Kolory kart pochodzą z inline custom properties ustawianych per karta.
   ========================================================================== */

.pcc-carousel {
	position: relative;
	background: transparent;
	padding: 20px 56px 44px;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.pcc-carousel *,
.pcc-carousel *::before,
.pcc-carousel *::after {
	box-sizing: border-box;
}

.pcc-track-viewport {
	overflow: hidden;
	background: transparent;
	position: relative;
}

/* Wszystkie slajdy współdzielą tę samą komórkę siatki (grid-area 1/1),
   dzięki czemu wysokość kontenera dopasowuje się automatycznie do
   najwyższej karty, a każdy slajd jest pozycjonowany niezależnie przez
   JS (translateX + scale w JEDNEJ własności transform, na TYM SAMYM
   elemencie DOM — bez klonowania). To strukturalnie eliminuje możliwość
   "przeskoku": nie ma już dwóch osobno animowanych elementów (toru i
   kafelka), które mogłyby się rozjechać w czasie. */
.pcc-track {
	display: grid;
	background: transparent;
}

/* ---- Slajd / slot na kartę ------------------------------------------- */

.pcc-slide {
	grid-area: 1 / 1;
	width: 84%;
	justify-self: center;
	padding: 14px 10px;
	display: flex;
	justify-content: center;
	transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .45s ease;
	opacity: 0; /* JS ustawia właściwą wartość natychmiast po starcie */
	will-change: transform, opacity;
}

@media (min-width: 700px) {
	.pcc-slide {
		width: 50%;
	}
}

@media (min-width: 1000px) {
	.pcc-slide {
		width: 33.3333%;
	}
}

/* ---- Karta -------------------------------------------------------------
   Kolory sterowane zmiennymi CSS przekazywanymi inline z PHP:
   --pcc-bg-start / --pcc-bg-end / --pcc-text / --pcc-ribbon / --pcc-ribbon-text
   --pcc-btn-bg / --pcc-btn-text
   ------------------------------------------------------------------------ */

.pcc-card {
	position: relative;
	width: 100%;
	max-width: 300px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--pcc-bg-start, #fff) 0%, var(--pcc-bg-end, #fff) 100%);
	color: var(--pcc-text, #111);
	box-shadow: 0 10px 30px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-family: inherit;
}

.pcc-card--highlight {
	box-shadow: 0 16px 40px rgba(0,0,0,.24), 0 2px 6px rgba(0,0,0,.1);
}

.pcc-badge {
	position: absolute;
	top: 10px;
	right: -34px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 38px;
	transform: rotate(40deg);
	z-index: 3;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ---- Wstążka (ribbon) w stylu "flagi" ---------------------------------- */

.pcc-ribbon {
	position: relative;
	background: var(--pcc-ribbon, #c8102e);
	color: var(--pcc-ribbon-text, #fff);
	padding: 16px 20px 22px;
	text-align: center;
	clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.pcc-ribbon__label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .01em;
}

/* ---- Treść karty -------------------------------------------------------- */

.pcc-card__body {
	padding: 18px 26px 28px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.pcc-price-label {
	margin: 0 0 6px;
	font-size: 13px;
	opacity: .75;
}

.pcc-price-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

/* Cena — potrafi być długa w PLN (np. "12.900 zł"), więc:
   1) czcionka skaluje się płynnie przez clamp(),
   2) dodatkowo JS (data-pcc-autofit) zmniejsza ją, jeśli nadal nie mieści się w jednej linii. */
.pcc-price {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-weight: 800;
	font-size: clamp(28px, 7vw, 44px);
	line-height: 1;
	white-space: nowrap;
	max-width: 100%;
}

.pcc-currency {
	font-size: .42em;
	font-weight: 600;
	opacity: .85;
}

.pcc-features {
	list-style: none;
	margin: 4px 0 20px;
	padding: 0;
	width: 100%;
}

.pcc-features li {
	padding: 7px 0;
	font-size: 14px;
	border-top: 1px solid rgba(127,127,127,.22);
}

.pcc-features li:last-child {
	border-bottom: 1px solid rgba(127,127,127,.22);
}

.pcc-btn {
	margin-top: auto;
	display: inline-block;
	padding: 11px 28px;
	border-radius: 999px;
	background: var(--pcc-btn-bg, #111);
	color: var(--pcc-btn-text, #fff);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
	/* Reset domyślnych stylów przeglądarki, gdy renderowany jako <button>
	   (np. przy akcji otwierającej popup Cal.com Contact Form). */
	border: none;
	font-family: inherit;
	cursor: pointer;
	line-height: normal;
	appearance: none;
	-webkit-appearance: none;
}

.pcc-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,.2);
	color: var(--pcc-btn-text, #fff);
}

/* ---- Nawigacja ------------------------------------------------------- */

.pcc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: background .15s ease, transform .15s ease;
}

.pcc-nav:hover {
	background: rgba(0,0,0,.8);
}

.pcc-prev { left: 0; }
.pcc-next { right: 0; }

.pcc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.pcc-dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(127,127,127,.4);
	cursor: pointer;
	padding: 0;
	transition: background .15s ease, transform .15s ease;
}

.pcc-dots button.is-active {
	background: #c8102e;
	transform: scale(1.3);
}

@media (max-width: 640px) {
	.pcc-carousel { padding: 10px 46px 36px; }
	.pcc-nav { width: 38px; height: 38px; }
}
