.sidebar {
	flex: 0 0 260px;
	padding: $padding-unit-double * 2 $padding-unit-double $padding-unit-double
		$padding-unit-double;
	background-color: getColor(scorpion); // mako
	color: #fff;

	&__back {
		background-color: transparent;
		color: getColor(teal-slightly-lighter);
		@include oTypographySans(0, 14px);
		height: 14px;
		border: none;
		cursor: pointer;
		padding: 0;
		margin-bottom: $padding-unit-double * 2;
		margin-left: $padding-unit-double * 2;
		.icon {
			margin-right: $padding-unit-base;
			vertical-align: bottom;
			height: 14px;
			.content {
				fill: getColor(teal-slightly-lighter);
			}
		}
	}

	&__title {
		@include oTypographySans(-1);
		line-height: 30px;
		text-transform: uppercase;
		color: getColor(teal-slightly-lighter);
		border-bottom: 2px solid getColor(teal-slightly-lighter);
		padding: 0;
		margin: 0 0 $padding-unit-double 0;
	}

	&__item {
		padding: 0;
		margin-bottom: $padding-unit-double;
		@include oTypographySans(-1);
		&:last-child {
			margin: 0;
		}

		&-title {
			border-bottom: 1px solid #ccc;
			padding-bottom: $padding-unit-base;
			margin: 0 0 $padding-unit-base 0;
			@include oTypographySans(-1);
			font-weight: normal;
		}
	}

	&__filter-item-content {
		display: flex;
	}

	&__checkbox-container {
		@extend %checkbox-wrapper;
		text-indent: 0px;
	}

	&__checkbox-tick {
		@extend %checkbox-tick;
		width: 12px;
		top: 5px;
	}

	&__checkbox {
		@extend %checkbox-input;

		// Mostly from o-buttons
		-webkit-appearance: none;
		-webkit-box-sizing: border-box;
		-webkit-font-smoothing: antialiased;
		-webkit-transition: background-color 0.3s, color 0.15s ease-out,
			border-color 0.15s ease-out;
		-webkit-user-select: none;
		background-clip: border-box;
		background-size: 21px 21px;
		border-radius: 0;
		box-sizing: border-box;
		color: getColor(teal);
		cursor: pointer;
		display: inline-block;
		font-family: MetricWeb, sans-serif;
		font-size: 14px;
		font-weight: 600;
		line-height: 14px;
		margin: 0;
		text-align: center;
		text-decoration: none;
		transition: background-color 0.3s, color 0.15s ease-out,
			border-color 0.15s ease-out;
		user-select: none;
		background-color: getColor(white);
		border: 1px solid getColor(white);
		height: 16px;
		margin-right: 6px;
		min-height: 16px;
		min-width: 16px;
		padding: 6px 0;
		vertical-align: middle;
		width: 16px;

		&:checked {
			background: getColor(teal-darker);
		}

		&:checked + .sidebar__checkbox-tick {
			display: block;
		}
		&::-ms-check {
			display: none;
		}
	}

	&__radio-container {
		position: relative;
		height: 18px;
		margin-bottom: $padding-unit-base;
	}

	&__radio-label {
		padding-left: $padding-unit-double * 2;
		@include oTypographySans(-1);
	}

	&__radio {
		-webkit-appearance: none;
		-webkit-box-sizing: border-box;
		-webkit-font-smoothing: antialiased;
		-webkit-transition: background-color 0.3s, color 0.15s ease-out,
			border-color 0.15s ease-out;
		-webkit-user-select: none;
		outline: none;

		border: 3px solid getColor(white);
		background-color: getColor(white);
		border-radius: 50px;
		content: ' ';
		display: block;
		height: 18px;
		margin-top: -8px;
		position: absolute;
		top: 7px;
		width: 18px;
		cursor: pointer;
	}

	&__radio:checked {
		background-color: getColor(teal-darker);
	}

	&__radio:checked + .sidebar__radio-label {
		color: getColor(teal-slightly-lighter);
	}

	&__info-text {
		position: relative;
		@include oTypographySans(-2);
		color: getColor(iron);
		margin: $padding-unit-base 0 0 0;
		padding: 0 0 0 22px;
	}

	&__info-icon {
		position: absolute;
		top: 0;
		left: 0;
		.content {
			fill: getColor(iron);
		}
	}

	//&__select-container {
	//	padding-left: $padding-unit-double;
	//}

	&__select-label {
		@include oTypographySans(-1);
		border-bottom: 1px solid getColor(white);
		padding: 0 0 $padding-unit-double 0;
		margin: 0 0 $padding-unit-base 0;
	}

	&__select {
		width: 100%;
	}

	&__selected-items--active {
		padding-bottom: $padding-unit-double;
	}

	&__selected-item-token {
		@include oTypographySans(0);
		display: inline-block;
		padding: $padding-unit-base / 2 $padding-unit-base;
		border: 1px solid getColor(white);
		margin: 0 $padding-unit-base $padding-unit-base 0;
		cursor: pointer;
		&:hover {
			background-color: getColor(white);
			color: getColor(scorpion);
		}
	}

	&__selected-item-token-name {
		display: inline-block;
		margin-right: $padding-unit-base;
	}

	&__selected-item-token-remove {
		display: inline-block;
	}

	&__clear {
		@include oTypographySans(-1);
		padding: $padding-unit-base / 2 $padding-unit-base;
		border: 1px solid getColor(white);
		background-color: getColor(scorpion);
		color: getColor(white);
		cursor: pointer;
		&:disabled {
			opacity: 0.6;
			cursor: default;
		}
		&:not(:disabled):hover {
			background-color: getColor(white);
			color: getColor(scorpion);
		}
	}
}
