/* Keep the same card height across rows, including items inserted by Woodmart. */
body .products.wd-products.mec-card-grid,
body .me-pdp-rec .me-pdp-rec__grid:has(> .me-pdp-rec__item > .mec-card) {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
body .wd-carousel-wrap:has(> .wd-carousel-item > .mec-card) {
  align-items: stretch;
}
body :is(.wd-carousel-item, .me-pdp-rec__item):has(> .mec-card) {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
}
/* The scroll fallback sets slide widths on the grid tracks, not on each slide. */
body .me-pdp-rec__carousel.is-native-scroll .wd-carousel-wrap > .wd-carousel-item:has(> .mec-card) {
  width: 100%;
  max-width: none;
}
body .wd-product.mec-card[data-mec-mode] {
  align-self: stretch;
  margin-block: 0 !important;
}
body .wd-product.mec-card[data-mec-mode],
body .wd-product.mec-card[data-mec-mode] > .wd-product-wrapper.wd-entry-content,
body .wd-product.mec-card[data-mec-mode] .mtr-loop-row {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
}
body .wd-product.mec-card[data-mec-mode],
body .wd-product.mec-card[data-mec-mode] .wd-product-wrapper.wd-entry-content {
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body .wd-product.mec-card[data-mec-mode] .wd-product-wrapper.wd-entry-content {
  padding: 0 !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-row {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-row .mtr-loop-thumb {
  flex: 0 0 auto;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-thumb .wd-product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f7;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-thumb .wd-product-thumb .wd-product-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100% !important;
  aspect-ratio: 1;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-thumb .wd-product-img-link img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  mix-blend-mode: multiply;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-row .mtr-loop-content {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  gap: 4px !important;
  margin: 0 !important;
  padding: 7px 1px 2px !important;
  text-align: start;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .wd-loop-prod-title,
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .wd-loop-prod-title a {
  margin: 0 !important;
  padding: 0;
  color: #282a2e;
  font-family: inherit;
  font-size: clamp(14px, 1.05vw, 17px) !important;
  font-weight: 500;
  line-height: 1.29 !important;
  overflow-wrap: anywhere;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .wd-loop-prod-title {
  min-block-size: 0 !important;
  padding: 0 !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .wd-loop-prod-title,
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .wd-loop-prod-title a {
  display: block !important;
  height: auto;
  max-height: none;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
/* Keep Wiser's stars and count together where its native link is inserted. */
body .wd-product.mec-card .wsr_rating > [id="ask_ai_main_div"]:empty {
  display: none !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content > :is(.wiser_review, .me-loop-review-link, .wd-loop-prod-rating),
body .wd-product.mec-card[data-mec-mode] .me-loop-review-link > .wsr_rating {
  margin-block: 0 !important;
  padding-block: 0 !important;
  min-height: 0 !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content > .wd-loop-prod-stock-status {
  margin-block: 0 !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content > .wd-product-brands-links,
body .wd-product.mec-card[data-mec-mode]:is([data-mec-mode="simple"], [data-mec-mode="single"], [data-mec-mode="multiple"]) .wd-loop-prod-stock-status {
  display: none !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .mec-card-meta {
  padding-block: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 6px;
  color: #616773;
  font-size: clamp(12px, .89vw, 14px);
  line-height: 1.35;
}
.mec-card .mec-card-scale {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  color: #49505a;
  background: #f0f1f2;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content > :is(.wiser_review, .me-loop-review-link):not(:has(.Wsrspfapp-stars-list-fullret, .star-rating)),
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content > .wd-loop-prod-rating:not(:has(.star-rating, .wd-star-rating)),
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content > .wd-loop-prod-stock-status:empty {
  display: none !important;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .mec-card-bottom {
  align-self: stretch;
  margin: 0 !important;
  align-content: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  column-gap: 6px;
  padding-block: 0;
  overflow: visible !important;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .wd-loop-prod-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
  padding-block: 0 !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(17px, 1.35vw, 21px) !important;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .wd-loop-prod-price .price,
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .price :is(.amount, bdi) {
  color: #17191c;
  font-size: inherit !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .price del,
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .price del .amount {
  color: #777;
  font-size: .85em !important;
}
.mec-card .mec-card-currency {
  color: #585b60;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .wd-add-btn-wrapp {
  grid-column: 2;
  position: static !important;
  align-self: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .wd-add-btn,
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .me-card-purchase {
  width: auto !important;
  margin: 0;
  padding: 0;
}
body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .mec-card-bottom .wd-add-btn .mec-card-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  width: auto !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-width: 100%;
  padding: 0 10px !important;
  border: 1px solid #d9dce1 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #181a1d !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 150ms ease;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-action:not(.me-catalog-choose) .mec-card-action-label {
  font: 400 26px/1 Arial, sans-serif;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-action .mec-card-action-label {
  display: inline !important;
  transform: none !important;
  opacity: 1 !important;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .mec-card-action:not(.loading)::before,
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .mec-card-action:not(.loading)::after {
  content: none !important;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .mec-card-action.loading .mec-card-action-label {
  visibility: hidden;
}
@media (any-hover: hover) and (any-pointer: fine) {
  body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .mec-card-bottom .wd-add-btn .mec-card-action:hover {
    background-color: #f0f0f2 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .mec-card-bottom .wd-add-btn .mec-card-action {
    transition: none;
  }
}
.mec-card-tooltip {
  position: fixed;
  z-index: 99999;
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 4px 8px;
  border-radius: 5px;
  background: #555;
  color: #fff;
  box-shadow: 0 2px 7px rgb(0 0 0 / 20%);
  font: 500 13px/1.35 system-ui, sans-serif;
  pointer-events: none;
}
.mec-card-tooltip[hidden] {
  display: none !important;
}
body .wd-product.mec-card[data-mec-mode] .mec-card-bottom .mec-card-action:focus-visible {
  outline: 2px solid #276ad0;
  outline-offset: 2px;
}
@media (max-width: 767.98px) {
  body .products.wd-products.wd-grid-g.mec-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 10px !important;
  }
  body .wd-product.mec-card[data-mec-mode] .mtr-loop-content .mec-card-bottom .wd-add-btn .mec-card-action {
    padding-inline: 7px !important;
  }
}
