/**
 * Oferta lotu w treści — układ ~2/3 (trasa) + ~1/3 (typ, cena, CTA), kolory jak sidebar CTA.
 */

.skytravi-flight-offer {
	margin: 1.5rem 0;
	clear: both;
}

.skytravi-flight-offer--placeholder {
	background: #f5f5f5;
	border: 1px dashed #ccc;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	color: #333;
}

.skytravi-flight-offer .sfo-inner {
	position: relative;
	background: linear-gradient(135deg, #0a3152 0%, #1b2d4b 100%);
	color: #fff;
	border-radius: 8px;
	padding: 14px 16px 14px 18px;
	box-shadow: 0 3px 14px rgba(10, 49, 82, 0.16);
}

.skytravi-flight-offer .sfo-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(132px, 1fr);
	gap: 12px 18px;
	align-items: center;
}

.skytravi-flight-offer .sfo-main {
	position: relative;
	min-width: 0;
	text-align: left;
}

/* Ikona poza przepływem — nie przesuwa wiersza z trasą w dół */
.skytravi-flight-offer .sfo-main-head {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	line-height: 1;
	text-align: center;
	pointer-events: none;
	z-index: 1;
}

.skytravi-flight-offer .sfo-plane-icon {
	font-size: 20px;
	color: #f2676b;
	display: block;
	margin: 0 auto;
}

.skytravi-flight-offer .sfo-route {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 12px;
	text-align: center;
	padding-left: 34px; /* kolumna na ikonę — tylko w poziomie */
	box-sizing: border-box;
}

.skytravi-flight-offer .sfo-endpoint {
	flex: 0 1 34%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.skytravi-flight-offer .sfo-kicker {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.75;
	font-weight: 600;
	line-height: 1.2;
}

.skytravi-flight-offer .sfo-place {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	word-break: break-word;
}

.skytravi-flight-offer .sfo-iata {
	display: inline-block;
	margin-top: 1px;
	font-size: 12px;
	font-weight: 700;
	color: #f2676b;
	letter-spacing: 0.04em;
}

/* Środek: jedna strzałka albo dwie (tam / z powrotem) */
.skytravi-flight-offer .sfo-connectors {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 36px;
	max-width: 100px;
	margin: 0 auto;
	align-self: center;
}

.skytravi-flight-offer .sfo-connector {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	min-height: 0;
}

.skytravi-flight-offer .sfo-connector .sfo-line {
	display: block;
	height: 3px;
	width: 100%;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 2px;
	position: relative;
}

/* W jedną stronę: linia + strzałka w prawo */
.skytravi-flight-offer .sfo-connector--oneway .sfo-line::after {
	content: "";
	position: absolute;
	right: -1px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 9px solid rgba(255, 255, 255, 0.88);
}

/* Powrót — górna: skąd → dokąd */
.skytravi-flight-offer .sfo-connector--outbound .sfo-line::after {
	content: "";
	position: absolute;
	right: -1px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid rgba(255, 255, 255, 0.88);
}

/* Powrót — dolna: dokąd → skąd (strzałka z prawej w lewo) */
.skytravi-flight-offer .sfo-connector--inbound .sfo-line::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-right: 8px solid rgba(255, 255, 255, 0.88);
}

/* Prawa kolumna: typ lotu, cena, przycisk */
.skytravi-flight-offer .sfo-aside {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
	text-align: center;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	padding-left: 16px;
	min-width: 0;
}

.skytravi-flight-offer .sfo-aside .sfo-chip--trip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
}

.skytravi-flight-offer .sfo-aside-price {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 8px;
	font-size: 12px;
	line-height: 1.25;
}

.skytravi-flight-offer .sfo-aside-price .sfo-price-label {
	opacity: 0.8;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 10px;
}

.skytravi-flight-offer .sfo-aside-price .sfo-price-value {
	font-weight: 700;
	font-size: 15px;
	color: #f2676b;
}

.skytravi-flight-offer .sfo-aside .sfo-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: #f2676b;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	padding: 9px 12px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	text-decoration: none !important;
	text-align: center;
	transition: background 0.2s, color 0.2s;
	border: none;
	cursor: pointer;
	line-height: 1.25;
}

.skytravi-flight-offer .sfo-aside .sfo-btn:hover,
.skytravi-flight-offer .sfo-aside .sfo-btn:focus {
	background: #00adef;
	color: #fff !important;
	text-decoration: none !important;
}

@media (max-width: 640px) {
	.skytravi-flight-offer .sfo-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.skytravi-flight-offer .sfo-aside {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.18);
		padding-left: 0;
		padding-top: 12px;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}

	.skytravi-flight-offer .sfo-aside .sfo-chip--trip {
		flex: 0 1 auto;
		width: auto;
		min-width: 0;
	}

	.skytravi-flight-offer .sfo-aside-price {
		flex: 1 1 auto;
		min-width: 0;
	}

	.skytravi-flight-offer .sfo-aside .sfo-btn {
		flex: 1 1 100%;
		width: 100%;
	}
}
