/*
 * Product customisation section.
 *
 * Shipped with the plugin so the section is presentable even before the theme is
 * updated. Every value reads a theme token first and falls back to a sane literal, so
 * an institution's brand colour and the theme's own rounding carry through untouched.
 */

/* Self-contained: the section must hold its shape even without the theme's reset. */
.aspire-cust,
.aspire-cust *,
.aspire-cust *::before,
.aspire-cust *::after {
	box-sizing: border-box;
}

.aspire-cust {
	margin: 0 0 var(--sp-5, 1.5rem);
	padding: var(--sp-4, 1rem) var(--sp-4, 1rem) calc(var(--sp-4, 1rem) - 0.25rem);
	border: 1px solid var(--c-line, #e2e5ea);
	border-radius: var(--radius-field, 12px);
	/* The house motif: square off the bottom left. */
	border-bottom-left-radius: 0;
	background: var(--c-surface-alt, #f6f7f9);
}

.aspire-cust__title {
	margin: 0 0 var(--sp-3, 0.75rem);
	font-family: var(--font-head, inherit);
	font-size: 1rem;
	font-weight: 600;
	color: var(--c-ink, #17181c);
}

.aspire-cust__field {
	margin-bottom: var(--sp-3, 0.75rem);
}

.aspire-cust__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--c-ink, #17181c);
}

.aspire-cust__required {
	color: var(--c-error, #b3261e);
}

.aspire-cust__price {
	margin-left: 0.35rem;
	font-weight: 400;
	color: var(--c-muted, #767c88);
}

.aspire-cust__text,
.aspire-cust__select {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--c-line, #e2e5ea);
	border-radius: var(--radius-control, 999px);
	border-bottom-left-radius: 0;
	background: var(--c-surface, #fff);
	font: inherit;
	font-size: 0.95rem;
	color: var(--c-ink, #17181c);
}

.aspire-cust__text:focus,
.aspire-cust__select:focus {
	outline: 2px solid var(--c-accent, #e30613);
	outline-offset: 1px;
}

.aspire-cust__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
}

.aspire-cust__option {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.95rem;
	line-height: 1.4;
	color: var(--c-body, #4a4f5a);
	cursor: pointer;
}

.aspire-cust__option--single {
	margin-top: 0.1rem;
}

.aspire-cust__option input {
	margin: 0.15rem 0 0;
	flex: 0 0 auto;
	accent-color: var(--c-accent, #e30613);
}

@media (max-width: 480px) {
	.aspire-cust__options {
		flex-direction: column;
		gap: 0.5rem;
	}
}
