.hedley-bmc {
	--hedley-bmc-ink: var(--main-color, #232323);
	--hedley-bmc-muted: var(--box, #404040);
	--hedley-bmc-border: var(--lgrey, #e5e5e5);
	--hedley-bmc-surface: var(--white, #ffffff);
	--hedley-bmc-field: var(--light, #f8f8f8);
	--hedley-bmc-accent: var(--brown, #A5846A);
	--hedley-bmc-accent-dark: #80644f;
	--hedley-bmc-shadow: var(--lightshadow, rgba(184, 184, 184, 0.2));
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 22px;
	/* max-width: 680px; */
	/* margin: 28px auto; */
	/* padding: 26px; */
	color: var(--hedley-bmc-ink);
	/* background: var(--hedley-bmc-surface); */
	/* border: 1px solid var(--hedley-bmc-border); */
	/* border-radius: var(--border, 10px); */
	/* box-shadow: var(--box-shadow, 0 5px 24px) var(--hedley-bmc-shadow); */
	font-family: inherit;
}

.hedley-bmc *,
.hedley-bmc *::before,
.hedley-bmc *::after {
	box-sizing: border-box;
}

.hedley-bmc__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	color: var(--white, #ffffff);
	background: var(--hedley-bmc-accent);
	border-radius: var(--border, 10px);
}

.hedley-bmc__icon svg {
	width: 38px;
	height: 38px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hedley-bmc h2 {
	margin: 0 0 8px;
	font-size: clamp(1.45rem, 2vw, 2rem);
	line-height: 1.15;
	letter-spacing: 0;
}

.hedley-bmc__intro,
.hedley-bmc__slogan {
	margin: 0;
	color: var(--hedley-bmc-muted);
	line-height: 1.55;
}

.hedley-bmc__slogan {
	margin-top: 8px;
	font-weight: 700;
	color: var(--hedley-bmc-accent);
}

.hedley-bmc__notice,
.hedley-bmc__error {
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: var(--border, 10px);
	line-height: 1.45;
}

.hedley-bmc__notice {
	background: rgba(165, 132, 106, 0.14);
	border: 1px solid rgba(165, 132, 106, 0.55);
}

.hedley-bmc__error {
	background: rgba(213, 120, 104, 0.14);
	border: 1px solid #d57868;
}

.hedley-bmc__form {
	display: grid;
	gap: 18px;
	margin-top: 22px;
}

.hedley-bmc__field {
	display: grid;
	gap: 9px;
}

.hedley-bmc__field label {
	font-weight: 700;
}

.hedley-bmc__quantities {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.hedley-bmc__quantity,
.hedley-bmc__submit {
	min-height: 46px;
	border-radius: var(--border, 10px);
	font: inherit;
	font-weight: var(--bold, 700);
	cursor: pointer;
	transition: background-color var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), color var(--transition, 0.25s ease), transform var(--transition, 0.25s ease);
}

.hedley-bmc__quantity {
	color: var(--hedley-bmc-ink);
	background: var(--hedley-bmc-field);
	border: 1px solid var(--hedley-bmc-border);
}

.hedley-bmc__quantity:hover,
.hedley-bmc__quantity:focus-visible,
.hedley-bmc__quantity.is-active {
	color: #ffffff;
	background: var(--hedley-bmc-accent);
	border-color: var(--hedley-bmc-accent);
}

.hedley-bmc__custom,
.hedley-bmc textarea {
	width: 100%;
	border: 1px solid var(--hedley-bmc-border);
	border-radius: var(--border, 10px);
	padding: 12px 14px;
	color: var(--hedley-bmc-ink);
	background: var(--hedley-bmc-field);
	font: inherit;
}

.hedley-bmc__custom:focus,
.hedley-bmc textarea:focus,
.hedley-bmc__submit:focus-visible {
	outline: 3px solid rgba(165, 132, 106, 0.32);
	outline-offset: 2px;
	border-color: var(--hedley-bmc-accent);
}

.hedley-bmc__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	background: rgba(165, 132, 106, 0.12);
	border-radius: var(--border, 10px);
}

.hedley-bmc__total span {
	color: var(--hedley-bmc-muted);
	font-weight: 700;
}

.hedley-bmc__total strong {
	font-size: 1.3rem;
}

.hedley-bmc__submit {
	width: 100%;
	color: #ffffff;
	background: var(--hedley-bmc-accent);
	border: 1px solid var(--hedley-bmc-accent);
}

.hedley-bmc__submit:hover,
.hedley-bmc__submit:focus-visible {
	background: var(--hedley-bmc-accent-dark);
	border-color: var(--hedley-bmc-accent-dark);
	transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
	.hedley-bmc {
		--hedley-bmc-ink: var(--light, #f8f8f8);
		--hedley-bmc-muted: var(--lgrey, #e5e5e5);
		--hedley-bmc-border: var(--box, #404040);
		--hedley-bmc-surface: var(--dark, #1c1c1c);
		--hedley-bmc-field: var(--main-color, #232323);
		--hedley-bmc-shadow: var(--blackoverlay, rgba(0, 0, 0, 0.8));
	}

	.hedley-bmc__quantity {
		color: var(--hedley-bmc-ink);
	}

	.hedley-bmc__custom,
	.hedley-bmc textarea {
		color: var(--hedley-bmc-ink);
	}

	.hedley-bmc__custom::placeholder,
	.hedley-bmc textarea::placeholder {
		color: rgba(248, 248, 248, 0.62);
	}
}

@media (max-width: 560px) {
	.hedley-bmc {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.hedley-bmc__icon {
		width: 52px;
		height: 52px;
	}

	.hedley-bmc__quantities {
		grid-template-columns: 1fr;
	}
}
