#legend_section table {
	margin: auto;
}

#legend_section .elements_line {
	float: left;
	display: block;
	width: 20px;
	height: 20px;
	margin: 0 5px;
	border: 1px solid #535a5e;
	-webkit-border-radius: 3px;
	-khtml-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

.discount-info-txt {
	padding: 8px 0;
	font-size: 14px;
}

.legend-color:not([style*="background-color"]) {
	background-color: #ccc;
}

svg.legend-color {
	background-color: transparent;
	display: block;
	box-sizing: content-box;
}

.legend-color.unavailable {
	background-color: var(--unavailable-color, #888);
}

.legend-unavailable {
	color: var(--text-color);
}

.legend-break {
	flex-basis: 100%;
	height: 0;
}

.legend_product {
	display: block;
	width: 100px;
	margin-bottom: 15px;
}

.legend_product.discount-product {
	width: unset;
	margin-left: 0;
	margin-bottom: 0;
}

#legend_section .legend-click-icon,
#legend_section .legend-unclick-icon {
	background-size: 28px;
	background-repeat: no-repeat;
	width: 34px;
	height: 34px;
	object-fit: contain;
	display: inline-block;
}

#legend_section .legend-click-icon {
	background-image: var(--img-legend-click-icon);
}

#legend_section .legend-unclick-icon {
	background-image: var(--img-legend-unclick-icon);
}

.legend-txt-info {
	background-color: var(--section-background-color);
}

.legend-txt-info p {
	font-size: 14px;
}

.discount-info-txt > i {
	padding: 0 5px;
}

.legend_product,
.legend_price,
#legend_section .elements_line div,
#discount_section .elements_line div {
	color: var(--text-color);
	font-size: 16px;
	margin-left: 5px;
}

#legend_section .elements_line div i,
#discount_section .elements_line div i {
	color: var(--text-color);
	font-size: 11px;
}

.legend-section {
	width: min(1057px, calc(100% - 32px));
	max-width: 1057px !important;
	margin: 28px auto 0;
	padding: 0;
}

.legend-section .legend-container {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	background: transparent;
}

.legend-section .legend-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	min-height: 76px;
	padding: 10px 8px;
	border: 1px solid #111111;
	background: #ffffff;
	min-width: auto;
	max-width: none;
}

.legend-section .legend-color {
	width: 13px;
	height: 13px;
	min-width: 13px;
	margin-top: 2px;
	border: 0;
	flex-shrink: 0;
}

.legend-section .legend-info {
	display: block;
	min-width: 0;
	font-size: 12px;
	line-height: 1.25;
	color: #111111;
	gap: 0;
}

.legend-section .legend-name,
.legend-section .legend-price {
	display: inline;
	font-size: 12px;
	line-height: 1.25;
	font-weight: 400;
	color: #111111;
}

.legend-section .legend-price {
	display: block;
	margin-top: 2px;
}

.legend-section .legend-filters {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin: 0 0 16px;
	width: 100%;
}

.legend-section .legend-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 154px;
	height: 31px;
	padding: 0 20px;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	color: #ffffff;
	background: #b9b9b9;
}

.legend-section .legend-filter-available {
	background: rgba(226, 0, 122, 1);
}

.legend-section .legend-filter-sold {
	background: #7472a6;
}

.legend-section .legend-filter-unavailable {
	background: #bcbcbc;
}

@media (max-width: 1100px) {
	.legend-section .legend-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.legend-section {
		width: 100%;
		padding: 0 16px;
	}

	.legend-section .legend-container {
		grid-template-columns: 1fr;
	}

	.legend-section .legend-filters {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.legend-section .legend-filter {
		width: 100%;
		min-width: 0;
	}
}