.ifp-feature {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	color: inherit;
	text-decoration: none;
	transition-property: background-color, border-color, box-shadow, color;
	transition-timing-function: ease;
	transition-duration: 200ms;
}

.ifp-feature,
.ifp-feature * {
	box-sizing: border-box;
}

.ifp-feature:hover,
.ifp-feature:focus,
.ifp-feature:active {
	color: inherit;
	text-decoration: none;
}

.ifp-feature__media {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--ifp-feature-media-width, 48px);
	height: 48px;
	min-width: 0;
	position: relative;
	text-decoration: none;
	overflow: visible;
}

.ifp-feature__image {
	display: block;
	width: 24px;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	flex: 0 0 auto;
	transform-origin: center center;
	transition-property: transform;
	transition-timing-function: ease;
	transition-duration: 200ms;
}

.ifp-feature__content {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
}

.ifp-feature__title,
.ifp-feature__description {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	transition-property: color;
	transition-timing-function: ease;
	transition-duration: 200ms;
}

.ifp-feature__title {
	margin: 0 0 4px;
}

.ifp-feature__description {
	margin: 0;
}

.ifp-feature__description > :first-child {
	margin-top: 0;
}

.ifp-feature__description > :last-child {
	margin-bottom: 0;
}

/*
 * Shape presets.
 * Media and image are deliberately separate boxes. The media box owns the
 * background/border/padding; the image owns its own dimensions/object-fit.
 */
.ifp-feature--shape-none .ifp-feature__media {
	background-color: transparent !important;
}

.ifp-feature--shape-circle .ifp-feature__media {
	width: var(--ifp-feature-media-width, 48px) !important;
	height: var(--ifp-feature-media-width, 48px) !important;
	aspect-ratio: 1 / 1;
	border-radius: 50% !important;
	overflow: hidden;
}

.ifp-feature--shape-square .ifp-feature__media {
	border-radius: 0 !important;
	overflow: hidden;
}

.ifp-feature--shape-rounded .ifp-feature__media {
	border-radius: 12px;
	overflow: hidden;
}

/*
 * Important anti-"pill" rules:
 * - outer media cannot shrink in a row layout
 * - image never inherits outer padding/auto sizing
 * - image remains a block-level, independently sized object
 */
.ifp-feature__media,
.ifp-feature__image {
	flex-shrink: 0;
}
