/* Plan builder / configure page */

.rf-configure {
	padding: 0 20px clamp(100px, 12vw, 120px);
}

.rf-checkout-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0 auto 28px;
	max-width: 1180px;
	font-size: 0.85rem;
	color: rgba(245, 240, 255, 0.55);
}

.rf-checkout-steps .is-active {
	color: #efba60;
	font-weight: 600;
}

.rf-configure-notice {
	max-width: 1180px;
	margin: 0 auto 20px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 0.92rem;
}

.rf-configure-notice--warn {
	background: rgba(239, 186, 96, 0.12);
	border: 1px solid rgba(239, 186, 96, 0.35);
	color: #f5e6c8;
}

.rf-configure__layout {
	display: grid;
	grid-template-columns: 1fr min(360px, 100%);
	gap: 28px;
	max-width: 1180px;
	margin: 0 auto;
	align-items: start;
}

.rf-configure-block {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.rf-configure-block legend {
	padding: 0;
	margin-bottom: 12px;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
}

.rf-configure-hint {
	margin: 0 0 14px;
	font-size: 0.9rem;
	color: rgba(245, 240, 255, 0.65);
}

.rf-configure-plans {
	display: grid;
	gap: 12px;
}

.rf-configure-plan {
	cursor: pointer;
}

.rf-configure-plan input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rf-configure-plan__card {
	display: block;
	padding: 18px 20px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.rf-configure-plan input:checked + .rf-configure-plan__card,
.rf-configure-plan__card:hover {
	border-color: rgba(239, 186, 96, 0.45);
	background: rgba(239, 186, 96, 0.06);
}

.rf-configure-plan__card strong {
	display: block;
	color: #fff;
	font-size: 1rem;
	margin-bottom: 4px;
}

.rf-configure-plan__card em {
	display: block;
	color: #efba60;
	font-style: normal;
	font-weight: 600;
	margin-bottom: 6px;
}

.rf-configure-plan__card small {
	color: rgba(245, 240, 255, 0.65);
	font-size: 0.88rem;
	line-height: 1.45;
}

.rf-configure-tool-list {
	display: grid;
	gap: 10px;
}

.rf-configure-tool {
	cursor: pointer;
}

.rf-configure-tool input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rf-configure-tool__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: border-color 0.2s ease;
}

.rf-configure-tool input:checked + .rf-configure-tool__row,
.rf-configure-tool__row:hover {
	border-color: rgba(168, 85, 247, 0.4);
}

.rf-configure-tool__label {
	flex: 1;
	color: #fff;
	font-weight: 500;
}

.rf-configure-tool__badge {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #86efac;
	background: rgba(37, 211, 102, 0.12);
	padding: 4px 8px;
	border-radius: 999px;
}

.rf-configure-tool__price {
	font-size: 0.88rem;
	color: #efba60;
	font-weight: 600;
}

.rf-configure-toggle {
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	position: relative;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.rf-configure-toggle::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.rf-configure-tool input:checked + .rf-configure-tool__row .rf-configure-toggle {
	background: #efba60;
}

.rf-configure-tool input:checked + .rf-configure-tool__row .rf-configure-toggle::after {
	transform: translateX(18px);
}

.rf-configure-tool.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.rf-configure-summary__card {
	position: sticky;
	top: 100px;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(165deg, rgba(26, 15, 46, 0.95) 0%, rgba(10, 1, 24, 0.98) 100%);
	border: 1px solid rgba(239, 186, 96, 0.2);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rf-configure-summary__card h2 {
	margin: 0 0 16px;
	font-size: 1.1rem;
	color: #fff;
}

.rf-configure-summary__lines {
	margin: 0 0 20px;
}

.rf-configure-summary__lines > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.9rem;
}

.rf-configure-summary__lines dt {
	color: rgba(245, 240, 255, 0.6);
	margin: 0;
}

.rf-configure-summary__lines dd {
	margin: 0;
	color: #fff;
	text-align: right;
}

.rf-configure-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
	padding-top: 8px;
}

.rf-configure-summary__total span {
	color: rgba(245, 240, 255, 0.7);
	font-size: 0.9rem;
}

.rf-configure-summary__total strong {
	font-size: 1.5rem;
	color: #efba60;
}

.rf-configure-summary__note {
	margin: 0 0 16px;
	font-size: 0.8rem;
	color: rgba(245, 240, 255, 0.55);
	line-height: 1.45;
}

.rf-configure-checkout {
	width: 100%;
	border: 0;
	cursor: pointer;
}

.rf-configure-checkout:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rf-configure-summary__error {
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: #fca5a5;
}

.rf-configure-summary__link {
	display: block;
	margin-top: 14px;
	font-size: 0.88rem;
	text-align: center;
	color: rgba(245, 240, 255, 0.7);
}

/* Interactive pricing page layout */
.rf-pricing-page-layout {
	display: grid;
	grid-template-columns: 1fr min(360px, 100%);
	gap: 28px;
	align-items: start;
}

.rf-pricing-grid--selectable .rf-price-card {
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rf-pricing-grid--selectable .rf-price-card.is-selected,
.rf-pricing-grid--selectable .rf-price-card:has(.rf-plan-radio:checked) {
	border-color: rgba(239, 186, 96, 0.55);
	box-shadow: 0 0 0 1px rgba(239, 186, 96, 0.35), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.rf-plan-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rf-pricing-summary {
	position: sticky;
	top: 100px;
}

.rf-pricing-tooling,
.rf-pricing-extras {
	margin-top: 24px;
}

@media (max-width: 900px) {
	.rf-pricing-page-layout {
		grid-template-columns: 1fr;
	}

	.rf-pricing-summary .rf-configure-summary__card {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		z-index: 40;
		border-radius: 20px 20px 0 0;
	}

	.rf-page-pricing .rf-pricing--page {
		padding-bottom: 200px;
	}
}

@media (max-width: 900px) {
	.rf-configure__layout {
		grid-template-columns: 1fr;
	}

	.rf-configure-summary__card {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		z-index: 40;
		border-radius: 20px 20px 0 0;
		padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0));
		box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
	}

	.rf-configure-summary__lines,
	.rf-configure-summary__note {
		display: none;
	}

	.rf-configure-summary__total {
		margin-bottom: 10px;
	}

	.rf-page-configure .rf-configure {
		padding-bottom: 200px;
	}
}
