/* ==========================================================================
   BB Pricing Plans — base structural CSS
   Colors/fonts/spacing are controlled by Elementor's Style tab (inline styles
   generated per-widget instance) — this file only handles structure, the 3
   layout variants, and responsive behavior that Elementor's own controls
   don't cover automatically.
   ========================================================================== */

.bbpp-wrapper {
	width: 100%;
	box-sizing: border-box;
}
.bbpp-wrapper * {
	box-sizing: border-box;
}

/* ---------- Header ---------- */
.bbpp-header {
	margin-bottom: 32px;
}
.bbpp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 20px;
	background: #f2f2f2;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	margin-bottom: 16px;
}
.bbpp-eyebrow-dot {
	font-size: 8px;
}
.bbpp-title {
	margin: 0 0 8px;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 700;
}
.bbpp-subtitle {
	margin: 0;
	font-size: 15px;
	opacity: 0.7;
}

/* ---------- Billing Toggle ---------- */
.bbpp-billing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.bbpp-billing-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	opacity: 0.5;
	user-select: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}
.bbpp-billing-label.is-active {
	opacity: 1;
}
.bbpp-toggle-track {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	border-radius: 20px;
	background: #dcdcdc;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.bbpp-toggle-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.25);
	transition: transform 0.2s ease;
}
.bbpp-toggle-track.is-on .bbpp-toggle-thumb {
	transform: translateX(18px);
}

/* ---------- Cards Grid ---------- */
.bbpp-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	align-items: stretch;
}
.bbpp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #f5f5f5;
	border: 1px solid transparent;
	border-radius: 20px;
	padding: 32px;
}
.bbpp-card.is-highlighted {
	background: #ffffff;
	border-color: #eee;
	box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.bbpp-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.bbpp-icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	overflow: hidden;
}
.bbpp-icon-wrap--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bbpp-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	background: #eee;
}

.bbpp-card-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
}
.bbpp-card-desc {
	margin: 0 0 20px;
	font-size: 13px;
	opacity: 0.65;
}

.bbpp-price-block {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}
.bbpp-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}
.bbpp-price-currency {
	font-size: 22px;
	font-weight: 700;
}
.bbpp-price-amount {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}
.bbpp-price-suffix {
	font-size: 13px;
	opacity: 0.6;
	margin-left: 2px;
}
.bbpp-price-original {
	font-size: 14px;
	opacity: 0.45;
	text-decoration: line-through;
	margin-left: 6px;
}
.bbpp-commitment-note {
	margin: 8px 0 0;
	font-size: 12px;
	font-weight: 600;
	opacity: 0.6;
}
.bbpp-savings {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 20px;
	background: #e8f8ee;
	color: #1e9e56;
	margin-left: auto;
}

.bbpp-features-heading {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	opacity: 0.6;
}
.bbpp-features-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}
.bbpp-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
}
.bbpp-feature-item i,
.bbpp-feature-item svg {
	font-size: 13px;
	margin-top: 2px;
	flex-shrink: 0;
	color: #1e9e56;
}

.bbpp-cta {
	display: block;
	text-align: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 14px 24px;
	border-radius: 30px;
	background: #111;
	color: #fff;
	margin-top: auto;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.bbpp-cta:hover {
	transform: translateY(-1px);
}

/* ---------- Bottom Banner ---------- */
.bbpp-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
	margin-top: 24px;
	padding: 30px;
	border-radius: 40px;
	background: linear-gradient(120deg, #ffe9c7, #d9c7ff, #c7e6ff);
	position: relative;
}
.bbpp-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
}
.bbpp-banner-phone {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	margin-left: -10px;
}
.bbpp-banner-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bbpp-banner-heading {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}
.bbpp-banner-subheading {
	margin: 0;
	font-size: 12px;
	opacity: 0.65;
}
.bbpp-banner-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 30px;
	background: #111;
	color: #fff;
}

/* ==========================================================================
   LAYOUT VARIANTS
   ========================================================================== */

/* Layout 1 (default): side-by-side cards, as in the reference screenshot. */
.bbpp-wrapper.layout-1 .bbpp-cards {
	grid-template-columns: repeat(2, 1fr);
}

/* Layout 2: full-width stacked cards, image-style horizontal card content. */
.bbpp-wrapper.layout-2 .bbpp-cards {
	grid-template-columns: 1fr;
}
.bbpp-wrapper.layout-2 .bbpp-card {
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}
.bbpp-wrapper.layout-2 .bbpp-card-top,
.bbpp-wrapper.layout-2 .bbpp-price-row,
.bbpp-wrapper.layout-2 .bbpp-features-list,
.bbpp-wrapper.layout-2 .bbpp-cta {
	margin-bottom: 0;
}
.bbpp-wrapper.layout-2 .bbpp-card > * {
	flex: 1 1 200px;
}

/* Layout 3: compact grid, up to 4 columns, tighter padding — good for many plans. */
.bbpp-wrapper.layout-3 .bbpp-cards {
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.bbpp-wrapper.layout-3 .bbpp-card {
	padding: 20px;
}
.bbpp-wrapper.layout-3 .bbpp-price-amount {
	font-size: 28px;
}
.bbpp-wrapper.layout-3 .bbpp-title {
	font-size: 28px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.bbpp-wrapper.layout-3 .bbpp-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.bbpp-title {
		font-size: 28px;
	}
	.bbpp-cards,
	.bbpp-wrapper.layout-1 .bbpp-cards,
	.bbpp-wrapper.layout-3 .bbpp-cards {
		grid-template-columns: 1fr;
	}
	.bbpp-wrapper.layout-2 .bbpp-card {
		flex-direction: column;
		align-items: stretch;
	}
	.bbpp-banner {
		flex-direction: column;
		text-align: center;
	}
	.bbpp-price-amount {
		font-size: 32px;
	}
}
