/**
 * Changing a start line after it has been paid for.
 *
 * The same markup serves the rider in their account and the race office on
 * the order screen, so nothing here assumes the theme's type scale or the
 * admin's: sizes are stated, and every colour falls back to a literal for
 * wp-admin, where none of the theme's custom properties exist.
 *
 * The trail reads as a receipt rather than as a feature — small, grey, above
 * the form — because it is the part nobody looks at until the one day
 * somebody has to.
 */

.fr-cambio {
	margin: 24px 0 0;
	padding: 16px;
	border: 1px solid var(--fr-line, #e2e2df);
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.fr-cambio__title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--fr-muted, #5a5a55);
}

.fr-cambio__line + .fr-cambio__line {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--fr-line, #e2e2df);
}

.fr-cambio__held {
	margin: 0 0 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
}

.fr-cambio__event {
	font-weight: 600;
	color: var(--fr-ink, #1b1b1b);
}

.fr-cambio__route {
	color: var(--fr-muted, #5a5a55);
}

/* What already happened. */

.fr-cambio__trail {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.fr-cambio__entry {
	margin: 0;
	padding: 3px 0;
	font-size: 13px;
	color: var(--fr-muted, #5a5a55);
}

/* The form. */

.fr-cambio__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
}

.fr-cambio__label {
	font-size: 13px;
	color: var(--fr-muted, #5a5a55);
}

.fr-cambio__select,
.fr-cambio__note {
	flex: 1 1 220px;
	min-width: 0;
	max-width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--fr-line, #e2e2df);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: var(--fr-ink, #1b1b1b);
}

.fr-cambio__submit {
	flex: 0 0 auto;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--fr-green, #693);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.fr-cambio__submit:hover,
.fr-cambio__submit:focus-visible {
	background: var(--fr-navy, #036);
}

/* Why there is no form. */

.fr-cambio__shut {
	margin: 0;
	color: var(--fr-muted, #5a5a55);
}

/* What just happened. */

.fr-cambio__notice {
	margin: 0 0 12px;
	padding: 9px 12px;
	border-radius: 8px;
	font-weight: 600;
}

.fr-cambio__notice--ok {
	background: #eef5e7;
	color: #3f5c20;
}

.fr-cambio__notice--ko {
	background: #fbeaea;
	color: #8a2020;
}

@media print {

	.fr-cambio {
		display: none;
	}
}
