.hfb-scs {
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	margin-top: 10px;
	padding-top: 10px;
	position: relative;
}

.hfb-scs__heading {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 7px;
}

.hfb-scs__toggle {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

.hfb-scs__package {
	border: 0;
	margin: 0;
	padding: 0;
}

.hfb-scs__rate {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	line-height: 1.35;
	margin: 0 0 7px;
}

.hfb-scs__rate input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.hfb-scs__rate span {
	display: flex;
	flex: 1 1 auto;
	justify-content: space-between;
	gap: 8px;
}

.hfb-scs__destination,
.hfb-scs__prompt,
.hfb-scs__no-rates {
	font-size: 0.88em;
	margin: 7px 0;
}

.hfb-scs__destination {
	opacity: 0.75;
}

.hfb-scs__calculator {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 10px;
}

.hfb-scs__calculator[hidden] {
	display: none;
}

.hfb-scs__field {
	display: flex;
	flex-direction: column;
	font-size: 0.88em;
	gap: 3px;
}

.hfb-scs__field--wide {
	grid-column: 1 / -1;
}

.hfb-scs__field input,
.hfb-scs__field select {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.22);
	border-radius: 3px;
	box-sizing: border-box;
	font: inherit;
	min-height: 34px;
	padding: 5px 7px;
	width: 100%;
}

.hfb-scs__submit {
	grid-column: 1 / -1;
	margin-top: 2px;
}

.hfb-scs__message {
	display: none;
	font-size: 0.88em;
	margin: 6px 0;
}

.hfb-scs__message:not(:empty) {
	display: block;
}

.hfb-scs__message--error {
	color: #b32d2e;
}

.hfb-scs--loading::after {
	background: rgba(255, 255, 255, 0.65);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 2;
}

.hfb-scs--loading::before {
	animation: hfb-scs-spin 0.7s linear infinite;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	border-top-color: currentColor;
	content: "";
	height: 18px;
	left: calc(50% - 9px);
	position: absolute;
	top: calc(50% - 9px);
	width: 18px;
	z-index: 3;
}

@keyframes hfb-scs-spin {
	to { transform: rotate(360deg); }
}
