/**
 * Payment portal.
 *
 * Reached only from an emailed link, often on a phone, often by someone who
 * just wants to know what they owe. Figures first, one action, nothing else.
 */

.oa-portal {
	max-width: 34em;
	margin: 2em auto;
	padding: 1.5em;
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 6px;
}

.oa-portal__title {
	margin: 0 0 0.2em;
}

.oa-portal__who {
	margin: 0 0 1.5em;
	opacity: 0.75;
}

.oa-portal__error {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border-left: 4px solid #d63638;
	background: rgba( 214, 54, 56, 0.06 );
}

.oa-portal__figures {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.oa-portal__figures li {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.6em 0;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
	font-variant-numeric: tabular-nums;
}

.oa-portal__figures li:last-child {
	border-bottom: 0;
}

/* The number people came to see. */
.oa-portal__balance {
	font-size: 1.15em;
}

.oa-portal__balance strong {
	font-size: 1.2em;
}

.oa-portal__deadline {
	margin: 0 0 1.5em;
	padding: 0.7em 1em;
	border-radius: 4px;
	background: rgba( 0, 0, 0, 0.04 );
}

.oa-portal__settled {
	margin: 0;
	padding: 1em;
	border-radius: 4px;
	background: rgba( 0, 128, 0, 0.07 );
}

.oa-portal__form label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.oa-portal__amount {
	display: flex;
	align-items: center;
	gap: 0.4em;
	max-width: 12em;
}

.oa-portal__amount input {
	flex: 1;
	padding: 0.6em 0.75em;
	border: 1px solid rgba( 0, 0, 0, 0.25 );
	border-radius: 4px;
	font: inherit;
	font-size: 1.1em;
}

.oa-portal__help {
	margin: 0.5em 0 1.25em;
	font-size: 0.9em;
	opacity: 0.75;
}

/*
 * Scoped to the wrapper and with the states in :is() so the selector reaches
 * (0,3,0). Elementor's kit styles both `button` (0,1,1) and `button:hover`
 * (0,2,1), which would otherwise repaint this on hover and change its metrics.
 */
.oa-portal .oa-portal__submit,
.oa-portal .oa-portal__submit:is( :hover, :focus, :focus-visible, :active ) {
	padding: 0.8em 1.6em;
	border: 0;
	border-radius: 4px;
	background: var( --oa-submit-bg, #1e1e1e );
	color: var( --oa-submit-text, #fff );
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
	cursor: pointer;
}

.oa-portal .oa-portal__submit:is( :hover, :focus, :focus-visible ) {
	background: var( --oa-submit-bg-hover, #000 );
}

.oa-portal .oa-portal__submit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.oa-portal__subtitle {
	margin: 2em 0 0.5em;
	font-size: 1em;
}

.oa-portal__history {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oa-portal__history li {
	display: flex;
	gap: 0.75em;
	padding: 0.5em 0;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
	font-variant-numeric: tabular-nums;
}

.oa-portal__history li:last-child {
	border-bottom: 0;
}

.oa-portal__history strong {
	margin-left: auto;
}

.oa-portal--error {
	border-color: rgba( 214, 54, 56, 0.4 );
}

/* ---------- "Email me my link" recovery form ---------- */

/*
 * Centred in the column: this is a standalone recovery page with nothing beside
 * it, so a block hugging the left edge of a wide column reads as misplaced.
 * margin-inline auto centres the box; text-align centres what is inside it.
 */
.oa-lookup {
	max-width: 34em;
	margin: 2em auto;
	text-align: center;
}

.oa-lookup__title {
	margin: 0 0 0.5em;
}

.oa-lookup__intro {
	margin: 0 0 1.25em;
}

.oa-lookup__notice {
	margin: 0 0 1.25em;
	padding: 0.9em 1.1em;
	border-left: 3px solid currentColor;
	border-radius: 4px;
	background: rgba( 0, 0, 0, 0.04 );
}

.oa-lookup__notice--ok {
	color: #1c6b3f;
}

.oa-lookup__notice--warn {
	color: #8a5300;
}

.oa-lookup__notice,
.oa-lookup__form label {
	/* Prose reads better left-aligned even inside a centred block. */
	text-align: left;
}

.oa-lookup__form label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.oa-lookup__form input[type="email"] {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid rgba( 0, 0, 0, 0.25 );
	border-radius: 4px;
	font: inherit;
}

/*
 * Scoped and with the states in :is() to reach (0,3,0), so Elementor's kit
 * rules for `button` and `button:hover` cannot repaint it or change its metrics.
 */
.oa-lookup .oa-lookup__submit,
.oa-lookup .oa-lookup__submit:is( :hover, :focus, :focus-visible, :active ) {
	margin-top: 1.1em;
	padding: 0.8em 1.6em;
	border: 0;
	border-radius: 4px;
	background: var( --oa-submit-bg, #1e1e1e );
	color: var( --oa-submit-text, #fff );
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
	cursor: pointer;
}

.oa-lookup .oa-lookup__submit:is( :hover, :focus, :focus-visible ) {
	background: var( --oa-submit-bg-hover, #000 );
}

.oa-lookup .oa-lookup__submit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Honeypot, same technique as the registration form. */
.oa-lookup .oa-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Shown when the event is over but a balance remains. */
.oa-portal__closed {
	margin: 1.5em 0;
	padding: 1em 1.15em;
	border-left: 3px solid #8a5300;
	border-radius: 4px;
	background: rgba( 0, 0, 0, 0.04 );
	color: #8a5300;
}

.oa-portal__moved {
	margin: 1.5em 0 -0.5em;
	font-weight: 600;
}
