/* r4 preview only: Featured / This week cards. Loaded last so it beats card-template
   and phone-card-match ellipsis. Does not touch the header or #results. */

/* Homepage + /offers Featured Copy code: standard header orange, white text. */
#featured-grid .fcard .aff-copy,
#featured-grid .fcard .fcp,
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .frow > .fcp,
#featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .frow > .fcp{
  background:#E8730C!important;
  border-color:#E8730C!important;
  color:#fff!important;
}

/* Brand names and short product lines: no ellipsis. JS fit-text steps the font down
   in the fixed slot. Long terms (.fsmall) keep the existing one-line ellipsis — those
   sentences cannot fit a 15px slot at a readable size. */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand,
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .sells,
#featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fbrand,
#featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .sells,
#hoffer article.fc-card:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fc-org > span:not(.sb-badge):not(.fc-ini),
#hoffer article.fc-card:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .sells{
  text-overflow:clip!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}

/* Keep long Featured terms in the one-line .fsmall slot: the visible pc-desktop /
   pc-phone span is contained (inline-block, max-width 100%, ellipsis) so its box
   cannot hang outside the card. The unused span is display:none. card-template
   otherwise forces both spans to display:inline!important. */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall > span.pc-desktop,
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall > span.pc-phone,
#featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fsmall > span.pc-desktop,
#featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fsmall > span.pc-phone{
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
  vertical-align:bottom!important;
}
@media (max-width:700px){
  #featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall > span.pc-desktop,
  #featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fsmall > span.pc-desktop{
    display:none!important;
  }
  #featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall > span.pc-phone,
  #featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fsmall > span.pc-phone{
    display:inline-block!important;
  }
}
@media (min-width:701px){
  #featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall > span.pc-phone,
  #featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fsmall > span.pc-phone{
    display:none!important;
  }
  #featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall > span.pc-desktop,
  #featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fsmall > span.pc-desktop{
    display:inline-block!important;
  }
}


/* r5 preview: clip (no ellipsis) on This week's product-picture brand pill,
   International-row brand names, and two-line offer titles. Card-scoped only.
   Heights of the title slots stay 50px / 36px; JS fit-text shrinks the font. */

/* Beat amazon-preview + card-template on the haspic brand pill: shrinkable box. */
html body #hoffer .fc-card .fc-org.fc-haspic>span:last-child,
#hoffer article.fc-card:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fc-org.fc-haspic > span:last-child{
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}

/* International row brand names only — not #results. */
#intl-grid article.card.offer:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .body > h3{
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Offer titles keep the fixed two-line slot height; JS removes the clamp ellipsis
   once the font fits, or after a shorter official wording is applied. */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .ftitle,
#featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .ftitle,
#hoffer article.fc-card:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > :is(h3,h2){
  overflow:hidden!important;
  text-overflow:clip!important;
}


/* Visible This week brand line is p.u-brand (amz-cards hides the original
   .fc-org > span with display:none). Beat phone-card-match / card-template ellipsis. */
#hoffer article.fc-card:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > p.u-brand,
#hoffer article.fc-card:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .u-brand{
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  min-width:0!important;
  box-sizing:border-box!important;
}


/* r6 preview: International sells (and other intl body text), Featured coupon
   codes, and This week category chips. Card-scoped; header and #results untouched.
   Heights stay fixed. Tiny Lux sells that cannot fit at 8px keep a contained ellipsis
   applied by JS; wording is not shortened. */

#intl-grid article.card.offer:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .body > .sells,
#intl-grid article.card.offer:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .body > .chk1,
#intl-grid article.card.offer:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .body > .ocode,
#intl-grid article.card.offer:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .body > .ocode > span{
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fcode,
#featured-grid article.fcard:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fbody > .fcode{
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

#hoffer article.fc-card:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) > .fc-top > .fc-cat{
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
