@font-face {
  font-family: 'bbp-rbi';
  src: url('/wp-content/plugins/foxiz-core/lib/bbp/assets/fonts/bbp-rbi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.pab-votes-explorer-root {
  --pab-vx-blue: #06263f;
  --pab-vx-orange: #e95a16;
  --pab-vx-red: #c10f00;
  --pab-vx-green: #418d27;
  --pab-vx-tag-width: 170px;
  --pab-vx-card-bg: #ffffff;
  --pab-vx-soft-bg: #f4f7fa;
  --pab-vx-border: #e4e8ee;
  --pab-vx-text: #0b2a42;
  --pab-vx-muted: #66788a;
  margin: 0;
  color: var(--pab-vx-text);
  position: relative;
}

.pab-has-votes-explorer .page-header,
.pab-has-votes-explorer .page-header-1,
.pab-has-votes-explorer .page-header-4 {
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pab-has-votes-explorer .page-header.page-header-1.edge-padding.rb-container {
  display: none !important;
}

.pab-votes-explorer-root .pab-vx-filters-card,
.pab-votes-explorer-root .pab-vx-listing-card {
  background: transparent;
}

.pab-votes-explorer-root .pab-vx-filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 30px;
  margin-bottom: 10px;
}

.pab-votes-explorer-root .pab-vx-filters-label {
  font-weight: 700;
  font-size: 13px;
  color: #282828;
  flex: 0 0 auto;
  white-space: nowrap;
}

.pab-votes-explorer-root .pab-vx-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.pab-votes-explorer-root .pab-vx-sort-label {
  font-weight: 700;
  font-size: 13px;
  color: #282828;
  white-space: nowrap;
}

.pab-votes-explorer-root .pab-vx-sort-select {
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #ffffff;
  color: var(--pab-vx-text);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
}

.pab-votes-explorer-root #pab-vx-sort-order {
  font-size: 13px;
}

.pab-votes-explorer-root .pab-vx-filter-btn {
  border: 0;
  background: transparent;
  color: var(--pab-vx-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  padding: 2px 0;
  text-decoration: none;
}

.pab-votes-explorer-root .pab-vx-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pab-votes-explorer-root .pab-vx-title {
  margin: 12px 0 16px;
  font-size: 28px;
  line-height: 1;
  color: var(--pab-vx-blue);
  font-weight: 700;
}

.pab-votes-explorer-root .heading-title > span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
}

.pab-votes-explorer-root .heading-title > span::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  -webkit-transform: skewX(-15deg);
  transform: skewX(-15deg);
  border-right: 3px solid var(--heading-sub-color, #c10f00);
  border-left: 3px solid var(--heading-sub-color, #c10f00);
  pointer-events: none;
}

.pab-votes-explorer-root .pab-vx-filter-btn.is-active {
  color: #282828;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.pab-votes-explorer-root .pab-vx-filter-btn:focus-visible {
  outline: 2px solid rgba(9, 39, 65, 0.35);
  outline-offset: 2px;
}

.pab-votes-explorer-root .pab-vx-list {
  display: grid;
  gap: 16px;
}

.pab-votes-explorer-root .pab-vx-card {
  background: var(--pab-vx-card-bg);
  border: 1px solid var(--pab-vx-border);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(9, 39, 65, 0.08);
  padding: 14px 18px 14px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.pab-votes-explorer-root .pab-vx-line1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pab-votes-explorer-root .pab-vx-question {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  font-style: normal;
  color: var(--pab-vx-text);
}

.pab-votes-explorer-root .pab-vx-question-link {
  color: #282828;
  font-weight: 600;
  text-decoration: none;
}

.pab-votes-explorer-root .pab-vx-question-link:hover,
.pab-votes-explorer-root .pab-vx-question-link:focus-visible {
  text-decoration: underline;
}

.pab-votes-explorer-root .pab-vx-favorite-btn {
  border: 0;
  background: transparent;
  color: #092741;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  min-width: 16px;
  text-align: right;
  border-radius: 0;
  box-shadow: none;
}

.pab-votes-explorer-root .pab-vx-favorite-btn::before {
  font-family: 'bbp-rbi' !important;
  display: inline-block;
  margin-right: 4px;
  content: '\e90f';
  font-size: 16px;
  line-height: 1;
}

.pab-votes-explorer-root .pab-vx-favorite-btn > span {
  display: none !important;
}

.pab-votes-explorer-root .pab-vx-favorite-btn:not(.is-favorite) span {
  color: #092741;
  font-weight: 400;
  opacity: 0.9;
  -webkit-text-stroke: 0.8px #092741;
  text-shadow: none;
}

.pab-votes-explorer-root .pab-vx-favorite-btn.is-favorite {
  color: #facc15;
}

.pab-votes-explorer-root .pab-vx-favorite-btn:focus-visible {
  outline: 2px solid rgba(9, 39, 65, 0.35);
  outline-offset: 2px;
}

.pab-votes-explorer-root .pab-vx-line2 {
  margin-top: 10px;
  display: grid;
  grid-template-columns: var(--pab-vx-tag-width) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.pab-votes-explorer-root .pab-vx-vote-btn,
.pab-votes-explorer-root .pab-vx-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.pab-votes-explorer-root .pab-vx-vote-btn {
  color: #ffffff;
  background: var(--pab-vx-red);
  text-decoration: none;
  font-weight: 500;
}

.pab-votes-explorer-root .pab-vx-vote-btn:hover,
.pab-votes-explorer-root .pab-vx-vote-btn:focus-visible {
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0px 3px 7px 3px rgba(196.3234375, 36.1528311229915, 20.059133831521734, 0.66);
}

.pab-votes-explorer-root .pab-vx-state-badge {
  font-weight: 500;
}

.pab-votes-explorer-root .pab-vx-state-badge.is-consensus {
  color: #ffffff;
  background: var(--pab-vx-blue);
}

.pab-votes-explorer-root .pab-vx-state-badge.is-discussion {
  color: #ffffff;
  background: var(--pab-vx-orange);
}

.pab-votes-explorer-root .pab-vx-gauge-wrap {
  min-width: 0;
}

.pab-votes-explorer-root .pab-vx-gauge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--pab-vx-text);
  font-weight: 700;
}

.pab-votes-explorer-root .pab-vx-gauge-head strong {
  font-weight: 900;
}

.pab-votes-explorer-root .pab-vx-gauge-track {
  position: relative;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  background: #d8dee6;
}

.pab-votes-explorer-root .pab-vx-gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: 999px;
  background: #c0c8d1;
  z-index: 1;
}

.pab-votes-explorer-root .pab-vx-gauge-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  pointer-events: none;
  font-weight: 500;
  color: #282828;
}

.pab-votes-explorer-root .pab-vx-gauge-label,
.pab-votes-explorer-root .pab-vx-gauge-stats {
  display: inline-block;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #282828;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.pab-votes-explorer-root .pab-vx-gauge-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pab-votes-explorer-root .pab-vx-gauge-stats {
  white-space: nowrap;
}

.pab-votes-explorer-root .pab-vx-gauge-wrap.is-waiting .pab-vx-gauge-track {
  background: #c5c8ce;
}

.pab-votes-explorer-root .pab-vx-gauge-wrap:not(.is-waiting) .pab-vx-gauge-label {
  color: #ffffff;
}

.pab-votes-explorer-root .pab-vx-gauge-wrap:not(.is-waiting) .pab-vx-gauge-stats {
  color: #ffffff;
}

.pab-votes-explorer-root .pab-vx-more-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.pab-votes-explorer-root .pab-vx-more-btn {
  border: 1px solid #0f3351;
  border-radius: 999px;
  background: #ffffff;
  color: #0f3351;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}

.pab-votes-explorer-root .pab-vx-more-btn:focus-visible {
  outline: 2px solid rgba(9, 39, 65, 0.35);
  outline-offset: 2px;
}

.pab-votes-explorer-root .pab-vx-empty {
  background: #ffffff;
  border: 1px dashed #cdd5df;
  border-radius: 14px;
  padding: 18px;
  color: var(--pab-vx-muted);
  font-weight: 700;
}

.pab-votes-explorer-root .pab-vx-favorites-error {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 12px 14px;
  color: #9a3412;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pab-votes-explorer-root .pab-vx-retry-favorites-btn {
  border: 1px solid #fb923c;
  background: #ffffff;
  color: #9a3412;
  border-radius: 999px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .pab-votes-explorer-root {
    --pab-vx-tag-width: 150px;
  }

  .pab-votes-explorer-root .pab-vx-title {
    font-size: 30px;
  }

  .pab-votes-explorer-root .pab-vx-question {
    font-size: 16px;
  }

  .pab-votes-explorer-root .pab-vx-card {
    padding: 14px 14px 16px;
  }

  .pab-votes-explorer-root .pab-vx-line1 {
    margin-bottom: 14px;
  }

  .pab-votes-explorer-root .pab-vx-line2 {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .pab-votes-explorer-root .pab-vx-line2 .pab-vx-state-badge {
    order: 2;
    width: 100%;
    min-width: 0;
  }

  .pab-votes-explorer-root .pab-vx-line2 .pab-vx-gauge-wrap {
    order: 1;
    width: 100%;
  }

  .pab-votes-explorer-root .pab-vx-line2 .pab-vx-vote-btn {
    order: 2;
    width: 100%;
    min-width: 0;
  }
}
