/*--------------------------------------------------------------------------------------

General

--------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------
General text
--------------------------------------------------------------*/

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results,
#bbpress-forums ul.bbp-topics {
  border: 0;
}
#bbpress-forums hr {
  border-color: var(--gp-misc-border-color);
}

/*--------------------------------------------------------------
Avatars
--------------------------------------------------------------*/

.bbp-author-avatar img {
  border-radius: 50%;
}
#bbpress-forums .widget_display_replies img.avatar,
#bbpress-forums .widget_display_topics img.avatar,
#bbpress-forums div.bbp-template-notice img.avatar,
#bbpress-forums p.bbp-topic-meta img.avatar,
#bbpress-forums ul.bbp-reply-revision-log img.avatar,
#bbpress-forums ul.bbp-topic-revision-log img.avatar,
#bbpress-forums .widget_display_replies img,
#bbpress-forums .widget_display_topics img,
#bbpress-forums div.bbp-template-notice img,
#bbpress-forums p.bbp-topic-meta img,
#bbpress-forums ul.bbp-reply-revision-log img,
#bbpress-forums ul.bbp-topic-revision-log img {
  border: 0;
  margin: 0px 5px 0 5px;
  vertical-align: middle;
}

/*--------------------------------------------------------------
Forms
--------------------------------------------------------------*/

#bbpress-forums fieldset.bbp-form input[type="password"],
#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form select {
  height: auto;
}

/*--------------------------------------------------------------
Tables
--------------------------------------------------------------*/

/* Table Header/Footer ************************************/

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics {
  overflow-x: auto;
}
div#bbpress-forums .bbp-forums .bbp-header,
div#bbpress-forums .bbp-forums .bbp-body,
div#bbpress-forums .bbp-forums .bbp-footer,
div#bbpress-forums .bbp-topics .bbp-header,
div#bbpress-forums .bbp-topics .bbp-body,
div#bbpress-forums .bbp-topics .bbp-footer {
  min-width: 645px;
}
#bbpress-forums li.bbp-footer,
#bbpress-forums li.bbp-header {
  padding: 10px 0;
  font-weight: var(--gp-strong-font-weight);
  background: none;
  border: 0;
  background: var(--gp-misc-bg-color);
  color: var(--gp-tertiary-color);
  font-size: 14px;
  line-height: 18px;
  border-radius: var(--gp-section-border-radius);
}
#bbpress-forums li.bbp-header {
  margin-bottom: 10px;
}
#bbpress-forums li.bbp-header ul {
  padding: 0 15px;
}
#bbpress-forums li.bbp-footer {
  margin-top: 10px;
}

/* Table Rows ************************************/

#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-reply-header,
#bbpress-forums div.bbp-topic-header {
  background-color: var(--gp-misc-bg-color);
  border: 0;
  font-size: 12px;
  line-height: 16px;
}
#bbpress-forums div.bbp-forum-content,
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
  padding: 20px 20px 20px 0;
  font-size: 14px;
  line-height: 24px;
  word-break: break-word;
}
#bbpress-forums div.odd,
#bbpress-forums ul.odd,
#bbpress-forums div.even,
#bbpress-forums ul.even {
  background: var(--gp-misc-bg-color);
}
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
  margin: 0 0 2px 0;
  padding: 15px;
  border: 0;
}
.bbp-forum-content ul.sticky,
.bbp-topics ul.sticky,
.bbp-topics ul.super-sticky,
.bbp-topics-front ul.super-sticky {
  background-color: var(--gp-misc-bg-color) !important;
  border-left: 6px solid #f0ad4e !important;
}
#bbpress-forums ul:first-child {
  border-top-left-radius: var(--gp-section-top-left-border-radius);
  border-top-right-radius: var(--gp-section-top-right-border-radius);
}
#bbpress-forums ul:last-child {
  border-bottom-left-radius: var(--gp-section-bottom-left-border-radius);
  border-bottom-right-radius: var(--gp-section-bottom-right-border-radius);
}

/* Forum/Topic Title ************************************/

#bbpress-forums li.bbp-body ul.forum .bbp-forum-title,
#bbpress-forums li.bbp-body ul.topic .bbp-topic-permalink {
  font-size: 16px;
  line-height: 20px;
  color: var(--gp-body-text-color);
}
#bbpress-forums li.bbp-body ul.forum .bbp-forum-title:hover,
#bbpress-forums li.bbp-body ul.topic .bbp-topic-permalink:hover {
  color: var(--gp-primary-color);
}

/* Meta text ************************************/

#bbpress-forums .bbp-forum-info .bbp-forum-content,
#bbpress-forums p.bbp-topic-meta,
#bbpress-forums p.bbp-topic-meta a {
  font-size: 14px;
  line-height: 18px;
  color: var(--gp-tertiary-color);
}
#bbpress-forums p.bbp-topic-meta a:hover {
  color: var(--gp-secondary-color);
}
#bbpress-forums li.bbp-body li.bbp-forum-topic-count,
#bbpress-forums li.bbp-body li.bbp-forum-reply-count,
#bbpress-forums li.bbp-body li.bbp-forum-freshness,
#bbpress-forums li.bbp-body li.bbp-topic-voice-count,
#bbpress-forums li.bbp-body li.bbp-topic-reply-count,
#bbpress-forums li.bbp-body li.bbp-topic-freshness {
  color: var(--gp-tertiary-color);
  font-size: 14px;
  line-height: 18px;
}
#bbpress-forums li.bbp-body li.bbp-forum-freshness a,
#bbpress-forums li.bbp-body li.bbp-topic-freshness a {
  font-size: 14px;
  line-height: 18px;
  color: var(--gp-tertiary-color);
}
#bbpress-forums li.bbp-body li.bbp-forum-freshness a:hover,
#bbpress-forums li.bbp-body li.bbp-topic-freshness a:hover {
  color: var(--gp-secondary-color);
}

/*--------------------------------------------------------------------------------------

Main Forum Page

--------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------
Search box
--------------------------------------------------------------*/

#bbpress-forums div.bbp-search-form {
  width: 100%;
  margin-bottom: 20px;
}
#bbpress-forums div.bbp-search-form #bbp-search-form > div {
  display: flex;
}
#bbpress-forums #bbp-search-form #bbp_search {
  width: 100%;
  margin-right: 10px;
}

/*--------------------------------------------------------------
Child forums
--------------------------------------------------------------*/

#bbpress-forums .bbp-forums-list {
  padding-left: 12px;
  border-color: var(--gp-misc-border-color);
}
#bbpress-forums .bbp-forums-list .bbp-forum {
  font-size: 14px;
}
#bbpress-forums .bbp-forums-list .bbp-forum a {
  color: var(--gp-body-text-color);
}
#bbpress-forums .bbp-forums-list .bbp-forum a:hover {
  color: var(--gp-primary-color);
}

/*--------------------------------------------------------------------------------------

Topics

--------------------------------------------------------------------------------------*/

.bbp-pagination-count {
  font-size: 12px;
  line-height: 16px;
}
#bbp_topic_tags {
  width: 100%;
}

/*--------------------------------------------------------------
Topic/Reply Form
--------------------------------------------------------------*/

.bbp-reply-form {
  padding-top: 20px;
}
#bbpress-forums fieldset.bbp-form {
  border: 0;
  padding: 0;
}
#bbpress-forums fieldset.bbp-form legend {
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 16px;
  line-height: 22px;
}
#bbpress-forums fieldset.bbp-form label {
  margin: 10px 0 5px 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: var(--gp-strong-font-weight);
}
#bbpress-forums div.wp-editor-container {
  padding: 0;
}
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
}
#bbpress-forums div.bbp-the-content-wrapper input[type="button"] {
  color: var(--gp-body-text-color);
}

/*--------------------------------------------------------------------------------------

Replies/Search Results

--------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------
Table Header
--------------------------------------------------------------*/

#bbpress-forums .bbp-search-results div.bbp-forum-header,
#bbpress-forums .bbp-search-results div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header {
  margin: 0 0 2px 0;
  padding: 20px;
  border: 0;
  border-top-left-radius: var(--gp-section-top-left-border-radius);
  border-top-right-radius: var(--gp-section-top-right-border-radius);
}
#bbpress-forums li.bbp-header .bbp-reply-content,
#bbpress-forums li.bbp-footer .bbp-reply-content {
  margin-left: 150px;
  line-height: 18px;
}

/*--------------------------------------------------------------
Admin Links
--------------------------------------------------------------*/

#bbpress-forums div.bbp-reply-header span.bbp-admin-links {
  display: block;
  float: none;
  margin-top: 5px;
  color: var(--gp-tertiary-color);
}
#bbpress-forums div.bbp-reply-header span.bbp-admin-links a {
  color: var(--gp-tertiary-color);
}
#bbpress-forums div.bbp-reply-header span.bbp-admin-links a:hover {
  color: var(--gp-secondary-color);
}

/*--------------------------------------------------------------
Reply Boxes
--------------------------------------------------------------*/

/* General ************************************/

#bbpress-forums .bbp-search-results div.odd,
#bbpress-forums .bbp-search-results div.even,
#bbpress-forums .bbp-replies div.odd,
#bbpress-forums .bbp-replies div.even {
  background: var(--gp-misc-bg-color);
  margin: 0 0 10px 0;
  padding: 0 20px;
  border-bottom-left-radius: var(--gp-section-bottom-left-border-radius);
  border-bottom-right-radius: var(--gp-section-bottom-right-border-radius);
}

/* Author Column ************************************/

#bbpress-forums div.bbp-topic-author .bbp-author-link,
#bbpress-forums div.bbp-reply-author .bbp-author-link {
  color: var(--gp-body-text-color);
}
#bbpress-forums div.bbp-topic-author .bbp-author-link:hover,
#bbpress-forums div.bbp-reply-author .bbp-author-link:hover {
  color: var(--gp-primary-color);
}
#bbpress-forums div.bbp-topic-author .bbp-author-name,
#bbpress-forums div.bbp-reply-author .bbp-author-name {
  font-size: 14px;
  line-height: 18px;
  font-weight: var(--gp-strong-font-weight);
}
#bbpress-forums div.bbp-forum-author .bbp-author-role,
#bbpress-forums div.bbp-reply-author .bbp-author-role,
#bbpress-forums div.bbp-topic-author .bbp-author-role {
  margin: 0 0 5px 0;
  font-style: normal;
  color: var(--gp-tertiary-color);
}
.gp-theme #bbpress-forums div.bbp-topic-author img,
.gp-theme #bbpress-forums div.bbp-reply-author img {
  margin: 20px auto 10px auto;
}

/*--------------------------------------------------------------------------------------

Search Results

--------------------------------------------------------------------------------------*/

#bbpress-forums div.bbp-forum-title h3,
#bbpress-forums div.bbp-reply-title h3,
#bbpress-forums div.bbp-topic-title h3 {
  line-height: 1.4em;
}

/*--------------------------------------------------------------------------------------

Other

--------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------
Pagination
--------------------------------------------------------------*/

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  margin: 0 2px;
  color: var(--gp-body-text-color);
  font-size: 12px;
  line-height: 30px;
  font-weight: var(--gp-strong-font-weight);
  border-radius: 50%;
  border: 0;
  opacity: 1;
}
#bbpress-forums .bbp-pagination-links a:hover,
#bbpress-forums .bbp-pagination-links span.current,
#bbpress-forums .bbp-topic-pagination a:hover {
  background: var(--gp-button-bg-color, var(--gp-primary-color));
  color: var(--gp-button-text-color);
  border: 0;
  opacity: 1;
}

/*--------------------------------------------------------------------------------------

Profile

--------------------------------------------------------------------------------------*/

#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a {
  background: var(--gp-misc-bg-color);
  border-radius: var(--gp-section-border-radius);
}

/*--------------------------------------------------------------------------------------

Media Queries

--------------------------------------------------------------------------------------*/

@media only screen and (max-width: 480px) {
  #bbpress-forums div.bbp-search-form {
    width: 100%;
  }
  #bbpress-forums div.bbp-search-form #bbp-search-form > div {
    display: flex;
    justify-content: space-between;
  }
  div.bbp-search-form button,
  div.bbp-search-form input {
    padding: 16px 30px 16px 30px;
  }
  div.bbp-search-form button,
  div.bbp-search-form input {
    font-size: 14px;
  }
}

@media only screen and (max-width: 480px) {
  #bbpress-forums .bbp-body div.bbp-reply-content,
  #bbpress-forums .bbp-body div.bbp-topic-content {
    margin: 0;
    padding: 20px 20px 20px 0;
  }
  span.bbp-reply-post-date,
  span.bbp-topic-post-date {
    float: none;
  }
  #bbpress-forums .bbp-body div.bbp-reply-author,
  #bbpress-forums .bbp-body div.bbp-topic-author {
    margin: 0;
    min-height: auto;
    padding: 20px 20px 0 80px;
    border: 0;
  }
}

@media only screen and (max-width: 320px) {
  #bbpress-forums li.bbp-body li.bbp-forum-freshness,
  #bbpress-forums li.bbp-body li.bbp-topic-freshness,
  #bbpress-forums li.bbp-header li.bbp-forum-freshness,
  #bbpress-forums li.bbp-header li.bbp-topic-freshness {
    clear: none;
  }
  #bbpress-forums li.bbp-body li.bbp-forum-info,
  #bbpress-forums li.bbp-body li.bbp-topic-title,
  #bbpress-forums li.bbp-header li.bbp-forum-info,
  #bbpress-forums li.bbp-header li.bbp-topic-title {
    width: 45%;
  }
  #bbpress-forums li.bbp-body li.bbp-forum-freshness,
  #bbpress-forums li.bbp-body li.bbp-forum-reply-count,
  #bbpress-forums li.bbp-body li.bbp-forum-topic-count,
  #bbpress-forums li.bbp-body li.bbp-topic-freshness,
  #bbpress-forums li.bbp-body li.bbp-topic-reply-count,
  #bbpress-forums li.bbp-body li.bbp-topic-voice-count {
    margin-top: 0;
  }
  #bbpress-forums li.bbp-body li.bbp-forum-reply-count,
  #bbpress-forums li.bbp-body li.bbp-forum-topic-count,
  #bbpress-forums li.bbp-body li.bbp-topic-reply-count,
  #bbpress-forums li.bbp-body li.bbp-topic-voice-count,
  #bbpress-forums li.bbp-header li.bbp-forum-reply-count,
  #bbpress-forums li.bbp-header li.bbp-forum-topic-count,
  #bbpress-forums li.bbp-header li.bbp-topic-reply-count,
  #bbpress-forums li.bbp-header li.bbp-topic-voice-count {
    width: 15%;
  }
  #bbpress-forums li.bbp-body li.bbp-forum-freshness,
  #bbpress-forums li.bbp-body li.bbp-topic-freshness,
  #bbpress-forums li.bbp-header li.bbp-forum-freshness,
  #bbpress-forums li.bbp-header li.bbp-topic-freshness {
    width: 22%;
  }
  #bbpress-forums li.bbp-header,
  #bbpress-forums li.bbp-footer {
    display: none;
  }
}
