/* Arcus Deal Card — uses Avada global colours where available, with fallbacks. */
.arcus-deal-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 1 auto;   /* fill the Avada column so highlights sit at the bottom */
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 20px 20px;
	background: var(--awb-color1, #fff);
}

.arcus-deal-card .adc-title {
	margin: 0;
}

/* Inner wrapper: its natural height is measured to line keylines up across a row. */
.arcus-deal-card .adc-title__text {
	display: block;
}

.arcus-deal-card .adc-link {
	color: inherit;
	text-decoration: none;
}

/* Stretch the title link over the whole card. */
.arcus-deal-card .adc-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.arcus-deal-card .adc-sep {
	width: 100%;
	height: 0;
	margin: 16px 0 20px;
	border: 0;
	border-top: 1px solid var(--awb-color5, #ccc);
	background: none;
}

/* Stat: invisible "ghost" reserves the final width so the counter never shifts layout. */
.arcus-deal-card .adc-stat__number {
	position: relative;
	display: inline-block;
	font-family: "Newsreader", Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-style: normal;
	font-size: var(--adc-stat-fs, 50px);   /* includes all breakpoints, set per card */
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.arcus-deal-card .adc-stat__ghost {
	visibility: hidden;
}

.arcus-deal-card .adc-stat__live {
	position: absolute;
	top: 0;
	left: 0;
}

.arcus-deal-card .adc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* One or two stat/caption columns. */
.arcus-deal-card .adc-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.arcus-deal-card .adc-stats--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Vertical keyline between the two stat columns (2-column layout only). */
.arcus-deal-card .adc-stats--2 .adc-stats__item + .adc-stats__item {
	padding-left: 20px;
	border-left: 1px solid var(--awb-color5, #ccc);
}

/*
 * Stat-to-caption gap: exactly 10px.
 * The stat box is tightened (flex removes the inline-block baseline gap, line-height 1
 * removes extra leading) so the 10px margin is the only space between the two.
 */
.arcus-deal-card .adc-stat {
	display: flex;
}

.arcus-deal-card .adc-stats .adc-caption {
	margin: 10px 0 0;
	padding: 0;
}

/* Image + highlights are anchored to the bottom of the card, so images line up across a row. */
.arcus-deal-card .adc-bottom {
	margin-top: auto;
}

.arcus-deal-card .adc-image {
	aspect-ratio: var(--adc-ratio, 3 / 2);
	overflow: hidden;
}

.arcus-deal-card .adc-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--adc-pos, 50% 50%);
}

.arcus-deal-card .adc-tags {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-end;   /* last row sits on the card's bottom edge; extra rows stack upwards */
	gap: 12px;
	margin: 0;
	padding-top: 20px;
	box-sizing: border-box;
}

.arcus-deal-card .adc-tags:empty {
	padding-top: 0;
}

.arcus-deal-card .adc-tag {
	padding: 2px 6px;
	font-weight: 500;
	background: var(--awb-color3, #eee);
	color: var(--awb-color5, #333);
}

@media only screen and (max-width: 767px) {
	.arcus-deal-card {
		padding: 20px;
	}
	.arcus-deal-card .adc-stats {
		gap: 16px;
	}
	.arcus-deal-card .adc-stats--2 .adc-stats__item + .adc-stats__item {
		padding-left: 16px;
	}
}
