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


/* Main */
.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: 3px;
}
.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;
}
.jjshoutbox svg {
    width: 14px;
    height: 14px;
}
.jjshoutbox svg:not(:root) {
    overflow: visible;
}
.jjshoutbox svg.jjshow {
	display: inline-block;
}
.jjshoutbox svg.jjhide {
	display: none;
}
.btn-toolbar svg {
	vertical-align: middle;
}
.shout-actions .jj-shout-edit {
	text-decoration: none;
	margin: 0;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	line-height: 14px;
	display: inline-block;
}
.shout-actions .shout-remove {
	background: none;
	border: 0;
	line-height: 13px;
	margin: 0;
	padding: 0;
	cursor: pointer;
}
.shout-archive .shout-remove {
	background: none;
	border: 0;
	line-height: 17px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	display: inline-block;
	width: 17px;
	height: 17px;
}
.shout-archive .shout-remove svg {
	width: 17px;
	height: 17px;
}
.jjshoutbox .avatar,
.jj-shout-history .avatar {
	position: relative;
	display: inline-block;
}
.jjshoutbox .avatar img,
.jj-shout-history .avatar img {
	margin-right: 5px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
}
.jjshoutboxoutput .user-state,
.jj-shout-history .user-state {
	position: absolute;
	width: 8px;
	height: 8px;
	display: inline-block;
	right: 6px;
	bottom: 0px;
	border-radius: 50%;
}
.jjshoutboxoutput .user-state.online,
.jj-shout-history .user-state.online {
	background: #67e164;
}
.jjshoutboxoutput .user-state.offline,
.jj-shout-history .user-state.offline {
	background: #e16464;
}
.jjshoutboxoutput .shout-header {
	font-family: inherit;
	font-size: 12px;
	font-weight: bold;
	text-transform: none;
	margin: 8px 0 0;
	padding: 0 5px;
	height: auto;
}
.jjshoutboxoutput div form {
	display: inline-block;
	margin: 0;
	vertical-align: middle;
}
.jjshoutboxoutput div p {
	font-size: 11px;
	font-family: inherit;
	text-align: left;
	margin: 5px 0 0;
	padding: 0 5px;
}
.shout-wrapper p img,
.jjshoutboxform img {
    width: 20px;
}
.jjshoutboxform .jj-smiley img {
    width: 16px;
}
.jjshoutboxoutput .jj-shout-date {
	text-align: right;
	line-height: 16px;
	padding-right: 5px;
}
.jjshoutboxoutput .jj-shout-date-text {
	font-size: 9px;
	font-weight: normal;
}
.jj-thumbs-up {
	display: inline-block;
	margin: 0 3px 0 10px;
}
.jj-thumbs-up svg {
	vertical-align: top;
}
.jj-thumbs-up-count {
	font-size: 9px;
	font-weight: normal;
}
#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,
.jjshoutboxform .uk-dropdown {
	padding: 5px !important;
	text-align: center;
	white-space: normal;
}
.jjshoutboxform .dropdown-menu li,
.jjshoutboxform .uk-dropdown li {
	display: inline-block;
	padding: 0;
	margin: 2px;
	min-height: 20px;
	list-style: none;
}
.jj_smiley {
	border: none;
	cursor: pointer;
	display: block;
	float: left;
	margin: 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;
}
.user_notifications {
	text-align: right;
}
.user_notifications a:focus,
.user_notifications a:active,
.user_notifications img:focus,
.user_notifications img:active {
	text-decoration: none;
	border: 0;
	outline: 0;
}

/* 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 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;
}
.jjshoutbox #jj-history-trigger {
	margin-top: 5px;
}
.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 .jj-shout-edit {
	display: none;
}
.jj-shout-history .shout-remove svg,
.jj-shout-history .jj-thumbs-up svg {
	width: 14px;
	height: 14px;
}

/* Image modal */
#jj-image-modal {
	width: 570px;
	margin: 0 auto;
	left: 0;
	right: 0;
}
#jj-image-modal.uk-modal { /* Fix UIKit modal width */
    width: auto;
}
@media (max-width: 570px) {
	#jj-image-modal {
		width: 95%;
	}
}
#jj-image-modal .modal-body img {
	width: 100%;
}

/* BBCode */
.bbcode-form {
	max-height: 250px;
	margin-top: 10px;
	text-align: center;
}
.bbcode-form p {
	font-weight: bold;
}
.bbcode-form input {
	width: 100%;
	min-height: 30px;
	margin-bottom: 5px;
}
.bbcode-button img {
	vertical-align: middle;
}
#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;
}
.jj-colour-block {
	display: inline-block;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	border-radius: 3px;
	background: #e16464;
	background: -webkit-linear-gradient(-45deg, #e16464 45%, #67e164 55%);
	background: -moz-linear-gradient(-45deg, #e16464 45%, #67e164 55%);
	background: linear-gradient(135deg, #e16464 45%, #67e164 55%);
}
.jjshoutboxform .jj-colour-picker {
	min-width: auto;
	width: 95px;
}
.jjshoutboxform .jj-colour-picker > li {
	width: 18px;
	height: 18px;
	min-height: 18px;
	padding: 0;
	margin: 3px;
}
.jjshoutboxform .dropdown-menu > li > a.jj-colour-picker-item,
.jjshoutboxform .jj-colour-picker a {
	display: inline-block;
	width: 18px;
	height: 18px;
	padding: 0;
	border-radius: 3px;
}
.jjshoutbox .btn-group .btn-group,
.jjshoutbox .btn-group .btn-group + button {
	margin-left: -1px;
}
.jjshoutbox .btn-group .btn-group button {
	border-radius: 0 !important;
}


/* Drag n Drop */
.jjimageupload {
	position: relative;
}
.jjimageupload.jjhover {
	border: 2px dashed #7cbbe2; 
}
.jjimageupload .jjplaceholder {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: none;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	color: #7cbbe2;
}
.jjimageupload.jjhover .jjplaceholder {
	display: block;
}
.jjimageupload .jjprogress {
	display: none;
	width: 100%;
	height: 5px;
}
.jjimageupload .jjprogress-wrap {
	position: relative;
	margin: 10px 0;
	overflow: hidden;
	background: #7cbbe2;
	transition: width .3s ease-in-out;
}
.jjimageupload .jjprogress-wrap.jjcomplete {
	background: #7be082;
}
.jjimageupload .jjprogress-wrap.jjerror {
	background: #dd7b7a;
}
.jjimageupload .jjprogress-wrap .jjprogress-bar {
	position: absolute;
	top: 0;
	left: 0;
	background: #ddd;
}


/* Clearfix */
.jj-clearfix:before {
  content: "";
  display: table-cell;
}
.jj-clearfix:after {
  content: "";
  display: table;
  clear: both;
}


/* Flexbox */
.jj-flex {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
}
.jj-flex > * {
	-ms-flex-negative: 1;
}
.jj-flex-middle {
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}
.jj-flex-right {
	-ms-flex-pack: end;
	-webkit-justify-content: flex-end;
	justify-content: flex-end;
}
.jj-flex-space-between {
	-ms-flex-pack: justify;
	-webkit-justify-content: space-between;
	justify-content: space-between;
}


/* Layout 2 */
.jjshoutbox .layout-2 .shout-wrapper {
	padding: 5px 0;
}
.jjshoutbox .layout-2 .shout-header {
	background: none;
	padding-right: 5px;
	margin: 0;
}
.jjshoutbox .layout-2 .avatar {
	float: left;
	margin: 2px 2px 2px 0;
}
.jjshoutbox .layout-2 .jj-shout-text {
	padding: 0 5px;
	font-size: 11px;
	line-height: 15px;
	font-family: inherit;
}
.jjshoutbox .layout-2 .jj-shout-name {
	font-weight: bold;
}
.jjshoutbox .layout-2 .shout-actions {
	display: inline-block;
}
.jjshoutbox .layout-2 .jj-shout-date-text,
.jjshoutbox .layout-2 .jj-thumbs-up-count {
	margin-right: 10px;
}
.jjshoutbox .layout-2 .jj-thumbs-up {
	margin: 0;
}


/* Toggle classes for slideUp/slideDown */
.jj-toggle {
	overflow: hidden;
	transition: all .4s;
	transition-timing-function: ease-in;
}

.jj-toggle.jj-hidden {
	min-height: 0 !important;
	max-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	border: 0 !important;
	transition-timing-function: ease-out;
}


/* Non-bootstrap styling for BBCode */
.jjshoutbox .btn-toolbar {
	margin-top: 10px;
}
.jjshoutbox .btn-group .btn {
	min-width: 27px;
	height: 24px;
	padding: 2px 3px;
	line-height: 1;
	cursor: pointer;
}


/**
RTL
**/
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"] .user_notifications {
    text-align: left;
}
html[dir="rtl"] .jjshoutboxform #mathscanvas {
    float: right;
}
html[dir="rtl"] .jjshoutbox .btn-group .btn-group,
html[dir="rtl"] .jjshoutbox .btn-group .btn-group + button {
    float: right;
    margin-right: -1px;
}
