/* MemberWard front end. Structure and tokens follow Eventward's front-end
   styles (currentColor-derived, so forms inherit the theme). The accent comes
   from a site colour variable set in Settings (e.g. a Bricks colour); without
   one, buttons are outlined in the text colour.
   Sizes are in em, never rem: many Bricks sites set the root font to 10px
   (62.5%), which made rem-sized fields 26px tall. */
.mw-front {
	--mw-line: color-mix(in srgb, currentColor 16%, transparent);
	/* Form fields need 3:1 against the page (WCAG 1.4.11); dividers can be lighter. */
	--mw-field-line: color-mix(in srgb, currentColor 45%, transparent);
	--mw-soft: color-mix(in srgb, currentColor 6%, transparent);
	--mw-muted: color-mix(in srgb, currentColor 68%, transparent);
	--mw-radius: 8px;
	--mw-accent: var(--mw-accent-source, #1d2327);
	--mw-on-accent: #fff;
	max-width: 36em;
}
.mw-front form { margin: 0; }
.mw-front .mw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: .75em 1em; }
.mw-front p { margin: 0 0 .9em; }
.mw-front label { display: block; margin-bottom: .3em; font-size: .85em; font-weight: 600; }
/* Bricks' base stylesheet greys every label (--bricks-text-light); form text follows the form. */
.mw-front label,
.mw-front legend { color: inherit; }
.mw-front .mw-form-heading { margin: 1.5em 0 .6em; }
.mw-front form > .mw-form-heading:first-of-type { margin-top: 0; }
.mw-front input[type="text"],
.mw-front input[type="email"],
.mw-front input[type="password"],
.mw-front input[type="url"],
.mw-front input[type="tel"],
.mw-front input[type="number"],
.mw-front select,
.mw-front textarea {
	box-sizing: border-box; width: 100%; height: 2.6em; padding: 0 .75em; margin: 0;
	border: 1px solid var(--mw-field-line); border-radius: var(--mw-radius);
	background: transparent; color: inherit; font: inherit;
}
.mw-front ::placeholder { color: var(--mw-muted); opacity: 1; }
.mw-front textarea { height: auto; min-height: 6em; padding: .6em .75em; }
.mw-front input:focus-visible,
.mw-front select:focus-visible,
.mw-front textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.mw-front .mw-check { display: flex; gap: .5em; align-items: center; font-weight: 400; }
.mw-front .mw-check input { width: auto; height: auto; }
.mw-front .mw-hint { font-size: .85em; color: var(--mw-muted); }
.mw-button {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; gap: .4em; padding: .55em 1.1em;
	border: 1px solid currentColor; border-radius: var(--mw-radius, 8px);
	color: inherit; background: transparent; text-decoration: none; font-weight: 600; font-size: .95em; line-height: 1.3; cursor: pointer;
}
/* Hover tints sit in background-image, so a background colour set in Bricks
   (or by a theme) keeps a hover effect without needing its own hover rule. */
.mw-button:hover { background-image: linear-gradient(var(--mw-soft), var(--mw-soft)); }
.mw-button-primary { border-color: var(--mw-accent); background-color: var(--mw-accent); color: var(--mw-on-accent); }
.mw-button-primary:hover { background-image: linear-gradient(rgb(0 0 0 / .14), rgb(0 0 0 / .14)); }
.mw-button-primary:focus-visible { outline: 2px solid var(--mw-accent); outline-offset: 2px; }
.mw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75em 1em; margin-top: 1em; }
/* Fixed light tints need a fixed dark text colour, or dark themes get white on near-white. */
.mw-msg { margin: 0 0 1em; padding: .75em 1em; border-radius: var(--mw-radius); border: 1px solid; font-weight: 600; color: #101828; }
.mw-msg.is-error { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.mw-msg.is-ok { border-color: #abefc6; background: #ecfdf3; }
/* Visually hidden, still read by screen readers ("Hide labels"). Optimisers that strip
   unused CSS must keep this rule. */
.mw-front .mw-sr { position: absolute !important; 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; }
.mw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mw-tabs { display: flex; flex-wrap: wrap; gap: .25em; margin: 0 0 1.25em; padding: 0; list-style: none; border-bottom: 1px solid var(--mw-line); }
.mw-tabs a { display: block; padding: .5em .9em; color: inherit; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.mw-tabs a[aria-current="page"] { border-bottom-color: currentColor; }
/* Scoped so ".mw-front p" (margin-top 0) doesn't win. */
.mw-front .mw-account-logout { margin: 1.5em 0 0; padding-top: 1em; border-top: 1px solid var(--mw-line); font-size: .9em; }
.mw-tabs a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mw-msg:focus { outline: none; }
.mw-dl { display: grid; grid-template-columns: max-content 1fr; gap: .5em 1.25em; margin: 0 0 1em; }
.mw-dl dt { font-size: .85em; font-weight: 600; color: var(--mw-muted); }
.mw-dl dd { margin: 0; }
.mw-status { display: inline-block; padding: .1em .6em; border-radius: 999px; border: 1px solid var(--mw-line); font-size: .85em; font-weight: 600; }
.mw-status.is-approved { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.mw-status.is-pending { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.mw-status.is-expired,
.mw-status.is-denied { border-color: #fecdca; background: #fef3f2; color: #b42318; }
/* Member fields: choice groups, uploads, per-field errors */
.mw-front fieldset.mw-field-row { margin: 0 0 .9em; padding: 0; border: 0; min-width: 0; }
.mw-front fieldset.mw-field-row legend { display: block; margin-bottom: .3em; padding: 0; font-size: .85em; font-weight: 600; }
.mw-front .mw-choices .mw-check { margin: 0 0 .35em; }
.mw-front .mw-req { color: var(--mw-muted); }
.mw-front .mw-field-error { display: block; margin-top: .3em; font-size: .85em; font-weight: 600; color: #b42318; }
.mw-front [aria-invalid="true"] { border-color: #b42318; }
.mw-front .mw-files { list-style: none; margin: 0 0 .5em; padding: 0; display: grid; gap: .4em; }
.mw-front .mw-files .mw-check { gap: .6em; }
.mw-front .mw-file-thumb { width: 3em; height: 3em; object-fit: cover; border-radius: calc(var(--mw-radius) / 2); }
.mw-front input[type="file"] { display: block; max-width: 100%; margin: .2em 0 .3em; font: inherit; }
.mw-front input[type="date"] { box-sizing: border-box; width: 100%; height: 2.6em; padding: 0 .75em; margin: 0; border: 1px solid var(--mw-field-line); border-radius: var(--mw-radius); background: transparent; color: inherit; font: inherit; }
.mw-front select[multiple] { height: auto; padding: .4em .75em; }
.mw-front [hidden] { display: none !important; }
/* Billing tab and plan picker */
.mw-front .mw-inline-form { display: inline-flex; margin: 0; }
.mw-front .mw-subhead { margin: 1.5em 0 .6em; font-size: 1em; }
.mw-front .mw-receipts { margin: 0; padding: 0; list-style: none; display: grid; gap: .35em; }
.mw-front .mw-plans .mw-plan { align-items: flex-start; padding: .6em .75em; border: 1px solid var(--mw-line); border-radius: var(--mw-radius); margin-bottom: .5em; }
.mw-front .mw-plans .mw-plan input { margin-top: .3em; }
.mw-front .mw-plans .mw-plan .mw-hint { display: block; }
.mw-front .mw-plans .mw-plan { cursor: pointer; }
.mw-front .mw-plans .mw-plan > input { flex: none; }
.mw-front .mw-plans .mw-plan:has(input:checked) { border-color: var(--mw-accent); box-shadow: inset 0 0 0 1px var(--mw-accent); }
/* Discount code: the box and its Apply button on one line, the message under them. */
.mw-front .mw-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.mw-front .mw-code-row > label { flex: 0 0 100%; margin-bottom: 0; }
.mw-front .mw-code-row > input { flex: 1 1 12em; width: auto; }
.mw-front .mw-code-row > .mw-button { align-self: stretch; }
.mw-front .mw-code-row > [role="status"] { flex: 0 0 100%; }
.mw-front .mw-code-row > [role="status"]:empty { display: none; }
/* "You have been logged out" on a page with no MemberWard form (MW_Account_Forms::footer_notice) */
.mw-front.mw-toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 99999; width: max-content; max-width: calc(100% - 32px); }
.mw-front.mw-toast .mw-msg { margin: 0; box-shadow: 0 4px 16px rgba(16, 24, 40, .12); }
