/**
 * Super Ledger — the add-ons configurator on a package's product page.
 *
 * Every rule is scoped to `.sll-config`. Colours are custom properties on `.sll-config` (Nowdigiverse
 * brand defaults: navy #003366, slate text, cool borders, 8 / 12px radii), so a theme can re-colour
 * the configurator by overriding them. The theme's font is inherited. No framework, fonts or icon sets.
 */

/* ------------------------------------------------------------------------------------------------
 * Tokens and base
 * --------------------------------------------------------------------------------------------- */

.sll-config {
	--sll-primary: #003366;
	--sll-primary-hover: #00264d;
	--sll-accent: #006f9e;
	--sll-accent-soft: #e0f4fb;
	--sll-accent-text: #005d84;
	--sll-tint: #eef4fa;
	--sll-tint-strong: #d6e4f2;
	--sll-text: #0d1b3e;
	--sll-heading: #003366;
	--sll-muted: #52606f;
	--sll-border: #d9e0e8;
	--sll-border-hover: #adc8e4;
	--sll-border-strong: #afb8c4;
	--sll-surface: #ffffff;
	--sll-sunken: #f4f6f9;
	--sll-success: #3f6b4b;
	--sll-success-bg: #e8f3eb;
	--sll-warning: #8a5300;
	--sll-warning-bg: #fdf3e1;
	--sll-danger: #b42318;
	--sll-danger-bg: #fcebea;
	--sll-focus: #006f9e;
	--sll-radius-sm: 8px;
	--sll-radius: 12px;
	--sll-shadow-sm: 0 1px 2px rgba(0, 51, 102, 0.06), 0 1px 3px rgba(0, 51, 102, 0.08);
	--sll-shadow-md: 0 4px 12px rgba(0, 51, 102, 0.08), 0 2px 4px rgba(0, 51, 102, 0.06);
	--sll-shadow-lg: 0 16px 40px rgba(0, 51, 102, 0.12), 0 4px 12px rgba(0, 51, 102, 0.06);
	--sll-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sll-fast: 150ms;
	--sll-sticky-top: 24px;

	display: block;
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	margin: 8px 0 24px;
	color: var(--sll-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.sll-config *,
.sll-config *::before,
.sll-config *::after {
	box-sizing: border-box;
}

.sll-config [hidden],
.sll-config.is-empty {
	display: none !important;
}

.sll-config .sll-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	opacity: 0;
}

.sll-config .sll-icon {
	flex: none;
	width: 1em;
	height: 1em;
}

.sll-config .amount,
.sll-config bdi {
	color: inherit;
	font: inherit;
	background: none;
}

.sll-config .sll-per {
	color: var(--sll-muted);
	font-size: 0.875rem;
	font-weight: 400;
	white-space: nowrap;
}

/* ------------------------------------------------------------------------------------------------
 * Layout: steps, then the summary. Two columns when the configurator itself is wide enough.
 * --------------------------------------------------------------------------------------------- */

.sll-config .sll-config__layout {
	container-type: inline-size;
	container-name: sll-config;
}

.sll-config .sll-config__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

.sll-config .sll-config__steps {
	min-width: 0;
}

@container sll-config (min-width: 860px) {
	.sll-config .sll-config__grid {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
		align-items: start;
		gap: 40px;
	}

	.sll-config .sll-config__aside {
		position: sticky;
		top: var(--sll-sticky-top);
	}
}

/* ------------------------------------------------------------------------------------------------
 * Steps
 * --------------------------------------------------------------------------------------------- */

.sll-config .sll-step {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sll-config .sll-step + .sll-step {
	margin-top: 36px;
	padding-top: 32px;
	border-top: 1px solid var(--sll-border);
}

.sll-config .sll-step__head {
	display: flex;
	float: left; /* A floated legend sits in the flow, not on the fieldset's border. */
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--sll-heading);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.sll-config .sll-step__num {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--sll-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

.sll-config .sll-step__help {
	clear: both;
	margin: 0 0 16px 40px;
	padding-top: 6px;
	color: var(--sll-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------------------------------------------
 * Selectable cards (modules and the updates pack)
 * --------------------------------------------------------------------------------------------- */

.sll-config .sll-module-grid {
	display: grid;
	gap: 12px;
	margin: 0;
}

.sll-config .sll-module-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.sll-config .sll-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 16px 48px 16px 16px;
	border: 1px solid var(--sll-border);
	border-radius: var(--sll-radius);
	background: var(--sll-surface);
	box-shadow: none;
	color: var(--sll-text);
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: border-color var(--sll-fast) var(--sll-ease), box-shadow var(--sll-fast) var(--sll-ease), background-color var(--sll-fast) var(--sll-ease);
}

.sll-config .sll-card:hover {
	border-color: var(--sll-border-hover);
	box-shadow: var(--sll-shadow-sm);
}

.sll-config .sll-card.is-checked,
.sll-config .sll-card:has(> .sll-sr:checked) {
	border-color: var(--sll-primary);
	background: #f8fbfe;
	box-shadow: 0 0 0 1px var(--sll-primary), var(--sll-shadow-sm);
}

.sll-config .sll-card:has(> .sll-sr:focus-visible) {
	outline: 2px solid var(--sll-focus);
	outline-offset: 3px;
}

/* The check mark in the corner: a rounded square. */
.sll-config .sll-card__mark {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--sll-border-strong);
	border-radius: 999px;
	background: var(--sll-surface);
	color: #fff;
	font-size: 14px;
	transition: background-color var(--sll-fast) var(--sll-ease), border-color var(--sll-fast) var(--sll-ease);
}

.sll-config .sll-card__mark--box {
	border-radius: 6px;
}

.sll-config .sll-card__mark .sll-icon {
	stroke-width: 3;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity var(--sll-fast) var(--sll-ease), transform var(--sll-fast) var(--sll-ease);
}

.sll-config .sll-card.is-checked .sll-card__mark,
.sll-config .sll-card:has(> .sll-sr:checked) .sll-card__mark {
	border-color: var(--sll-primary);
	background: var(--sll-primary);
}

.sll-config .sll-card.is-checked .sll-card__mark .sll-icon,
.sll-config .sll-card:has(> .sll-sr:checked) .sll-card__mark .sll-icon {
	opacity: 1;
	transform: none;
}

/* Module cards */
.sll-config .sll-module__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sll-config .sll-module__name {
	color: var(--sll-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.sll-config .sll-module__desc {
	color: var(--sll-muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

.sll-config .sll-module__foot {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
	padding-top: 4px;
}

.sll-config .sll-module__price {
	color: var(--sll-text);
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.sll-config .sll-module__inc {
	color: var(--sll-success);
	font-size: 0.875rem;
	font-weight: 500;
}

.sll-config .sll-module__needs {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--sll-warning);
	font-size: 0.875rem;
	font-weight: 500;
}

.sll-config .sll-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.sll-config .sll-badge--included {
	background: var(--sll-success-bg);
	color: var(--sll-success);
}

.sll-config .sll-badge--save {
	background: var(--sll-accent-soft);
	color: var(--sll-accent-text);
}

/* Included: ticked and locked, shown as part of the plan. */
.sll-config .sll-card.sll-module.is-included {
	border-color: var(--sll-border);
	background: var(--sll-sunken);
	box-shadow: none;
	cursor: default;
}

.sll-config .sll-card.sll-module.is-included .sll-card__mark {
	border-color: var(--sll-success);
	background: var(--sll-success);
}

.sll-config .sll-module.is-included .sll-module__price {
	display: none;
}

/* Blocked: a requirement is not met yet. */
.sll-config .sll-card.sll-module.is-blocked {
	border-style: dashed;
	background: var(--sll-surface);
	box-shadow: none;
	cursor: not-allowed;
}

.sll-config .sll-module.is-blocked .sll-module__name,
.sll-config .sll-module.is-blocked .sll-module__desc,
.sll-config .sll-module.is-blocked .sll-module__price {
	opacity: 0.6;
}

.sll-config .sll-module.is-blocked .sll-card__mark {
	border-style: dashed;
	background: var(--sll-sunken);
}

.sll-config .sll-notice {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: var(--sll-radius-sm);
	background: var(--sll-warning-bg);
	color: var(--sll-warning);
	font-size: 0.875rem;
	line-height: 1.45;
}

/* ------------------------------------------------------------------------------------------------
 * Quantities
 * --------------------------------------------------------------------------------------------- */

.sll-config .sll-qty-list {
	border: 1px solid var(--sll-border);
	border-radius: var(--sll-radius);
	background: var(--sll-surface);
}

.sll-config .sll-qty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 16px;
}

.sll-config .sll-qty + .sll-qty {
	border-top: 1px solid var(--sll-border);
}

.sll-config .sll-qty__text {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sll-config .sll-qty__label {
	margin: 0;
	color: var(--sll-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
}

.sll-config .sll-qty__help {
	color: var(--sll-muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

.sll-config .sll-qty__price {
	margin-top: 2px;
	color: var(--sll-text);
	font-size: 0.875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* "Billed monthly / yearly" for the recurring add-ons of a lifetime licence. */
.sll-config .sll-cycle {
	min-width: 0;
	margin: 0 0 28px;
	padding: 16px;
	border: 1px solid var(--sll-border);
	border-radius: var(--sll-radius);
	background: var(--sll-tint);
}

.sll-config .sll-cycle__title {
	float: left;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--sll-heading);
	font-size: 1rem;
	font-weight: 600;
}

.sll-config .sll-cycle__help {
	clear: both;
	margin: 0 0 12px;
	padding-top: 4px;
	color: var(--sll-muted);
	font-size: 0.875rem;
}

.sll-config .sll-cycle__options {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--sll-border);
	border-radius: var(--sll-radius);
	background: var(--sll-surface);
}

.sll-config .sll-cycle__option {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 8px 16px;
	border-radius: var(--sll-radius-sm);
	color: var(--sll-muted);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.sll-config .sll-cycle__option:has(> .sll-sr:checked),
.sll-config .sll-cycle__option.is-checked {
	background: var(--sll-primary);
	color: #fff;
}

.sll-config .sll-cycle__option:has(> .sll-sr:focus-visible) {
	outline: 2px solid var(--sll-focus);
	outline-offset: 2px;
}

.sll-config .sll-cycle__fixed {
	margin: 8px 0 0;
	color: var(--sll-muted);
	font-size: 0.875rem;
}

/* A device whose requirement is not met yet (a phone needs Distribution). */
.sll-config .sll-qty__needs {
	margin-top: 4px;
}

.sll-config .sll-qty.is-blocked .sll-qty__label,
.sll-config .sll-qty.is-blocked .sll-qty__help,
.sll-config .sll-qty.is-blocked .sll-qty__price {
	opacity: 0.6;
}

.sll-config .sll-stepper {
	display: inline-flex;
	flex: none;
	align-items: stretch;
	height: 44px;
	border: 1px solid var(--sll-border-strong);
	border-radius: var(--sll-radius-sm);
	background: var(--sll-surface);
	overflow: hidden;
	transition: border-color var(--sll-fast) var(--sll-ease), box-shadow var(--sll-fast) var(--sll-ease);
}

.sll-config .sll-stepper:focus-within {
	border-color: var(--sll-focus);
	box-shadow: 0 0 0 3px rgba(0, 111, 158, 0.18);
}

.sll-config .sll-stepper:has(.sll-stepper__input[aria-invalid="true"]) {
	border-color: var(--sll-danger);
}

.sll-config button.sll-stepper__btn {
	display: grid;
	place-items: center;
	width: 44px;
	min-width: 44px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--sll-primary);
	font: inherit;
	font-size: 18px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color var(--sll-fast) var(--sll-ease), color var(--sll-fast) var(--sll-ease);
}

.sll-config button.sll-stepper__btn:hover:not(:disabled) {
	background: var(--sll-tint);
}

.sll-config button.sll-stepper__btn:focus-visible {
	outline: 2px solid var(--sll-focus);
	outline-offset: -2px;
}

.sll-config button.sll-stepper__btn:disabled {
	color: var(--sll-border-strong);
	cursor: not-allowed;
}

.sll-config input.sll-stepper__input {
	width: 64px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--sll-text);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.sll-config.is-enhanced input.sll-stepper__input {
	width: 52px;
	border-right: 1px solid var(--sll-border);
	border-left: 1px solid var(--sll-border);
}

.sll-config input.sll-stepper__input:focus {
	outline: none;
}

.sll-config input.sll-stepper__input::-webkit-outer-spin-button,
.sll-config input.sll-stepper__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.sll-config:not(.is-enhanced) input.sll-stepper__input {
	-moz-appearance: auto;
	appearance: auto;
}

/* Without the script the summary would stay on the first licence type whatever is picked: the cart
 * prices the choice, so no total is shown here until the script runs. */
.sll-config:not(.is-enhanced) .sll-config-lines,
.sll-config:not(.is-enhanced) .sll-config-addons,
.sll-config:not(.is-enhanced) [data-sll-none],
.sll-config:not(.is-enhanced) .sll-summary__users,
.sll-config:not(.is-enhanced) .sll-summary__total,
.sll-config:not(.is-enhanced) .sll-summary__then {
	display: none;
}

/* Nothing to add yet, or a number to fix: the add-to-cart button waits. */
.sll-config .sll-cta[disabled],
.sll-config .sll-bar__btn[disabled] {
	cursor: not-allowed;
	opacity: 0.6;
}

/* ------------------------------------------------------------------------------------------------
 * Summary card
 * --------------------------------------------------------------------------------------------- */

.sll-config .sll-summary {
	padding: 24px;
	border: 1px solid var(--sll-border);
	border-radius: var(--sll-radius);
	background: var(--sll-surface);
	box-shadow: var(--sll-shadow-lg);
}

.sll-config .sll-summary__title {
	margin: 0 0 12px;
	padding: 0;
	color: var(--sll-heading);
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-transform: none;
}

.sll-config .sll-summary__lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sll-config .sll-summary__line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 7px 0;
	font-size: 0.9375rem;
	line-height: 1.4;
	list-style: none;
}

.sll-config .sll-summary__line + .sll-summary__line {
	border-top: 1px dashed var(--sll-border);
}

.sll-config .sll-summary__label {
	min-width: 0;
}

.sll-config .sll-summary__unit {
	color: var(--sll-muted);
	white-space: nowrap;
}

.sll-config .sll-summary__value {
	flex: none;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sll-config .sll-summary__users {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: var(--sll-radius-sm);
	background: var(--sll-tint);
	color: var(--sll-text);
	font-size: 0.875rem;
	line-height: 1.45;
}

.sll-config .sll-summary__users .sll-icon {
	margin-top: 1px;
	color: var(--sll-primary);
	font-size: 18px;
}

.sll-config .sll-summary__users strong {
	color: var(--sll-heading);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.sll-config .sll-summary__users-parts {
	color: var(--sll-muted);
}

.sll-config .sll-summary__line--base .sll-summary__label {
	color: var(--sll-heading);
	font-weight: 600;
}

.sll-config .sll-config-addons:not(:empty) {
	border-top: 1px dashed var(--sll-border);
}

.sll-config .sll-summary__empty {
	margin: 8px 0 0;
	color: var(--sll-muted);
	font-size: 0.875rem;
}

.sll-config .sll-config-cleared {
	margin: 0 0 16px;
}

.sll-config .sll-summary__total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--sll-border);
}

.sll-config .sll-summary__total-label {
	color: var(--sll-muted);
	font-size: 0.9375rem;
	font-weight: 500;
}

.sll-config .sll-summary__amount {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin-left: auto;
	white-space: nowrap;
}

.sll-config .sll-config-amount {
	color: var(--sll-heading);
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.sll-config .sll-summary__per {
	color: var(--sll-muted);
	font-size: 0.9375rem;
}

.sll-config .sll-summary__then {
	margin: 6px 0 0;
	color: var(--sll-muted);
	font-size: 0.9375rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.sll-config .sll-summary__then strong {
	color: var(--sll-heading);
	font-weight: 600;
}

.sll-config .sll-summary__line--fee .sll-summary__label {
	color: var(--sll-muted);
}

.sll-config .sll-summary__save {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 8px 0 0;
	color: var(--sll-success);
	font-size: 0.875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.sll-config .sll-config-errors {
	margin: 12px 0 0;
	padding: 10px 14px;
	border: 0;
	border-left: 3px solid var(--sll-danger);
	border-radius: var(--sll-radius-sm);
	background: var(--sll-danger-bg);
	color: var(--sll-danger);
	font-size: 0.875rem;
	line-height: 1.45;
	list-style: none;
}

.sll-config .sll-config-errors li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sll-config .sll-config-errors li + li {
	margin-top: 4px;
}

.sll-config .sll-summary__cta:empty {
	display: none;
}

.sll-config .sll-summary__cta {
	margin-top: 20px;
}

/* WooCommerce's own add-to-cart button, once the script moves it here. */
.sll-config.sll-config .sll-summary__cta .single_add_to_cart_button.sll-cta.sll-cta,
.sll-config.sll-config .sll-bar button.sll-bar__btn.sll-bar__btn {
	display: flex;
	float: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--sll-radius-sm);
	background: var(--sll-primary);
	box-shadow: 0 1px 2px rgba(0, 51, 102, 0.2);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
	opacity: 1;
	cursor: pointer;
	transition: background-color var(--sll-fast) var(--sll-ease), box-shadow var(--sll-fast) var(--sll-ease);
}

.sll-config.sll-config .sll-summary__cta .single_add_to_cart_button.sll-cta.sll-cta:hover,
.sll-config.sll-config .sll-bar button.sll-bar__btn.sll-bar__btn:hover {
	background: var(--sll-primary-hover);
	box-shadow: var(--sll-shadow-md);
	color: #fff;
}

.sll-config.sll-config .sll-summary__cta .single_add_to_cart_button.sll-cta.sll-cta:focus-visible,
.sll-config.sll-config .sll-bar button.sll-bar__btn.sll-bar__btn:focus-visible {
	outline: 2px solid var(--sll-focus);
	outline-offset: 3px;
}

.sll-config .sll-summary__fine {
	margin: 20px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--sll-border);
	color: var(--sll-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
	list-style: none;
}

.sll-config .sll-summary__fine li {
	position: relative;
	margin: 0;
	padding: 0 0 0 16px;
	list-style: none;
}

.sll-config .sll-summary__fine li + li {
	margin-top: 6px;
}

.sll-config .sll-summary__fine li::before {
	position: absolute;
	top: 0.6em;
	left: 2px;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--sll-border-strong);
	content: "";
}

/* ------------------------------------------------------------------------------------------------
 * The compact bar (narrow screens, while the summary card is off screen)
 * --------------------------------------------------------------------------------------------- */

.sll-config .sll-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9990;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--sll-border);
	background: var(--sll-surface);
	box-shadow: 0 -8px 24px rgba(0, 51, 102, 0.12);
	visibility: hidden;
	transform: translateY(110%);
	transition: transform 220ms var(--sll-ease), visibility 0s linear 220ms;
}

.sll-config .sll-bar.is-visible {
	visibility: visible;
	transform: none;
	transition: transform 220ms var(--sll-ease), visibility 0s;
}

.sll-config .sll-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 720px;
	margin: 0 auto;
}

.sll-config .sll-bar__total {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.sll-config .sll-bar__label {
	color: var(--sll-muted);
	font-size: 0.8125rem;
}

.sll-config .sll-bar__amount {
	color: var(--sll-heading);
	font-size: 1.125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sll-config.sll-config .sll-bar button.sll-bar__btn.sll-bar__btn {
	flex: none;
	width: auto;
	min-height: 44px;
	padding: 10px 20px;
}

/* ------------------------------------------------------------------------------------------------
 * Small screens and reduced motion
 * --------------------------------------------------------------------------------------------- */

@container sll-config (max-width: 420px) {
	.sll-config .sll-step__help {
		margin-left: 0;
	}

	.sll-config .sll-summary {
		padding: 20px 16px;
	}

	.sll-config .sll-config-amount {
		font-size: 1.625rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sll-config *,
	.sll-config *::before,
	.sll-config *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
