/* HD Elementor Categories Widget - Frontend Styles */

/* ── Reset & Container ─────────────────────────────────────────────────── */
.hd-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hd-categories-list ul.hd-cat-children {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.25em;
}

/* ── List Item ─────────────────────────────────────────────────────────── */
.hd-cat-item {
	display: block;
	box-sizing: border-box;
}

/* ── Link Row ──────────────────────────────────────────────────────────── */
.hd-cat-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	width: 100%;
}

.hd-cat-name {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Bullet Icon ───────────────────────────────────────────────────────── */
.hd-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.hd-cat-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ── Count Badge ───────────────────────────────────────────────────────── */
.hd-cat-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	padding-left: 8px;
	line-height: 1;
	white-space: nowrap;
}

.hd-cat-count--badge {
	border-radius: 20px;
	background-color: #e8e8e8;
	color: #444;
	font-size: 0.75em;
	padding: 2px 7px;
	margin-left: 8px;
}

.hd-cat-count--parens,
.hd-cat-count--plain {
	background: transparent;
	color: inherit;
	font-size: 0.85em;
	opacity: 0.65;
	padding: 0;
	margin-left: 4px;
}

/* ── Dropdown ──────────────────────────────────────────────────────────── */
.hd-categories-dropdown {
	display: block;
	width: 100%;
}

.hd-categories-dropdown select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em 0.75em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	appearance: auto;
}

.hd-categories-dropdown select:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
