/* "+FPS gain" on the part chooser (graphics card / processor) */
.pcb-gain-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 16px; padding: 12px 16px; background: var(--u-accent-soft, #e6f5f0); border: 1px solid var(--u-border, #dde2e8); border-radius: 14px;
}
.pcb-gain-bar__txt { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; font-size: 14px; font-weight: 600; color: var(--u-text, #12151a); min-width: 0; }
.pcb-gain-bar__tag { flex: none; padding: 2px 8px; border-radius: 6px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pcb-gain-bar__n--good { color: #166534; }
.pcb-gain-bar__n--ok { color: #92400e; }
.pcb-gain-bar__n--low { color: #991b1b; }
.pcb-gain-bar__game { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.pcb-gain-bar__game select {
  height: 38px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 700; color: #111827; text-transform: none; letter-spacing: 0; max-width: 200px;
}
.pcb-gain-bar__sort {
  height: 38px; padding: 0 14px; border: 1px solid var(--u-accent, #0d7a5f); border-radius: 10px; background: var(--u-accent, #0d7a5f); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.pcb-gain-bar__sort:hover { filter: brightness(1.07); }
.pcb-gain-bar__note { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--u-muted, #3d4754); line-height: 1.4; }

.pcb-gain {
  display: flex; flex-direction: column; gap: 1px; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px;
  background: #dcfce7; color: #166534; text-align: center;
}
.pcb-gain b { font-size: 20px; font-weight: 800; line-height: 1.15; }
.pcb-gain span { font-size: 12px; font-weight: 600; }
.pcb-gain--ok { background: #fef3c7; color: #92400e; }
.pcb-gain--low { background: #fee2e2; color: #991b1b; }
.pcb-gain--flat { background: #f1f5f9; color: #64748b; }
.pcb-gain--flat b { font-size: 16px; }

@media (max-width: 640px) {
  .pcb-gain-bar { padding: 10px 12px; }
  .pcb-gain-bar__game select { max-width: 150px; }
  .pcb-gain b { font-size: 17px; }
}

/* Left filter column on the part chooser */
.pcb-pick { display: flex; align-items: flex-start; gap: 18px; }
.pcb-pick__main { flex: 1 1 auto; min-width: 0; }
.pcb-filters {
  flex: 0 0 240px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto;
  background: #fff; border: 1px solid var(--u-border, #dde2e8); border-radius: 16px; padding: 14px;
}
.pcb-filters__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pcb-filters__head h3 { margin: 0; flex: 1; font-size: 16px; font-weight: 800; }
.pcb-filters__clear { font-size: 13px; font-weight: 700; color: var(--u-accent, #0d7a5f); }
.pcb-filters__close { display: none; }
.pcb-filters__title {
  width: 100%; text-align: left; padding: 10px 0; border: 0; border-top: 1px solid #eef2f6; background: none;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #334155; cursor: pointer;
}
.pcb-filters__title::after { content: ""; float: right; margin-top: 4px; border: 5px solid transparent; border-top-color: #64748b; }
.pcb-filters__title[aria-expanded="false"]::after { border-top-color: transparent; border-bottom-color: #64748b; margin-top: -2px; }
.pcb-filters__body { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; padding-bottom: 8px; }
.pcb-filters__opt { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 4px 0; font-size: 14px; font-weight: 600; color: #1f2937; cursor: pointer; }
.pcb-filters__opt input { margin-top: 3px; accent-color: var(--u-accent, #0d7a5f); }
.pcb-filters__price { max-height: none; }
.pcb-filters__price label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #64748b; }
.pcb-filters__price input { height: 38px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; }
.pcb-filters__apply, .pcb-filters-open {
  height: 38px; border: 0; border-radius: 10px; background: var(--u-accent, #0d7a5f); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.pcb-filters__stock { margin-top: 8px; }
.pcb-filters-open { display: none; margin: 0 0 10px; padding: 0 14px; }
@media (max-width: 991px) {
  .pcb-pick { display: block; }
  .pcb-filters {
    position: fixed; z-index: 100000; left: 0; top: 0; bottom: 0; width: min(320px, 88vw); max-height: none;
    border-radius: 0; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 8px 0 24px rgba(0,0,0,.12);
  }
  .pcb-filters.is-open { transform: none; }
  .pcb-filters__close { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #f1f5f9; font-size: 22px; cursor: pointer; }
  .pcb-filters-open { display: inline-flex; align-items: center; }
}