/* ==========================================================================
   Super Simple Plus Cennik - Styles
   ========================================================================== */

.ssp-cennik-wrapper {
	--ssp-primary: #eb2d90;
	font-family: inherit;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
}

.ssp-cennik-wrapper * {
	box-sizing: border-box;
}

/* ==========================================================================
   Layout: Kolumny (podstawowa)
   ========================================================================== */

/* Toggle Switcher */
.ssp-cennik-toggle-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 40px;
	gap: 15px;
}

.ssp-toggle-label {
	font-size: 16px;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	transition: color 0.3s ease;
}

.ssp-toggle-label.active {
	color: var(--ssp-primary);
	font-weight: 600;
}

.ssp-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
}

.ssp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ssp-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--ssp-primary);
	transition: .4s;
}

.ssp-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
}

.ssp-switch input:checked + .ssp-slider {
	background-color: var(--ssp-primary);
}

.ssp-switch input:focus + .ssp-slider {
	box-shadow: 0 0 1px var(--ssp-primary);
}

.ssp-switch input:checked + .ssp-slider:before {
	transform: translateX(22px);
}

.ssp-slider.round {
	border-radius: 28px;
}

.ssp-slider.round:before {
	border-radius: 50%;
}

/* Boxes Layout */
.ssp-cennik-boxes {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.ssp-cennik-box {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ssp-cennik-box-inner {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 0 20px 30px;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ssp-cennik-box:nth-child(2) .ssp-cennik-box-inner {
	border-color: var(--ssp-primary);
	box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1);
}

/* Subtitle Badge */
.ssp-cennik-subtitle {
	display: inline-block;
	background: #94a3b8;
	color: #fff;
	padding: 4px 12px;
	border-radius: 0 0 8px 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	margin: 0 auto 20px;
	align-self: center;
	position: relative;
	top: 0;
}

.ssp-cennik-box:nth-child(2) .ssp-cennik-subtitle {
	background: var(--ssp-primary);
}

.ssp-cennik-subtitle-empty {
	background: transparent;
	padding: 4px 12px;
	margin: 0 auto 20px;
	min-height: 26px;
}

.ssp-cennik-content-main {
	flex-grow: 1;
}

.ssp-cennik-title {
	font-size: 24px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 10px;
	color: #1e293b;
}

.ssp-cennik-short-desc {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 10px;
	line-height: 1.5;
	min-height: 72px;
}

/* Pricing */
.ssp-cennik-price-wrap {
	margin-bottom: 15px;
	min-height: 110px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ssp-price-monthly,
.ssp-price-yearly {
	display: none;
	flex-direction: column;
	align-items: flex-start;
}

.ssp-price-main-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
}

.ssp-promo-badge {
	background-color: #facc15;
	color: #854d0e;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	margin-bottom: 5px;
	display: inline-block;
}

.ssp-original-price {
	font-size: 14px;
	color: #94a3b8;
	margin-top: -5px;
}

/* Toggle logic */
.ssp-is-monthly .ssp-price-monthly { display: flex; }
.ssp-is-yearly  .ssp-price-yearly  { display: flex; }

.ssp-currency {
	font-size: 20px;
	font-weight: 600;
	color: #1e293b;
	position: relative;
	top: -15px;
	margin-right: 2px;
}

.ssp-amount {
	font-size: 56px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1;
}

.ssp-text-amount {
	font-size: 28px;
	font-weight: 700;
}

.ssp-suffix {
	font-size: 16px;
	color: #64748b;
	margin-left: 5px;
	font-weight: 500;
}

/* Below-price description */
.ssp-cennik-below-price-desc {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 15px;
	line-height: 1.5;
}

/* Features List */
.ssp-cennik-features {
	margin-bottom: 30px;
}

.ssp-cennik-features-title {
	font-weight: 700;
	margin-bottom: 15px;
	color: #1e293b;
}

.ssp-cennik-features ul {
	list-style: none;
	padding: 0 !important;
	margin: 0;
}

.ssp-cennik-features li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	font-size: 14px;
	color: #334155;
	line-height: 1.5;
}

.ssp-cennik-features li.ssp-feature-unavailable {
	color: #94a3b8;
}

.ssp-cennik-features li svg {
	flex-shrink: 0;
	margin-right: 10px;
	margin-top: 2px;
}

/* Footer / Button */
.ssp-cennik-footer {
	margin-top: auto;
}

.ssp-cennik-additional-desc {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 15px;
	text-align: center;
}

.ssp-cennik-btn {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--ssp-primary);
	color: #fff !important;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
	font-family: Poppins, sans-serif;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.ssp-cennik-btn:hover {
	background: #001131;
	color: #fff !important;
}

/* Mobile Carousel */
.ssp-cennik-indicators {
	display: none;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.ssp-indicator {
	width: 25px;
	height: 4px;
	background: #cbd5e1;
	border-radius: 2px;
	transition: background 0.3s ease;
}

.ssp-indicator.active {
	background: var(--ssp-primary);
}

@media (max-width: 991px) {
	.ssp-cennik-boxes {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 20px;
	}

	.ssp-cennik-boxes::-webkit-scrollbar {
		display: none;
	}

	.ssp-cennik-box {
		flex: 0 0 85%;
		scroll-snap-align: center;
	}

	.ssp-cennik-indicators {
		display: flex;
	}

	.ssp-cennik-features li {
		line-height: 1.3;
		font-size: 13px;
		margin-bottom: 8px;
	}

	.ssp-cennik-features li svg {
		width: 14px;
		height: 14px;
	}
}

/* ==========================================================================
   Layout: Grid (dodatkowa)
   ========================================================================== */

.ssp-cennik-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.ssp-dodatkowa-box {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 25px;
	display: flex;
	align-items: stretch;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s, box-shadow 0.2s;
}

.ssp-dodatkowa-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ssp-dodatkowa-left {
	flex: 2;
	padding-right: 15px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.ssp-dodatkowa-right {
	flex: 1;
	text-align: right;
	border-left: 1px solid #e2e8f0;
	padding-left: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ssp-dodatkowa-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #1e293b;
	line-height: 1.1;
}

.ssp-dodatkowa-desc {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
}

.ssp-dodatkowa-price-amount {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
}

.ssp-dodatkowa-price-amount .ssp-currency {
	font-size: 16px;
	color: var(--ssp-primary);
	top: -10px;
}

.ssp-dodatkowa-price-amount .ssp-amount {
	font-size: 50px;
	color: var(--ssp-primary);
}

.ssp-dodatkowa-price-amount .ssp-text-amount {
	font-size: 20px;
}

.ssp-dodatkowa-suffix {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 5px;
}

.ssp-dodatkowa-right .ssp-promo-badge {
	align-self: flex-end;
}

.ssp-original-dodatkowa {
	margin-top: 0;
	text-align: right;
}

@media (max-width: 991px) {
	.ssp-cennik-grid {
		grid-template-columns: 1fr;
	}

	.ssp-dodatkowa-price-amount .ssp-amount {
		font-size: 40px;
	}

	.ssp-dodatkowa-price-amount .ssp-text-amount {
		font-size: 16px;
	}
}
