/* v403 button fit (9 Nov 2026). Alignment/overflow only: no size, layout, colour, border or content changes.
   Action buttons pinned to the card bottom; text that does not fit is clamped (full text kept in the page and in a tooltip). */
:is(.featured .fcard,#hoffer article.fc-card,#results>article.card.offer,#intl-grid>article.card.offer):not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {min-height:0;}
/* featured: Copy code + Get deal row always sits on the card bottom */
.featured .fcard>.fbody>.frow:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {margin-top:auto!important;flex-shrink:0!important;flex-wrap:nowrap!important;min-width:0!important;}
.featured .fcard>.fbody:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {min-height:0!important;}
.featured .fcard>.fbody>*:not(.frow):not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {flex-shrink:0!important;}
/* narrow desktop/tablet featured cards: the two buttons share the row instead of running off the edge */
@media (min-width:701px) and (max-width:1100px) {
  .featured .fcard>.fbody>.frow:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {gap:4px!important;}
  .featured .fcard>.fbody>.frow>:is(.fcp,.fgo):not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {
    flex:1 1 auto!important;min-width:0!important;padding-left:4px!important;padding-right:4px!important;font-size:12px!important;
    text-align:center!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;}
}
/* weekly cards on tablet/desktop: no squashed half-lines; button on the bottom */
@media (min-width:701px) {
  #hoffer article.fc-card>*:not(.fc-btn):not(.bwc-heart):not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {flex-shrink:0!important;}
  #hoffer article.fc-card>.fc-btn:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {margin-top:auto!important;flex-shrink:0!important;}
}
/* clamp helper used by js/button-fit.js */
.bf-clamp:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
  -webkit-line-clamp:var(--bf-lines)!important;line-clamp:var(--bf-lines)!important;
  white-space:normal!important;height:auto!important;max-height:calc(var(--bf-lines) * var(--bf-lh))!important;flex-shrink:0!important;}

/* Desktop "what it sells" line: in its own line under the brand name (was positioned over the brand name).
   The deal line gives back exactly the space the sells line now uses, so card heights are unchanged. */
@media (min-width:701px) {
  html body :is(#results.grid,#intl-grid) article.card.offer.u-off:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6):has(.sells):not([data-offer="awin-compareparking-big15"]):not([data-offer="awin-beeparking-beesuperaw"]):not([data-offer="awin-tinylux-bwc2"]) > .body > .sells {
    position:static!important;left:auto!important;right:auto!important;width:auto!important;flex-shrink:0!important;}
  html body :is(#results.grid,#intl-grid) article.card.offer.u-off:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6):has(.sells):not([data-offer="awin-compareparking-big15"]):not([data-offer="awin-beeparking-beesuperaw"]):not([data-offer="awin-tinylux-bwc2"]) > .body > .deal1.bwc-amt {
    padding-top:0!important;height:29.8125px!important;max-height:29.8125px!important;}
  html body :is(#results.grid,#intl-grid) article.card.offer.u-off:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6):has(.sells):not([data-offer="awin-compareparking-big15"]):not([data-offer="awin-beeparking-beesuperaw"]):not([data-offer="awin-tinylux-bwc2"]) > .body > .deal1:not(.bwc-amt) {
    padding-top:0!important;height:25.609375px!important;max-height:25.609375px!important;}
}
/* Screen-reader-only text inside cards: visually-hidden in place, not pushed 9999px off the card */
:is(article.card,article.fcard,article.fc-card,article.offer) .sr:not(#bf1):not(#bf2) {
  position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;}
/* Long one-line deal text: the visible span is trimmed with an ellipsis inside the card (full text stays in the page and the title tooltip) */
@media (min-width:701px) {
  :is(#results,#intl-grid) article.card.offer>.body>.deal1>.pc-desktop:not(#bf1):not(#bf2) {display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
  .featured .fcard>.fbody>.fsmall>.pc-desktop:not(#bf1):not(#bf2) {display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important;overflow:hidden!important;}
}
/* last resort used by js/button-fit.js when titles are already at 2 lines: the picture strip gives up the few px the buttons need (card size unchanged) */
.bf-media:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {flex:0 0 var(--bf-mh)!important;height:var(--bf-mh)!important;min-height:0!important;max-height:var(--bf-mh)!important;overflow:hidden!important;}
.bf-media>img:not(.flogo):not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {height:100%!important;max-height:100%!important;object-fit:cover!important;}
.featured .fpic.bf-media>img:not(#bf1):not(#bf2):not(#bf3):not(#bf4):not(#bf5):not(#bf6) {object-fit:contain!important;width:100%!important;}
