/* Tejori — product card condition pill, live-side adjustment.

   Separate from card.css, which is a byte-for-byte copy of the reference
   export; that identity is what makes a live-vs-reference diff mean anything,
   so this loads after it instead.

   The reference pill is a fixed `width: 5.874vw` — 113px at 1920 — which was
   enough for the four labels that site ever shows: "very good" (68px at this
   font), "good", "satisfactory" and "New with tags" (93px). Vendors here can
   also pick "New without tags", which the reference had no equivalent for and
   which measures 117px. Being 4px too wide for a fixed box with `white-space:
   normal`, it wrapped, and the pill's own 1.602vw height left the second line
   ("TAGS") outside the black pill and invisible over the photo — the badge
   read "NEW WITHOUT".

   Sizing the pill to its content fixes it. `nowrap` is what actually prevents
   the wrap; the min-width stops the short labels shrinking into stubs.

   ON THE UNITS. The requested values were `min-width: 150px; padding: 0 15px`,
   and at 1920 that is exactly what these produce — 7.813vw x 1920 = 150px,
   .781vw x 1920 = 15px. They are written in vw because the card around them
   is: the pill, its font and its height are all vw in card.css, so a fixed px
   min-width holds 150px while the card shrinks. Measured at 768, a 150px pill
   hung outside its card on 7 of the cards on the page. In vw it tracks the
   card instead and the longest label still fits at every width (at 768 the
   text needs 47px against a 60px pill).

   Mobile gets the same treatment against card.css's own much smaller mobile
   pill (20.268vw, 2.027vw text). Without it the original bug simply stayed on
   phones: "New without tags" measures about 92px there against an 89px pill,
   so it went on wrapping and losing its second line. */

.pc__cond {
    width: auto;
    min-width: 7.813vw;
    padding: 0 .781vw;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .pc__cond {
        min-width: 20.268vw;
        padding: 0 2.273vw;
    }
}
