/* ============================================================================
   My Vouchers — v2 overrides. Everything else comes from vouchers.css, so
   this file holds only what the two-shelf split adds: the kind tabs.

   They sit OUTSIDE .vscroll, between the bar and the list, so the shelf you
   are looking at stays on screen while the list scrolls under it. The brand
   rail stays inside the scroller, as in v1 — it belongs to the list, the
   tabs belong to the screen.
   ========================================================================= */

.vtabs {
  display: flex;
  flex: 0 0 auto;
  padding: 0 var(--geo-gutter);
  border-bottom: 1px solid #ECEFF3;
  background: var(--c-white);
}

.vtab {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 4px 11px;
  border: 0; border-bottom: 2px solid transparent;
  background: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: var(--fw-reg);
  color: var(--c-txt-2);
  /* the labels are two words each and must not wrap at 430px */
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease;
}

/* The selected shelf takes the brand red and a rule under it — the same
   underline-tab vocabulary Activity History uses on the home screen, rather
   than a second pill shape competing with the brand rail below. */
.vtab[aria-selected='true'] {
  border-bottom-color: var(--c-prim);
  color: var(--c-prim);
  font-weight: var(--fw-med);
}

/* The count is the one thing the tab says that the label does not: how much
   is on the other shelf, without switching to find out. */
.vtab__count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 18px; padding: 0 6px;
  border-radius: 9px;
  background: var(--c-panel);
  font-size: 11px; font-weight: var(--fw-med); color: var(--c-txt-2);
}
.vtab[aria-selected='true'] .vtab__count {
  background: var(--c-prim-bg);
  color: var(--c-prim);
}

/* v1's note is a fixed paragraph; v2 swaps it per shelf, so it is rendered
   rather than written into the markup and needs the layout here. A shelf
   with no note hides the element — and `hidden` alone loses to .vnote's own
   display:flex, so it has to be said again at this specificity. */
.app--vouchers-v2 .vnote { align-items: flex-start; }
.app--vouchers-v2 .vnote[hidden] { display: none; }
