.tornado-reseller-locator {
	max-width: 980px;
	margin-inline: auto;
	color: var(--neutral-dark, #171717);
}

.tornado-reseller-locator__label {
	display: block;
	margin-bottom: .6rem;
	font-size: 1.2rem;
	font-weight: 700;
}

.tornado-reseller-locator__controls {
	display: flex;
	gap: .75rem;
}

.tornado-reseller-locator__input {
	min-width: 0;
	flex: 1 1 19rem;
	padding: .85rem 1rem;
	border: 1px solid currentColor;
	border-radius: .25rem;
	background: #fff;
	color: #171717;
	font: inherit;
}

.tornado-reseller-locator__submit,
.tornado-reseller-locator__map-button,
.tornado-reseller-locator__directions,
.tornado-reseller-locator__website {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9rem;
	padding: .75rem 1rem;
	border: 1px solid currentColor;
	border-radius: .25rem;
	background: #171717;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.tornado-reseller-locator__submit:disabled {
	cursor: wait;
	opacity: .6;
}

.tornado-reseller-locator__help,
.tornado-reseller-locator__message {
	margin: .65rem 0 0;
}

.tornado-reseller-locator__help {
	font-size: .9rem;
	opacity: .8;
}

.tornado-reseller-locator__message:not(:empty) {
	margin-top: 1.25rem;
	font-weight: 700;
}

.tornado-reseller-locator__results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.tornado-reseller-locator__result {
	display: flex;
	gap: 1rem;
	padding: 1.1rem;
	border: 1px solid rgba(0, 0, 0, .18);
	border-radius: .4rem;
	background: #fff;
	color: #171717;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.tornado-reseller-locator__result.is-selected {
	border-color: #f58220;
	box-shadow: 0 0 0 2px rgba(245, 130, 32, .3);
}

.tornado-reseller-locator__result-content {
	min-width: 0;
	flex: 1;
}

.tornado-reseller-locator__distance {
	margin: 0 0 .3rem;
	color: var(--neutral-dark, #171717);
	font-size: .85rem;
	font-weight: 700;
}

.tornado-reseller-locator__company {
	margin: 0;
	font-size: 1.1rem;
}

.tornado-reseller-locator__address,
.tornado-reseller-locator__phone {
	display: block;
	margin-top: .55rem;
	font-style: normal;
}

.tornado-reseller-locator__phone {
	color: inherit;
	font-weight: 700;
}

.tornado-reseller-locator__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1rem;
}

.tornado-reseller-locator__map-button,
.tornado-reseller-locator__directions,
.tornado-reseller-locator__website {
	min-height: auto;
	padding: .55rem .7rem;
	font-size: .82rem;
}

.tornado-reseller-locator__map-button,
.tornado-reseller-locator__website {
	background: #fff;
	color: #171717;
}

.tornado-reseller-locator__image {
	width: 4.5rem;
	height: 4.5rem;
	flex: 0 0 4.5rem;
	margin-left: auto;
	object-fit: contain;
}

/* These classes are applied to the existing Frames Location Grid Alpha markup. */
.fr-world-map-alpha__marker.tornado-reseller-locator__marker--match .fr-world-map-alpha__marker-icon {
	background-color: #f58220;
	box-shadow: 0 0 0 .3rem rgba(245, 130, 32, .3);
	transform: scale(1.14);
}

.fr-world-map-alpha__marker.tornado-reseller-locator__marker--active .fr-world-map-alpha__marker-icon {
	background-color: #171717;
	box-shadow: 0 0 0 .45rem rgba(245, 130, 32, .42);
	transform: scale(1.32);
}

/* A postcode/suburb search replaces the standard Frames card list. */
html.tornado-reseller-locator--frames-hidden .fr-locations-grid-alpha .splide,
html.tornado-reseller-locator--frames-hidden .fr-locations-grid-alpha .splide__track {
	display: none !important;
}

/*
 * The Frames column is a vertically constrained flex container. When its
 * standard slider is hidden, prevent it from shrinking the three AJAX cards.
 */
html.tornado-reseller-locator--frames-hidden .fr-locations-grid__slider-wrapper,
html.tornado-reseller-locator--frames-hidden .tornado-reseller-locator,
html.tornado-reseller-locator--frames-hidden .tornado-reseller-locator__results {
	flex: 0 0 auto;
	height: auto !important;
}

/* A marker selection replaces postcode cards with the Frames card list. */
.tornado-reseller-locator.tornado-reseller-locator--marker-selected .tornado-reseller-locator__results {
	display: none;
}

@media (max-width: 600px) {
	.tornado-reseller-locator__controls {
		flex-direction: column;
	}
}
