.fcm-price-wrap {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.fcm-price-m2 {
	display: block;
	font-size: 1.3em;
	font-weight: 800;
	line-height: 1.2;
}

.fcm-price-m2 small {
	font-size: .55em;
	font-weight: 700;
}

.fcm-price-box {
	display: block;
	font-size: 13px;
	font-weight: 600;
	opacity: .78;
}

.fcm-tools {
	margin: 18px 0 16px;
	padding: 16px;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #fafafa;
}

.fcm-selection {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 14px;
}

.fcm-open-calculator.button {
	width: 100%;
	border: 2px solid #e91f2b;
	border-radius: 999px;
	background: transparent;
	color: #e91f2b;
	font-weight: 800;
	text-transform: none;
}

.fcm-open-calculator.button:hover,
.fcm-open-calculator.button:focus {
	background: #e91f2b;
	color: #fff;
}

.fcm-calculator-icon {
	margin-right: 6px;
	font-size: 18px;
}

.fcm-minimum {
	margin: 9px 0 0;
	font-size: 12px;
	opacity: .72;
}

body.fcm-modal-open {
	overflow: hidden;
}

.fcm-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.fcm-modal.is-open {
	display: flex;
}

.fcm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .56);
}

.fcm-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 540px);
	max-height: calc(100vh - 36px);
	overflow-y: auto;
	padding: 34px 32px 32px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	color: #222;
}

.fcm-dialog h2 {
	margin: 0 35px 4px;
	color: #e91f2b;
	font-size: 22px;
	font-weight: 800;
	text-align: center;
}

.fcm-subtitle {
	margin: 0 0 22px;
	color: #777;
	font-weight: 600;
	text-align: center;
}

.fcm-close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 38px;
	font-weight: 300;
	line-height: 36px;
	cursor: pointer;
}

.fcm-fields {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: end;
	gap: 12px;
}

.fcm-fields label span {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 700;
}

.fcm-fields input {
	width: 100%;
	height: 48px;
	border: 1px solid #d3d3d3;
	border-radius: 7px;
	background: #fff;
}

.fcm-calculate.button,
.fcm-select-quantity.button {
	min-height: 48px;
	border-radius: 7px;
	background: #e91f2b;
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
}

.fcm-result hr {
	margin: 24px 0;
	border: 0;
	border-top: 1px solid #e5e5e5;
}

.fcm-result h3 {
	margin: 0 0 12px;
	color: #20973d;
	font-size: 22px;
	font-weight: 800;
	text-align: center;
}

.fcm-result-copy {
	margin: 0 0 8px;
	color: #777;
	text-align: center;
}

.fcm-result-boxes {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0 0 18px;
	text-align: center;
}

.fcm-result-boxes strong {
	color: #e91f2b;
	font-size: 20px;
}

.fcm-result-boxes span {
	font-size: 14px;
}

.fcm-loss-option {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 16px 0;
	font-weight: 600;
	cursor: pointer;
}

.fcm-loss-option input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.fcm-select-quantity.button {
	width: 100%;
	background: #20973d;
}

.fcm-error {
	margin: 12px 0 0;
	color: #b71922;
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 600px) {
	.fcm-dialog {
		padding: 30px 20px 22px;
	}

	.fcm-dialog h2 {
		margin-inline: 20px;
		font-size: 19px;
	}

	.fcm-fields {
		grid-template-columns: 1fr 1fr;
	}

	.fcm-calculate.button {
		grid-column: 1 / -1;
		width: 100%;
	}

	.fcm-selection {
		gap: 5px;
	}
}

