
#product-category [data-pump-compare-id] {
  min-height: 42px;
  text-transform: none;
}
#product-category [data-pump-compare-id][aria-pressed="true"] {
  color: #133e88;
  background: #dcecff;
}
#product-category:has([data-pump-compare-id]) #compare-total {
  color: #114684;
  font-weight: 750;
}
.polka-pump-comparison .pump-return { display: inline-flex; align-items: center; min-height: 44px; }
.polka-pump-comparison h1 { margin: 6px 0 12px; }
.pump-difference-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.pump-compare-grid { border: 1px solid #d5e1ed; border-radius: 12px; background: #fff; overflow: hidden; }
.pump-compare-products, .pump-spec-values { display: grid; grid-template-columns: repeat(var(--pump-columns), minmax(0, 1fr)); }
.pump-compare-product { min-width: 0; padding: 10px; border-inline-end: 1px solid #e1eaf2; overflow-wrap: anywhere; }
.pump-compare-product img { display: block; width: min(84px, 100%); object-fit: contain; }
.pump-remove { display: inline-flex; align-items: center; min-height: 40px; color: #963b35; }
.pump-spec-row { border-top: 1px solid #d5e1ed; }
.pump-spec-row > h2 { margin: 0; padding: 7px 10px; font-size: 13px; background: #edf4fd; color: #173f70; }
.pump-spec-values > div { padding: 9px 10px; min-width: 0; border-inline-end: 1px solid #e1eaf2; overflow-wrap: anywhere; }
.pump-spec-values > div:last-child, .pump-compare-product:last-child { border-inline-end: 0; }
@media (max-width: 767px) {
  #product-category #compare-total.pump-compare-ready {
    position: fixed;
    z-index: 850;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #184c94;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 12px #193f7140;
  }
  body:has(.polka-search input:focus) #product-category #compare-total.pump-compare-ready { display: none; }
  .polka-pump-comparison { padding-inline: 14px; }
  .polka-pump-comparison h1 { font-size: 24px; line-height: 1.2; }
}

#polka-pump-compare-status.compare-notice-visible {
  position: fixed;
  z-index: 851;
  inset: auto 14px 20px auto;
  width: min(360px, calc(100% - 28px));
  height: auto;
  clip: auto;
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff5df;
  color: #5b3a11;
  pointer-events: none;
}
.pump-compare-product .compare-cart { display: block; margin-top: 3px; white-space: normal; }
.pump-compare-product .compare-reference { display: block; font-size: 12px; }
@media (max-width: 767px) {
  #polka-pump-compare-status.compare-notice-visible { bottom: calc(134px + env(safe-area-inset-bottom, 0px)); }
  .pump-compare-grid[data-many] { overflow-x: auto; }
  .pump-compare-grid[data-many] .pump-compare-products,
  .pump-compare-grid[data-many] .pump-spec-row { min-width: calc(145px * var(--pump-columns)); }
}
