/**
 * @package    JJ_Shoutbox
 * @copyright  Copyright (C) 2011 - 2018 JoomJunk. All rights reserved.
 * @license    GPL v3.0 or later http://www.gnu.org/licenses/gpl-3.0.html
 */

.jjshoutbox {
	margin: auto;
	width: 100%;
}
.jjshoutbox img {
	display: inline;
}
.jjshoutboxform {
	margin: 0 auto;
}
.jjshoutbox > div,
.jjshoutbox textarea,
.jjshoutbox input {
	box-sizing: border-box;
}
.jjshoutboxform textarea {
	width: 100%;
	margin: 0;
	resize: vertical;
}
.jjshoutboxform .fullwidth {
	margin-top: 5px;
	color: #000;
	width: 100%;
	min-height: 30px;
}
.jjshoutboxform .mass_delete {
	margin-top: 20px;
}
.jjshoutboxform .mass_delete input {
	margin-top: 0;
}
.jjshoutboxform p {
	margin: 4px 0;
}
.jjshoutboxoutput {
	width: 100%;
	border-style: solid;
	background: #FFFFFF;
	overflow: auto;
	margin-top: 5px;
	word-wrap: break-word;
	margin-bottom: 10px;
}
.jjshoutboxoutput input[type=submit] {
	cursor: pointer;
	text-align: center;
	font-family: inherit;
	font-weight: bold;
	font-size: 10px;
	text-decoration: none;
	background: none;
	padding: 0;
	margin: 0;
	border: 0;
	height: 15px;
	vertical-align: top;
}
.jjshoutboxoutput .shout-actions {
	position: absolute;
	top: 0;
	right: 3px;
}
.shout-actions .jj-shout-edit {
	text-decoration: none;
	margin: 0;
}
.shout-actions .shout-remove {
	background: none;
	border: 0;
	line-height: 13px;
	margin: 0;
	padding: 3px 0 0;
	vertical-align: top;
	cursor: pointer;
}
.jjshoutboxoutput .shout-header {
	font-family: inherit;
	font-size: 12px;
	font-weight: bold;
	text-transform: none;
	margin: 8px 0 0;
	padding: 0 35px 0 5px;
	height: auto;
	line-height: 20px;
	position: relative;
}
.jjshoutboxoutput div form {
	display: inline-block;
	margin: 0;
}
.jjshoutboxoutput div p {
	font-size: 11px;
	font-family: inherit;
	text-align: left;
	margin: 5px 0 10px;
	padding: 0 0 0 5px;
}
#noguest {
	color: #FF0000; 
	font-weight: bold; 
}
.jjshoutboxform input#math_output {
	width: 70px;
	margin-top: 0;
}
.jjshoutboxform #mathscanvas {
	float: left;
}
.jjshoutbox .jj_error {
	color: red;
	font-weight: bold;
}
.jjshoutbox .jj-shout-error {
	display: none;
	margin-top: 5px;
}
.jjshoutbox .jj-shout-error .alert {
	margin-bottom: 0;
	padding-right: 14px
}
.jjshoutbox .jj_label {
	width: 70px; 
	display: inline-block;
}
.jjshoutbox .jj_input {
	width: 70px;
	display: inline-block;
}
.jjshoutboxform .dropdown-menu {
	padding: 5px !important;
}
.jjshoutboxform .dropdown-menu li,
.jjshoutboxform .uk-dropdown li {
	float: left;
	padding: 0 2px;
	min-height: 26px;
	list-style: none;
}
.jj_smiley {
	border: none;
	cursor: pointer;
	display: block;
	float: left;
	margin: 0 3px 5px 0;
}
.jj_smiley:hover {
	background: none !important;
	border: 0;
	outline: 0;
}
.jjshoutboxform[type='number'] {
	padding: 4px 0px;
}
.jjshoutbox-audio {
	display: none;
}
a.edit-cancel,
a.edit-cancel.btn,
.uk-button.edit-cancel {
	display: none;
	width: 100%;
	margin-top: 5px;
	min-height: 30px;
	box-sizing: border-box;
}

/**
Tag a user dropdown
**/
.jj_tag_user.dropdown-menu > .active > a, 
.jj_tag_user.dropdown-menu > .active > a:hover, 
.jj_tag_user.dropdown-menu > .active > a:focus {
	background: none;
	padding-left: 0;
	padding-right: 0;
}

/**
Shoutbox history
**/
.jj-shout-history.modal-body {
	max-height: 400px;
	overflow-y: auto;
}
.jj-shout-history .jj-shout-edit {
	display: none;
}
.jj-shout-history p {
	margin: 5px 0 0;
}
.jj-shout-history > div {
	background-color: #f5f5f5;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
	margin-bottom: 20px;
	min-height: 20px;
	padding: 5px 9px;
	overflow-x: auto;
}
.center-block {
	display: block;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.jj-shout-history > div.center-block {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0 0 10px 0;
}
.jj-shout-history form {
	float: right;
}
.jj-shout-history form input[type="submit"] {
	background: none;
	border: 0 none;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: bold;
	height: 20px;
	margin: 0;
	padding: 0;
	text-align: center;
	text-decoration: none;
	vertical-align: top;
}
#jj-shout-history .shout-header {
	font-weight: bold;
	color: #000;
	background: none;
}
.jj-shout-history .avatar img {
	width: 30px;
	height: 30px;
}

/**
Non-bootstrap styling for BBCode
**/
.jjshoutbox .btn-toolbar {
	margin-top: 10px;
}
.jjshoutbox .btn-group .btn {
	cursor: pointer;
	min-width: 30px;
	padding: 2px 7px;
}

/**
BBCode
**/
.bbcode-form {
	display: none;
	margin-top: 10px;
}
.bbcode-form p {
	font-weight: bold;
}
.bbcode-form input {
	width: 100%;
	min-height: 30px;
	margin-bottom: 5px;
}
#bbcode-insert,
#bbcode-cancel {
	margin-top: 5px;
}
.jj-bold {
	font-weight: bold !important;
}
.jj-italic {
	font-style: italic !important;
}
.jj-underline {
	text-decoration: underline !important;
}

/**
RTL
**/
html[dir="rtl"] .jjshoutboxoutput .shout-header {
    padding: 0 5px 0 35px;
}
html[dir="rtl"] .jjshoutbox .btn-group .btn {
    min-width: 26px;
	margin-bottom: 5px;
}
html[dir="rtl"] .jjshoutboxoutput div p {
    text-align: right;
    padding: 0 5px 0 0;
}
html[dir="rtl"] .jjshoutboxoutput .shout-actions {
    position: absolute;
    top: 0;
    left: 3px;
    right: auto;
}