/* =========================================================
   11. QUESTION PANEL
   ========================================================= */

.bb-screen.is-active > .bb-question {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0 12px 28px;
  box-sizing: border-box;
}

.bb-qtop {
  overflow: visible;
}

.bb-qprompt {
  margin: 0 18px 0 18px;
  font-size: var(--bb-body-font-size);
  line-height: 1.35;
  box-sizing: border-box;
}

/* =========================================================
   12. QUESTION TOP BAR
   ========================================================= */

.bb-qtop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  height: 42px;
  margin: 50px 18px 26px 18px;

  padding: 0 8px 0 0;
  box-sizing: border-box;

  background: #ececec;
}

.bb-qtop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  height: 3px;

  background-image: repeating-linear-gradient(
    to right,
    #111 0px,
    #111 17px,
    transparent 17px,
    transparent 22px
  );
}

.bb-qnum-box {
  width: 34px;
  height: 42px;

  background: #1f1f1f;
  color: #fff;

  font-size: 22px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   13. MARK FOR REVIEW
   ========================================================= */

.bb-review-toggle {
  height: 42px;
  margin-left: 12px;
  padding: 0;

  background: transparent;
  border: none;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.bb-review-label {
  color: #666;
  transition: color 0.15s ease;
}

.bb-review-flag {
  width: 22px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

.bb-review-flag-shape {
  fill: #fff;
  stroke: #666;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.bb-review-toggle:hover .bb-review-label {
  color: #111;
}

.bb-review-toggle:hover .bb-review-flag-shape {
  fill: #d2d2d2;
  stroke: #111;
}

.bb-review-toggle[aria-pressed="true"] .bb-review-label {
  color: #111;
}

.bb-review-toggle[aria-pressed="true"] .bb-review-flag-shape {
  fill: #c83b52;
  stroke: #c83b52;
}

/* =========================================================
   14. ELIMINATION TOGGLE
   ========================================================= */

.bb-elim-toggle {
  position: relative;

  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;

  padding: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border: 1.8px solid #222;
  border-radius: 8px;

  cursor: pointer;
  overflow: visible;
}

.bb-elim-toggle:hover {
  background: #d2d2d2;
}

.bb-elim-toggle[aria-pressed="true"] {
  background: #3553d8;
  border-color: #3553d8;
}

.bb-elim-abc {
  position: relative;
  display: inline-block;
  top: 0;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #111;
  letter-spacing: -0.05em;

  transform: scaleY(1.1);
}

.bb-elim-abc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;

  border-top: 1.8px solid #111;

  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

.bb-elim-toggle[aria-pressed="true"] .bb-elim-abc {
  color: #fff;
}

.bb-elim-toggle[aria-pressed="true"] .bb-elim-abc::after {
  border-top-color: #fff;
}

/* --- elimination tooltip --- */

.bb-elim-tooltip {
  position: absolute;
  right: -6px;
  top: calc(100% + 10px);
  bottom: auto;

  width: 220px;
  padding: 18px 22px;

  background: #5a5a5a;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;

  z-index: 9999;
}

.bb-elim-tooltip::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 100%;
  top: auto;

  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #5a5a5a;
  border-top: none;
}

.bb-elim-toggle:hover .bb-elim-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bb-qtop-right-spacer {
  display: block;
  width: 34px;
  height: 34px;
}

