/* Simons Simple Donations. Colours match bfcsf.org; override the variables in the theme's Additional CSS for other sites. */
.ssd-donation {
	--ssd-accent: #ffd52d;
	--ssd-accent-text: #1b3039;
	--ssd-text: #1e293b;
	--ssd-border: #cbd5e1;
	--ssd-focus: #046bd2;
	--ssd-radius: 3px;
	flex-basis: 100%;
	width: 100%;
	margin: 0 0 1.25em;
	text-align: left;
}

.ssd-fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.ssd-label {
	display: block;
	padding: 0;
	margin: 0 0 .6em;
	font-weight: 700;
	font-size: 1rem;
	color: var(--ssd-text);
}

.ssd-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.ssd-chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.ssd-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.ssd-chip span {
	display: inline-block;
	min-width: 4.75em;
	padding: .6em 1em;
	border: 2px solid var(--ssd-border);
	border-radius: var(--ssd-radius);
	background: #fff;
	color: var(--ssd-text);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: background-color .15s, border-color .15s;
}

.ssd-chip:hover span {
	border-color: var(--ssd-accent-text);
}

.ssd-chip input:checked + span {
	background: var(--ssd-accent);
	border-color: var(--ssd-accent);
	color: var(--ssd-accent-text);
}

.ssd-chip input:focus-visible + span {
	outline: 2px solid var(--ssd-focus);
	outline-offset: 2px;
}

.ssd-custom {
	margin-top: .9em;
}

.ssd-js .ssd-custom:not(.is-active) {
	display: none;
}

.ssd-custom label {
	display: block;
	margin-bottom: .3em;
	font-size: .9em;
	color: var(--ssd-text);
}

.ssd-custom-input {
	display: flex;
	align-items: center;
	max-width: 12em;
	border: 2px solid var(--ssd-border);
	border-radius: var(--ssd-radius);
	background: #fff;
}

.ssd-custom-input:focus-within {
	border-color: var(--ssd-accent-text);
}

.ssd-currency {
	padding: 0 .4em 0 .75em;
	font-weight: 700;
	color: var(--ssd-text);
}

.ssd-donation .ssd-custom-input input[type="number"] {
	width: 100%;
	margin: 0;
	padding: .55em .5em .55em 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	outline: none;
	-moz-appearance: textfield;
}

.ssd-hint {
	margin: .35em 0 0;
	font-size: .85em;
	opacity: .8;
}

.ssd-impact {
	min-height: 1.4em;
	margin: .8em 0 0;
	font-weight: 600;
	color: var(--ssd-text);
}

/* The amount buttons replace the quantity box. */
form.cart:has(.ssd-donation) .quantity,
form.cart.ssd-has-donation .quantity,
.wc-block-add-to-cart-form:has(.ssd-donation) .quantity {
	display: none !important;
}
