/**
 * SecureTrio Forms Plus, forms built in the builder.
 *
 * Kept deliberately light so a form inherits its theme's type and colours.
 * Every field sits in a .stf-field wrapper with a type class, so any part
 * can be restyled from Appearance, Customize, Additional CSS.
 */

.stf-form-wrap {
	margin: 1em 0;
}

.stf-form-title {
	margin-bottom: 0.5em;
}

.stf-form-intro {
	margin-bottom: 1em;
}

.stf-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1em;
}

.stf-field {
	flex: 1 1 100%;
	min-width: 0;
	margin-bottom: 0.25em;
}

.stf-field[hidden] {
	display: none;
}

.stf-width--half {
	flex-basis: calc(50% - 0.5em);
}

.stf-width--third {
	flex-basis: calc(33.333% - 0.667em);
}

.stf-width--two-thirds {
	flex-basis: calc(66.666% - 0.334em);
}

@media (max-width: 600px) {

	.stf-width--half,
	.stf-width--third,
	.stf-width--two-thirds {
		flex-basis: 100%;
	}
}

.stf-builder-form select {
	width: 100%;
	padding: 0.5em;
	margin-bottom: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: inherit;
}

.stf-builder-form input[type="file"] {
	display: block;
	margin-bottom: 0.5em;
}

.stf-builder-form .stf-choices {
	margin: 0 0 1em;
	padding: 0;
	border: 0;
}

.stf-builder-form .stf-choices legend {
	margin-bottom: 0.4em;
	padding: 0;
	font-weight: 600;
}

.stf-builder-form label.stf-choice {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 400;
}

.stf-layout--inline label.stf-choice {
	display: inline-block;
	margin-right: 1.25em;
}

.stf-builder-form .stf-choice input {
	margin-right: 0.35em;
}

.stf-consent-title {
	margin-bottom: 0.35em;
	font-weight: 600;
}

.stf-builder-form label.stf-consent {
	margin-bottom: 1em;
}

.stf-agreement {
	max-height: 18em;
	margin-bottom: 0.75em;
	padding: 0.75em 1em;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.stf-other {
	margin: -0.5em 0 1em;
}

.stf-other[hidden],
.stf-qty[hidden] {
	display: none;
}

.stf-text-block {
	margin-bottom: 1em;
}

.stf-divider {
	margin: 1em 0 1.5em;
	border: 0;
	border-top: 1px solid #ddd;
}

.stf-heading {
	margin: 1em 0 0.5em;
}

.stf-help {
	margin: -0.6em 0 1em;
	font-size: 0.875em;
	opacity: 0.85;
}

.stf-choices + .stf-help,
.stf-consent + .stf-help {
	margin-top: 0;
}

.stf-builder-form .stf-submit-button + .stf-help {
	margin-top: 0.75em;
}

.stf-builder-form input[type="file"] + .stf-help {
	margin-top: 0.25em;
}

.stf-field-error {
	margin: -0.6em 0 1em;
	color: #b32d2e;
	font-size: 0.875em;
	font-weight: 600;
}

.stf-builder-form .stf-field--has-error input,
.stf-builder-form .stf-field--has-error textarea,
.stf-builder-form .stf-field--has-error select {
	border-color: #b32d2e;
}

.stf-form-error-summary {
	border-left-color: #b32d2e;
}

.stf-form-stop {
	margin: 0.5em 0 1em;
	padding: 0.6em 0.8em;
	border-left: 3px solid #b32d2e;
}

.stf-form-stop[hidden] {
	display: none;
}

.stf-priced-option {
	margin-bottom: 0.5em;
}

.stf-option-price {
	margin-left: 0.25em;
	font-weight: 600;
}

.stf-option-note {
	display: block;
	margin: 0 0 0.25em 1.6em;
	font-size: 0.875em;
	opacity: 0.85;
}

.stf-builder-form label.stf-qty {
	display: inline-flex;
	gap: 0.5em;
	align-items: center;
	margin: 0 0 0.5em 1.6em;
	font-weight: 400;
}

.stf-builder-form .stf-qty input[type="number"] {
	width: 5em;
	margin: 0;
}

.stf-included {
	margin: 0 0 1em 1.25em;
}

.stf-total {
	display: flex;
	justify-content: space-between;
	margin: 0.5em 0 1em;
	padding: 0.6em 0.8em;
	border-top: 2px solid #ddd;
	font-size: 1.1em;
}

.stf-total-amount {
	font-weight: 700;
}

.stf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.stf-receipt-message p:last-child {
	margin-bottom: 0;
}
