/* QRABBCT: custom BBCodes styles */

.qrabbct-spoiler {
	margin: 5px 0;
	border: 1px dashed #9aa9b6;
	background: #f9fbfc;
	border-radius: 5px;
	overflow: hidden;
}

.qrabbct-spoiler > summary {
	cursor: pointer;
	font-weight: 600;
	color: #2b587a;
	position: relative;
	padding: 6px 8px 6px 22px;
	background: #eef5f9;
	border-bottom: 1px dashed #9aa9b6;
	list-style: none;
}

.qrabbct-spoiler > summary::-webkit-details-marker {
	display: none;
}

.qrabbct-spoiler > summary::before {
	content: "+";
	position: absolute;
	left: 9px;
	top: 7px;
}

.qrabbct-spoiler[open] > summary::before {
	content: "−";
}

.qrabbct-spoiler > summary:empty::after {
	content: "Спойлер";
}

.qrabbct-spoiler .qrabbct-spoiler-content {
	padding: 8px 10px;
	background: #f9fbfc;
}

.qrabbct-offtopic {
	margin: 6px 0;
	padding: 0px 5px 5px 0px;
	border: 1px solid #d3a55b;
	background: #fff8ec;
	color: #5f4a2f;
	border-radius: 5px;
	position: relative;
}

.qrabbct-offtopic > strong {
	display: inline-block;
	padding: 2px 8px;
	background: #d3a55b;
	color: #fff;
	border-radius: 4px 0 4px 0;
	font-weight: 600;
	margin-bottom: 4px;
}

.qrabbct-highlight {
	background: #ffeb3b;
	padding: 0 2px;
}

.qrabbct_buttons_row {
    float: left;
    width: 80%;
}

.qrabbct_select_row {
   float: left;
    width: 80%;
}

/* "Вид сообщения" in select (colors per option) */
#qrabbct-message-type option[value="admin_message"],
#qrabbct-message-type option[value="moder_message"] {
	color: #0072ff;
}

#qrabbct-message-type option[value="admin_warning"],
#qrabbct-message-type option[value="moder_warning"] {
	color: #ff0000;
}

#qrabbct-message-type option[value="announcement"] {
	color: #0076B1;
}

#qrabbct-message-type option[value="update"] {
	color: #008000;
}

#qrabbct-message-type option[value="important"] {
	color: #d71414;
}

#qrabbct-message-type option[value="instruction"] {
	color: #096c63;
}

/* [imgL]/[imgR]/[imgC] custom image alignment */
.qrabbct-img {
	margin: 6px 0;
}

.qrabbct-img img {
	max-width: 100%;
	height: auto;
}

.qrabbct-img-left {
	float: left;
	margin: 0 10px 10px 0;
}

.qrabbct-img-right {
	float: right;
	margin: 0 0 10px 10px;
}

.qrabbct-img-center {
	clear: both;
	text-align: center;
	float: none;
}

.qrabbct-img-center img {
	display: inline-block;
}