/* Inherit the site's typography and neutral ramp. Fallbacks also support previews. */
.xy-promotion,
.xy-promotion-reminder {
	--xy-promo-accent: #3c3fde;
	--xy-promo-bg: var(--c-contrast-50, #f7f7f7);
	--xy-promo-ink: var(--c-headings, #161616);
	--xy-promo-muted: var(--c-excerpts, #474747);
	--xy-promo-line: var(--c-separator, #e8e8e8);

	box-sizing: border-box;
	color: var(--xy-promo-ink);
	font-family: var(--body-font, Inter, system-ui, sans-serif);
	text-align: left;
	overflow-wrap: anywhere;
}

.xy-accent-magenta {
	--xy-promo-accent: #bd0555;
}


.xy-promotion {
	border: 1px solid var(--xy-promo-line);
	border-radius: 10px;
	background: var(--xy-promo-bg);
	margin-block: 0 32px;
	overflow: hidden;
}

.xy-promotion-photo {
	margin: 0;
	background: #161616;
	color: #fff;
}

.xy-promotion-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2.22;
	object-fit: cover;
}

.xy-crop-top {
	object-position: top;
}

.xy-crop-center {
	object-position: center;
}

.xy-crop-bottom {
	object-position: bottom;
}

.xy-promotion-photo figcaption {
	padding: 7px 20px;
	font: 400 11px/1.5 var(--ui-font, Outfit, system-ui, sans-serif);
}

.xy-promotion-photo a {
	color: inherit;
	text-decoration: underline;
}

.xy-promotion-body {
	padding: 20px;
}

.xy-promotion-eyebrow {
	font: 500 10px/1.5 var(--ui-font, Outfit, system-ui, sans-serif);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--xy-promo-muted);
	margin: 0;
}

.xy-promotion h2 {
	font: 600 34px/1.06 var(--ui-font, Outfit, system-ui, sans-serif);
	letter-spacing: -0.025em;
	white-space: pre-line;
	margin-block: 12px;
	color: inherit;
}

.xy-promotion-description {
	font-size: 12px;
	line-height: 1.8;
	color: var(--xy-promo-muted);
	white-space: pre-line;
	margin-block: 0 16px;
}

.xy-promotion-offer {
	font: 500 11px/1.5 var(--ui-font, Outfit, system-ui, sans-serif);
	color: var(--xy-promo-muted);
	margin-block: 0 8px;
}

.xy-promotion-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 14px;
	border-radius: 6px;
	background: var(--xy-promo-accent);
	color: #fff;
	font: 500 14px/1.4 var(--ui-font, Outfit, system-ui, sans-serif);
	text-decoration: none;
}

.xy-promotion-action:hover {
	color: #fff;
	filter: brightness(0.9);
}

.xy-promotion-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	font: 400 11px/1.6 var(--ui-font, Outfit, system-ui, sans-serif);
	color: var(--xy-promo-muted);
	margin-block: 12px 0;
}

.xy-promotion-contact a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.xy-promotion :focus-visible,
.xy-promotion-reminder :focus-visible {
	outline: 2px solid var(--xy-promo-accent);
	outline-offset: 3px;
}

.xy-promotion-reminder {
	position: fixed;
	inset: auto 10px calc(10px + env(safe-area-inset-bottom));
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0 10px 12px;
	border: 1px solid var(--xy-promo-line);
	border-radius: 10px;
	background: var(--xy-promo-bg);
	box-shadow: 0 2px 16px #00000014;
	touch-action: pan-y;
}

.xy-promotion-reminder > div {
	flex: 1;
	min-width: 0;
}

.xy-promotion-thumbnail {
	flex: 0 0 36px;
	width: 36px;
	height: 44px;
	object-fit: cover;
	border-radius: 5px;
}

@media (width < 380px) {
	.xy-promotion-thumbnail {
		display: none;
	}
}

.xy-promotion-reminder strong {
	display: block;
	font: 500 14px/1.4 var(--ui-font, Outfit, system-ui, sans-serif);
}

.xy-promotion-reminder .xy-promotion-eyebrow {
	font-size: 9px;
}

.xy-promotion-reminder .xy-promotion-action {
	flex-shrink: 0;
	font-size: 12px;
	max-width: 40%;
}

.xy-promotion-close {
	flex: 0 0 44px;
	width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: 400 24px/1 system-ui, sans-serif;
	cursor: pointer;
}

.site-s-dark .xy-promotion,
.site-s-dark .xy-promotion-reminder,
.s-dark .xy-promotion,
.s-dark .xy-promotion-reminder {
	--xy-promo-bg: #111;
	--xy-promo-ink: #ececec;
	--xy-promo-muted: #ccc;
	--xy-promo-line: #2b2b2b;
}

/* Hidden must override component display rules and SmartMag's generic aside styles. */
.xy-promotion-reminder[hidden],
.xy-promotion-photo[hidden] {
	display: none;
}

.xy-promotion-space {
	height: var(--xy-reminder-space, 100px);
}

.xy-preview {
	margin: 24px auto;
	max-width: 390px;
	padding: 16px;
	font-family: system-ui, sans-serif;
}

.xy-preview.site-s-dark {
	background: #101016;
	color: #ececec;
}

.xy-preview .xy-promotion-reminder {
	position: static;
	margin-top: 20px;
}

@media (width >= 941px) {
	.xy-promotion-reminder,
	.xy-promotion-space {
		display: none;
	}

	.xy-preview .xy-promotion-reminder:not([hidden]) {
		display: flex;
	}
}
