/* MLSEO Promo Bar v1 — fixed height to reduce CLS */
:root {
	--mlseo-promo-h: 44px;
}

.mlseo-promo-bar {
	position: relative;
	z-index: 1000;
	min-height: var(--mlseo-promo-h);
	height: auto;
	background: linear-gradient(90deg, #0b1220 0%, #132038 45%, #1a2744 100%);
	border-bottom: 1px solid rgba(245, 158, 11, 0.35);
	color: #f8fafc;
	font-family: "Tajawal", sans-serif;
	overflow: hidden;
}

.mlseo-promo-bar[hidden] {
	display: none !important;
}

.mlseo-promo-bar__inner {
	max-width: min(1480px, calc(100% - 24px));
	margin: 0 auto;
	min-height: var(--mlseo-promo-h);
	padding: 8px 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mlseo-promo-bar__content {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.mlseo-promo-bar__icon {
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1;
}

.mlseo-promo-bar__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.mlseo-promo-bar__title {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(820px, 62vw);
}

.mlseo-promo-bar__desc {
	font-size: 12px;
	font-weight: 500;
	color: rgba(226, 232, 240, 0.82);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(820px, 62vw);
}

.mlseo-promo-bar__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.mlseo-promo-bar__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
	color: #1a1200 !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
	transition: transform .2s ease, box-shadow .2s ease;
}

.mlseo-promo-bar__cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(245, 158, 11, 0.36);
	color: #1a1200 !important;
}

.mlseo-promo-bar__close {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.mlseo-promo-bar__close:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

@media (max-width: 767px) {
	:root { --mlseo-promo-h: 64px; }

	.mlseo-promo-bar__inner {
		flex-wrap: wrap;
		padding: 8px 2px;
		gap: 8px;
	}

	.mlseo-promo-bar__title,
	.mlseo-promo-bar__desc {
		white-space: normal;
		max-width: 100%;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.mlseo-promo-bar__desc { display: none; }

	.mlseo-promo-bar__actions {
		width: 100%;
		justify-content: space-between;
	}

	.mlseo-promo-bar__cta {
		flex: 1;
		height: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mlseo-promo-bar__cta { transition: none; }
}
