.fb-fs-wrap {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.fb-fs-notice {
	background: #eef6f7;
	border: 1px solid #b8dedf;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.9rem;
	color: #10243d;
}

.fb-fs-card {
	background: #ffffff;
	border: 1px solid #dce4ea;
	border-radius: 12px;
	padding: 22px;
	box-shadow: 0 8px 24px rgba(16, 36, 61, 0.06);
}

.fb-fs-top-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.fb-fs-trip-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fb-fs-tab {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #dce4ea;
	background: #f4f7f8;
	color: #10243d;
	font-weight: 600;
	cursor: pointer;
}

.fb-fs-tab.is-active {
	background: #10243d;
	border-color: #10243d;
	color: #ffffff;
}

.fb-fs-meta-controls {
	display: flex;
	align-items: center;
	gap: 14px;
}

.fb-fs-corp-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fb-fs-corp-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #10243d;
	cursor: pointer;
}

.fb-fs-corp-hint {
	font-size: 0.78rem;
	color: #607084;
}

.fb-fs-journey-bar {
	background: #10243d;
	color: #ffffff;
	border-radius: 10px;
	padding: 14px 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fb-fs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.fb-fs-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fb-fs-field label {
	font-size: 0.84rem;
	font-weight: 600;
	color: #10243d;
}

.fb-fs-field select,
.fb-fs-field input,
.fb-fs-meta-controls select,
.fb-fs-filters select {
	padding: 10px 12px;
	border: 1px solid #dce4ea;
	border-radius: 8px;
	font: inherit;
	background: #ffffff;
	color: #14283e;
}

.fb-fs-multi {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fb-fs-leg-row {
	display: grid;
	grid-template-columns: 32px repeat(3, minmax(0, 1fr)) 36px;
	gap: 10px;
	align-items: end;
}

.fb-fs-leg-num {
	font-weight: 700;
	color: #007f83;
	padding-bottom: 10px;
}

.fb-fs-bottom-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-top: 16px;
}

.fb-fs-date-strip {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}

.fb-fs-date-pill {
	background: #ffffff;
	border: 1px solid #dce4ea;
	border-radius: 8px;
	padding: 10px 8px;
	text-align: center;
	cursor: pointer;
	font: inherit;
}

.fb-fs-date-pill.is-active {
	border-color: #007f83;
	background: #e6f6f5;
}

.fb-fs-date-pill strong {
	display: block;
	color: #10243d;
	font-size: 0.85rem;
}

.fb-fs-date-pill span {
	color: #007f83;
	font-weight: 700;
	font-size: 0.92rem;
}

.fb-fs-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	border: 1px solid #dce4ea;
	border-radius: 10px;
	padding: 12px 16px;
}

.fb-fs-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fb-fs-offer {
	background: #ffffff;
	border: 1px solid #dce4ea;
	border-radius: 12px;
	padding: 18px 20px;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr auto;
	gap: 16px;
	align-items: center;
}

.fb-fs-carrier {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fb-fs-badge {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	color: #ffffff;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fb-fs-price {
	font-size: 1.35rem;
	font-weight: 800;
	color: #10243d;
}

.fb-fs-jp {
	font-size: 0.84rem;
	color: #007f83;
	font-weight: 600;
}

.fb-fs-review-link {
	background: transparent;
	border: 1px solid #dce4ea;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #007f83;
	cursor: pointer;
}

.fb-fs-review-link:hover {
	border-color: #007f83;
	background: #eef6f7;
}

.fb-fs-modal {
	border: none;
	border-radius: 12px;
	padding: 0;
	max-width: 540px;
	width: 92%;
	box-shadow: 0 24px 48px rgba(16, 36, 61, 0.28);
}

.fb-fs-modal-inner {
	padding: 24px;
	position: relative;
}

.fb-fs-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
	color: #607084;
}

@media (max-width: 960px) {
	.fb-fs-grid,
	.fb-fs-offer,
	.fb-fs-leg-row {
		grid-template-columns: 1fr;
	}
	.fb-fs-date-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
