/* Phone-only compact shells. Replaces, rather than extends, the failed 384px sheet.
   Four inert ID guards intentionally beat the legacy 3/4-ID !important rules.
   Content is never line-clamped: full phone labels, codes, end dates, restrictions.
   All shells 352px; weekly media is shorter to accommodate its longer full terms. */
.pc-phone { display:none; }
@media (max-width:700px) {
  :is(main>.featured>.wrap,main>#offers>.wrap,main>.offers-band>.wrap,main>#international>.wrap,main>.intl-band>.wrap) { padding-left:12px!important;padding-right:12px!important; }
  .pc-desktop { display:none; }
  .pc-phone { display:inline; }
  :is(#results.grid,#intl-grid.grid,#intl-grid,.featured .fgrid,#hoffer .of-cards.fc-grid):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;padding:0!important;grid-auto-rows:auto!important;align-items:start!important;
  }
  :is(#results.grid>article.card.offer,#intl-grid>article.card.offer,.featured article.fcard,#hoffer .of-cards>article.fc-card):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:352px!important;min-height:352px!important;max-height:352px!important;
    grid-column:span 1!important;grid-row:span 1!important;align-self:start!important;
    padding:0!important;gap:0!important;overflow:hidden!important;
  }
  :is(#results article.offer>.top,#intl-grid article.offer>.top,.featured .fcard>.fpic):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    box-sizing:border-box!important;position:relative!important;flex:0 0 112px!important;
    height:112px!important;min-height:112px!important;max-height:112px!important;
    margin:0!important;padding:10px!important;overflow:hidden!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
  }
  :is(#results article.offer>.top.ologo>img,#intl-grid article.offer>.top.ologo>img,.featured .fpic>img:not(.flogo)):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;display:block!important;
  }
  :is(#results article.offer>.top.opic,.featured .fcard>.fpic):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {padding:0!important;}
  #results article.offer>.top.opic>img.ppic:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;
  }
  #results article.offer>.top.opic>img.ppic[src*="/offers-pics/"]:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {object-fit:cover!important;}
  :is(#results article.offer>.body,#intl-grid article.offer>.body,.featured .fcard>.fbody):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    flex:1 1 auto!important;min-height:0!important;min-width:0!important;
    padding:8px!important;gap:2px!important;align-items:stretch!important;
  }
  :is(#results article.offer>.body>*,#intl-grid article.offer>.body>*,.featured .fbody>*):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {margin:0!important;flex-shrink:0!important;}
  :is(#results article.offer>.body>h3,#intl-grid article.offer>.body>h3,.featured .fbrand):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:14px!important;line-height:20px!important;height:auto!important;min-height:20px!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  :is(#results article.offer>.body>.deal1,#intl-grid article.offer>.body>.deal1,.featured .ftitle):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:14px!important;line-height:18px!important;font-weight:700!important;
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
    display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;
    height:auto!important;min-height:0!important;max-height:none!important;overflow-wrap:anywhere!important;
  }
  :is(#results article.offer>.body>.adl,#results article.offer>.body>.chk1,#intl-grid article.offer>.body>.adl,#intl-grid article.offer>.body>.chk1,.featured .fsmall):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:12px!important;line-height:15px!important;display:block!important;
    white-space:normal!important;overflow:visible!important;height:auto!important;min-height:0!important;max-height:none!important;
    -webkit-line-clamp:unset!important;line-clamp:unset!important;
  }
  :is(#results article.offer>.body>.sells,#intl-grid article.offer>.body>.sells):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:12px!important;line-height:15px!important;max-height:30px!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
    overflow:hidden!important;text-overflow:clip!important;white-space:normal!important;color:#5B6B7B!important;font-weight:400!important;
  }

  :is(#results article.offer>.body>.ocode,#intl-grid article.offer>.body>.ocode,.featured .fcode):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:13px!important;line-height:17px!important;padding:0!important;background:none!important;border:0!important;
    min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
  }
  /* Long voucher codes stay on one line (no clip) so phone-row Get deal buttons stay aligned */
  :is(#results article.offer>.body>.ocode.ocode-open,#intl-grid article.offer>.body>.ocode.ocode-open):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    display:flex!important;flex-wrap:nowrap!important;align-items:baseline!important;gap:2px!important;
    white-space:nowrap!important;overflow:visible!important;overflow-wrap:normal!important;word-break:normal!important;
    font-size:10px!important;line-height:14px!important;max-width:100%!important;
  }
  :is(#results article.offer>.body>.ocode.ocode-open,#intl-grid article.offer>.body>.ocode.ocode-open):not(#pc1):not(#pc2):not(#pc3):not(#pc4) span {
    letter-spacing:0!important;white-space:nowrap!important;overflow:visible!important;flex:0 0 auto!important;
    font-size:10px!important;line-height:14px!important;
  }
  .featured .frow:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    display:flex!important;flex-direction:row!important;gap:2px!important;margin-top:auto!important;padding-top:2px!important;
    width:100%!important;min-width:0!important;
  }
  :is(#results article.offer>.body>.ogo,#intl-grid article.offer>.body>.ogo,.featured .fcp,.featured .fgo):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    box-sizing:border-box!important;min-width:0!important;min-height:32px!important;max-width:100%!important;height:auto!important;
    font-size:12px!important;line-height:16px!important;padding:7px 5px!important;white-space:nowrap!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;
  }
  .featured :is(.fcp,.fgo):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {flex:1 1 0!important;width:auto!important;}
  :is(#results,#intl-grid) article.offer>.body>.ogo:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {margin-top:auto!important;align-self:flex-start!important;padding-left:10px!important;padding-right:10px!important;}
  :is(#results,#intl-grid,.featured,#hoffer) .lf-row>.lf-in:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;max-height:20px!important;padding:1px!important;
  }
  /* Weekly cards retain their real markup and every word of title/description/date.
     A smaller media strip buys space; category badges are not essential offer terms. */
  #hoffer article.fc-card:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {padding-bottom:6px!important;gap:1px!important;}
  #hoffer article.fc-card>*:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {margin:0 8px!important;flex-shrink:0!important;}
  #hoffer article.fc-card>.fc-org:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    order:1!important;flex:0 0 80px!important;height:80px!important;min-height:80px!important;max-height:80px!important;
    margin:0 0 2px!important;padding:6px!important;box-sizing:border-box!important;overflow:hidden!important;
  }
  #hoffer article.fc-card>.fc-org:not(.fc-haspic) img.fc-logo:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {max-height:60px!important;max-width:90%!important;width:auto!important;height:auto!important;object-fit:contain!important;}
  #hoffer article.fc-card>.fc-org img.fc-pic:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;}
  #hoffer article.fc-card>.fc-top:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {display:none!important;}
  #hoffer article.fc-card>.u-brand:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {font-size:12px!important;line-height:20px!important;min-height:20px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;}
  #hoffer article.fc-card>.u-brand.lf-row:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {display:block!important;}
  #hoffer article.fc-card>.u-brand>.lf-in:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {display:inline-block!important;vertical-align:middle!important;margin:0 6px 0 0!important;}
  #hoffer article.fc-card>h3:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:14px!important;line-height:17px!important;height:auto!important;min-height:0!important;max-height:none!important;
    display:block!important;overflow:visible!important;white-space:normal!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;
  }
  #hoffer article.fc-card>p:not(.u-brand):not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:12px!important;line-height:14px!important;min-height:0!important;height:auto!important;max-height:none!important;
    display:block!important;overflow:visible!important;white-space:normal!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;
  }
  #hoffer article.fc-card>.fc-btn:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    box-sizing:border-box!important;margin: auto 8px 0!important;min-height:28px!important;min-width:0!important;max-width:calc(100% - 16px)!important;
    font-size:12px!important;line-height:16px!important;padding:6px 8px!important;align-self:stretch!important;white-space:nowrap!important;
  }
}

/* v395 Get deal alignment (9 Nov 2026). Card sizes on phones unchanged (352px shells).
   Phone: the featured action row was losing margin-top:auto to the 5-ID margin:0 child reset;
   it is now pinned to the card bottom like the main and weekly cards.
   Desktop: main result cards in the same row share the row height (no fixed/enlarged size,
   no spans), and the Get deal button is pinned to the bottom so buttons line up per row. */
@media (max-width:700px) {
  .featured .fcard>.fbody>.frow:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5) {margin-top:auto!important;}
}
@media (min-width:701px) {
  :is(#results.grid,#intl-grid.grid,#intl-grid):not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5) {align-items:stretch!important;}
  :is(#results.grid,#intl-grid)>article.card.offer:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5) {align-self:stretch!important;display:flex!important;flex-direction:column!important;}
  :is(#results.grid,#intl-grid)>article.card.offer>.body:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5) {flex:1 1 auto!important;display:flex!important;flex-direction:column!important;}
  :is(#results.grid,#intl-grid)>article.card.offer>.body>.ogo:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5) {margin-top:auto!important;}
}

@media (max-width:700px){
  :is(#results,#intl-grid) article.offer>.body>.sells,
  .featured article.fcard .sells,
  #hoffer article.fc-card .sells,
  .fc-card .sells{
    font-size:12px!important;line-height:15px!important;height:15px!important;max-height:15px!important;
    margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#5B6B7B!important;
  }
}


/* parking Copy code sizing — match live v400-tinylux (9 Nov 2026) */
@media (max-width:700px){
  :is(#results article.offer[data-offer="awin-compareparking-big15"],
      #results article.offer[data-offer="awin-beeparking-beesuperaw"])>.body>.aff-copy:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    box-sizing:border-box!important;min-height:28px!important;max-width:100%!important;
    font-size:12px!important;line-height:16px!important;padding:5px 8px!important;
    margin:2px 0 0!important;align-self:flex-start!important;
  }
  :is(#results article.offer[data-offer="awin-compareparking-big15"],
      #results article.offer[data-offer="awin-beeparking-beesuperaw"])>.body>.ocode:not(#pc1):not(#pc2):not(#pc3):not(#pc4) {
    font-size:12px!important;line-height:16px!important;padding:0!important;margin:0!important;
  }
}
#results article.offer[data-offer="awin-compareparking-big15"] > .body > .aff-copy,
#results article.offer[data-offer="awin-beeparking-beesuperaw"] > .body > .aff-copy{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #1A7F45;background:#F2FAF5;color:#0F3D2A;border-radius:8px;
  font-weight:600;cursor:pointer;padding:6px 10px;font-size:13px;
}


@media (max-width:360px){
  /* At very narrow 2-col widths, the CODE label is dropped so the voucher itself stays fully visible */
  :is(#results article.offer>.body>.ocode.ocode-open,#intl-grid article.offer>.body>.ocode.ocode-open):not(#pc1):not(#pc2):not(#pc3):not(#pc4) > span:first-child {
    display:none!important;
  }
}


/* v451 fix4-1112 (Mark's direct yes, 12 Nov 2026): phone /offers grid, beats the
   offers-pics cover rule above. Whole photo shown inside the same 112px slot. */
@media (max-width:700px) {
  #results article.offer>.top.opic>img.ppic[src*="/offers-pics/"]:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5) {
    object-fit:contain!important;
    object-position:center center!important;
  }
}
