/* ==========================================================================
 * Pro mode's two-press bid: the armed button (scripts/pro-bid-confirm.js)
 *
 * The first press on a pro bid button arms it (2026-11-16). It turns amber and
 * says "Click again to confirm" (Randy, 2026-11-16), with what the second press
 * sends on a smaller line under it - "Bid $160.00", and the quantity maths
 * where there is room - and a bar along its foot runs out over the five
 * seconds that press has to come in. The small Submit and Change beside a
 * maximum box carry no amount line: the box is ringed instead, since that is
 * where the amount is. Loaded by the catalog (Lots.php), the lot page
 * (ItemShow.php), My Current Bids and My Watch List.
 *
 * The state is an overlay inside the button rather than a restyle of it, so
 * each page's own button is left as it is underneath: the catalog's dark pro
 * button and its "Pro" pill, the lot page's grid, Bootstrap's buttons on the
 * two account pages. It takes no pointer events: the press lands on the
 * button, which is what the script listens to.
 * ======================================================================= */
.pc-armed{position:relative}
/* The catalog's button has a border of its own colour around the overlay. */
.lx-bid__go.pc-armed{border-color:#F5B301}

/* top/right/bottom/left rather than inset:0, which Safari only reads from
   14.1: older, the amber would sit beside the words instead of over them. */
.pc-arm{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:2px;padding:0 6px;border-radius:inherit;overflow:hidden;pointer-events:none;
  background:#F5B301;color:#2B1D00;font-weight:800;line-height:1.15;text-align:center;
  animation:pc-arm-in .12s ease-out}
/* The instruction: one line where it fits, two ("Click again" / "to
   confirm") where it does not. */
.pc-arm__m{max-width:100%;letter-spacing:-.01em;text-wrap:balance}
/* What the second press sends, under it. */
.pc-arm__d{max-width:100%;font-size:.78em;font-weight:700;opacity:.86;white-space:nowrap}
.pc-arm__s{margin-left:.35em}
.pc-arm [hidden]{display:none!important}
.pc-arm__bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(43,29,0,.42);
  transform-origin:left center}
@keyframes pc-drain{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes pc-arm-in{from{opacity:.35}to{opacity:1}}

/* A catalog card's button (52px tall): the button's own 16px (developer,
   2026-11-16: "the font can be a little bigger"; it was 15px), and down with
   the card's own words as the card narrows (lotx-list.css, the lxbid
   container). Under 206px the quantity maths goes, so the amount keeps its
   room. */
.lx-bid__go .pc-arm{font-size:16px}
@container lxbid (max-width:239px){ .lx-bid__go .pc-arm{font-size:15px} }
@container lxbid (max-width:205px){
  .lx-bid__go .pc-arm{font-size:13.5px;letter-spacing:-.02em}
  .lx-bid__go .pc-arm__s{display:none}
}
@container lxbid (max-width:149px){ .lx-bid__go .pc-arm{font-size:12px;padding:0 3px} }

/* The small Submit and Change beside a catalog card's maximum box. Armed, the
   button takes room from the box (the amount in it is short) so the
   instruction fits on two lines; it grows leftwards, so the pointer stays on
   it. */
.lx-bid__submit.pc-armed{min-width:128px}
.lx-bid__submit .pc-arm{font-size:13px;padding:0 5px}
/* On a narrow card it takes less, in smaller type, so the box keeps enough
   width to show the amount being confirmed. */
@container lxbid (max-width:205px){
  .lx-bid__submit.pc-armed{min-width:96px}
  .lx-bid__submit .pc-arm{font-size:11px;padding:0 3px;letter-spacing:-.02em}
}
@container lxbid (max-width:149px){
  .lx-bid__submit.pc-armed{min-width:84px}
  .lx-bid__submit .pc-arm{font-size:10px;padding:0 2px}
}

/* Bootstrap's buttons on My Current Bids and My Watch List (34px tall on the
   Watch List; Current Bids makes its own larger, and the words with them, in
   CurrentBids.php). */
.btn .pc-arm{font-size:13.5px;line-height:1.1}
.input-group-btn>.btn.pc-armed{min-width:128px}

/* The maximum box whose amount a Submit or a Change is about to send. Inset,
   because the catalog card frames the box with its Bid button and clips
   anything drawn outside it, and tinted, so the amount reads as the one in
   question. */
.pc-ring{border-color:#F5B301!important;box-shadow:inset 0 0 0 2px #F5B301!important;background-color:#FFF7DB!important}

/* For a screen reader only. */
.pc-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (prefers-reduced-motion:reduce){
  .pc-arm{animation:none}
  .pc-arm__bar{display:none}
}
