/*
 * Elementor Breadcrumbs Widget — Frontend Styles
 * ------------------------------------------------
 * These are base/structural styles only.
 * All colors, typography and spacing are controlled via Elementor's
 * style controls in the panel and emitted as inline CSS by Elementor.
 */

/* Reset list styles on the breadcrumb <ol>. */
.ebw-breadcrumbs-wrapper {
	display: block;
	width: 100%;
}

.ebw-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 8px; /* default; overridden by Elementor responsive control */
}

/* Each breadcrumb item. */
.ebw-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: inherit;
	line-height: 1.4;
}

/* Links inside breadcrumb items. */
.ebw-breadcrumbs a {
	text-decoration: none;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

.ebw-breadcrumbs a:hover,
.ebw-breadcrumbs a:focus-visible {
	text-decoration: underline;
	outline: none;
}

/* Accessible focus ring for keyboard users. */
.ebw-breadcrumbs a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Current page item (last crumb). */
.ebw-breadcrumbs__item--current {
	font-weight: 600; /* default; overridden by Elementor control */
	/* Prevents the last crumb from being clickable in pseudo-link scenarios */
	pointer-events: none;
}

/* Separator glyph. */
.ebw-breadcrumbs__separator {
	display: inline-flex;
	align-items: center;
	user-select: none;
	/* Inherits color from the wrapper unless overridden by Elementor control */
}

/* ── Responsive adjustments ──────────────────────────────────────────────── */

@media (max-width: 767px) {
	.ebw-breadcrumbs {
		gap: 4px;
	}
}
