#format-buttons, #abbc3_buttons {
	position: sticky;
	top: -1px; /* For IntersectionObserver */
	z-index: 1;
	background: #ecf1f3;
	padding: 2px 0 4px;
	margin: 5px 0 0;
	line-height: 28px;
}

#abbc3_buttons {
	margin: 15px 0 2px !important;
	padding: 0 !important;
	width: 80% !important;
}

.abbc3_buttons_row {
	width: 100% !important;
}

@media (max-width: 700px) {
	#abbc3_buttons {
		width: 100% !important;
	}
}

#format-buttons[stuck], #abbc3_buttons[stuck] {
	box-shadow: 0 5px 3px -4px #0000004a;
}

/* Spaces */
#format-buttons .bbcode-img,
#format-buttons .bbcode-color {
	margin-left: 10px;
}

#format-buttons .bbcode-u,
#format-buttons .bbcode-file,
#format-buttons .bbcode-size {
	margin-right: 10px;
}

/* Font colour */
.color-picker-wrap {width: 100%;padding: 0;display:inline-block;margin-bottom:0;}
.color-picker-wrap a, .color-picker-wrap span{border: 1px dotted #333333; position:relative;float:left;width:32px;height:32px;margin:2px 1px 0 0;background:#000;cursor:pointer;/*filter:alpha(opacity=50);opacity:.5;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-ms-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s;*/}
/*.color-picker-wrap a:hover{filter:alpha(opacity=100);opacity:1}*/
.color-picker-wrap a.active, .color-picker-wrap span.active{height:36px;margin-top:0;filter:alpha(opacity=100);opacity:1;border-style: solid;}
.color-picker-wrap span.add_new{ font-family: 'Roboto';background:#fff;border: 1px dotted #333333; text-align:center;line-height: 32px;font-size:24px;}
.color-picker-wrap.cp-sm a, .color-picker-wrap.cp-sm span{width:24px;height:24px;}
.color-picker-wrap.cp-sm a.active, .color-picker-wrap.cp-sm span.active{height:28px;}
.color-picker-wrap.cp-sm span.add_new{ line-height: 24px;font-size:16px;}
.color-picker-wrap.cp-lg a, .color-picker-wrap.cp-lg span{width:48px;height:48px;}
.color-picker-wrap.cp-lg a.active, .color-picker-wrap.cp-lg span.active{height:52px;}
.color-picker-wrap.cp-lg span.add_new{ line-height: 48px;font-size:40px;}
.color-picker-wrap .color-picker{display:none;}

/* Font size */
select.bbcode-size, select[name="abbc3_addbbcode20"] {
	display: none;
}

button.bbcode-size div.dropdown-container {
	display: inline-block;
	margin-bottom: 0;
}

button.bbcode-size .dropdown-container .pointer,
button.bbcode-size .dropdown-container .pointer-inner {
	margin-bottom: 0;
}

button.bbcode-size .dropdown-container .pointer {
	left: 4px;
}
