/* Editor Fix */
.bbp-editor-fix {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 0 0 3px 3px !important;
    width: 100%;
    resize: vertical;
}

/* User Stats */
.bbp-user-stats .bbp-value {
    font-weight: bold;
}

/* Quotes */
.d4p-bbt-quote-block {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #dddddd;
    text-align: right;
}

.d4p-bbt-quote-title {
    font-weight: bold;
    padding-bottom: 2px;
    margin-bottom: 5px;
    border-bottom: 1px solid #dddddd;
}

.d4pbbc-quote {
    padding: 0 0 .5em 1em;
}

.d4pbbc-quote p:last-child {
    margin-bottom: 0 !important;
}

/* BBCodes */
.d4pbbc-spoiler {
    padding: 0 5px;
}

table.d4pbbc-nfo {
    border: 1px solid #222222;
}

table.d4pbbc-nfo td.d4p-bbt-title {
    background: #222222;
    color: #ffffff;
    border: none;
}

table.d4pbbc-nfo td.d4p-bbt-content {
    padding: 0;
}

table.d4pbbc-nfo td.d4p-bbt-content pre {
    color: #000000;
    background: #ffffff;
    font-size: 10px;
    line-height: 10px;
    font-family: monospace;
    border: none;
    margin: 0;
}

.bbp-form.bbp-signature span.description {
    width: 100% !important;
    margin: 5px 0 0 !important;
}

/* BBCode Hide */
.d4pbbc-hide {
    margin: 6px 0 12px;
    border: 1px solid #cccccc;
}

.d4pbbc-hide.d4phide-hidden .d4phide-title {
    color: #cc0000;
}

.d4pbbc-hide .d4phide-title {
    padding: 4px 8px;
    font-weight: bold;
    background-color: #cccccc;
}

.d4pbbc-hide .d4phide-content {
    padding: 4px 8px;
    background-color: #fdfdfd;
}

/* BBCodes Toolbar */
.bbp-bbcodes-toolbar,
.bbp-bbcodes-toolbar * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.bbp-bbcodes-toolbar {
    display: block;
    border-radius: 3px 3px 0 0;
    border: 1px solid #dddddd;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.bbp-bbcodes-toolbar .bbp-bbtbar-inner {
    overflow: auto;
    padding: 3px;
}

.bbp-bbcodes-toolbar .bbp-bbtbar-button {
    border: 1px solid #f5f5f5;
    text-align: center;
    border-radius: 3px;
    float: left;
    margin: 2px;
}

.bbp-bbcodes-toolbar .bbp-bbtbar-button a {
    display: block;
    text-decoration: none;
    border: none;
    color: #666666;
}

.bbp-bbcodes-toolbar .bbp-bbtbar-button:hover {
    border: 1px solid #dddddd;
    background-color: #ffffff;
}

.bbp-bbcodes-toolbar .bbp-bbtbar-button:hover a {
    color: #111111;
}

.bbp-bbcodes-toolbar.bbp-bbtbar-size-small .bbp-bbtbar-inner {
    font-size: 14px;
    line-height: 16px;
}

.bbp-bbcodes-toolbar.bbp-bbtbar-size-small .bbp-bbtbar-button {
    height: 24px;
    padding: 2px;
    width: 24px;
}

.bbp-bbcodes-toolbar.bbp-bbtbar-size-medium .bbp-bbtbar-inner {
    font-size: 19px;
    line-height: 21px;
}

.bbp-bbcodes-toolbar.bbp-bbtbar-size-medium .bbp-bbtbar-button {
    height: 29px;
    padding: 3px;
    width: 29px;
}

.bbp-bbcodes-toolbar.bbp-bbtbar-size-large .bbp-bbtbar-inner {
    font-size: 24px;
    line-height: 26px;
}

.bbp-bbcodes-toolbar.bbp-bbtbar-size-large .bbp-bbtbar-button {
    height: 36px;
    padding: 3px;
    width: 36px;
}

/* Widgets */
.d4p-bbw-widget.bbf-userprofile {
    overflow: auto;
    line-height: 1.4em;
}

.d4p-bbw-widget.bbf-userprofile a {
    text-decoration: none;
}

.d4p-bbw-widget.bbf-userprofile h3 {
    background-color: #FAFAFA;
    color: #333333 !important;
    margin-bottom: 1em !important;
    padding: 0.3em 0.1em;
    text-align: center;
}

.d4p-bbw-widget.bbf-userprofile h3 a {
    color: #333333 !important;
}

.d4p-bbp-profile-left {
    float: left;
    text-align: center;
}

.d4p-bbp-profile-left a {
    font-size: 0.9em;
    display: block;
}

.d4p-bbp-profile-right {
    float: left;
    overflow: auto;
    margin-left: 1em;
}

.d4p-bbp-profile-right h4 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 10px 0;
}

.d4p-bbp-profile-right h4:first-child {
    margin-top: 0;
}

.d4p-bbp-profile-right ul {
    margin-bottom: .5em;
}

.d4p-bbp-profile-right ul:last-child {
    margin-bottom: 0;
}

/* Attachments */
.bbp-attachments-count.bbp-atticon-paperclip {
    background: transparent url(../gfx/ui/icons.png);
    display: inline-block;
    width: 16px;
    height: 16px;
    float: left;
    margin-right: 4px;
}

.bbp-attachments, 
.bbp-attachments-errors {
    border-top: 1px solid #dddddd;
    margin-top: 10px;
    padding: 10px 0;
    overflow: auto;
}

#bbpress-forums .bbp-attachments h6, 
#bbpress-forums .bbp-attachments-errors h6 {
    margin: 0 0 5px !important;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.4em;
}

#bbpress-forums .bbp-attachments ol,
#bbpress-forums .bbp-attachments-errors ol {
    margin: 0 !important;
    list-style: decimal inside none;
    overflow: auto;
}

#bbpress-forums .bbp-attachments ol.with-icons {
    list-style: none;
}

#bbpress-forums .bbp-attachments ol.with-icons li {
    line-height: 16px;
    height: 16px;
}

#bbpress-forums .bbp-attachments ol.with-font-icons li {
    line-height: 20px;
    height: 20px;
}

#bbpress-forums .bbp-attachments li {
    margin: 0 0 6px !important;
}

#bbpress-forums .bbp-attachments-errors li {
    line-height: 16px;
    margin: 0 0 6px !important;
}

#bbpress-forums .bbp-attachments li a {
    text-decoration: none;
}

#bbpress-forums .bbp-attachments li:last-child,
#bbpress-forums .bbp-attachments-errors li:last-child {
    margin: 0 !important;
}

#bbpress-forums .bbp-attachments ol.with-icons li {
    padding: 0 0 0 18px;
    list-style: none;
}

#bbpress-forums .bbp-attachments ol li.bbp-atthumb {
    padding: 0;
    height: auto;
}

#bbpress-forums .bbp-attachments ol li.bbp-atthumb.bbp-inline {
    float: left;
    margin-right: 5px !important;
}

#bbpress-forums .bbp-attachments ol li.bbp-atthumb .wp-caption {
    padding: 5px;
    margin: 0;
    height: auto;
}

#bbpress-forums .bbp-attachments ol li.bbp-atthumb .wp-caption p.wp-caption-text {
    margin: 5px 0 !important;
    word-wrap: break-word;
    line-height: 1.3em;
}

#bbpress-forums .bbp-attachments ol li.bbp-atthumb .wp-caption img {
    margin: 0;
}

#bbpress-forums .bbp-attachments li.bbp-atticon {
    background: transparent url(../gfx/ui/icons.png) no-repeat;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-ai {
    background-position: 0 -128px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-archive {
    background-position: 0 -144px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-audio {
    background-position: 0 -256px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-code {
    background-position: 0 -32px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-documents {
    background-position: 0 -240px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-excel {
    background-position: 0 -64px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-generic {
    background-position: 0 -16px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-html {
    background-position: 0 -208px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-icon {
    background-position: 0 -272px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-image {
    background-position: 0 -96px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-pdf {
    background-position: 0 -192px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-powerpoint {
    background-position: 0 -176px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-psd {
    background-position: 0 -112px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-text {
    background-position: 0 -160px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-video {
    background-position: 0 -224px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-word {
    background-position: 0 -80px;
}

#bbpress-forums .bbp-attachments li.bbp-atticon.bbp-atticon-xml {
    background-position: 0 -48px;
}

.bbp-attachments-form .bbp-attachments-input {
    padding: 0.6em;
    margin: 0 0 10px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.bbp-attachments-form .bbp-attachments-input input {
    margin: 0 !important;
}

.bbp-attachments-form .bbp-attachments-input.bbp-attachment-invalid {
    background-color: #ffebe8;
    border-color: #c00;
}

/* Signature */
#bbpress-forums .bbp-signature {
    border-top: 1px solid #dddddd;
    margin-top: 15px;
    padding: 5px 0;
}

#bbpress-forums #bbp-your-profile fieldset fieldset.bbp-signature {
    display: inline;
    width: 60%;
}

#bbpress-forums #bbp-your-profile fieldset fieldset.bbp-signature textarea,
#bbpress-forums #bbp-your-profile fieldset fieldset.bbp-signature span {
    width: 100%;
}
