/*--------------------------------------------------------------
Ultimate Aviation - Flight Scheduler (plugin styles)

Everything is scoped to .bfp-page / .bfp-dialog so nothing here can
leak into the rest of the theme. Colours reuse the theme's custom
properties where they exist (--ua-bg, --ua-red, --ua-gutter, ...) and
fall back to the values sampled from the design files.

# Tokens
# Page shell + headings
# Buttons
# Flight board - filters, desktop table, status chips
# Flight board - mobile list
# Flight details - layout, accordion, airport block
# Email alert panel + form
# Dialogs (airport info / terms / closest airport)
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/

.bfp-page,
.bfp-dialog {
	--bfp-bg: var(--ua-bg, #202329);
	--bfp-panel: #373941;
	--bfp-row-alt: #272a31;
	--bfp-row-mobile: #2f333b;
	--bfp-time-block: #444955;
	--bfp-soft: #70737b;
	--bfp-line: #3c3f45;
	--bfp-line-strong: #616367;
	--bfp-text: #fff;
	--bfp-text-2: #d9d9d9;
	--bfp-muted: #a8a9ab;
	--bfp-arrived: #40944c;
	--bfp-on-time: #b7b4b3;
	--bfp-departed: #1abc9c;
	--bfp-cancelled: #c95858;
	--bfp-delayed: #d99a2b;
	--bfp-ink: #20242a;
	--bfp-ease: var(--ua-transition, 320ms cubic-bezier(.2, .7, .2, 1));
}

/*--------------------------------------------------------------
# Page shell + headings
--------------------------------------------------------------*/

.bfp-page {
	padding: clamp(150px, 15vw, 214px) 0 clamp(64px, 7vw, 100px);
	background: var(--bfp-bg);
	color: var(--bfp-text);
	min-height: 60vh;
}

.bfp-page [hidden],
.bfp-dialog [hidden] {
	display: none !important;
}

.bfp-eyebrow {
	margin: 0 0 18px;
	color: var(--bfp-text-2);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .28em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bfp-eyebrow--muted {
	color: var(--bfp-soft);
	font-size: 15px;
	letter-spacing: .2em;
}

.bfp-title {
	margin: 0;
	color: var(--bfp-text);
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.bfp-title--route {
	font-size: clamp(32px, 3.6vw, 46px);
	letter-spacing: -.01em;
}

.bfp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bfp-page a:focus-visible,
.bfp-page button:focus-visible,
.bfp-page input:focus-visible,
.bfp-page select:focus-visible,
.bfp-dialog a:focus-visible,
.bfp-dialog button:focus-visible,
.bfp-dialog input:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* News flash (custom post type) */
.bfp-alert {
	margin: 0 0 40px;
	padding: 20px 26px;
	background: var(--bfp-panel);
	border-left: 3px solid var(--ua-red, #d8212a);
}

.bfp-alert h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 500;
}

.bfp-alert p {
	margin: 0 0 8px;
	font-size: 15px;
	color: var(--bfp-text-2);
}

.bfp-alert > :last-child {
	margin-bottom: 0;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/

.bfp-page a:visited {
  color: inherit;
}

.bfp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 12px 22px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 0;
	background: transparent;
	color: var(--bfp-text);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .2em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--bfp-ease), color var(--bfp-ease), border-color var(--bfp-ease);
}

.bfp-btn:hover,
.bfp-btn:focus-visible {
	background: var(--bfp-text);
	border-color: var(--bfp-text);
	color: #17191c;
}

.bfp-btn--light {
	background: var(--bfp-text);
	border-color: var(--bfp-text);
	color: #17191c;
}

.bfp-btn--light:hover,
.bfp-btn--light:focus-visible {
	background: transparent;
	color: var(--bfp-text);
}

.bfp-btn--small {
	min-height: 40px;
	padding: 10px 22px;
	font-size: 12px;
}

.bfp-btn[disabled] {
	opacity: .5;
	cursor: wait;
}

/* "Subscribe" button used in the board */
.bfp-btn--sub {
	min-width: 112px;
	min-height: 30px;
	padding: 0 14px;
	justify-content: space-between;
	border-color: var(--bfp-line-strong);
	color: var(--bfp-text-2);
	font-size: 11px;
	gap: 14px;
}

.bfp-btn--sub .bfp-icon-arrow {
	flex: 0 0 auto;
}

.bfp-btn--sub.is-disabled {
	border-color: var(--bfp-line);
	color: #585a5f;
	cursor: not-allowed;
	pointer-events: none;
}

/*--------------------------------------------------------------
# Flight board - filters, desktop table, status chips
--------------------------------------------------------------*/

.bfp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: clamp(44px, 5.5vw, 76px);
}

.bfp-head__title {
	flex: 1 1 auto;
	min-width: 0;
}

.bfp-filters {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
}

.bfp-filter {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 248px;
	min-height: 52px;
	padding: 0 20px;
	font-size: 15px;
}

.bfp-filter__label {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.bfp-filter select,
.bfp-filter input {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	border: 0;
	background: transparent;
	font-size: 15px;
	cursor: pointer;
}

/* Airport select (outlined) */
.bfp-filter--airport {
	border: 1px solid rgba(255, 255, 255, .65);
	color: var(--bfp-text);
}

.bfp-filter--airport select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0 26px 0 0;
	color: var(--bfp-text-2);
	text-align: right;
	text-align-last: right;
	text-overflow: ellipsis;
}

.bfp-filter--airport select option {
	background: #fff;
	color: var(--bfp-ink);
}

.bfp-filter--airport::after {
	content: "";
	position: absolute;
	top: calc(50% - 7px);
	right: 22px;
	width: 9px;
	height: 9px;
	border-right: 1.5px solid #fff;
	border-bottom: 1.5px solid #fff;
	transform: rotate(45deg);
	pointer-events: none;
}

/* Date (soft grey block) */
.bfp-filter--date {
	background: var(--bfp-soft);
	color: var(--bfp-ink);
}

.bfp-filter--date input {
	color: var(--bfp-ink);
	color-scheme: light;
	text-align: right;
	font-family: inherit;
}

.bfp-notice-empty {
	padding: 48px 0;
	color: var(--bfp-text-2);
	font-size: 18px;
}

.bfp-notice-empty:empty {
	display: none;
}

/* Desktop table */
.bfp-table-wrap {
	width: 100%;
}

.bfp-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: auto;
}

.bfp-table thead th {
	padding: 0 12px 18px;
	border-bottom: 1px solid var(--bfp-line);
	color: var(--bfp-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.3;
	text-align: left;
	text-transform: uppercase;
	vertical-align: bottom;
}

.bfp-table td {
	height: 52px;
	padding: 10px 12px;
	border: 0;
	color: var(--bfp-text);
	font-size: 14px;
	line-height: 1.35;
	vertical-align: middle;
}

.bfp-table th:first-child,
.bfp-table td:first-child {
	padding-left: 0;
}

.bfp-table th:last-child,
.bfp-table td:last-child {
	padding-right: 0;
}

.bfp-table tbody tr:nth-child(even) {
	background: var(--bfp-row-alt);
}

.bfp-col-number {
	width: 9%;
	white-space: nowrap;
}

.bfp-col-customer {
	width: 12%;
}

.bfp-col-dep,
.bfp-col-arr {
	width: 10%;
}

.bfp-col-route {
	width: 23%;
}

.bfp-col-status {
	width: 11%;
}

.bfp-col-notes {
	width: 11%;
}

.bfp-col-subscribe {
	width: 13%;
}

.bfp-flightno {
	font-weight: 700;
	color: var(--bfp-text);
	text-decoration: none;
}

a.bfp-flightno:hover,
a.bfp-flightno:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Status pill + time chip (shared colours) */
.bfp-status,
.bfp-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 29px;
	padding: 0 12px;
	color: var(--bfp-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.bfp-status {
	min-width: 104px;
}

.bfp-chip {
	min-width: 66px;
}

.bfp-status--arrived,
.bfp-chip--arrived {
	background: var(--bfp-arrived);
}

.bfp-status--departed,
.bfp-chip--departed {
	background: var(--bfp-departed);
}

.bfp-status--on-time,
.bfp-chip--on-time {
	background: var(--bfp-on-time);
	color: var(--bfp-ink); /* white on this grey fails contrast */
}

.bfp-status--delayed,
.bfp-chip--delayed {
	background: var(--bfp-delayed);
	color: var(--bfp-ink);
}

.bfp-status--cancelled {
	background: var(--bfp-cancelled);
}

.bfp-time--plain {
	font-weight: 700;
}

.bfp-disclaimer {
	margin: 46px 0 0;
	font-size: 13px;
	font-style: italic;
	line-height: 1.6;
}

.bfp-disclaimer strong {
	display: block;
	margin-top: 12px;
	font-weight: 700;
}

.bfp-updated {
	margin: 22px 0 0;
	color: var(--bfp-muted);
	font-size: 12px;
	letter-spacing: .04em;
	text-align: right;
}

/*--------------------------------------------------------------
# Flight board - mobile list
--------------------------------------------------------------*/

.bfp-list {
	display: none;
}

.bfp-list__heading {
	margin: 0 0 22px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
}

.bfp-flight {
	margin: 0 0 8px;
}

.bfp-flight__summary {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) 112px;
	align-items: stretch;
	width: 100%;
	min-height: 62px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--bfp-row-mobile);
	color: var(--bfp-text);
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}

.bfp-flight__time {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bfp-time-block);
	font-size: 16px;
	font-weight: 700;
}

.bfp-flight__route {
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 0 14px 0 28px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bfp-flight__summary .bfp-status {
	align-self: stretch;
	height: auto;
	min-width: 0;
	font-size: 15px;
}

.bfp-flight__details {
	padding: 34px clamp(24px, 10vw, 84px) 38px;
	background: var(--bfp-panel);
	border-top: 1px solid var(--bfp-line-strong);
}

.bfp-flight__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0 0 32px;
}

.bfp-flight__field dt {
	margin: 0 0 10px;
	color: var(--bfp-text-2);
	font-size: 15px;
	font-weight: 700;
}

.bfp-flight__field dd {
	margin: 0;
	color: var(--bfp-text-2);
	font-size: 15px;
	overflow-wrap: anywhere;
}

.bfp-flight__subscribe {
	min-height: 34px;
}

/*--------------------------------------------------------------
# Flight details - layout, accordion, airport block
--------------------------------------------------------------*/

.bfp-details__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(40px, 5vw, 64px);
	align-items: start;
}

.bfp-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(28px, 3.5vw, 42px);
	color: var(--bfp-text);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .2em;
	text-decoration: none;
	text-transform: uppercase;
}

.bfp-back span {
	transition: transform var(--bfp-ease);
}

.bfp-back:hover span,
.bfp-back:focus-visible span {
	transform: translateX(-4px);
}

.bfp-acc {
	margin-top: clamp(24px, 3vw, 34px);
}

.bfp-acc__item {
	border-bottom: 1px solid var(--bfp-line-strong);
}

.bfp-acc__trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 22px 36px 22px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #a1a2a4;
	font-size: clamp(22px, 2vw, 26px);
	font-weight: 300;
	line-height: 1.15;
	text-align: left;
	cursor: pointer;
	transition: color var(--bfp-ease);
}

.bfp-acc__item.is-open .bfp-acc__trigger,
.bfp-acc__trigger:hover {
	color: var(--bfp-text-2);
}

.bfp-acc__chevron {
	position: absolute;
	top: 50%;
	right: 0;
	width: 14px;
	height: 14px;
	margin-top: -7px;
}

.bfp-acc__chevron::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 2px;
	width: 10px;
	height: 10px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--bfp-ease), top var(--bfp-ease);
}

.bfp-acc__item.is-open .bfp-acc__chevron::before {
	top: 5px;
	transform: rotate(-135deg);
}

.bfp-acc__panel {
	padding: 0 0 30px;
}

.bfp-facts {
	margin: 0 0 28px;
	padding-left: 18px;
	font-size: 15px;
	line-height: 1.85;
}

.bfp-facts strong {
	font-weight: 700;
}

.bfp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bfp-inline-form {
	margin: 0;
}

/* Airport information block */
.bfp-airport__name {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.bfp-airport__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.bfp-airport__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 79px;
	height: 65px;
	padding: 0 10px;
	background: var(--bfp-panel);
	font-size: 16px;
	font-weight: 700;
}

.bfp-airport__tile img {
	display: block;
	width: 44px;
	height: auto;
}

.bfp-airport__more {
	margin: 0;
	color: var(--bfp-muted);
	font-size: 14px;
}

/*--------------------------------------------------------------
# Email alert panel + form
--------------------------------------------------------------*/

.bfp-panel {
	padding: clamp(28px, 4.4vw, 56px);
	background: var(--bfp-panel);
}

.bfp-panel__title {
	margin: 0 0 22px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
}

.bfp-panel p {
	margin: 0;
	color: var(--bfp-text-2);
	font-size: 16px;
}

.bfp-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.bfp-radio {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
}

.bfp-radio input {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	flex: 0 0 20px;
	place-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1.5px solid #8c8e94;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.bfp-radio input::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--bfp-text);
	transform: scale(0);
	transition: transform 160ms ease;
}

.bfp-radio input:checked {
	border-color: var(--bfp-text);
}

.bfp-radio input:checked::before {
	transform: scale(1);
}

.bfp-field {
	margin-top: 26px;
}

.bfp-field label {
	display: block;
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 500;
}

.bfp-field input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1px solid var(--bfp-text);
	border-radius: 0;
	background: transparent;
	color: var(--bfp-text);
	font-size: 16px;
	box-shadow: none;
}

.bfp-field input.is-invalid {
	border-color: var(--bfp-cancelled);
}

.bfp-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 24px 0;
	color: var(--bfp-muted);
	font-size: 13px;
	line-height: 1.5;
}

.bfp-consent input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #fff;
}

.bfp-consent a,
.bfp-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.bfp-consent a:hover,
.bfp-link:hover {
	color: var(--bfp-text);
}

.bfp-message {
	margin: 0 0 22px;
	padding: 16px 18px;
	font-size: 15px;
	line-height: 1.5;
}

.bfp-message--success {
	background: rgba(64, 148, 76, .2);
	border-left: 3px solid var(--bfp-arrived);
}

.bfp-message--error {
	background: rgba(201, 88, 88, .2);
	border-left: 3px solid var(--bfp-cancelled);
}

.bfp-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/*--------------------------------------------------------------
# Dialogs
--------------------------------------------------------------*/

.bfp-dialog {
	width: min(1180px, calc(100% - (var(--ua-gutter, 24px) * 2)));
	max-width: none;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	background: var(--bfp-soft);
	color: var(--bfp-text);
	overflow: auto;
	font-family: inherit;
}

.bfp-dialog::backdrop {
	background: rgba(17, 19, 21, .78);
}

.bfp-dialog--narrow {
	width: min(640px, calc(100% - 32px));
	background: var(--bfp-panel);
}

.bfp-dialog__inner {
	position: relative;
	padding: clamp(60px, 6vw, 80px) clamp(24px, 8vw, 91px) clamp(32px, 4vw, 52px);
}

.bfp-dialog--narrow .bfp-dialog__inner {
	padding: clamp(56px, 6vw, 64px) clamp(24px, 5vw, 48px) clamp(28px, 4vw, 40px);
}

.bfp-dialog__close {
	position: absolute;
	top: 28px;
	right: 30px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--bfp-text-2);
	border-radius: 50%;
	background: transparent;
	color: var(--bfp-text-2);
	cursor: pointer;
	transition: background-color var(--bfp-ease), color var(--bfp-ease);
}

.bfp-dialog__close::before,
.bfp-dialog__close::after {
	content: "";
	position: absolute;
	top: 16px;
	left: 9px;
	width: 14px;
	height: 1.5px;
	background: currentColor;
	transform: rotate(45deg);
}

.bfp-dialog__close::after {
	transform: rotate(-45deg);
}

.bfp-dialog__close:hover,
.bfp-dialog__close:focus-visible {
	background: var(--bfp-text);
	color: var(--bfp-panel);
}

.bfp-dialog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px 40px;
	margin-bottom: clamp(36px, 4.5vw, 54px);
}

.bfp-dialog__eyebrow {
	margin: 0 0 14px;
	color: #b9babc;
	font-size: 14px;
	letter-spacing: .28em;
	text-transform: uppercase;
}

.bfp-dialog__title {
	max-width: 480px;
	margin: 0;
	color: var(--bfp-text);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 500;
	line-height: 1.15;
}

.bfp-dialog__body {
	color: var(--bfp-text-2);
	font-size: 15px;
	line-height: 1.6;
}

.bfp-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* Directions */
.bfp-directions__label {
	margin: 0 0 12px;
	color: var(--bfp-text-2);
	font-size: 17px;
	font-weight: 500;
}

.bfp-directions__row {
	display: flex;
	gap: 16px;
}

.bfp-directions input {
	width: 190px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--bfp-text);
	border-radius: 0;
	background: transparent;
	color: var(--bfp-text);
	font-size: 15px;
}

.bfp-directions input::placeholder {
	color: #b9babc;
	opacity: 1;
}

.bfp-directions .bfp-btn {
	min-height: 44px;
	padding: 0 24px;
}

/* 5 day forecast */
.bfp-forecast {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0 0 clamp(36px, 4.5vw, 56px);
	padding: 0;
	list-style: none;
}

.bfp-forecast__day {
	padding: 4px clamp(10px, 1.8vw, 26px) 10px;
	border-left: 2px solid #b9babc;
	text-align: center;
}

.bfp-forecast__day:first-child {
	border-left: 0;
}

.bfp-forecast__name {
	margin: 0 0 18px;
	font-size: 17px;
	font-weight: 500;
}

.bfp-forecast__icon {
	display: block;
	width: 76px;
	height: 76px;
	margin: 0 auto 26px;
	object-fit: contain;
}

.bfp-forecast__stat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}

.bfp-forecast__stat img {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.bfp-forecast__none {
	margin: 0 0 40px;
	font-size: 16px;
}

.bfp-dialog__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 28px;
}

.bfp-dialog__foot p {
	margin: 0;
	font-size: 13px;
}

.bfp-dialog__foot .bfp-actions {
	gap: 16px;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 900px) {
	.bfp-table-wrap {
		display: none;
	}

	.bfp-list {
		display: block;
	}

	.bfp-head {
		align-items: stretch;
		flex-direction: column;
		gap: 28px;
	}

	.bfp-head__title {
		flex: 0 0 auto;
	}

	.bfp-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.bfp-filter {
		min-width: 0;
		gap: 12px;
		padding: 0 16px;
	}

	.bfp-disclaimer {
		margin-top: 36px;
	}

	.bfp-details__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}
}

@media (max-width: 700px) {
	.bfp-dialog__close {
		top: 18px;
		right: 18px;
	}

	.bfp-dialog__inner {
		padding-top: 64px;
	}

	.bfp-directions {
		width: 100%;
	}

	.bfp-directions input {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	/* forecast becomes a swipeable strip */
	.bfp-forecast {
		grid-auto-flow: column;
		grid-auto-columns: minmax(150px, 1fr);
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.bfp-forecast__day {
		scroll-snap-align: start;
	}
}

@media (max-width: 520px) {
	.bfp-filters {
		grid-template-columns: minmax(0, 1fr);
	}

	.bfp-flight__summary {
		grid-template-columns: 76px minmax(0, 1fr) 96px;
	}

	.bfp-flight__route {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		align-self: center;
		min-width: 0;
		padding: 0 14px 0 28px;
		overflow: hidden;
		white-space: normal;
	}

	.bfp-flight__grid {
		gap: 26px 16px;
	}

	.bfp-airport__row {
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfp-page *,
	.bfp-dialog * {
		transition: none !important;
	}
}

/*--------------------------------------------------------------
# Additions
--------------------------------------------------------------*/

.bfp-acc__heading {
	margin: 0;
	font: inherit;
}

.bfp-dialog--narrow .bfp-dialog__title {
	font-size: clamp(24px, 3vw, 30px);
	margin-bottom: 20px;
}

.bfp-dialog--narrow .bfp-dialog__body p {
	margin: 0 0 14px;
}

html.bfp-lock {
	overflow: hidden;
}
