/* "Use my current location" link under the address searches (assets/js/bmma-search.js).
 * Selectors carry the element name so they beat Hello Elementor's reset.css button styles. */

button.bmma-locate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 6px 2px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}

button.bmma-locate:hover,
button.bmma-locate:focus {
	background: transparent;
	text-decoration-thickness: 2px;
}

button.bmma-locate:disabled {
	cursor: wait;
	opacity: 0.8;
}

button.bmma-locate svg {
	flex: 0 0 auto;
}

/* On the hero photo */
button.bmma-locate--hero,
button.bmma-locate--hero:hover,
button.bmma-locate--hero:focus {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Centred under the (centred) search box */
button.bmma-locate--hero {
	display: flex;
	width: fit-content;
	margin: 14px auto 0;
}

/* On the white booking panel */
button.bmma-locate--booking,
button.bmma-locate--booking:hover,
button.bmma-locate--booking:focus {
	color: #1d1c1c;
}

button.bmma-locate--booking {
	clear: both; /* below the floated address box + Search button, inside the same row */
	display: flex;
	margin: 10px 0 0;
}

/* style.css turns every ".firstDivform button" into the red "Search schools" pill — undo that for the link. */
.bookingFormMain .firstDivform button.bmma-locate,
.bookingFormMain .firstDivform button.bmma-locate:hover,
.bookingFormMain .firstDivform button.bmma-locate:focus {
	float: none;
	clear: both;
	display: flex;
	margin: 0; /* (a top margin would be swallowed by the clear) */
	padding: 12px 2px 4px;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #1d1c1c;
	font-size: 15px;
	letter-spacing: normal;
}

.bookingFormMain .firstDivform button.bmma-locate.is-error {
	color: #c8102e;
}

button.bmma-locate--booking svg {
	color: #c8102e;
}

button.bmma-locate.is-error {
	text-decoration: none;
	cursor: default;
}

button.bmma-locate--booking.is-error {
	color: #c8102e;
}
