/*
 * Chrome extension promo bar (rendered under the site header).
 *
 * NOTE: two sibling copies of this bar exist as standalone markup in
 * wp-content/uploads/landing.html and wp-content/uploads/claude-code-enhancer.html.
 * Copy and store URLs must be updated in all three places.
 */

.wt-promo-bar {
	height: 60px;
	box-sizing: border-box;
	overflow: hidden;
	background-color: var(--wp--preset--color--base-2, #ffffff);
	border-bottom: 1px solid #e6e4e0;
}

.wt-promo-bar__inner {
	display: flex;
	align-items: stretch;
	height: 100%;
	max-width: var(--wp--style--global--wide-size, 1280px);
	margin: 0 auto;
}

.wt-promo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 50%;
	height: 100%;
	min-width: 0;
	padding: 0 clamp(12px, 3vw, 24px);
	color: var(--wp--preset--color--contrast, #111111);
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.wt-promo + .wt-promo {
	border-left: 1px solid #e6e4e0;
}

.wt-promo:hover,
.wt-promo:focus-visible {
	background-color: var(--wp--preset--color--base, #f9f9f9);
	text-decoration: none;
}

.wt-promo:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3, #d8613c);
	outline-offset: -2px;
}

.wt-promo__icon {
	flex: none;
	font-size: 18px;
	line-height: 1;
}

.wt-promo__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.wt-promo__name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wt-promo__tagline {
	overflow: hidden;
	color: var(--wp--preset--color--contrast-2, #636363);
	font-size: 12px;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wt-promo__arrow {
	flex: none;
	color: var(--wp--preset--color--accent-3, #d8613c);
	font-size: 15px;
	line-height: 1;
	transition: transform 0.18s ease;
}

.wt-promo:hover .wt-promo__arrow {
	transform: translateX(3px);
}

.wt-promo__name--short {
	display: none;
}

@media (max-width: 600px) {
	.wt-promo {
		gap: 6px;
		padding: 0 8px;
	}

	.wt-promo__icon {
		font-size: 16px;
	}

	.wt-promo__tagline,
	.wt-promo__name--full {
		display: none;
	}

	.wt-promo__name--short {
		display: inline;
	}

	.wt-promo__arrow {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-promo,
	.wt-promo__arrow {
		transition: none;
	}

	.wt-promo:hover .wt-promo__arrow {
		transform: none;
	}
}
