.swift-modules-formidable-product {
	position: relative;
	width: 100%;
}

.swift-modules-formidable-product__total[hidden],
.swift-modules-formidable-product__payment-loader[hidden],
.swift-modules-formidable-product__validation[hidden] {
	display: none !important;
}

.swift-modules-formidable-product__form {
	position: relative;
}

.swift-modules-formidable-product__payment-loader {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	background: var(--sm-form-loader-background, #fff);
}

.swift-modules-formidable-product__spinner {
	display: block;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	border: 4px solid rgba(7, 29, 88, .18);
	border: 4px solid color-mix(in srgb, var(--sm-form-loader-color, #071d58) 22%, transparent);
	border-top-color: var(--sm-form-loader-color, #071d58);
	border-radius: 50%;
	animation: sm-formidable-product-spin .75s linear infinite;
}

.swift-modules-formidable-product__screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes sm-formidable-product-spin {
	to { transform: rotate(360deg); }
}

.swift-modules-formidable-product__total {
	display: flex;
	align-items: baseline;
	justify-content: var(--sm-form-total-align, left);
	gap: .55em;
	margin: 0 0 20px;
	padding: 14px 18px;
	color: var(--sm-form-total-color, #1d2327);
	background: var(--sm-form-total-background, #f6f7f7);
}

.swift-modules-formidable-product--total-below .swift-modules-formidable-product__total {
	margin-top: 20px;
	margin-bottom: 0;
}

.swift-modules-formidable-product__availability {
	display: flex;
	align-items: center;
	justify-content: var(--sm-form-capacity-align, flex-start);
	margin: 0 0 20px;
	padding: 14px 18px;
	color: var(--sm-form-capacity-color, #1d2327);
	background: var(--sm-form-capacity-background, #f6f7f7);
}

.swift-modules-formidable-product--capacity-below .swift-modules-formidable-product__availability {
	margin-top: 20px;
	margin-bottom: 0;
}

.swift-modules-formidable-product__total-label,
.swift-modules-formidable-product__total strong {
	color: inherit;
	font: inherit;
}

.swift-modules-formidable-product__total strong {
	font-weight: 700;
}

.swift-modules-formidable-product [data-sm-checkbox-option-link] {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .14em;
}

.swift-modules-formidable-product [data-sm-checkbox-option-link]:hover,
.swift-modules-formidable-product [data-sm-checkbox-option-link]:focus {
	text-decoration-thickness: 2px;
}

.swift-modules-formidable-product__notice {
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fff;
}

.swift-modules-formidable-product .sm-formidable-field-invalid input,
.swift-modules-formidable-product .sm-formidable-field-invalid select,
.swift-modules-formidable-product .sm-formidable-field-invalid textarea {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 1px #d63638 !important;
}

.swift-modules-formidable-product__validation {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	padding: 24px;
}

[data-sm-popup].sm-product-capacity-message-active > .swift-modules-popup__dialog {
	visibility: hidden;
	pointer-events: none;
}

[data-sm-popup].sm-product-capacity-message-active > .swift-modules-formidable-product__validation {
	visibility: visible;
	pointer-events: auto;
}

.swift-modules-formidable-product__validation-dialog {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	padding: 30px;
	color: var(--sm-form-validation-text, #1d2327);
	background: var(--sm-form-validation-panel, #fff);
	border-radius: 8px;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
	text-align: center;
}

.swift-modules-formidable-product__validation-message {
	margin: 8px 24px 22px;
	color: inherit;
}

.swift-modules-formidable-product__validation-message a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .14em;
}

.swift-modules-formidable-product__validation-message > :first-child {
	margin-top: 0;
}

.swift-modules-formidable-product__validation-message > :last-child {
	margin-bottom: 0;
}

.swift-modules-formidable-product__validation-button {
	min-height: 42px;
	padding: 8px 28px;
	color: var(--sm-form-validation-button-text, #fff) !important;
	background: var(--sm-form-validation-button, #071d58) !important;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.swift-modules-formidable-product__spinner {
		animation-duration: 1.5s;
	}
}
