/* «Магазин» — the donate shop (#7159, web/shop.js). Forge-Glass (ADR-0013):
   the settings full-screen frame (.picker.settings-full) with the shop's own
   rows, cards, swatches and the bottom sheet stacked over it. Dark only, the
   single gold accent. */

/* The header basket sits with the envelope and the gear. */
.gear-btn.shop-btn.active {
  color: var(--accent-strong);
  border-color: var(--accent-glow);
}

/* The balance strip under the tabs: adena, Coin of Luck, Серебряная Шилен. */
.board-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}
.board-bal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.board-bal b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.board-bal em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.board-bal .icon-tile,
.board-price .icon-tile {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
}

.board-chips {
  margin: 4px 0 10px;
}
.board-lists {
  gap: 8px;
}
.board-list .shop-card-head .icon-tile {
  width: 26px;
  height: 26px;
  flex: none;
}
.board-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* One entry: the product, its grade and the price; short → dimmed. */
.pickrow.board-row .pinfo b {
  white-space: normal;
}
.pickrow.board-row .psub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 2px;
}
.pickrow.board-row.dim > .icon-tile,
.pickrow.board-row.dim > .pinfo {
  opacity: 0.5;
}
.board-go {
  flex: none;
  color: var(--accent-strong);
  font-size: 16px;
  padding-left: 2px;
}
.board-more {
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 500;
}
.board-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.board-plus {
  color: var(--ink-muted);
  padding: 0 2px;
}

/* The bottom sheet over the shop screen (quantity, confirm, service forms). */
.picker.board-sheet {
  z-index: 22;
}
.board-sheet .picker-sheet {
  padding-bottom: calc(
    18px + max(16px, env(safe-area-inset-bottom, 0px), calc(var(--tg-safe-bottom, 0px) + var(--tg-content-safe-bottom, 0px)))
  );
}
.board-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-top: 6px;
}
.board-sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-sheet-item > .icon-tile {
  width: 40px;
  height: 40px;
  flex: none;
}
.board-sheet-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.board-sheet-title b {
  font-size: 14px;
  font-weight: 600;
}
.board-sheet-title .psub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 12px;
  color: var(--ink-muted);
}
.board-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.board-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.board-held-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.note.board-why {
  color: var(--warn, #e6c173);
}
.board-confirm .note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  line-height: 1.5;
}

/* «Сервисы» and «Премиум» cards. */
.board-svc,
.board-offer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.board-svc.dim .board-svc-head,
.board-svc.dim .board-svc-cur,
.board-offer.dim .board-svc-head,
.board-offer.dim .board-rates {
  opacity: 0.55;
}
.board-svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.board-svc-head b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}
.board-svc-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 12.5px;
}
.board-svc-price em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-muted);
}
.board-svc-cur,
.board-rates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.board-svc > .btn.sm,
.board-offer > .btn.sm {
  align-self: flex-start;
  min-width: 120px;
}
.board-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.board-steps .btn.sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.board-steps .board-price {
  color: inherit;
}

/* Colour swatches (the server's list) and the name / title preview. */
.board-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 8px;
}
.board-swatch {
  width: 100%;
  aspect-ratio: 1;
  max-width: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
}
.board-swatch.sel {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.board-swatch.sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  cursor: default;
}
.board-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
}
.board-pv-title {
  font-size: 12px;
}
.board-pv-name {
  font-size: 16px;
  font-weight: 700;
}

/* «Премиум»: the account's state line. */
.board-prem-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--ink-muted);
}
.board-prem-state b {
  color: var(--ink);
}
.board-prem-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex: none;
}
.board-prem-state.on .board-prem-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
