/* Homepage only: advertiser blocks, fixed offer count, no filter panel. */
body .ks-home-block-layout{padding-top:22px;padding-bottom:0}
body .ks-home-block-layout .ks-block-section-heading,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;text-align:left;padding:0;margin:0 0 18px;min-height:0}
body .ks-home-block-layout .ks-block-section-heading h2,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading h2{margin:0!important;padding:0;text-align:left;flex:1;font-family:var(--sans,Arial,sans-serif);font-size:clamp(23px,2.3vw,30px);font-weight:750;line-height:1.25;letter-spacing:-.025em;color:#202526}
body .ks-home-block-layout .ks-block-view-all,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-view-all{position:static;transform:none;inset:auto;flex:none;margin:0;padding:6px 0;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.025em;text-decoration:none;white-space:nowrap;display:inline-flex;gap:6px;align-items:center;color:#176958}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-view-all{color:#2454d6}
body .ks-home-block-layout .ks-block-disclosure{font:400 12px/1.5 var(--sans,Arial,sans-serif);color:#66716e;margin:-5px 0 15px;text-align:left}
body .ks-home-block-layout .ks-block-disclosure a{color:inherit;text-decoration:underline}
body .ks-home-block-layout .ks-home-offer-block-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
body .ks-home-block-layout .ks-home-offer-block{display:flex;flex-direction:column;min-width:0;margin:0;padding:0;border:1px solid #e7e9e8;border-radius:16px;background:#fff;overflow:hidden;font-family:var(--sans,Arial,sans-serif)}
body .ks-home-block-layout .ks-block-logo{display:flex;align-items:center;justify-content:center;min-width:0;height:112px;padding:20px;background:#fff;border-bottom:4px solid var(--ks-advertiser-color,#205951);text-decoration:none;box-sizing:border-box}
body .ks-home-block-layout .ks-block-logo img{display:block;width:auto;height:auto;max-width:100%;max-height:68px;object-fit:contain;border:0;border-radius:0;margin:0;mix-blend-mode:normal}
body .ks-home-block-layout .ks-block-logo .ks-logo-fallback{color:#233c37;font-size:21px;font-weight:750;text-align:center;line-height:1.15}
body .ks-home-block-layout .ks-block-copy{display:flex;flex-direction:column;align-items:center;flex:1;padding:12px 13px 15px;text-align:center;gap:10px;min-width:0}
body .ks-home-block-layout .ks-block-store{font-size:13px;line-height:1.35;color:#525955;overflow-wrap:anywhere}
body .ks-home-block-layout .ks-block-copy a{color:inherit;text-decoration:none}
body .ks-home-block-layout .ks-block-copy a:hover{text-decoration:underline}
body .ks-home-block-layout .ks-block-copy h3{margin:0;padding:0;font-size:17px;font-weight:750;line-height:1.35;color:#222;overflow-wrap:anywhere}
body .ks-home-block-layout .ks-block-verified{margin-top:auto;padding-top:4px;font-size:11px;line-height:1.4;color:#39705f}
body .ks-home-block-layout .ks-block-action{display:flex;margin:0;padding:0;background:#f5f6f7;border-top:1px solid #f0f1f2;min-width:0}
body .ks-home-block-layout .ks-block-action>*{flex:1;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0;border:0;border-radius:0;background:#f5f6f7;color:#222;padding:13px 8px;min-height:46px;font:750 14px/1.3 var(--sans,Arial,sans-serif);text-align:center;text-decoration:none;cursor:pointer;white-space:normal}
body .ks-home-block-layout .ks-block-action>*:hover{background:#e7f2ed;color:#155b4a}
body .ks-home-block-layout a:focus-visible,body .ks-home-block-layout button:focus-visible{outline:3px solid #b951aa;outline-offset:-3px}
body .ks-home-block-layout .ks-home-product-blocks{margin:38px 0 32px}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-body{padding:12px}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-card h3{font-size:15px}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-image{height:auto;aspect-ratio:1.25;padding:14px}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-badge{font-size:12px;padding:6px 8px;top:8px;left:8px}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-prices strong{font-size:21px}
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-button{font-size:14px;min-height:44px;padding:10px 8px}
@media(min-width:761px) and (max-width:1024px){body .ks-home-block-layout .ks-home-offer-block-grid,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:760px){
 body .ks-home-block-layout{padding-top:18px}
 body .ks-home-block-layout .ks-home-offer-block-grid,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body .ks-home-block-layout .ks-block-section-heading,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading{flex-direction:column;align-items:flex-start;text-align:left;gap:7px;margin-bottom:14px}
 body .ks-home-block-layout .ks-block-section-heading h2,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading h2{font-size:24px;flex:auto;text-align:left}
 body .ks-home-block-layout .ks-block-view-all,body .ks-home-block-layout .ks-home-product-blocks .ks-daily-view-all{align-self:flex-start;justify-content:flex-start;text-align:left;font-size:11px;min-height:30px}
 body .ks-home-block-layout .ks-block-logo{height:96px;padding:15px}
 body .ks-home-block-layout .ks-block-logo img{max-height:60px}
 body .ks-home-block-layout .ks-block-copy{padding:11px 10px 13px;gap:8px}
 body .ks-home-block-layout .ks-block-copy h3{font-size:15px}
 body .ks-home-block-layout .ks-block-store{font-size:12px}
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-body{padding:11px}
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-store{font-size:10px;padding:5px 7px}
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-prices strong{font-size:20px}
}

/* Keep logos on a neutral field and prevent legacy card spacing from stretching the body. */
body .ks-home-block-layout .ks-home-offer-block{align-items:stretch;justify-content:flex-start;gap:0;height:100%;box-shadow:0 2px 8px #203c3305}
body .ks-home-block-layout .ks-block-copy{justify-content:flex-start;gap:10px;padding:15px 16px 16px;min-height:154px}
body .ks-home-block-layout .ks-block-copy>*{margin:0!important}
body .ks-home-block-layout .ks-block-copy h3{min-height:0!important;height:auto!important;line-height:1.35!important;text-align:center;font-size:17px}
body .ks-home-block-layout .ks-block-copy .ks-block-verified{margin-top:auto!important;padding-top:8px}
body .ks-home-block-layout .ks-block-store{display:block;flex:none;min-height:0;line-height:1.35}
body .ks-home-block-layout .ks-block-logo{flex:none;height:112px}
body .ks-home-block-layout .ks-block-logo img{max-height:72px;max-width:85%;filter:none!important;opacity:1}
body .ks-home-block-layout .ks-block-action{margin-top:auto}
body .ks-home-block-layout .ks-block-action .ks-copy-shop-wrap{padding:0;border:0;border-radius:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center}
body .ks-home-block-layout .ks-block-action .coupon-button{width:100%;min-height:46px;margin:0;border:0;border-radius:0;padding:12px;font-size:14px;background:#f5f6f7;color:#222}
body .ks-home-block-layout .ks-block-action .ks-copy-shop-status:empty{display:none}
@media(max-width:760px){
 body .ks-home-block-layout .ks-block-copy{padding:12px 10px;gap:8px;min-height:146px}
 body .ks-home-block-layout .ks-block-copy h3{font-size:15px}
 body .ks-home-block-layout .ks-block-logo{height:96px}
 body .ks-home-block-layout .ks-block-logo img{max-height:60px;max-width:100%}
}

/* Bold retailer headers and savings-led cards inspired by the supplied reference. */
body .ks-home-block-layout .ks-home-offer-block{border-radius:18px;box-shadow:none}
body .ks-home-block-layout .ks-block-logo{height:124px!important;padding:18px!important;border:0!important;background:var(--ks-advertiser-color,#205951)!important}
body .ks-home-block-layout .ks-block-logo-plate{display:flex;align-items:center;justify-content:center;width:78%;height:76px;padding:12px 16px;background:#fff;border-radius:8px;box-sizing:border-box}
body .ks-home-block-layout .ks-block-logo .ks-block-logo-plate img{max-width:100%!important;max-height:52px!important;width:auto;height:auto;margin:0}
body .ks-home-block-layout .ks-block-logo .ks-logo-fallback{font-size:20px;color:#20342e}
body .ks-home-block-layout .ks-block-copy{padding:13px 16px 15px!important;gap:8px!important;min-height:0!important;justify-content:flex-start!important}
body .ks-home-block-layout .ks-block-copy .ks-block-store{font-size:14px;line-height:1.35;margin:0 0 5px!important}
body .ks-home-block-layout .ks-block-copy h3{font-size:28px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:-.035em;margin:0!important;padding:0!important}
body .ks-home-block-layout .ks-block-copy .ks-block-description{font-size:13px!important;font-weight:400!important;line-height:1.4!important;color:#515a57;margin:0!important;padding:0!important;min-height:0!important;text-align:center}
body .ks-home-block-layout .ks-block-copy .ks-block-verified{font-size:11px!important;margin-top:auto!important;padding-top:5px}
body .ks-home-block-layout .ks-block-action{min-height:48px}
body .ks-home-block-layout .ks-block-action .coupon-button{min-height:48px;font-weight:800}
@media(max-width:760px){
 body .ks-home-block-layout .ks-block-logo{height:102px!important;padding:13px!important}
 body .ks-home-block-layout .ks-block-logo-plate{width:100%;height:64px;padding:10px;border-radius:6px}
 body .ks-home-block-layout .ks-block-logo .ks-block-logo-plate img{max-height:44px!important}
 body .ks-home-block-layout .ks-block-copy{padding:12px 10px!important;gap:7px!important}
 body .ks-home-block-layout .ks-block-copy h3{font-size:22px!important}
 body .ks-home-block-layout .ks-block-copy .ks-block-description{font-size:12px!important}
 body .ks-home-block-layout .ks-block-copy .ks-block-store{font-size:12px}
}

/* Direct logos, no inset box, and compact rows matching the supplied reference. */
body .ks-home-block-layout .ks-home-offer-block br,body .ks-home-block-layout .ks-home-offer-block p:empty{display:none!important}
body .ks-home-block-layout .ks-block-logo{height:100px!important;padding:16px 24px!important;overflow:hidden}
body .ks-home-block-layout .ks-block-logo img{max-width:88%!important;max-height:66px!important;width:auto!important;height:auto!important;margin:0!important;object-fit:contain!important;border-radius:0!important;background:transparent!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="wanayou"] .ks-block-logo{background:#13191c!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="wanayou"] .ks-block-logo img{width:230px!important;height:230px!important;max-width:none!important;max-height:none!important;filter:invert(1)!important;mix-blend-mode:screen!important;flex:none}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="maxpeedingrods"] .ks-block-logo img{filter:invert(1)!important;mix-blend-mode:screen!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="unice"] .ks-block-logo{background:#ff73ec!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="unice"] .ks-block-logo img{max-height:88px!important;max-width:100%!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="greatergood"] .ks-block-logo,body .ks-home-block-layout .ks-home-offer-block[data-brand*="animalrescue"] .ks-block-logo{background:#dac6e9!important}
body .ks-home-block-layout .ks-block-copy{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;padding:12px 14px!important;gap:7px!important;min-height:0!important;height:auto!important}
body .ks-home-block-layout .ks-block-copy .ks-block-store{margin:0 0 4px!important;padding:0!important;line-height:1.3!important;font-size:13px}
body .ks-home-block-layout .ks-block-copy h3{font-size:26px!important;line-height:1.1!important;margin:0!important;padding:0!important}
body .ks-home-block-layout .ks-block-copy .ks-block-description{font-size:12px!important;line-height:1.35!important;margin:0!important;padding:0!important}
body .ks-home-block-layout .ks-block-copy .ks-block-verified{padding-top:4px!important;margin-top:auto!important;line-height:1.3!important;font-size:10px!important}
body .ks-home-block-layout .ks-block-action{min-height:44px!important}
body .ks-home-block-layout .ks-block-action .coupon-button{display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:12px!important;text-align:center!important;gap:0!important}
body .ks-home-block-layout .ks-block-action .coupon-button::before,body .ks-home-block-layout .ks-block-action .coupon-button::after{display:none!important}
@media(max-width:760px){
 body .ks-home-block-layout .ks-block-logo{height:88px!important;padding:12px!important}
 body .ks-home-block-layout .ks-block-logo img{max-height:56px!important;max-width:100%!important}
 body .ks-home-block-layout .ks-home-offer-block[data-brand*="wanayou"] .ks-block-logo img{width:168px!important;height:168px!important;max-width:none!important;max-height:none!important}
 body .ks-home-block-layout .ks-home-offer-block[data-brand*="unice"] .ks-block-logo img{max-height:72px!important}
 body .ks-home-block-layout .ks-block-copy{padding:11px 9px!important;gap:7px!important}
 body .ks-home-block-layout .ks-block-copy h3{font-size:21px!important}
 body .ks-home-block-layout .ks-block-copy .ks-block-description{font-size:11px!important}
}

/* Match the solid backgrounds embedded in the supplied logo assets. */
body .ks-home-block-layout .ks-home-offer-block[data-brand*="perfumania"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="cashmere"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="bestvet"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="dhgate"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="surfshark"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="tenergy"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="soccergarage"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="botanic"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="oosoftware"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="switchbot"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="nordpass"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="animalrescue"] .ks-block-logo{background:#fefefe!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="techforless"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="fragranceshop"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="abracadabra"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="nordvpn"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="gamefly"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="corel"] .ks-block-logo{background:#ffffff!important}
body .ks-home-block-layout .ks-home-offer-block[data-brand*="triplebristle"] .ks-block-logo{background:#003b73!important}

/* Dark Ravin and Kings Camo wordmarks need a white field. */
body .ks-home-block-layout .ks-home-offer-block[data-brand*="ravin"] .ks-block-logo,body .ks-home-block-layout .ks-home-offer-block[data-brand*="kingscamo"] .ks-block-logo{background:#fff!important}

/* GameFly uses a black logo panel. */
body .ks-home-block-layout .ks-home-offer-block[data-brand*="gamefly"] .ks-block-logo{background:#000!important}

/* Give desktop offers more width without changing the product grid beneath them. */
@media(min-width:1280px){
 body .ks-home-block-layout .ks-home-block-offers{width:calc(100% + 80px);max-width:none;margin-left:-40px;margin-right:-40px}
 body .ks-home-block-layout .ks-home-offer-block-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
}
@media(min-width:761px){
 body .ks-home-block-layout .ks-home-offer-block .ks-block-logo{height:112px!important;padding:18px 24px!important}
 body .ks-home-block-layout .ks-home-offer-block .ks-block-logo img{max-height:74px!important}
}

/* Compact the carousel-to-offers transition, including WordPress block spacing. */
body.home .ks-hero-carousel{margin-bottom:0!important}
body.home main.ks-home-block-layout{margin-top:0!important;margin-block-start:0!important;padding-top:10px!important}
body.home .ks-home-block-layout .ks-home-block-offers{margin-top:0!important;margin-block-start:0!important;padding-top:0!important}
body.home .wp-block-shortcode:has(>.ks-home-block-layout){margin-top:0!important;margin-block-start:0!important;padding-top:0!important}
body.home .wp-block-shortcode:has(>.ks-hero-carousel){margin-bottom:0!important;padding-bottom:0!important}
body.home .ks-hero-carousel + .wp-block-spacer:has(+.ks-home-block-layout){display:none!important}

/* WordPress adds paragraph wrappers after rendering saved shortcode blocks. */
body.home .ks-hero-carousel>p:empty,body.home .ks-home-block-layout>p:empty{display:none!important;margin:0!important;padding:0!important}
body.home .ks-hero-controls>p{display:contents!important;margin:0!important;padding:0!important}
body.home .ks-hero-controls{height:44px!important;min-height:44px!important;margin-bottom:0!important;padding:0!important}
body.home .ks-home-block-layout .ks-block-section-heading>p{display:contents!important;margin:0!important;padding:0!important}
body.home .ks-home-block-layout .ks-block-section-heading{min-height:0!important}
body.home main.ks-home-block-layout{padding-top:44px!important}
@media(max-width:760px){body.home main.ks-home-block-layout{padding-top:24px!important}}

/* The live-status span is wrapped in a paragraph by WordPress; retain it without margins. */
body.home .ks-hero-carousel>p:has(>[data-ks-hero-status]){display:contents!important;margin:0!important;padding:0!important}

/* 1.8.09: mobile offers link right aligned, disclosure left aligned. */
@media(max-width:760px){
 body .ks-home-block-layout .ks-block-section-heading{width:100%;gap:5px;margin-bottom:8px}
 body .ks-home-block-layout .ks-block-section-heading .ks-block-view-all{align-self:flex-end;justify-content:flex-end;text-align:right;margin-left:auto}
 body .ks-home-block-layout .ks-block-disclosure{width:100%;max-width:none;text-align:left!important;margin:0 0 15px!important}
}

/* 1.8.11: separate disclosure line between carousel and offers heading. */
body .ks-home-block-layout .ks-block-disclosure{margin:0 0 16px!important;text-align:left!important}
@media(max-width:760px){body.home main.ks-home-block-layout{padding-top:6px!important}body .ks-home-block-layout .ks-block-disclosure{font-size:11px;margin:0 0 15px!important}}

/* 1.8.14: homepage savings heading and product-note disclosure. */
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media(max-width:760px){
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading{width:100%}
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading .ks-daily-view-all{align-self:flex-end;justify-content:flex-end;text-align:right;margin-left:auto}
}

@media(max-width:760px){
/* 1.8.16: centered headings and links on mobile only. */
body .ks-home-block-layout .ks-block-section-heading,
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:7px;margin-bottom:18px}
body .ks-home-block-layout .ks-block-section-heading h2,
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading h2{flex:none;width:100%;text-align:center!important}
body .ks-home-block-layout .ks-block-section-heading .ks-block-view-all,
body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading .ks-daily-view-all{align-self:center;justify-content:center;text-align:center;margin-left:0;margin-right:0}

}

/* 1.8.20: identical mobile heading/link spacing in both homepage sections. */
@media(max-width:760px){
 body .ks-home-block-layout .ks-block-section-heading,
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading{gap:7px!important;padding:0!important;min-height:0!important;margin-bottom:18px!important}
 body .ks-home-block-layout .ks-block-section-heading>p,
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading>p{display:contents!important;margin:0!important;padding:0!important}
 body .ks-home-block-layout .ks-block-section-heading br,
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading br{display:none!important}
 body .ks-home-block-layout .ks-block-section-heading h2,
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading h2{margin:0!important;padding:0!important;font-size:24px!important;line-height:1.25!important}
 body .ks-home-block-layout .ks-block-section-heading .ks-block-view-all,
 body .ks-home-block-layout .ks-home-product-blocks .ks-daily-heading .ks-daily-view-all{margin:0!important;padding:6px 0!important;min-height:30px!important;line-height:1.4!important;box-sizing:border-box}
}
