/**
 * FSC Group Order Builder — minimal front-end styles.
 * Deliberately theme-agnostic: neutral colours, system fonts, works on
 * mobile (member rows wrap). The active theme's button styles still apply
 * to the .button elements.
 */

.fsc-builder {
	max-width: 720px;
	margin: 1.5em 0;
}

.fsc-builder-preview {
	max-width: 320px;
	height: auto;
	display: block;
	margin-bottom: 1em;
}

.fsc-builder-price {
	font-weight: 600;
}

.fsc-fieldset {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1em 1.25em 1.25em;
	margin: 0 0 1.25em;
}

.fsc-fieldset legend {
	font-weight: 700;
	padding: 0 0.4em;
}

/* Colour choices: pill-style radio labels, one colour for the whole set. */
.fsc-colours {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.fsc-colour input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fsc-colour span {
	display: inline-block;
	padding: 0.45em 1em;
	border: 2px solid #bbb;
	border-radius: 999px;
	cursor: pointer;
}

.fsc-colour input:checked + span {
	border-color: #1a1a1a;
	background: #1a1a1a;
	color: #fff;
}

.fsc-colour input:focus-visible + span {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* Member rows. */
.fsc-member {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: flex-end;
	padding: 0.75em 0;
	border-bottom: 1px dashed #e0e0e0;
}

.fsc-member:last-child {
	border-bottom: none;
}

.fsc-member label {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	font-size: 0.9em;
}

.fsc-member-name {
	flex: 1 1 180px;
}

.fsc-member select,
.fsc-member input[type="text"] {
	padding: 0.45em 0.5em;
}

.fsc-remove-member {
	font-size: 1.1em;
	line-height: 1;
	padding: 0.35em 0.6em;
}

.fsc-add-member {
	margin-top: 0.75em;
}

/* Confirmation step. */
.fsc-summary {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.fsc-summary li {
	margin: 0.2em 0;
}

.fsc-confirm-label {
	display: flex;
	gap: 0.5em;
	align-items: flex-start;
	font-size: 0.95em;
	cursor: pointer;
}

.fsc-confirm-label input {
	margin-top: 0.25em;
}

.fsc-total {
	font-weight: 700;
	font-size: 1.05em;
}

.fsc-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.fsc-builder-error {
	border: 1px solid #d63638;
	border-radius: 6px;
	padding: 0.75em 1em;
}

/* Per-row price (Step 1) and the Step-2 shared personalisation fields. */
.fsc-member-price {
	font-weight: 700;
	white-space: nowrap;
	padding-bottom: 0.45em;
}

.fsc-step2 {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
}

.fsc-step2 label {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	font-size: 0.9em;
	flex: 1 1 220px;
}

.fsc-step2 input[type="text"] {
	padding: 0.45em 0.5em;
}
