/* Store-check offers: rail card, inline block, phone bar. Only one shows at a time (theme.js sets data-offer-on-screen). */
.offer-title {
	margin: 0;
	color: var(--ink);
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	text-wrap: balance;
}
.offer-note {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 20px;
}
.store-form:is(.store-form-rail, .store-form-inline, .store-form-bar) {
	max-width: none;
}
.store-form:is(.store-form-rail, .store-form-inline, .store-form-bar) input {
	border-color: var(--rule);
	background: var(--bg);
	color: var(--ink);
}
.store-form:is(.store-form-rail, .store-form-inline, .store-form-bar)
	input::placeholder {
	color: var(--muted);
}
.rail-offer {
	flex: none;
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background: var(--tint);
}
.inline-offer {
	margin: 40px 0;
	padding: 24px;
	border-left: 2px solid var(--primary);
	background: var(--tint);
}
.inline-offer .offer-title {
	font-size: 20px;
	line-height: 28px;
}
.store-form-inline {
	margin-top: 16px;
}
.offer-bar {
	position: fixed;
	inset: auto 0 0;
	z-index: 20;
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 10px var(--gutter);
	border-top: 1px solid var(--rule);
	background: var(--bg);
	transform: translateY(100%);
	visibility: hidden;
}
.offer-bar[hidden] {
	display: none;
}
.offer-bar .store-form {
	flex: 1;
	min-width: 0;
}
.offer-close {
	flex: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
body[data-past-head]:not([data-offer-on-screen]) .offer-bar {
	transform: none;
	visibility: visible;
}
body:has(.offer-bar:not([hidden])) {
	padding-bottom: 64px;
}
.rail-offer {
	transition: opacity 0.2s;
}
body[data-offer-on-screen] .rail-offer {
	opacity: 0;
	pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
	.offer-bar {
		transition:
			transform 0.25s,
			visibility 0s 0.25s;
	}
	body[data-past-head]:not([data-offer-on-screen]) .offer-bar {
		transition: transform 0.25s;
	}
}
@media (min-width: 960px) {
	.offer-bar {
		display: none;
	}
	body:has(.offer-bar:not([hidden])) {
		padding-bottom: 0;
	}
}
@media (max-width: 959px) {
	.rail-offer {
		display: none;
	}
}
@media (max-width: 480px) {
	.inline-offer .store-form {
		flex-direction: column;
	}
}
/* footer.css stacks every .store-form under 480px; the bar must stay one row. */
.offer-bar .store-form-bar {
	flex-direction: row;
}
/* The contents list scrolls inside the rail so the card under it is always in view. */
@media (min-width: 960px) {
	.post-rail {
		display: flex;
		flex-direction: column;
		max-height: calc(100vh - 110px);
	}
	.post-rail [data-toc] {
		min-height: 0;
		overflow-y: auto;
	}
}
.rail-offer .btn {
	width: 100%;
	margin-top: 12px;
}
