/* AF Offers — uses the af-pharmacy theme tokens, with fallbacks for any theme. */

.afo-badge {
	position: absolute;
	bottom: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	max-width: calc(100% - 20px);
	padding: 4px 10px;
	border-radius: var(--af-radius-sm, 8px);
	background: var(--af-warm-soft, #fdf1e3);
	border: 1px solid var(--af-warm-border, #f0d9bc);
	color: var(--af-warm-text, #6b4113);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.afo-box,
.afo-card {
	display: grid;
	gap: 4px;
	margin: 0 0 14px;
	padding: 14px 16px;
	border: 1px solid var(--af-warm-border, #f0d9bc);
	border-radius: var(--af-radius, 14px);
	background: var(--af-warm-soft, #fdf1e3);
	color: var(--af-text-1, #0b1f23);
}

.afo-box-tag {
	justify-self: start;
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--af-warm, #c2610a);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
}

.afo-box-title,
.afo-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
}

.afo-box-line {
	margin: 0;
	color: var(--af-text-2, #3d5257);
	font-size: 15px;
}

.afo-box-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 2px;
	font-size: 14px;
}

.afo-box-foot small {
	color: var(--af-warm-text, #6b4113);
	font-size: 13.5px;
	font-weight: 700;
}

.afo-box-foot a:not(.button) {
	color: var(--af-accent-text, #027177);
	font-weight: 700;
}

.afo-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 14px;
	margin: 0 0 22px;
}

.afo-cards--one {
	grid-template-columns: minmax(0, 1fr);
}

.afo-card {
	margin: 0;
	padding: 0;
	overflow: hidden;
	align-content: start;
}

.afo-card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}

.afo-card-body {
	display: grid;
	gap: 6px;
	padding: 14px 16px 16px;
}

.afo-nudges {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
}

.afo-nudges[hidden] {
	display: none;
}

.afo-nudge {
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--af-radius-sm, 10px);
	background: var(--af-warm-soft, #fdf1e3);
	border: 1px solid var(--af-warm-border, #f0d9bc);
	color: var(--af-warm-text, #6b4113);
	font-size: 15px;
	font-weight: 600;
}

.afo-nudge a {
	color: var(--af-accent-text, #027177);
	font-weight: 800;
	white-space: nowrap;
}

.afo-ended {
	padding: 14px 16px;
	border-radius: var(--af-radius-sm, 10px);
	background: var(--af-surface-2, #f4f7f7);
}
