/*
 * Fonts come from the active theme. Divi does not style plain inputs or
 * buttons outside its own modules, so field and button styling is matched
 * to the site's existing forms and buttons via the variables below.
 */
.fpd-wp-form {
	--fpd-accent: #ce0d32;
	--fpd-accent-dark: #a50a28;
	--fpd-border: #c9cccf;
	--fpd-radius: 8px;
	max-width: 32rem;
}

.fpd-wp-form p.fpd-wp-field,
.fpd-wp-form p.fpd-wp-submit {
	padding-bottom: 0;
}

.fpd-wp-field {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	margin: 0 0 1.25em;
}

/* A field hidden by the payment-type choice must actually hide, overriding
   the flex display above (the bare [hidden] UA rule loses to the class). */
.fpd-wp-field[hidden] {
	display: none;
}

.fpd-wp-field label {
	font-weight: 600;
}

.fpd-wp-form .fpd-wp-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75em 0.9em;
	font-size: 16px;
	line-height: 1.4;
	color: inherit;
	background: #fff;
	border: 1px solid var(--fpd-border);
	border-radius: var(--fpd-radius);
}

.fpd-wp-form .fpd-wp-field input:focus {
	border-color: currentColor;
	outline: 2px solid var(--fpd-accent);
	outline-offset: 1px;
}

.fpd-wp-form .fpd-wp-submit button {
	padding: 0.6em 1.5em;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: var(--fpd-accent);
	border: 0;
	border-radius: var(--fpd-radius);
	cursor: pointer;
}

.fpd-wp-form .fpd-wp-submit button:hover,
.fpd-wp-form .fpd-wp-submit button:focus-visible {
	background: var(--fpd-accent-dark);
}

.fpd-wp-form .fpd-wp-submit button:focus-visible {
	outline: 2px solid var(--fpd-accent);
	outline-offset: 2px;
}

.fpd-wp-form .fpd-wp-submit button[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.fpd-wp-help {
	opacity: 0.8;
}

.fpd-wp-error:empty {
	display: none;
}

.fpd-wp-error,
.fpd-wp-field--error label {
	color: #b00020;
}

.fpd-wp-form .fpd-wp-field--error input {
	border-color: #b00020;
	outline-color: #b00020;
}

.fpd-wp-notice {
	max-width: 32rem;
	margin: 0 0 1.5em;
	padding: 0.85em 1em;
	border-left: 4px solid currentColor;
	background: rgba(0, 0, 0, 0.04);
}

.fpd-wp-notice p {
	margin: 0;
}

.fpd-wp-notice--error {
	border-left-color: #b00020;
}

.fpd-wp-notice--success {
	border-left-color: #1b7f3b;
}

.fpd-wp-receipt {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4em 1.5em;
	max-width: 32rem;
	margin: 0 0 1em;
}

.fpd-wp-receipt dt {
	font-weight: 600;
}

.fpd-wp-receipt dd {
	margin: 0;
	word-break: break-all;
}

/* Honeypot: off screen, not display:none, so simple bots still fill it. */
.fpd-wp-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.fpd-wp-receipt {
		grid-template-columns: 1fr;
		gap: 0.15em;
	}
	.fpd-wp-receipt dd {
		margin-bottom: 0.6em;
	}
}

/* Payment type radio group */
.fpd-wp-ptype {
	border: 0;
	padding: 0;
	margin: 0 0 1.25em;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.fpd-wp-ptype legend {
	font-weight: 600;
	padding: 0;
	margin-bottom: 0.15em;
}

.fpd-wp-radio {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 400;
	margin: 0;
}

.fpd-wp-radio input {
	width: auto;
	margin: 0;
}