/**
 * Buildzair Partners — company ad between search results.
 * A slim, full-width bar; logical properties (RTL / LTR).
 */

.bzp-ad-slot {
	box-sizing: border-box;
	width: 100%;
	margin-block: 4px 16px;
	list-style: none;
}

.bzp-ad-slot--inline {
	margin-block: 16px;
}

.bzp-ad-slot *,
.bzp-ad-slot *::before,
.bzp-ad-slot *::after {
	box-sizing: border-box;
}

.bzp-ad-slot .bzp-ad {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 84px;
	padding: 12px 18px;
	border: 1px solid #dfe8e3;
	border-inline-start: 4px solid var(--bzp-ad-color, #06CE78);
	border-radius: 14px;
	background: linear-gradient(90deg, #f3fcf8 0%, #ffffff 60%);
	color: #142039;
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
	box-shadow: 0 6px 18px -14px rgba(13, 33, 71, 0.45);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

[dir="rtl"] .bzp-ad-slot .bzp-ad,
.rtl .bzp-ad-slot .bzp-ad {
	background: linear-gradient(270deg, #f3fcf8 0%, #ffffff 60%);
}

.bzp-ad-slot .bzp-ad:hover {
	border-color: #b5ecd2;
	box-shadow: 0 10px 24px -14px rgba(13, 33, 71, 0.5);
	transform: translateY(-1px);
	color: #142039;
}

.bzp-ad-slot .bzp-ad:focus-visible {
	outline: 3px solid rgba(6, 206, 120, 0.5);
	outline-offset: 2px;
}

.bzp-ad__logo {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border: 1px solid #e3e8f1;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.bzp-ad__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bzp-ad__logo.is-initial {
	border: 0;
	background: #06CE78;
	color: #04301C;
	font-size: 24px;
	font-weight: 800;
}

.bzp-ad__body {
	display: grid;
	flex: 1 1 auto;
	gap: 2px;
	min-width: 0;
}

.bzp-ad__top {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.bzp-ad__badge {
	flex: none;
	padding: 1px 8px;
	border-radius: 999px;
	background: #E6FAF1;
	color: #037D47;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.bzp-ad__name {
	overflow: hidden;
	font-size: 16px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bzp-ad__meta {
	color: #5b6880;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bzp-ad__text {
	color: #3d4a63;
	font-size: 13.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bzp-ad__cta {
	flex: none;
	padding: 9px 16px;
	border-radius: 10px;
	background: #06CE78;
	color: #04301C;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.bzp-ad-slot .bzp-ad:hover .bzp-ad__cta {
	background: #05B86A;
}

@media (max-width: 600px) {
	.bzp-ad-slot .bzp-ad {
		gap: 12px;
		padding: 10px 12px;
	}

	.bzp-ad__logo {
		width: 46px;
		height: 46px;
	}

	.bzp-ad__text {
		display: none;
	}

	.bzp-ad__top {
		flex-wrap: wrap;
		gap: 2px 8px;
	}

	.bzp-ad__name {
		flex: 1 1 100%;
		font-size: 15px;
	}

	/* The whole bar is the link: a simple arrow is enough. */
	.bzp-ad__cta {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border-radius: 50%;
		font-size: 0;
	}

	.bzp-ad__cta::after {
		content: "›";
		font-size: 24px;
		line-height: 1;
	}

	[dir="rtl"] .bzp-ad__cta::after,
	.rtl .bzp-ad__cta::after {
		content: "‹";
	}
}
