/*
 * Scoped styles for [sauna_pricing]. All selectors are prefixed with
 * .bsp- to avoid colliding with theme/Elementor styles. Colors are
 * CSS custom properties with neutral defaults so they can be
 * overridden per-site (e.g. from the Elementor Custom CSS panel or a
 * child theme) without editing this file. Width and typography are
 * intentionally left to the surrounding Elementor container/theme —
 * this is placeholder styling only; final visual design comes later.
 */

.bsp-configurator {
	--bsp-accent: var(--e-global-color-primary, #1f4c3f);
	--bsp-accent-contrast: #ffffff;
	--bsp-border: #e2e0da;
	--bsp-surface: #ffffff;
	--bsp-surface-muted: #faf9f6;
	--bsp-text: #24261f;
	--bsp-text-muted: #6b6d64;
	--bsp-radius: 10px;

	font-family: inherit;
	color: var(--bsp-text);
	width: 100%;
	box-sizing: border-box;
}

.bsp-configurator *,
.bsp-configurator *::before,
.bsp-configurator *::after {
	box-sizing: inherit;
}

.bsp-section {
	margin-bottom: 2.5em;
}

.bsp-heading {
	font-size: 1.25em;
	font-weight: 600;
	margin: 0 0 0.75em;
	color: var(--bsp-text);
}

/* Package cards */

.bsp-package-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1em;
}

.bsp-package-card {
	position: relative;
	display: block;
	cursor: pointer;
	border: 1px solid var(--bsp-border);
	border-radius: var(--bsp-radius);
	background: var(--bsp-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bsp-package-card:hover {
	border-color: var(--bsp-accent);
}

.bsp-package-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.bsp-package-input:focus-visible ~ .bsp-package-card-inner {
	outline: 2px solid var(--bsp-accent);
	outline-offset: 2px;
}

.bsp-package-input:checked ~ .bsp-package-card-inner {
	box-shadow: inset 0 0 0 2px var(--bsp-accent);
}

.bsp-package-card-inner {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	padding: 1.25em;
	border-radius: var(--bsp-radius);
}

.bsp-package-name {
	font-weight: 600;
	font-size: 1.05em;
}

.bsp-package-description {
	font-size: 0.9em;
	color: var(--bsp-text-muted);
	line-height: 1.4;
}

.bsp-package-price {
	margin-top: 0.5em;
	font-weight: 600;
	font-size: 1.1em;
	color: var(--bsp-accent);
}

/* Customizations */

.bsp-customization-group {
	margin-bottom: 1.25em;
}

.bsp-group-label {
	font-size: 1em;
	font-weight: 600;
	margin: 0 0 0.5em;
	color: var(--bsp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bsp-customization-list {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.bsp-customization-row {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	padding: 0.9em 1em;
	border: 1px solid var(--bsp-border);
	border-radius: var(--bsp-radius);
	background: var(--bsp-surface);
	cursor: pointer;
}

.bsp-customization-input {
	margin-top: 0.25em;
	flex-shrink: 0;
}

.bsp-customization-inner {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

.bsp-customization-name {
	font-weight: 600;
}

.bsp-customization-description {
	font-size: 0.9em;
	color: var(--bsp-text-muted);
}

.bsp-customization-price {
	font-size: 0.9em;
	color: var(--bsp-accent);
	font-weight: 600;
}

/* Summary */

.bsp-summary-section {
	padding: 1.5em;
	border-radius: var(--bsp-radius);
	background: var(--bsp-surface-muted);
	border: 1px solid var(--bsp-border);
}

.bsp-summary-package {
	font-weight: 600;
	margin-bottom: 0.5em;
}

.bsp-summary-customizations {
	list-style: disc;
	padding-left: 1.25em;
	margin: 0 0 1em;
	color: var(--bsp-text-muted);
	font-size: 0.95em;
}

.bsp-summary-customizations:empty {
	display: none;
}

.bsp-summary-item-note {
	font-style: italic;
}

.bsp-summary-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 1.15em;
	font-weight: 700;
	padding-top: 0.75em;
	border-top: 1px solid var(--bsp-border);
}

.bsp-deposit-line {
	margin: 0.75em 0 0;
	font-size: 0.95em;
	font-weight: 600;
	color: var(--bsp-text);
}

.bsp-deposit-line:empty {
	display: none;
}

.bsp-deposit-note {
	margin: 0.35em 0 0;
	font-size: 0.9em;
	color: var(--bsp-text-muted);
}

.bsp-disclaimer {
	margin: 0.75em 0 0;
	font-size: 0.8em;
	color: var(--bsp-text-muted);
	font-style: italic;
}

.bsp-quote-cta {
	display: inline-block;
	margin-top: 1.5em;
	padding: 0.9em 2em;
	background: var(--bsp-accent);
	color: var(--bsp-accent-contrast);
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	text-align: center;
	transition: opacity 0.15s ease;
}

.bsp-quote-cta:hover,
.bsp-quote-cta:focus {
	opacity: 0.9;
	color: var(--bsp-accent-contrast);
}

@media (max-width: 600px) {
	.bsp-quote-cta {
		display: block;
	}
}
