/* BWC v459 (13 Nov 2026, Mark via BOSS): Featured Offers page (/offers) only. Loaded only by offers.html.
   Brand orange #F7931E is 2.3:1 on white (fails WCAG AA), so v459 used #A75D06. v464 (Mark 09:50 14 Nov: "the orange looks brown make it same as the header orange"): the Copy code button only is now the header orange #E8730C
   (the header "Find discounts" button); product name/category labels stay #A75D06 (Mark correction 09:56). White text kept on the Copy code button; Mark accepts the lower contrast (3.05:1 on white). */
/* 2. Product names / in-card category labels (.sells) orange */
#featured-grid .fcard .sells,#results article.card .sells,main article.card.offer .sells{color:#A75D06!important}
/* 4. Cosyfeet grid card: code shown in the same dotted code box as other cards */
main article.card.offer[data-offer="awin-cosyfeet-cfawin10"] .ocode.ocode-open{background:transparent!important;border:1px solid transparent!important;padding:5px 0!important;color:#0F2A44!important}
main article.card.offer[data-offer="awin-cosyfeet-cfawin10"] .ocode.ocode-open > span:first-child{display:none}
main article.card.offer[data-offer="awin-cosyfeet-cfawin10"] .ocode.ocode-open > span:last-child{font-family:monospace;font-size:13px;letter-spacing:normal;text-transform:none;border:1px dashed #0F2A44;border-radius:6px;padding:3px 8px;color:#0F2A44;background:#fff}

/* Copy code: solid orange fill, white text; size unchanged. Main offers grid stays #A75D06 (v464 is Featured Offers only). */
main article.card.offer .aff-copy{background:#A75D06!important;border-color:#A75D06!important;color:#fff!important}
/* v464: Featured Offers Copy code = header orange #E8730C (header "Find discounts" button), white text (3.05:1). */
#featured-grid .fcard .aff-copy{background:#E8730C!important;border-color:#E8730C!important;color:#fff!important}

/* v461 (14 Nov 2026, Mark via BOSS): FIXED STRUCTURE for every Featured Offers card on /offers.
   Picture area fixed; body is a grid with fixed rows: brand/logo | category | title (2 lines) | code box | description (1 line) | spacer | buttons.
   A card without a logo or code keeps the empty row, so every element sits at the same y in every card. */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6){display:flex!important;flex-direction:column!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fpic{flex:0 0 auto!important;height:170px!important;max-height:none!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fpic > img:not(.flogo){height:169px!important;max-height:none!important;width:100%!important;flex:0 0 auto!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:28px 16px 50px 29px 17px minmax(0,1fr)!important;row-gap:6px!important;gap:6px 0!important;align-items:center!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand{grid-row:1!important;height:28px!important;min-height:0!important;margin:0!important;display:flex!important;align-items:center!important;overflow:hidden!important;white-space:nowrap!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .sells{grid-row:2!important;height:16px!important;line-height:16px!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .ftitle{grid-row:3!important;height:50px!important;min-height:0!important;max-height:50px!important;line-height:25px!important;margin:0!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;align-self:start!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fcode{grid-row:4!important;height:29px!important;box-sizing:border-box!important;margin:0!important;justify-self:start!important;align-self:center!important;display:inline-flex!important;align-items:center!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall{grid-row:5!important;height:17px!important;line-height:17px!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall > span{display:inline!important;white-space:nowrap!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .frow{grid-row:6!important;margin:0!important;padding-top:0!important;align-self:end!important}
@media(max-width:760px){
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fpic{height:112px!important;max-height:none!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fpic > img:not(.flogo){height:111px!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody{grid-template-rows:20px 15px 36px 17px 15px minmax(0,1fr)!important;row-gap:5px!important;gap:5px 0!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand{height:20px!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .sells{height:15px!important;line-height:15px!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .ftitle{height:36px!important;max-height:36px!important;line-height:18px!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fcode{height:17px!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fsmall{height:15px!important;line-height:15px!important}
}
/* v464 (14 Nov 2026, Mark via BOSS): picture alignment. Every Featured Offers picture box is identical (170px desktop / 112px phone,
   border-box, no padding, 1px bottom divider only, same top) and every <img> fills that box's content area exactly
   (width 100%, height 100%, object-fit contain, centred), so every img element box is identical. No image removed, replaced or cropped.
   Replaces the v460/v461 per-card picture heights (164/165/169px). */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fpic{box-sizing:border-box!important;height:170px!important;min-height:170px!important;max-height:170px!important;flex:0 0 170px!important;margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid #EEF2F6!important;position:relative!important;display:block!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fpic > img:not(.flogo){box-sizing:border-box!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;object-fit:contain!important;object-position:50% 50%!important;flex:none!important;transform:none!important}
@media(max-width:760px){
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fpic{height:112px!important;min-height:112px!important;max-height:112px!important;flex:0 0 112px!important}
}
/* v464: code box one fixed width per breakpoint (fits the longest current code, HOTHOTELS25) so every code box is the same size;
   a longer future code can still grow (min-width). Copy code and Get deal buttons the same 29px height on desktop/tablet (phone already equal at 32px). */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fcode{min-width:112px!important}
@media(min-width:761px){
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .frow > :is(.fcp,.fgo){box-sizing:border-box!important;height:29px!important;min-height:29px!important;max-height:29px!important;padding-top:0!important;padding-bottom:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:27px!important}
}
@media(max-width:760px){
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fcode{min-width:90px!important}
}
/* v464: brand line - a long brand name (e.g. Compare Parking at 360px) ends with "…" instead of being chopped (text-overflow cannot work on a flex row). Logo kept, same row height. */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand{display:block!important;line-height:28px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand > img.flogo{display:inline-block!important;vertical-align:middle!important;margin:0 8px 0 0!important;position:static!important}
@media(max-width:760px){
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand{line-height:20px!important}
}
/* v464: phone - "Copy code" / "Get deal" text was touching the button edges (71px text in a 71px box); 11px text leaves clear space (360-760px; below 360px the existing 10.5px rule applies). Button sizes unchanged. */
@media(min-width:360px) and (max-width:760px){
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .frow > :is(.fcp,.fgo){font-size:11px!important;letter-spacing:0!important}
}
/* v464 (Mark 09:56 "line up all text on the cards"): a card with no brand logo (Cosyfeet) keeps an empty logo-width slot,
   so every brand name starts at the same left edge (logo 28px + 8px gap desktop; 20px + 8px phone). */
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand:not(:has(> img.flogo)){padding-left:36px!important;box-sizing:border-box!important}
@media(max-width:760px){
#featured-grid .fcard:not(#fx1):not(#fx2):not(#fx3):not(#fx4):not(#fx5):not(#fx6) > .fbody > .fbrand:not(:has(> img.flogo)){padding-left:28px!important}
}

/* r4 preview: Featured one-line slots — no ellipsis; JS fit-text shrinks the font in the fixed slot.
   Overrides the v464 text-overflow:ellipsis on .fbrand / .sells / .fsmall. Card heights unchanged. */
#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{
  text-overflow:clip!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
