/* Selection mode — the saved page and the feed, while the AI workspace is
   waiting for tenders. Everything here is scoped under .is-picking so a page
   that is merely being read is untouched by it. */

.pk-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.pk-banner-icon {
  font-size: 17px;
  color: var(--ebid-gold);
}

.pk-banner-text { min-width: 0; }

/* ---- the cards ----------------------------------------------------------- */

/* The whole card is the target, so it has to look like one. */
.is-picking .bid-card {
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.is-picking .bid-card:hover {
  border-color: var(--ebid-gold);
  transform: translateY(-1px);
}

/* The cards take a tabindex while picking, so they need a visible focus ring —
   otherwise a keyboard user is toggling something they cannot see. */
.is-picking .bid-card:focus-visible {
  outline: 3px solid var(--ebid-gold);
  outline-offset: 2px;
}

/* While picking, the buttons inside a card do nothing — the click is caught in
   the capture phase before it reaches them. Saying so visually is the honest
   thing; a button that looks live and is not is worse than one that looks off. */
.is-picking .bc-save,
.is-picking .bc-ask,
.is-picking .bc-deliver,
.is-picking .bc-details {
  opacity: 0.4;
  pointer-events: none;
}

.pk-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--stage-border-strong);
  background: var(--surface, #fff);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  z-index: 3;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.is-picking .bid-card.is-picked {
  border-color: var(--ebid-gold);
  box-shadow: 0 0 0 2px var(--ebid-gold) inset;
}

.is-picking .bid-card.is-picked .pk-mark {
  background: var(--fill-brand-from);
  border-color: var(--ebid-gold);
  color: #fff;
}

/* The save bookmark sits top-right too; nudge it clear of the mark rather than
   letting the two overlap. */
.is-picking .bc-head { padding-right: 34px; }

.pk-cap {
  margin: 8px 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--ebid-gold-soft);
}

/* ---- the floating Done --------------------------------------------------- */

.pk-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* Above the bottom dock, and clear of a phone's home indicator. */
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--stage-border-strong);
  background: var(--surface, #fff);
  box-shadow: var(--elev-4);
  animation: pk-rise 0.18s ease-out;
}

.pk-bar[hidden] { display: none; }

.pk-bar .btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13.5px;
  white-space: nowrap;
}

@keyframes pk-rise {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pk-bar { animation: none; }
  .is-picking .bid-card { transition: none; }
  .is-picking .bid-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .pk-bar {
    left: 12px;
    right: 12px;
    transform: none;
    justify-content: center;
  }
  @keyframes pk-rise {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
