/* Allotment group orders. Large, plain text for older eyes. */
.gl-group-banner {
	background-color: var(--go--color--primary, #165043);
	color: #fff;
	font-size: 1.0625rem;
	line-height: 1.5;
	padding: 0.75rem 1rem;
	text-align: center;
}

.gl-group-banner p {
	margin: 0;
}

.gl-group-banner a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
}

.gl-groups {
	font-size: 1.0625rem;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 46rem;
	text-align: left;
}

.gl-groups .gl-lead {
	font-size: 1.125rem;
}

.gl-groups .gl-small {
	font-size: 1rem;
	opacity: 0.85;
}

.gl-card {
	border: 1px solid hsla(0, 0%, 0%, 0.15);
	border-radius: 6px;
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
}

.gl-card h2 {
	margin-top: 0;
}

.gl-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.gl-form input[type="text"],
.gl-form input[type="date"],
.gl-form input[type="number"],
.gl-form input[type="url"],
.gl-form select,
.gl-form textarea,
.gl-link {
	font-size: 1.0625rem;
	max-width: 100%;
	padding: 0.6rem 0.75rem;
	width: 32rem;
}

/* First and last name side by side where there's room. */
.gl-name-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.gl-name-fields > span {
	flex: 1 1 14rem;
}

.gl-form .gl-name-fields input[type="text"] {
	width: 100%;
}

.gl-form .gl-name-fields .gl-small {
	flex-basis: 100%;
	margin-top: -0.4rem;
}

.gl-form input.gl-short-field {
	width: 10rem;
}

/* A hint under a field sits with it: the theme's space goes after the hint instead. */
.gl-form input[aria-describedby] {
	margin-bottom: 0;
}

.gl-form .gl-small {
	display: block;
	margin-top: 0.35rem;
}

.gl-entry {
	border-top: 1px solid hsla(0, 0%, 0%, 0.1);
	padding: 0.75rem 0;
}

.gl-entry__name {
	font-weight: 600;
	margin: 0;
}

.gl-lines {
	margin: 0.25rem 0 0.5rem 1.25rem;
	padding: 0;
}

.gl-progress {
	background-color: hsla(160, 30%, 50%, 0.1);
	border-radius: 6px;
	padding: 0.75rem 1rem;
}

.gl-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.gl-inline-form {
	display: inline-block;
	margin: 0;
}

.gl-button-quiet {
	background: transparent !important;
	border: 2px solid currentColor !important;
	color: inherit !important;
}

/* The page uses the theme's wide width; text and forms keep a readable width, organisers' cards
   spread out. */
.entry-content > .gl-groups.alignwide {
	max-width: var(--go--max-width--alignwide, 82rem);
	width: calc(100% - var(--go-block--padding--x, 1.5rem) * 2);
}

.gl-groups > :not(.gl-card) {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--go--max-width, 42rem);
}

/* Organiser's paid list: one row per member, however many there are. */
.gl-paid-form {
	margin-bottom: 1.5rem;
}

.gl-paid-tools {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin-bottom: 1rem;
}

.gl-paid-tools[hidden],
.gl-no-match[hidden],
.gl-unsaved[hidden],
.gl-member-row[hidden] {
	display: none;
}

.gl-find-field {
	margin: 0;
}

.gl-find-field label,
.gl-show legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	padding: 0;
}

.gl-find {
	font-size: 1.0625rem;
	max-width: 100%;
	padding: 0.6rem 0.75rem;
	width: 20rem;
}

.gl-show {
	border: 0;
	margin: 0;
	padding: 0;
}

.gl-show label {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: 0.4rem;
	margin-right: 1.25rem;
	min-height: 2.75rem;
}

/* The theme hides native radio buttons; these need to be seen. */
.gl-show input[type="radio"] {
	appearance: auto;
	height: 1.25rem;
	margin: 0;
	opacity: 1;
	position: static;
	width: 1.25rem;
}

.gl-shown-count {
	margin: 0 0 0.6rem;
}

.gl-members-table {
	border-collapse: collapse;
	width: 100%;
}

.gl-members-table th,
.gl-members-table td {
	border: 0;
	border-bottom: 1px solid hsla(0, 0%, 0%, 0.12);
	padding: 0.6rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

.gl-members-table thead th {
	border-bottom: 2px solid currentColor;
}

.gl-members-table tbody th {
	font-weight: 600;
}

.gl-members-table .num {
	text-align: right;
	white-space: nowrap;
}

.gl-members-table .gl-col-paid {
	text-align: center;
	width: 6rem;
}

.gl-members-table .gl-col-paid label {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
}

.gl-members-table input[type="checkbox"] {
	height: 1.5rem;
	margin: 0;
	width: 1.5rem;
}

.gl-members-table summary {
	cursor: pointer;
	min-height: 1.75rem;
}

.gl-member-row.is-paid .num {
	color: var(--go--color--primary, #165043);
}

.gl-refused-count,
.gl-part-paid {
	color: #8f4a00;
}

.gl-part-paid {
	display: block;
	font-weight: 600;
}

/* Save stays in view while scrolling a long list. */
.gl-paid-save {
	align-items: center;
	background-color: var(--go--color--background, #fff);
	border-top: 2px solid hsla(0, 0%, 0%, 0.12);
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding: 0.75rem 0;
	position: sticky;
	z-index: 5;
}

.gl-paid-save p {
	flex: 1 1 20rem;
	margin: 0;
}

.gl-paid-form.has-changes .gl-paid-save {
	box-shadow: 0 -6px 12px -6px hsla(0, 0%, 0%, 0.2);
}

.gl-unsaved {
	color: #8f4a00;
	font-weight: 600;
}

/* Phones: each member as a small block. */
@media (max-width: 40rem) {

	.gl-members-table thead {
		clip: rect(0, 0, 0, 0);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.gl-members-table,
	.gl-members-table tbody,
	.gl-members-table tr,
	.gl-members-table th,
	.gl-members-table td {
		display: block;
		width: auto;
	}

	.gl-members-table tr {
		border-bottom: 1px solid hsla(0, 0%, 0%, 0.12);
		padding: 0.5rem 0;
	}

	.gl-members-table th,
	.gl-members-table td,
	.gl-members-table .num,
	.gl-members-table .gl-col-paid {
		border: 0;
		padding: 0.2rem 0;
		text-align: left;
		width: auto;
	}

	.gl-members-table td::before {
		content: attr(data-label) ": ";
		font-weight: 600;
	}
}

.gl-lines .is-refused {
	color: #8f4a00;
}

.gl-collected {
	font-weight: 600;
}

.gl-checkout-form .gl-pack {
	cursor: pointer;
	display: block;
	margin: 0 0 0.75rem;
}

.gl-checkout-form .gl-pack input {
	height: 1.25rem;
	margin-right: 0.4rem;
	vertical-align: -0.2rem;
	width: 1.25rem;
}

/* "I'll pay for the group's order…": the box beside its words. */
.gl-form .gl-check label {
	align-items: flex-start;
	display: flex;
	font-weight: 400;
	gap: 0.6rem;
	letter-spacing: normal;
	max-width: 32rem;
	text-transform: none;
}

.gl-form .gl-check input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 0.3rem;
}
