/**
 * Ad card styling inside the activity feed.
 *
 * Values come from the BuddyBoss design system tokens rather than fresh
 * choices — an ad has to read as a native feed entry, not a banner. Custom
 * properties are declared with fallbacks so the card still renders correctly
 * on a theme that has not loaded the token sheet.
 *
 * @package BuddyBossAddons\AdsEngine
 * @since BuddyBoss Addons 1.1.0
 */

.bb-ad-card {
	position: relative;
	padding: 16px 20px;
	background: var( --bb-content-background-color, #fff );
	border: 1px solid var( --bb-content-border-color, #e7e9ec );
	border-radius: 8px;
}

.bb-ad-card__label {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --bb-body-secondary-color, #667085 );
	background: var( --bb-content-alternate-background-color, #f5f6f7 );
	border-radius: 4px;
}

.bb-ad-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var( --bb-headings-color, #1a1a1a );
}

.bb-ad-card__media {
	margin: 0 0 12px;
}

.bb-ad-card__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.bb-ad-card__body {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 22px;
	color: var( --bb-body-text-color, #4d5c6d );
}

.bb-ad-card__body p:last-child {
	margin-bottom: 0;
}

.bb-ad-card__actions {
	margin: 0;
}

.bb-ad-card__cta {
	display: inline-block;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: var( --bb-button-text-regular, #fff );
	background: var( --bb-primary-color, #ef5d33 );
	border-radius: 6px;
	text-decoration: none;
}

.bb-ad-card__cta:hover,
.bb-ad-card__cta:focus {
	color: var( --bb-button-text-hover, #fff );
	background: var( --bb-primary-color-hover, #e0623d );
	text-decoration: none;
}
