.afc-calculator {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 6px;
}

.afc-calculator__title {
	margin: 0 0 0.5rem;
}

.afc-calculator__intro {
	margin: 0 0 1rem;
}

.afc-calculator__postcode-row,
.afc-calculator__location {
	display: grid;
	grid-template-columns: minmax(90px, 140px) minmax(150px, 1fr) auto;
	gap: 0.65rem;
	align-items: center;
}

.afc-calculator__location {
	margin-top: 0.75rem;
}

.afc-calculator__calculate {
	grid-column: 1 / span 2;
	justify-self: start;
	min-width: 220px;
	white-space: nowrap;
}

.afc-calculator__postcode,
.afc-calculator__suburb {
	width: 100%;
	margin: 0;
}

.afc-calculator select,
.afc-calculator select option,
.afc-calculator__depot-toggle label {
	color: #000 !important;
}

.afc-calculator select,
.afc-calculator select option {
	background-color: #fff;
}

.afc-calculator__result {
	margin-top: 1rem;
	font-weight: 600;
}

.afc-calculator__result--error {
	color: #b42318;
}

.afc-calculator__result ul {
	margin: 0.5rem 0 0 1.25rem;
}

.afc-calculator__depot-options {
	margin-top: 0.85rem;
	font-weight: 400;
}

.afc-calculator__depot-toggle {
	display: flex;
	gap: 0.55rem;
	align-items: center;
}

.afc-calculator__depot-checkbox {
	width: auto;
	margin: 0;
}

.afc-calculator__depot-toggle label {
	margin: 0;
	cursor: pointer;
}

.afc-calculator__depot-panel {
	display: grid;
	grid-template-columns: minmax(90px, 140px) minmax(150px, 1fr);
	gap: 0.65rem;
	align-items: center;
	margin-top: 0.75rem;
}

.afc-calculator__depot-panel[hidden] {
	display: none;
}

.afc-calculator__depot-select {
	width: 100%;
	margin: 0;
}

.afc-calculator__different-state {
	position: relative;
	display: grid;
	grid-template-columns: minmax(110px, 150px) minmax(150px, 1fr);
	gap: 0.65rem;
	align-items: center;
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.afc-calculator__different-state select,
.afc-calculator__different-state input {
	width: 100%;
	margin: 0;
}

.afc-calculator__destination-suggestions,
.afc-calculator__destination-status {
	grid-column: 2;
}

.afc-calculator__destination-suggestions {
	position: relative;
	top: auto;
	margin-top: -0.45rem;
}

.afc-different-state-method {
	padding-left: 1.65rem !important;
}

.afc-different-state-method label {
	cursor: pointer;
}

#billing_city_field,
#shipping_city_field {
	position: relative;
}

.afc-location-suggestions {
	position: absolute;
	z-index: 9999;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 260px;
	overflow-y: auto;
	margin-top: 2px;
	padding: 4px;
	background: #fff;
	border: 1px solid #767676;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.afc-location-suggestion {
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 10px;
	background: #fff !important;
	border: 0;
	border-radius: 2px;
	color: #1f2937 !important;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.afc-location-suggestion:hover,
.afc-location-suggestion:focus {
	background: #dce9f8 !important;
	color: #111827 !important;
	outline: 2px solid #1f5fae;
	outline-offset: -2px;
}

.afc-location-status {
	display: block;
	clear: both;
	padding-top: 4px;
	font-size: 0.85em;
	line-height: 1.35;
}

.afc-location-status--error {
	color: #b42318;
}

@media (max-width: 640px) {
	.afc-calculator__postcode-row,
	.afc-calculator__location,
	.afc-calculator__depot-panel,
	.afc-calculator__different-state {
		grid-template-columns: 1fr;
	}

	.afc-calculator__destination-suggestions,
	.afc-calculator__destination-status {
		grid-column: 1;
	}

	.afc-calculator__calculate {
		grid-column: 1;
		min-width: min(220px, 100%);
	}
}
