.hlcf {
	--hlcf-border: #d6d9df;
	--hlcf-text: #20242b;
	--hlcf-muted: #606977;
	--hlcf-surface: #ffffff;
	--hlcf-focus: #2b6f77;
	--hlcf-error: #b42318;
	--hlcf-success: #166534;
	color: var(--hlcf-text);
}

.hlcf__title {
	margin: 0 0 0.5rem;
}

.hlcf__intro {
	max-width: 62ch;
	margin: 0 0 1.25rem;
	color: var(--hlcf-muted);
}

.hlcf-form {
	display: grid;
	gap: 1.1rem;
}

.hlcf-step {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem;
}

.hlcf-step[hidden],
.hlcf-form__actions[hidden] {
	display: none;
}

.hlcf-step__title {
	grid-column: 1 / -1;
	margin: 0;
	font-size: clamp(1.15rem, 1rem + 0.4vw, 1.45rem);
}

.hlcf-step__description {
	grid-column: 1 / -1;
	margin: -0.35rem 0 0;
	color: var(--hlcf-muted);
}

.hlcf-form__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem;
}

.hlcf-field {
	display: grid;
	grid-column: span 6;
	gap: 0.35rem;
}

.hlcf-html,
.hlcf-field--full {
	grid-column: 1 / -1;
}

.hlcf-field--span-1 {
	grid-column: span 1;
}

.hlcf-field--span-2 {
	grid-column: span 2;
}

.hlcf-field--span-3 {
	grid-column: span 3;
}

.hlcf-field--span-4 {
	grid-column: span 4;
}

.hlcf-field--span-5 {
	grid-column: span 5;
}

.hlcf-field--span-6 {
	grid-column: span 6;
}

.hlcf-field--span-7 {
	grid-column: span 7;
}

.hlcf-field--span-8 {
	grid-column: span 8;
}

.hlcf-field--span-9 {
	grid-column: span 9;
}

.hlcf-field--span-10 {
	grid-column: span 10;
}

.hlcf-field--span-11 {
	grid-column: span 11;
}

.hlcf-field--span-12,
.hlcf-field--textarea,
.hlcf-field--file,
.hlcf-field--consent,
.hlcf-field--payment_total {
	grid-column: 1 / -1;
}

.hlcf-field label,
.hlcf-field legend {
	font-weight: 700;
	line-height: 1.25;
}

.hlcf-field input[type="text"],
.hlcf-field input[type="email"],
.hlcf-field input[type="tel"],
.hlcf-field input[type="url"],
.hlcf-field input[type="number"],
.hlcf-field input[type="date"],
.hlcf-field input[type="file"],
.hlcf-field select,
.hlcf-field textarea {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--hlcf-border);
	border-radius: 6px;
	background: var(--hlcf-surface);
	color: var(--hlcf-text);
	font: inherit;
	line-height: 1.4;
	padding: 0.75rem 0.85rem;
}

.hlcf-field input[readonly],
.hlcf-field textarea[readonly] {
	background: #f3f5f6;
	color: var(--hlcf-muted);
	cursor: default;
}

.hlcf-field textarea {
	resize: vertical;
}

.hlcf-field input:focus,
.hlcf-field select:focus,
.hlcf-field textarea:focus {
	border-color: var(--hlcf-focus);
	box-shadow: 0 0 0 3px rgba(43, 111, 119, 0.16);
	outline: none;
}

.hlcf-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
	margin-top: 0.35rem;
}

.hlcf-option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
	border: 1px solid var(--hlcf-border);
	border-radius: 6px;
	padding: 0.65rem 0.75rem;
	background: var(--hlcf-surface);
	cursor: pointer;
}

.hlcf-option:focus-within {
	border-color: var(--hlcf-focus);
	box-shadow: 0 0 0 3px rgba(43, 111, 119, 0.16);
}

.hlcf-option input {
	flex: 0 0 auto;
}

.hlcf-consent,
.hlcf-field--consent > label:last-child {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-weight: 400;
}

.hlcf-consent input,
.hlcf-field--consent input {
	margin-top: 0.2rem;
}

.hlcf-field__hint {
	margin: 0;
	color: var(--hlcf-muted);
	font-size: 0.92rem;
}

.hlcf-payment-total {
	display: block;
	min-height: 46px;
	border: 1px solid var(--hlcf-border);
	border-radius: 6px;
	background: #f7f8f8;
	color: var(--hlcf-text);
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.35;
	padding: 0.85rem 1rem;
}

.hlcf-payment-product {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--hlcf-border);
	border-radius: 8px;
	background: var(--hlcf-surface);
}

.hlcf-payment-product__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f7f8f8;
}

.hlcf-payment-product__media--empty {
	background: linear-gradient(145deg, #f7f8f8, #eef1f3);
}

.hlcf-payment-product__media figure,
.hlcf-payment-product__media .wp-caption {
	height: 100%;
	width: 100% !important;
	max-width: 100%;
	margin: 0;
}

.hlcf-payment-product__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hlcf-payment-product__media .wp-caption-text {
	display: none;
}

.hlcf-payment-product__body {
	display: grid;
	gap: 0.45rem;
	padding: 0.85rem;
}

.hlcf-payment-product--disabled {
	opacity: 0.68;
}

.hlcf-payment-product__status {
	margin: 0;
	color: var(--hlcf-error);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
}

.hlcf-field__error {
	margin: 0;
	color: var(--hlcf-error);
	font-size: 0.92rem;
}

.hlcf-field--error input,
.hlcf-field--error textarea,
.hlcf-field--error .hlcf-option {
	border-color: var(--hlcf-error);
}

.hlcf-message {
	border-left: 4px solid currentColor;
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	background: #f7f8f8;
}

.hlcf-message--success {
	color: var(--hlcf-success);
}

.hlcf-message--error {
	color: var(--hlcf-error);
}

.hlcf-form__actions {
	display: flex;
	justify-content: flex-start;
}

.hlcf-step__nav {
	display: flex;
	grid-column: 1 / -1;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-start;
	margin-top: 0.25rem;
}

.hlcf-button {
	min-height: 46px;
	border: 0;
	border-radius: 6px;
	background: #20242b;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	line-height: 1.1;
	padding: 0.85rem 1.25rem;
}

.hlcf-button:hover,
.hlcf-button:focus-visible {
	background: #2b6f77;
}

.hlcf-button--secondary {
	border: 1px solid var(--hlcf-border);
	background: #ffffff;
	color: var(--hlcf-text);
}

.hlcf-button--secondary:hover,
.hlcf-button--secondary:focus-visible {
	background: #eef5f6;
	color: var(--hlcf-text);
}

.hlcf-button[disabled] {
	cursor: wait;
	opacity: 0.65;
}

@media (max-width: 700px) {
	.hlcf-field,
	.hlcf-html,
	[class*="hlcf-field--span-"] {
		grid-column: 1 / -1;
	}
}

.hlcf-form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 760px) {
	.hlcf-form__grid,
	.hlcf-options {
		grid-template-columns: 1fr;
	}

	.hlcf-button {
		width: 100%;
	}
}
