.bbl-search {
	margin-block: 1.5rem;
	max-width: 100%;
	min-width: 0;
}

.bbl-search__form {
	align-items: end;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr) auto;
	gap: 1rem;
}

.bbl-search__route {
	align-items: end;
	display: grid;
	gap: 0.6rem;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	min-width: 0;
}

.bbl-search__field {
	min-width: 0;
}

.bbl-search__field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.bbl-search__field select,
.bbl-search__field input {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 2.75rem;
	width: 100%;
}

.bbl-search__swap,
.bbl-search__submit {
	cursor: pointer;
	min-height: 2.75rem;
	white-space: nowrap;
}

.bbl-search__swap {
	align-items: center;
	display: inline-flex;
	font-size: 1.25rem;
	justify-content: center;
	padding: 0.4rem;
	width: 2.75rem;
}

.bbl-search__swap:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.bbl-results {
	min-width: 0;
	margin-top: 1.5rem;
	scroll-margin-top: 1rem;
}

.bbl-results__journey {
	align-items: center;
	background: #f5f8ff;
	border: 1px solid #c7d7fe;
	border-inline-start: 4px solid #175cd3;
	border-radius: 0.75rem;
	display: grid;
	gap: 0.8rem 1.25rem;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 1rem 0 1.25rem;
	min-width: 0;
	padding: 1rem 1.1rem;
}

.bbl-results__journey > h4 {
	color: #344054;
	font-size: 0.9rem;
	grid-column: 1 / -1;
	margin: 0;
}

.bbl-results__journey-route {
	align-items: center;
	display: grid;
	gap: 0.85rem;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	min-width: 0;
}

.bbl-results__journey-stop {
	min-width: 0;
}

.bbl-results__journey-stop > span,
.bbl-results__journey-date > div > span {
	color: #475467;
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
}

.bbl-results__journey-stop > strong {
	color: #101828;
	display: block;
	font-size: 1.1rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.bbl-results__journey-arrow {
	color: #175cd3;
	font-size: 1.4rem;
	font-weight: 700;
}

.bbl-results__journey-date {
	align-items: center;
	background: #eaf2ff;
	border-radius: 0.6rem;
	color: #1849a9;
	display: flex;
	gap: 0.65rem;
	min-width: 10rem;
	padding: 0.65rem 0.8rem;
}

.bbl-results__journey-date svg {
	fill: none;
	flex: 0 0 1.3rem;
	height: 1.3rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 1.3rem;
}

.bbl-results__journey-date > div {
	min-width: 0;
}

.bbl-results__journey-date time {
	color: #1849a9;
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}

.bbl-results__table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.bbl-stop-accessibility {
	border-inline-start: 3px solid #667085;
	margin-block: 1rem;
	min-width: 0;
	overflow-wrap: anywhere;
	padding-inline-start: 1rem;
}

.bbl-stop-accessibility h4 {
	margin-block: 0 0.5rem;
}

.bbl-stop-accessibility dl {
	margin: 0;
}

.bbl-stop-accessibility dt {
	font-weight: 600;
}

.bbl-stop-accessibility dd {
	margin: 0 0 0.5rem;
}

.bbl-results__table {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
}

.bbl-results__table th:first-child {
	width: 52%;
}

.bbl-results__table th:nth-child(2),
.bbl-results__table th:nth-child(3) {
	width: 24%;
}

.bbl-results .bbl-results__table--with-price th:first-child {
	width: 46%;
}

.bbl-results .bbl-results__table--with-price th:nth-child(2),
.bbl-results .bbl-results__table--with-price th:nth-child(3),
.bbl-results .bbl-results__table--with-price th:nth-child(4) {
	width: 18%;
}

.bbl-results .bbl-results__table--with-price th:nth-child(4),
.bbl-results .bbl-results__table--with-price td:last-child {
	overflow-wrap: normal;
	word-break: normal;
	white-space: nowrap;
}

.bbl-results__table th,
.bbl-results__table td {
	border-bottom: 1px solid currentColor;
	overflow-wrap: anywhere;
	padding: 0.65rem;
	text-align: left;
}

.bbl-results__route-name {
	display: block;
}

.bbl-results__itinerary-row > td {
	padding-top: 0.15rem;
}

.bbl-results__cards {
	display: none;
}

.bbl-results__itinerary {
	font-weight: 400;
}

.bbl-results__itinerary > summary {
	align-items: center;
	border: 1px solid #98a2b3;
	border-radius: 999px;
	color: #175cd3;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 600;
	gap: 0.4rem;
	list-style: none;
	max-width: 100%;
	padding: 0.3rem 0.65rem;
}

.bbl-results__itinerary > summary::-webkit-details-marker {
	display: none;
}

.bbl-results__itinerary > summary:hover {
	background: #eff8ff;
}

.bbl-results__itinerary > summary:focus-visible {
	outline: 3px solid #84caff;
	outline-offset: 2px;
}

.bbl-results__itinerary-icon {
	align-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	display: inline-flex;
	flex: 0 0 1rem;
	font-size: 0.7rem;
	height: 1rem;
	justify-content: center;
	line-height: 1;
	width: 1rem;
}

.bbl-results__itinerary-list {
	border-inline-start: 2px solid #d0d5dd;
	display: grid;
	gap: 0.4rem;
	list-style: none;
	margin: 0.65rem 0 0;
	padding: 0 0 0 0.75rem;
}

.bbl-results__itinerary-list li {
	align-items: center;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: minmax(4.25rem, auto) minmax(0, 1fr) 2rem;
}

.bbl-results__itinerary-list time {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.bbl-results__stop-time--no-stop {
	color: #667085;
	font-size: 0.875rem;
}

.bbl-results__itinerary-list li > span:not(.bbl-results__stop-time--no-stop) {
	min-width: 0;
	overflow-wrap: anywhere;
}

.bbl-message {
	margin-block: 1rem;
}

.bbl-message--warning {
	background: #fff4e5;
	border-inline-start: 4px solid #b54708;
	color: #692b00;
	padding: 0.75rem 1rem;
}

.bbl-cancelled-trips h4,
.bbl-cancelled-trips h5 {
	margin-block: 0 0.5rem;
}

.bbl-cancelled-trips article + article {
	border-top: 1px solid currentColor;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
}

.bbl-cancelled-trips ul {
	margin-block: 0.5rem;
	padding-inline-start: 1.25rem;
}

.bbl-results__stop-map,
.bbl-trip-map-trigger {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid #98a2b3;
	border-radius: 50%;
	color: #175cd3;
	cursor: pointer;
	display: inline-flex;
	height: 2rem;
	justify-content: center;
	padding: 0.35rem;
	width: 2rem;
}

.bbl-results__stop-map:hover,
.bbl-trip-map-trigger:hover {
	background: #eff8ff;
}

.bbl-results__stop-map:focus-visible,
.bbl-trip-map-trigger:focus-visible,
.bbl-trip-map-dialog__close:focus-visible {
	outline: 3px solid #84caff;
	outline-offset: 2px;
}

.bbl-results__stop-map svg,
.bbl-trip-map-trigger svg {
	height: 1.15rem;
	width: 1.15rem;
}

.bbl-results__stop-map svg path,
.bbl-trip-map-trigger svg path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.bbl-trip-map__marker {
	background: #145da0;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.bbl-trip-map-dialog {
	background: #fff;
	border: 0;
	border-radius: 0.75rem;
	box-shadow: 0 1rem 3rem rgba(16, 24, 40, 0.3);
	color: #101828;
	max-height: calc(100vh - 2rem);
	max-width: min(56rem, calc(100vw - 2rem));
	padding: 1rem;
	width: calc(100% - 2rem);
}

.bbl-trip-map-dialog::backdrop {
	background: rgba(16, 24, 40, 0.65);
}

.bbl-trip-map-dialog__header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.bbl-trip-map-dialog__header h2 {
	font-size: 1.15rem;
	margin: 0;
}

.bbl-trip-map-dialog__close {
	align-items: center;
	background: #fff;
	border: 1px solid #98a2b3;
	border-radius: 50%;
	color: #344054;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 2.25rem;
	font-size: 1.4rem;
	height: 2.25rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 2.25rem;
}

.bbl-trip-map-dialog__map {
	border: 1px solid #d0d5dd;
	border-radius: 0.5rem;
	height: clamp(18rem, 65vh, 36rem);
	min-width: 0;
	position: relative;
	width: 100%;
}

.bbl-trip-map-dialog__note {
	font-size: 0.875rem;
	margin-block: 0.65rem 0;
}

.bbl-service-alerts {
	background: #fff4e5;
	border: 2px solid #b54708;
	border-left-width: 8px;
	border-radius: 0.5rem;
	color: #692b00;
	margin-block: 1rem;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 1rem 1.25rem;
}

.bbl-service-alerts h3,
.bbl-service-alert h4 {
	margin-block: 0 0.5rem;
}

.bbl-service-alert + .bbl-service-alert {
	border-top: 1px solid currentColor;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
}

@media (max-width: 800px) {
	.bbl-search__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bbl-search__route {
		grid-column: 1 / -1;
	}

	.bbl-search__submit {
		grid-column: 1 / -1;
		justify-self: start;
		min-width: 10rem;
	}
}

@media (max-width: 520px) {
	.bbl-search__form {
		gap: 0.85rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.bbl-search__route {
		grid-template-columns: minmax(0, 1fr);
	}

	.bbl-search__swap {
		justify-self: center;
	}

	.bbl-search__submit {
		justify-self: stretch;
		min-width: 0;
		width: 100%;
	}

	.bbl-results__table-wrap {
		display: none;
	}

	.bbl-results__journey {
		align-items: stretch;
		gap: 0.75rem;
		grid-template-columns: minmax(0, 1fr);
		padding: 0.9rem;
	}

	.bbl-results__journey-route {
		align-items: start;
		gap: 0.35rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.bbl-results__journey-arrow {
		display: inline-block;
		font-size: 1.2rem;
		justify-self: start;
		line-height: 1;
		margin-inline-start: 0.2rem;
		transform: rotate(90deg);
		transform-origin: left center;
	}

	.bbl-results__journey-date {
		min-width: 0;
	}

	.bbl-results__cards {
		display: grid;
		gap: 0.75rem;
	}

	.bbl-results__card {
		background: #fff;
		border: 1px solid #d0d5dd;
		border-radius: 0.6rem;
		min-width: 0;
		padding: 0.8rem;
	}

	.bbl-results__card h4 {
		font-size: 1rem;
		margin: 0 0 0.65rem;
	}

	.bbl-results__card-data {
		display: grid;
		gap: 0.7rem 0.8rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 0;
	}

	.bbl-results__card-data > div {
		display: grid;
		gap: 0.2rem;
		min-width: 0;
	}

	.bbl-results__card-data dt {
		color: #475467;
		font-size: 0.75rem;
		font-weight: 600;
	}

	.bbl-results__card-data dd {
		font-size: 1rem;
		font-variant-numeric: tabular-nums;
		font-weight: 600;
		margin: 0;
	}

	.bbl-results__card-data .bbl-results__card-fare {
		align-items: baseline;
		background: #f2f4f7;
		border-top: 1px solid #eaecf0;
		border-radius: 0.45rem;
		display: flex;
		grid-column: 1 / -1;
		justify-content: space-between;
		padding: 0.55rem 0.65rem;
	}

	.bbl-results__card .bbl-results__itinerary {
		border-top: 1px solid #eaecf0;
		margin-top: 0.7rem;
		padding-top: 0.65rem;
	}

	.bbl-results__card .bbl-results__itinerary > summary {
		border-radius: 0.45rem;
		display: flex;
		width: 100%;
	}

	.bbl-trip-map-dialog {
		padding: 0.75rem;
	}

	.bbl-trip-map-dialog__map {
		height: min(65vh, 28rem);
		min-height: 16rem;
	}
}
