/**
 * Styles for the dismissible free AI add-ons promo banner.
 *
 * Shown on the plugin Dashboard and Add-Ons admin pages.
 */

.afb-ai-promo {
	position: relative;
	margin: 0 0 20px;
	padding: 20px 24px;
	border: 1px solid #c3daf0;
	border-left: 4px solid #2271b1;
	border-radius: 8px;
	background: #f6fbff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.afb-ai-promo-dismiss {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px 6px;
	border-radius: 4px;
	color: #646970;
	text-decoration: none;
	line-height: 1;
}

.afb-ai-promo-dismiss:hover,
.afb-ai-promo-dismiss:focus {
	color: #1d2327;
	background: rgb(0 0 0 / 5%);
}

.afb-ai-promo-dismiss .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.afb-ai-promo-dismiss-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.afb-ai-promo-inner {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding-right: 28px;
}

.afb-ai-promo-badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #2271b1;
	color: #fff;
}

.afb-ai-promo-badge .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
}

.afb-ai-promo-content {
	min-width: 0;
	flex: 1 1 auto;
}

.afb-ai-promo-eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2271b1;
}

.afb-ai-promo-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #1d2327;
}

.afb-ai-promo-intro {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #3c434a;
}

.afb-ai-promo-list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.afb-ai-promo-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid #d8e6f3;
	border-radius: 6px;
	background: #fff;
}

.afb-ai-promo-item-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #2271b1;
	margin-top: 1px;
}

.afb-ai-promo-item-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #50575e;
}

.afb-ai-promo-item-text strong {
	color: #1d2327;
	font-size: 14px;
}

.afb-ai-promo-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.afb-ai-promo-cta {
	margin: 0;
}

.afb-ai-promo-dismiss-link {
	font-size: 13px;
	color: #646970;
	text-decoration: underline;
}

.afb-ai-promo-dismiss-link:hover,
.afb-ai-promo-dismiss-link:focus {
	color: #1d2327;
}

@media screen and (max-width: 782px) {
	.afb-ai-promo-inner {
		flex-direction: column;
		padding-right: 20px;
	}

	.afb-ai-promo {
		padding: 18px;
	}
}
