/* [odf_netcash_donate] and [odf_netcash_certificate] front-end styles.
   --odfnd-brand is set per-site via an inline <style> block from
   Settings > ODF Netcash Donations > Brand colour (see
   class-odfnd-shortcode.php::brand_color_css()) — #961f21 here is
   just the fallback if that hasn't run for some reason. */

.odfnd-donate-wrap {
	--odfnd-brand: #961f21;
	max-width: 480px;
	margin: 0 auto;
	font-family: inherit;
}

.odfnd-field-group {
	margin-bottom: 1.1rem;
}

.odfnd-donate-wrap .odfnd-label {
	display: block;
	font-weight: 600;
	margin-bottom: .4rem;
}

.odfnd-donate-wrap label {
	display: block;
	font-weight: 600;
	margin-bottom: .3rem;
}

.odfnd-donate-wrap input[type="text"],
.odfnd-donate-wrap input[type="email"],
.odfnd-donate-wrap input[type="tel"],
.odfnd-donate-wrap input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	padding: .6rem .7rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
}

.odfnd-amount-presets {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: .5rem;
}

.odfnd-amount-btn {
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 6px;
	padding: .6rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.odfnd-amount-btn:hover {
	border-color: var( --odfnd-brand );
}

.odfnd-amount-selected {
	border-color: var( --odfnd-brand );
	background: var( --odfnd-brand );
	color: #fff;
}

.odfnd-amount-btn-other {
	font-weight: 500;
}

.odfnd-radio,
.odfnd-checkbox {
	display: flex !important;
	align-items: center;
	gap: .5rem;
	font-weight: 400 !important;
	margin-bottom: .35rem;
}

.odfnd-radio input,
.odfnd-checkbox input {
	width: auto;
}

.odfnd-errors {
	display: none;
	background: #fdecec;
	border: 1px solid #e6a3a3;
	color: #8a1f1f;
	border-radius: 5px;
	padding: .7rem .9rem;
	margin-bottom: 1rem;
}

.odfnd-errors ul {
	margin: 0;
	padding-left: 1.2rem;
}

.odfnd-submit {
	width: 100%;
	background: var( --odfnd-brand );
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: .85rem 1rem;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
}

.odfnd-submit:disabled {
	opacity: .6;
	cursor: default;
}

.odfnd-secure-note {
	text-align: center;
	color: #777;
	font-size: .85rem;
	margin-top: .7rem;
}

/* ---- Certificate ---------------------------------------------------- */

.odfnd-certificate-wrap {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.odfnd-cert-printable {
	border: 3px solid var( --odfnd-brand );
	border-radius: 10px;
	padding: 2.5rem 2rem;
	background: #fffdf9;
	margin-bottom: 1.5rem;
}

.odfnd-cert-printable h1 {
	color: var( --odfnd-brand );
	margin-bottom: .2rem;
}

.odfnd-cert-subtitle {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .85rem;
	color: #777;
	margin-bottom: 1.5rem;
}

.odfnd-cert-donor {
	font-size: 1.6rem;
	font-weight: 700;
	margin: .3rem 0 1rem;
}

.odfnd-cert-line {
	margin: .3rem 0;
}

.odfnd-cert-ref {
	margin-top: 1.2rem;
	font-size: .85rem;
	color: #777;
}

.odfnd-cert-reg {
	font-size: .8rem;
	color: #999;
}

.odfnd-btn {
	display: inline-block;
	background: var( --odfnd-brand );
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: .75rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

#odfnd-cert-error {
	background: #fdecec;
	border: 1px solid #e6a3a3;
	color: #8a1f1f;
	border-radius: 5px;
	padding: .9rem 1rem;
}
