/**
 * London Premium v94
 * Final polish:
 * 1) Equal-height desktop Immediate Selection cards.
 * 2) Clear desktop carousel product count.
 * 3) Checkout order-summary images fill their existing frames.
 */

/* --------------------------------------------------------------------------
   HOME — DESKTOP CAROUSEL CARD HEIGHTS ONLY
   Keep mobile geometry fully owned by the existing v88/v91 implementation.
   -------------------------------------------------------------------------- */
@media (min-width: 721px) {
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport ul.products {
    align-items: stretch !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport ul.products > li.product.lp-product-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .lp-product-card__media {
    flex: 0 0 auto !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .lp-product-card__content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .lp-product-card__price,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .price {
    margin-top: auto !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v93-desktop-status {
    min-width: 92px !important;
    white-space: nowrap !important;
  }
}

/* --------------------------------------------------------------------------
   CHECKOUT — IMAGE ONLY
   Preserve the existing checkout layout and frame dimensions. The product
   photo simply fills the frame on desktop, tablet and mobile.
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .wc-block-components-order-summary-item__image,
body.woocommerce-checkout .wc-block-components-product-image {
  position: relative !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img,
body.woocommerce-checkout .wc-block-components-product-image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image > a > img,
body.woocommerce-checkout .wc-block-components-product-image > a > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  z-index: 1 !important;
}

/* Quantity badge must remain above the now full-frame image. */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
body.woocommerce-checkout .wc-block-components-product-image__badge,
body.woocommerce-checkout .wc-block-components-product-badge {
  z-index: 6 !important;
}
