.bsftbrand_block_title {
	margin-bottom: 0;
	font-size: 15px;
	font-weight: 600;
	color: #000;
	text-align: left;
	padding: 0;
}


.bsftbrand_link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 5px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 5px;
	text-decoration: none;
	color: #000;
	transition: all 0.3s ease;
	flex-wrap: wrap;
	text-align: center;
	position: relative;
}

.bsftbrand_image img {
	max-height: 25px;
	width: auto;
	max-width: 100px;
	height: auto;
}

@media screen and (max-width: 550px) {
	.bsftbrand_image img {
		max-width: 100%;
	}
}

.bsftbrand_image {
	height: 20px;
	justify-content: center;
	align-content: center;
	align-items: center;
	display: flex;
}

.bsftbrand-block {
	margin-bottom: 20px;
}

.bsftbrand_title {
	font-weight: bold;
	padding-top: 5px;
	color: #000;
}

.bsftbrand_mini_title {
	font-weight: bold;
	padding-bottom: 5px;
	color: #000;
}

/* Подпись под логотипом в мини-блоке (карточка / категория+бренд); метрики можно переопределить инлайн-стилями из настроек */
.bsftbrand_logo_inline_title {
	display: block;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.25;
	color: #000;
	text-align: center;
	max-width: 160px;
	word-break: break-word;
}

.bsftbrand_small_image img {
	max-height: 20px;
	max-width: 100%;
}

.bsftbrand_small_link {
	padding: 5px 5px;
	width: 60px;
	height: 60px;
	border-radius: 200px;
}

.bsftbrand_cats {
	margin-bottom: 20px;
}

.bsftbrand-brand-cats.level-0 {
	background: transparent;
	padding: 0;
	border-radius: 0;
	margin: 0;
	font-size: 15px;
}

.bsftbrand_cats .bsftbrand-brand-cats.level-0 > li {
	background: #eaeef1;
	padding: 10px;
	border-radius: 3px;
	margin: 10px 0;
}

/* Brand categories navigation: CSS-only reveal next level for active branch */
.bsftbrand_cats .bsftbrand-brand-cats { list-style: none; margin: 0; padding-left: 0; }
.bsftbrand_cats .bsftbrand-brand-cats .bsftbrand-brand-cats { display: none; }
.bsftbrand_cats .bsftbrand-brand-cats > li { margin: 4px 0; }
.bsftbrand_cats .bsftbrand-brand-cats li.active > .bsftbrand-brand-cats,
.bsftbrand_cats .bsftbrand-brand-cats li.active-ancestor > .bsftbrand-brand-cats {
	display: block;
}

/* Optional visual cues */
.bsftbrand_cats .bsftbrand-brand-cats li.active > a { font-weight: 600; }
.bsftbrand_cats .bsftbrand-brand-cats li.has-children > a { position: relative; }

.bsftbrand_cats a {
	color: #000;
}

.bsftbrand_block_title {
	padding-bottom: 7px;
	font-size: 17px;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	justify-content: flex-start;
}

.bsftbrand_block_title img {
	max-width: 50px !important;
	max-height: 50px !important;
	border: 1px solid #ddd;
	padding: 5px;
	margin-right: 5px;
}

.bsftbrand-brand-cats.level-1 {
	background: #fff;
	padding: 10px;
	border-radius: 3px;
	margin: 10px 0px;
}

.bsftbrand_allcats_linlk a {
	text-align: center;
	background: #fff;
	padding: 7px;
	box-sizing: border-box;
	/* color: #fff; */
	border-radius: 5px;
	margin-top: 5px;
	color: #d03939;
	font-weight: bold;
	border: 1px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* When the reset link is rendered above the list, we need spacing below (not above) */
.bsftbrand_cats > .bsftbrand_allcats_linlk:first-of-type a {
	margin-top: 0;
	margin-bottom: 5px;
}

/* Keep the bottom reset link spacing as-is */
.bsftbrand_cats > .bsftbrand_allcats_linlk:last-of-type a {
	margin-top: 5px;
	margin-bottom: 0;
}

.bsftbrand_allcats_linlk a:hover {
	background: #f8f8f8;
}

.bsftbrand_allcats_linlk a::before {
	content: '';
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	/* Circle with an "X" (reset/clear icon) */
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%20stroke%3D%27currentColor%27%20stroke-width%3D%272%27/%3E%3Cpath%20d%3D%27M9%209l6%206M15%209l-6%206%27%20stroke%3D%27currentColor%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3C/svg%3E");
}

.bsftbrand_list_img {
	position: absolute;
	justify-content: center;
	align-content: center;
	align-items: center;
	z-index: 1;
	height: 20px;
	display: flex;
}

.bsftbrand_list_img img {
	max-height: 15px;
	width: auto;
	height: auto;
	display: inline-block;
	vertical-align: middle;
	margin: 0 !important;
}

/* Custom text in brand categories title */
.bsftbrand_custom_text {
	font-weight: bold;
	font-size: 15px;
	color: #000;
	margin-right: 5px;
}

/* Brand Archive Styles - Using existing brand styling */
.bsftbrand-archive-empty {
	text-align: center;
	padding: 40px 20px;
}

/* intro над листингом: и шаблон «один бренд», и is_tax( bsftbrand ), и пара категория+бренд */
.bsftbrand-single-intro .alignleft,
.bsftbrand-archive-intro .alignleft,
.bsftbrand-single-content .alignleft,
.bsftbrand-archive-seo .alignleft {
	float: left;
	margin-right: 20px;
	margin-left: 0;
}

.bsftbrand-single-intro .alignright,
.bsftbrand-archive-intro .alignright,
.bsftbrand-single-content .alignright,
.bsftbrand-archive-seo .alignright {
	float: right;
	margin-left: 20px;
	margin-right: 0;
}

.bsftbrand-single-intro,
.bsftbrand-archive-intro {
	float: left;
	width: 100%;
	box-sizing: border-box;
	padding: 20px;
	background: #f8f8f8;
	border-radius: 3px;
	font-size: 15px;
	line-height: 23px;
}

.bsftbrand-single-content,
.bsftbrand-archive-seo {
	float: left;
	width: 100%;
	box-sizing: border-box;
	padding: 20px;
	background: #f8f8f8;
	border-radius: 3px;
	font-size: 15px;
	line-height: 23px;
}