groupbox
{
	overflow: hidden;
	min-height: 142px;
	margin: 0;
	padding: 1px 1px 0;
}

#tags-deck {
	-moz-box-flex: 1;
}

#tags-deck > box {
	-moz-box-align: center;
	-moz-box-pack: center;
}

#tags-box {
	overflow-x: hidden;
	overflow-y: auto;
	background-color: -moz-field;
}

#tags-box > div {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
}

#tags-box button {
	margin: .15em .05em .15em .3em !important;
	padding: 0 .25em 0 .25em !important;
	max-width: 250px;
	overflow: hidden;
	text-overflow: ellipsis;
	background-color: transparent;
	font-size: 1em; /* Scale with font size pref */
	text-align: left;
	white-space: nowrap;
	border: 1px solid transparent; /* always include border so height is same as zotero-clicky */
	-moz-appearance: none;
	-moz-padding-start: 0 !important;
	-moz-padding-end: 0 !important;
	-moz-user-focus: ignore;
}

/* Visible out-of-scope tags should be grey */
#tags-box button[inScope=false]:not([hasColor=true]) {
	color: #666 !important;
}

#tags-box button[inScope=false][hasColor=true] {
	opacity: .6;
}

#tags-box button[draggedOver="true"] {
	color: white !important;
	background: #666;
}

groupbox > hbox
{
	-moz-box-align: center;
	-moz-box-pack: center;
}

textbox
{
	margin: 3px 0 1px;
	font-size: 11px !important; /* Keep font size in Linux within reason */
}

groupbox > hbox > hbox
{
	-moz-box-flex: 1;
	-moz-box-align: center;
}

/* Bottom buttons */
toolbarbutton.zotero-clicky
{
	margin:2px 5px 3px;
	padding:1px;
	height:1em;
}

#view-settings-menu {
	list-style-image: url(chrome://zotero/skin/tag-selector-menu.png);
}

#view-settings-menu .toolbarbutton-icon {
	width: 16px;
	margin-right: 12px; /* leave room for dropmarker */
}


/* BEGIN 2X BLOCK -- DO NOT EDIT MANUALLY -- USE 2XIZE */
@media (min-resolution: 1.25dppx) {
	#view-settings-menu  { list-style-image: url(chrome://zotero/skin/tag-selector-menu@2x.png); }
}
