/*
 * Giving for Woo blocks. Every color, font and radius comes from tokens.css (var(--gfw-*)).
 * Mobile first; container queries size each form to the column it sits in.
 */

/* Shared ------------------------------------------------------------------ */

.gfw-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gfw-donate [hidden],
.gfw-event [hidden] {
	display: none !important;
}

.gfw-donate,
.gfw-event__form,
.gfw-progress,
.gfw-wall,
.gfw-card,
.gfw-kiosk-bar {
	box-sizing: border-box;
	color: var(--gfw-text);
	font-family: var(--gfw-body-font);
}

.gfw-donate *,
.gfw-event *,
.gfw-progress *,
.gfw-wall *,
.gfw-card *,
.gfw-kiosk-bar * {
	box-sizing: border-box;
}

.gfw-donate fieldset,
.gfw-event fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.gfw-donate legend,
.gfw-event legend {
	padding: 0;
}

.gfw-donate p,
.gfw-event p,
.gfw-progress p,
.gfw-wall p,
.gfw-card p,
.gfw-kiosk-bar p {
	margin: 0;
}

.gfw-legend,
.gfw-label {
	display: block;
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--gfw-text);
}

.gfw-label.is-plain {
	font-weight: 400;
}

.gfw-amounts > .gfw-legend {
	margin-bottom: 12px;
}

.gfw-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Three classes: Ollie styles inputs with input:not([type="submit"]):not([type="radio"]), specificity 0,2,1. */
.gfw-form .gfw-field .gfw-input,
.gfw-form .gfw-field .gfw-money-input {
	width: 100%;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 2px solid var(--gfw-border-strong);
	border-radius: var(--gfw-input-radius);
	background: var(--gfw-surface);
	color: var(--gfw-text);
	font-family: inherit;
	font-size: 17px;
	line-height: 1.4;
	box-shadow: none;
}

.gfw-form select.gfw-input {
	cursor: pointer;
}

.gfw-form .gfw-field .gfw-textarea {
	height: auto;
	min-height: 0;
	padding: 12px 14px;
	resize: vertical;
}

.gfw-form .gfw-money-input {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gfw-money-input__symbol {
	color: var(--gfw-muted);
}

.gfw-form .gfw-money-input .gfw-money-input__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: inherit;
	font: inherit;
	box-shadow: none;
}

/* One outline per field: focus darkens and thickens the field's own border. */
.gfw-form .gfw-field .gfw-input:focus,
.gfw-form .gfw-field .gfw-money-input:focus-within {
	outline: none;
	border-color: var(--gfw-text);
	box-shadow: 0 0 0 1px var(--gfw-text);
}

.gfw-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	line-height: 1.5;
	cursor: pointer;
}

.gfw-form .gfw-check input[type="checkbox"],
.gfw-form .gfw-radio input[type="radio"] {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--gfw-selected-border);
	cursor: pointer;
}

.gfw-form .gfw-check input:focus-visible,
.gfw-form .gfw-radio input:focus-visible {
	outline: 2px solid var(--gfw-text);
	outline-offset: 2px;
}

.gfw-hint {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: var(--gfw-muted);
}

.gfw-check .gfw-hint {
	margin-top: 2px;
}

.gfw-button,
.gfw-button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 24px;
	border-radius: var(--gfw-button-radius);
	font-family: inherit;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.gfw-button {
	width: 100%;
	min-height: 56px;
	border: 2px solid var(--gfw-accent);
	background: var(--gfw-accent);
	color: var(--gfw-on-accent);
	font-size: 18px;
}

.gfw-button:hover {
	border-color: color-mix(in srgb, var(--gfw-accent) 70%, var(--gfw-surface));
	background: color-mix(in srgb, var(--gfw-accent) 70%, var(--gfw-surface));
	color: var(--gfw-on-accent);
}

.gfw-button:focus-visible,
.gfw-button-secondary:focus-visible {
	outline: 2px solid var(--gfw-text);
	outline-offset: 3px;
}

.gfw-button[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.gfw-button-secondary {
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--gfw-border);
	background: var(--gfw-surface);
	color: var(--gfw-text);
	font-size: 15px;
}

.gfw-button-secondary:hover {
	border-color: var(--gfw-border-strong);
}

.gfw-message {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--gfw-text);
	padding: 12px 14px;
	border-left: 4px solid var(--gfw-selected-border);
	border-radius: var(--gfw-input-radius);
	background: var(--gfw-panel);
}

.gfw-message:empty {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.gfw-editor-note {
	margin: 0;
	padding: 12px 16px;
	border: 1px dashed var(--gfw-border-strong);
	border-radius: var(--gfw-input-radius);
	color: var(--gfw-muted);
	font-size: 14px;
}

/* Amount choices (donate and event forms) ------------------------------- */

.gfw-amounts__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.gfw-amount {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 64px;
	padding: 12px;
	border: 2px solid var(--gfw-border);
	border-radius: var(--gfw-radius-sm);
	background: var(--gfw-surface);
	color: var(--gfw-text);
	text-align: left;
	cursor: pointer;
}

.gfw-amount:hover {
	border-color: var(--gfw-border-strong);
}

.gfw-amount.is-selected {
	border-color: var(--gfw-selected-border);
	background: var(--gfw-selected);
}

.gfw-amount:has(input:focus-visible) {
	outline: 2px solid var(--gfw-text);
	outline-offset: 2px;
}

.gfw-amount__value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.gfw-amount__impact {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--gfw-muted);
}

.gfw-other {
	margin-top: 12px;
}

/* Donate form ------------------------------------------------------------ */

.gfw-donate {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	padding: 20px;
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius);
	background: var(--gfw-surface);
	font-size: 17px;
	line-height: 1.6;
}

.gfw-freq {
	display: grid;
	grid-template-columns: repeat(var(--gfw-freq-count, 2), minmax(0, 1fr));
	gap: 4px;
	padding: 4px;
	border-radius: var(--gfw-radius-sm);
	background: var(--gfw-panel);
}

.gfw-freq__option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 8px;
	border-radius: var(--gfw-input-radius);
	color: var(--gfw-text);
	text-align: center;
	cursor: pointer;
}

.gfw-freq__option.is-selected {
	background: var(--gfw-accent);
	color: var(--gfw-on-accent);
	font-weight: 700;
}

.gfw-freq__option:has(input:focus-visible) {
	outline: 2px solid var(--gfw-text);
	outline-offset: 2px;
}

.gfw-donate .gfw-amount {
	min-height: 92px;
	justify-content: flex-start;
}

.gfw-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 20px;
	border-top: 1px solid var(--gfw-line);
}

.gfw-tribute {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px;
	border-radius: 12px;
	background: var(--gfw-panel);
}

.gfw-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.gfw-form .gfw-radio {
	width: auto;
	display: flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
}

.gfw-form .gfw-radio input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
}

.gfw-notice {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gfw-notice > .gfw-legend {
	margin-bottom: 16px;
}

.gfw-pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.gfw-total {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 16px;
}

.gfw-total__label {
	font-size: 17px;
	color: var(--gfw-muted);
}

.gfw-total__amount {
	font-family: var(--gfw-heading-font);
	font-size: 32px;
	line-height: 1.2;
	color: var(--gfw-text);
}

.gfw-secure {
	display: flex;
	gap: 8px;
	align-items: center;
}

.gfw-secure svg {
	flex-shrink: 0;
}

@container (min-width: 480px) {
	.gfw-donate .gfw-amounts__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 600px) {
	.gfw-donate {
		padding: 32px;
	}
}

/* Compact donate form (campaign sidebar): sits inside a card, so no card of its own. */

.gfw-donate.is-compact {
	gap: 16px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.gfw-donate.is-compact .gfw-amounts__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.gfw-donate.is-compact .gfw-amount {
	min-height: 52px;
	padding: 8px;
	border-radius: var(--gfw-input-radius);
	justify-content: center;
	align-items: center;
	text-align: center;
}

.gfw-donate.is-compact .gfw-amount__value {
	font-size: 17px;
}

.gfw-donate.is-compact .gfw-button {
	padding: 0 12px;
}

.gfw-donate.is-compact .gfw-section {
	padding-top: 0;
	border-top: 0;
}

/* Campaign progress ------------------------------------------------------ */

.gfw-progress {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gfw-progress__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 8px;
}

.gfw-progress__raised {
	font-family: var(--gfw-heading-font);
	font-size: 30px;
	line-height: 1.2;
	color: var(--gfw-text);
}

.gfw-progress__goal {
	color: var(--gfw-muted);
}

.gfw-progress__bar {
	height: 14px;
	overflow: hidden;
	border-radius: 7px;
	background: var(--gfw-line);
}

.gfw-progress__fill {
	display: block;
	height: 100%;
	min-width: 6px;
	border-right: 2px solid var(--gfw-selected-border);
	border-radius: 7px 0 0 7px;
	background: var(--gfw-accent);
}

.gfw-progress__fill.is-empty {
	min-width: 0;
	border-right: 0;
}

.gfw-progress__stats {
	display: grid;
	grid-template-columns: repeat(var(--gfw-stat-count, 3), minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.gfw-progress .gfw-progress__stats > .gfw-progress__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.gfw-progress__value {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.gfw-progress__label {
	font-size: 13px;
	color: var(--gfw-muted);
}

/* Cards: tax-deductible block and the "Giving card" group style ---------- */

.gfw-card,
.wp-block-group.is-style-gfw-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius);
	background: var(--gfw-surface);
	color: var(--gfw-text);
}

.wp-block-group.is-style-gfw-card > * {
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-group.is-style-gfw-card > .wp-block-separator {
	width: 100%;
	height: 1px;
	border: 0;
	background: var(--gfw-line);
	opacity: 1;
}

.gfw-card__heading,
.wp-block-group.is-style-gfw-card > h2 {
	margin: 0;
	font-family: var(--gfw-heading-font);
	font-size: 22px;
	line-height: 1.3;
	color: var(--gfw-text);
}

.gfw-nowrap {
	white-space: nowrap;
}

.gfw-card__text {
	line-height: 1.6;
	color: var(--gfw-muted);
}

/* Donor wall ------------------------------------------------------------- */

.gfw-wall {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gfw-wall__heading {
	margin: 0;
	font-family: var(--gfw-heading-font);
	font-size: 26px;
	line-height: 1.3;
	color: var(--gfw-text);
}

.gfw-wall__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gfw-wall .gfw-wall__list > .gfw-wall__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 16px 20px;
	border: 1px solid var(--gfw-line);
	border-radius: 12px;
	background: var(--gfw-surface);
}

.gfw-wall__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
}

.gfw-wall__name {
	font-weight: 700;
}

.gfw-wall__meta {
	display: flex;
	gap: 12px;
	font-size: 14px;
	color: var(--gfw-muted);
}

.gfw-wall__amount {
	font-weight: 700;
	color: var(--gfw-text);
}

.gfw-wall__comment {
	line-height: 1.6;
	color: var(--gfw-muted);
}

/* Event form ------------------------------------------------------------- */

.gfw-event {
	display: flex;
	flex-direction: column;
	color: var(--gfw-text);
	font-family: var(--gfw-body-font);
	font-size: 17px;
	line-height: 1.6;
}

.gfw-event.alignfull {
	margin-top: 0;
}

.gfw-event__band {
	padding: 28px 20px;
	background: var(--gfw-accent);
	color: var(--gfw-on-accent);
}

.gfw-event__band-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
}

.gfw-event__scan {
	display: none;
	gap: 28px;
	align-items: center;
}

.gfw-event__qr {
	flex-shrink: 0;
	padding: 12px;
	border-radius: 12px;
	background: var(--gfw-surface);
	color: var(--gfw-text);
	line-height: 0;
}

.gfw-event__qr svg {
	display: block;
	width: 174px;
	height: 174px;
}

.gfw-event__qr svg path {
	fill: currentColor;
}

.gfw-event__scan-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gfw-event__eyebrow {
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gfw-event__url {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.gfw-event__heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gfw-event .gfw-event__title {
	margin: 0;
	font-family: var(--gfw-heading-font);
	font-size: 30px;
	line-height: 1.15;
	color: inherit;
}

.gfw-event__destination {
	font-size: 17px;
}

.gfw-event__form {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 20px 32px;
}

.gfw-event__bar {
	display: none;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.gfw-event.is-kiosk .gfw-event__bar {
	display: flex;
}

.gfw-event__bar .gfw-button-secondary {
	margin-left: auto;
}

.gfw-event .gfw-event__give-here {
	display: none;
	margin: 0;
	font-family: var(--gfw-heading-font);
	font-size: 28px;
	line-height: 1.2;
	color: var(--gfw-text);
}

.gfw-event .gfw-amount {
	align-items: center;
	justify-content: center;
	min-height: 64px;
	border-width: 3px;
	border-radius: 12px;
	text-align: center;
}

.gfw-event .gfw-amount__value {
	font-size: 22px;
}

.gfw-event__people {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 16px;
}

.gfw-event__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	padding-top: 16px;
	border-top: 1px solid var(--gfw-line);
}

.gfw-event__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.gfw-event__total-label {
	color: var(--gfw-muted);
}

.gfw-event__total-amount {
	font-family: var(--gfw-heading-font);
	font-size: 28px;
	line-height: 1.2;
}

.gfw-event__submit {
	min-height: 64px;
	font-size: 20px;
}

.gfw-event__notes {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gfw-event__notes:empty {
	display: none;
}

@container (min-width: 640px) {
	.gfw-event .gfw-amounts__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

	.gfw-event .gfw-amount {
		min-height: 84px;
	}

	.gfw-event .gfw-amount__value {
		font-size: 28px;
	}

	.gfw-event__foot {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"total button"
			"notes button"
			"message message";
		align-items: center;
		gap: 4px 24px;
		padding-top: 18px;
	}

	.gfw-event__total {
		grid-area: total;
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 0;
	}

	.gfw-event__total-amount {
		font-size: 32px;
	}

	.gfw-event__total-label {
		font-size: 14px;
	}

	.gfw-event__submit {
		grid-area: button;
		width: auto;
		padding: 0 40px;
	}

	.gfw-event__notes {
		grid-area: notes;
	}

	.gfw-event__foot > .gfw-message {
		grid-area: message;
	}
}

@media (min-width: 768px) {
	.gfw-event__band {
		padding: 24px 40px;
	}

	.gfw-event__scan {
		display: flex;
	}

	.gfw-event__heading {
		max-width: 420px;
		margin-left: auto;
		text-align: right;
	}

	.gfw-event .gfw-event__title {
		font-size: 40px;
		line-height: 1.1;
	}

	.gfw-event__destination {
		font-size: 18px;
	}

	.gfw-event__bar,
	.gfw-event .gfw-event__give-here {
		display: flex;
	}

	.gfw-event__form {
		gap: 20px;
		padding: 28px 40px 32px;
	}

	.gfw-event__people {
		gap: 16px;
	}
}

/* Kiosk bar on the order-received page ----------------------------------- */

.gfw-kiosk-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 24px;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--gfw-line);
	background: var(--gfw-surface);
	font-size: 17px;
	line-height: 1.5;
}

.gfw-kiosk-bar .gfw-kiosk-bar__button {
	width: auto;
	min-width: 200px;
}

body:has(.gfw-kiosk-bar) {
	padding-bottom: 120px;
}

/* Single campaign template: small uppercase label above the title. */
.gfw-eyebrow {
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gfw-muted);
}
.gfw-campaign-summary {
	font-size: 19px;
	line-height: 1.6;
	color: var(--gfw-muted);
}
