/* SaveSleuth 1.0.23 — editorial product cards and purchase CTAs.
   New content uses ss-product-* / ss-cta. Legacy explicit comparison classes
   remain supported until the saved Gutenberg markup is migrated. */
:root {
  --ss-product-border: #dbe3ea;
  --ss-product-radius: 14px;
  --ss-product-pad: 20px;
  --ss-product-gap: 16px;
  --ss-product-media-height: 210px;
  --ss-cta-radius: 9px;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-grid,.ss-compare-products .ss-compare-grid,.ss-kindle-comparison > div:first-child) {
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)) !important;
  gap:var(--ss-product-gap) !important;
  align-items:stretch !important;
  width:100%; min-width:0; max-width:100%;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-grid,.ss-product-card--horizontal,.ss-product-actions) { margin-block:20px 28px; }
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-card,.ss-compare-products .ss-compare-card,.ss-kindle-comparison > div:first-child > section) {
  box-sizing:border-box; display:flex !important; flex-direction:column !important;
  min-width:0 !important; width:100%; max-width:100%;
  background:#fff !important; border:1px solid var(--ss-product-border) !important;
  border-radius:var(--ss-product-radius) !important; box-shadow:none !important;
  overflow:visible !important; padding:var(--ss-product-pad) !important;
  gap:10px !important; overflow-wrap:break-word;
}
:is(.entry-content,.editor-styles-wrapper) .ss-product-card--featured {
  border-color:#93b4ed !important;
}
/* Preserve the explicitly recommended Kindle variant during migration. */
.entry-content .ss-kindle-comparison > div:first-child > section[style*="#93b4ed"] {border-color:#93b4ed !important;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-card--horizontal) {
  display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);
  align-items:center; gap:20px !important;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-body,.ss-compare-products .ss-compare-card-body) {
  display:flex !important; flex-direction:column !important; flex:1; min-width:0;
  gap:10px !important; padding:0 !important;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-card,.ss-compare-products .ss-compare-card,.ss-kindle-comparison > div:first-child > section) :is(h2,h3) {
  font-size:clamp(19px,2vw,22px) !important; line-height:1.3 !important;
  margin:0 !important; color:var(--ss-text,#0f172a); font-weight:600;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-card,.ss-compare-products .ss-compare-card,.ss-kindle-comparison > div:first-child > section) p {
  font-size:14px; line-height:1.55; margin:0 !important;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-kicker,.ss-compare-kicker,.ss-kindle-comparison > div:first-child > section > p:first-child) {
  font-size:12px !important; font-weight:700 !important; line-height:1.4;
  letter-spacing:.045em !important; text-transform:uppercase; color:#475569 !important; margin:0 !important;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-meta,.ss-compare-condition,.ss-product-note,.ss-compare-credit) {
  font-size:13px !important; line-height:1.5 !important; color:#475569 !important; margin:0 !important;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-disclosure,.ss-compare-disclosure) {font-size:13px; line-height:1.55; color:#475569;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-media,.ss-kindle-comparison > div:first-child > section > figure) {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100% !important; max-width:100% !important; min-width:0; margin:0 !important; gap:6px;
}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-media img,.ss-compare-products .ss-compare-card > img,.ss-kindle-comparison > div:first-child > section > figure img) {
  display:block !important; width:100% !important; max-width:100% !important;
  height:var(--ss-product-media-height) !important; aspect-ratio:auto !important;
  object-fit:contain !important; object-position:center; margin:0 !important;
  background:#fff; border-radius:8px;
}
:is(.entry-content,.editor-styles-wrapper) .ss-product-media figcaption {font-size:12px; color:#475569; line-height:1.4; margin:0; text-align:center;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-specs,.ss-kindle-comparison > div:first-child > section > dl) {margin:0 !important; font-size:14px; line-height:1.5;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-specs,.ss-kindle-comparison > div:first-child > section > dl) > div {display:flex !important; justify-content:space-between; gap:12px; padding:8px 0 !important; border-bottom:1px solid #e2e8f0;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-specs,.ss-kindle-comparison > div:first-child > section > dl) :is(dt,dd) {margin:0 !important; min-width:0;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-specs,.ss-kindle-comparison > div:first-child > section > dl) dt {color:#475569; font-weight:400;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-specs,.ss-kindle-comparison > div:first-child > section > dl) dd {font-weight:600; text-align:end;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-card,.ss-compare-card) ul {margin:0 !important; padding-inline-start:20px; font-size:14px; line-height:1.55;}
:is(.entry-content,.editor-styles-wrapper) .ss-product-actions {display:flex; flex-wrap:wrap; align-items:stretch; gap:12px;}
:is(.entry-content,.editor-styles-wrapper) .ss-product-actions > * {flex:1 1 220px; min-width:0;}
/* Explicit commercial links only. No broad rel=sponsored selector. */
:is(.entry-content,.editor-styles-wrapper) :is(a.ss-cta,a.ss-compare-cta,a.ss-iphone-action) {
  box-sizing:border-box !important; display:inline-flex !important; align-items:center; justify-content:center !important;
  gap:8px; max-width:100%; min-width:0; min-height:48px !important; padding:12px 16px !important;
  background:var(--ss-primary,#1d4ed8) !important; color:#fff !important;
  border:1px solid var(--ss-primary,#1d4ed8) !important; border-radius:var(--ss-cta-radius) !important;
  text-align:center !important; font-size:15px !important; font-weight:600 !important; line-height:1.4 !important;
  text-decoration:none !important; box-shadow:none !important; transform:none !important;
  white-space:normal; overflow-wrap:break-word; opacity:1 !important;
  transition:background-color .15s,border-color .15s;
}
:is(.entry-content,.editor-styles-wrapper) :is(a.ss-cta,a.ss-compare-cta,a.ss-iphone-action):hover {background:#173eae !important;border-color:#173eae !important;color:#fff !important;}
:is(.entry-content,.editor-styles-wrapper) a.ss-cta--secondary,
.entry-content .ss-kindle-comparison > div:first-child > section > a[style*="background:#fff"] {
  background:#fff !important; color:#1d4ed8 !important; border-color:#1d4ed8 !important;
}
:is(.entry-content,.editor-styles-wrapper) a.ss-cta--secondary:hover {background:#eff6ff !important;color:#1d4ed8 !important;border-color:#1d4ed8 !important;}
:is(.entry-content,.editor-styles-wrapper) :is(a.ss-cta,a.ss-compare-cta,a.ss-iphone-action):focus-visible {outline:3px solid #93c5fd;outline-offset:3px;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-card,.ss-compare-card,.ss-kindle-comparison > div:first-child > section) > :is(a.ss-cta,a.ss-compare-cta),
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-body,.ss-compare-card-body) > :is(a.ss-cta,a.ss-compare-cta) {width:100%;margin-top:auto !important;}
:is(.entry-content,.editor-styles-wrapper) .ss-product-actions a.ss-cta {width:100%;}
@media(max-width:600px){
  :root {--ss-product-pad:16px;--ss-product-gap:12px;--ss-product-media-height:180px;}
  :is(.entry-content,.editor-styles-wrapper) :is(.ss-product-grid,.ss-compare-products .ss-compare-grid,.ss-kindle-comparison > div:first-child) {grid-template-columns:minmax(0,1fr) !important;}
  :is(.entry-content,.editor-styles-wrapper) .ss-product-card--horizontal {grid-template-columns:minmax(0,1fr);}
  :is(.entry-content,.editor-styles-wrapper) :is(a.ss-cta,a.ss-compare-cta,a.ss-iphone-action) {width:100%;}
}
@media(prefers-reduced-motion:reduce){:is(.entry-content,.editor-styles-wrapper) :is(a.ss-cta,a.ss-compare-cta,a.ss-iphone-action){transition:none;}}
:is(.entry-content,.editor-styles-wrapper) a.ss-cta--block {width:100%;}
/* Gutenberg's old pill/gradient rule has higher specificity than an anchor alone. */
:is(.entry-content,.editor-styles-wrapper) .wp-block-button .wp-block-button__link.ss-cta {border-radius:var(--ss-cta-radius) !important; background:var(--ss-primary,#1d4ed8) !important;color:#fff !important;}
:is(.entry-content,.editor-styles-wrapper) .wp-block-button .wp-block-button__link.ss-cta:hover {background:#173eae !important;}
:is(.entry-content,.editor-styles-wrapper) .wp-block-button .wp-block-button__link.ss-cta.ss-cta--secondary {background:#fff !important;color:#1d4ed8 !important;}
:is(.entry-content,.editor-styles-wrapper) .wp-block-button .wp-block-button__link.ss-cta.ss-cta--secondary:hover {background:#eff6ff !important;color:#1d4ed8 !important;}

/* v1.0.24 — align CTAs at the card footer, even with unequal image notes.
   Non-interactive listing/illustration caveats are visually grouped before the purchase link. */
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-body,.ss-compare-card-body,.ss-product-card):has(> :is(a.ss-cta,a.ss-compare-cta)) > :is(.ss-product-note,.ss-compare-credit) {order:1;}
:is(.entry-content,.editor-styles-wrapper) :is(.ss-product-body,.ss-compare-card-body,.ss-product-card) > :is(a.ss-cta,a.ss-compare-cta) {order:2; margin-top:auto !important;}
/* Legacy CTA arrow uses the same simple treatment as modern editorial buttons. */
:is(.entry-content,.editor-styles-wrapper) a.ss-compare-cta > span[aria-hidden="true"] {background:transparent !important; border-radius:0 !important; width:auto !important; height:auto !important; flex:0 0 auto !important; font-size:15px !important;}
