/**
 * Offer details page (single-offer.php) — the parts the coupons page doesn't
 * have. Loaded only on single offers, after css/summer-campaign.css, whose
 * --ss-* tokens (set on .sa-summer-campaign) these rules use.
 *
 * @package Sierra_Air_Child
 */

/* ===========================================================
   Offer details — card + summary panel
   =========================================================== */
.offer-details-page .od-summary-grid {
	display: grid;
	grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.offer-details-page .od-summary-grid--single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 760px;
	margin: 0 auto;
}

.offer-details-page .od-summary-card .coupon-card {
	margin: 0;
}

.offer-details-page .od-summary-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(24px, 4vw, 40px);
	background: var(--ss-white);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	box-shadow: var(--ss-shadow-sm);
	text-align: left;
}
.offer-details-page .od-summary-body .sa-summer-h2 {
	margin-top: 14px;
	text-align: left;
}

.offer-details-page .od-content {
	margin-top: 16px;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--ss-slate);
}
.offer-details-page .od-content p {
	margin: 0 0 1em;
}
.offer-details-page .od-content > :last-child {
	margin-bottom: 0;
}

.offer-details-page .od-subhead {
	margin: 28px 0 12px;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	color: var(--ss-blue-dark);
}

.offer-details-page .od-included {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.offer-details-page .od-included li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	line-height: 1.5;
	color: var(--ss-slate);
}
.offer-details-page .od-included i {
	margin-top: 4px;
	color: var(--ss-orange);
}
.offer-details-page .od-included strong {
	display: block;
	color: var(--ss-ink);
}

/* Offer facts — two columns under the ticket's dashed tear line. */
.offer-details-page .od-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	width: 100%;
	margin: 24px 0 0;
	border-top: 2px dashed var(--ss-line);
}
.offer-details-page .od-fact {
	padding: 16px 0;
	border-bottom: 1px solid var(--ss-line);
}
.offer-details-page .od-fact dt {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5b7186;
}
.offer-details-page .od-fact dd {
	margin: 4px 0 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ss-blue-dark);
}
.offer-details-page .od-fact dd a {
	color: var(--ss-red);
	text-decoration: none;
}
.offer-details-page .od-fact dd a:hover {
	color: var(--ss-red-hover);
	text-decoration: underline;
}

.offer-details-page .od-related {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.offer-details-page .od-related li {
	margin: 0;
}
.offer-details-page .od-related a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 9999px;
	background: rgba(0, 81, 163, 0.08);
	color: var(--ss-blue);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--ss-ease), color var(--ss-ease);
}
.offer-details-page .od-related a:hover {
	background: var(--ss-blue);
	color: #fff;
}
.offer-details-page .od-related i {
	font-size: 0.8em;
}

.offer-details-page .od-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.offer-details-page .od-summary .sa-summer-disclaimer {
	margin-top: 36px;
}

/* ===========================================================
   How to redeem — the coupons page's feature tiles, numbered
   and joined by a dashed line.
   =========================================================== */
.offer-details-page .od-steps {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.offer-details-page .od-steps:has(> li:nth-child(4)) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: none;
}
.offer-details-page .od-step {
	position: relative;
	margin: 0;
}
.offer-details-page .od-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 40px;
	left: calc(50% + 44px);
	width: calc(100% - 60px);
	border-top: 2px dashed var(--ss-line);
}
.offer-details-page .od-step .sa-summer-feature-icon {
	position: relative;
}
.offer-details-page .od-step-num {
	position: absolute;
	top: -8px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--ss-orange), var(--ss-amber));
	box-shadow: 0 0 0 3px var(--ss-white);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1;
}

/* ===========================================================
   Site sections — backgrounds pinned so the page alternates
   cream / white / grey / white / cream.
   =========================================================== */
body #page .offer-details-page .od-faq.block-faq,
.site .offer-details-page .od-faq.block-faq {
	background-color: var(--ss-white) !important;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
	.offer-details-page .od-summary-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.offer-details-page .od-summary-card {
		width: 100%;
		max-width: 400px;
		margin: 0 auto;
	}
	.offer-details-page .od-steps:has(> li:nth-child(4)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.offer-details-page .od-steps:has(> li:nth-child(4)) .od-step::after {
		display: none;
	}
}

@media (max-width: 760px) {
	.offer-details-page .od-steps,
	.offer-details-page .od-steps:has(> li:nth-child(4)) {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.offer-details-page .od-step::after {
		display: none;
	}
}

@media (max-width: 480px) {
	.offer-details-page .od-facts {
		grid-template-columns: minmax(0, 1fr);
	}
}
