/**
 * V147 Part 2 — cart / checkout / product polish (scoped).
 * No V96 runtime dependency.
 */

/* Header breathing room — sizes owned by pwh-header-overhang-v148.css (do not fight). */
html body.pwmsh-header-footer-control .pw-header__actions {
  gap: 6px !important;
  column-gap: 6px !important;
}

/* Product page compactness (screenshot) — keep ≥44px taps */
.single-product .pw-pk3 {
  padding: 12px !important;
  max-width: min(100%, 420px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}
.single-product .pw-pk3__trust {
  min-height: 32px !important;
  margin-bottom: 8px !important;
}
.single-product .pw-pk3__trust-marquee {
  padding: 6px 0 !important;
}
.single-product .pw-pk3__stock {
  padding: 8px 10px !important;
  margin-bottom: 8px !important;
}
.single-product .pw-pk3__sliderwrap {
  padding: 8px 10px 6px !important;
  margin-bottom: 8px !important;
}
.single-product .pw-pk3__presets {
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.single-product .pw-pk3__preset {
  min-height: 44px !important;
  padding: 6px 4px !important;
}
.single-product .pw-pk3__summary {
  padding: 10px 10px 8px !important;
  margin-bottom: 8px !important;
}
.single-product .pw-pk3__cta,
.single-product .pw-pk3 .single_add_to_cart_button {
  min-height: 48px !important;
}
@media (max-width: 720px) {
  .single-product .pw-pk3,
  .single-product form.cart .pw-pk3 {
    width: 92% !important;
    max-width: 400px !important;
  }
}

/* Centred add-to-cart success popup (all viewports) */
.pw-cart-confirm {
  inset: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}
.pw-cart-confirm__panel {
  width: min(100%, 520px) !important;
  margin: 0 auto !important;
}

/* Empty cart conversion — matches Boost your basket / WHY NOT TRY */
.pwmsh-empty-cart-convert.pwmsh-why-not-try,
.pwmsh-empty-cart-boost {
  margin: 18px auto 28px !important;
  max-width: 920px !important;
}
.pwmsh-empty-cart-boost__browse {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 18px 0 4px !important;
  padding: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.pwmsh-empty-cart-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 28px !important;
  width: min(100%, 360px) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  background: var(--pw-red-grad-btn, linear-gradient(180deg,#ff3129,#e10600 55%,#8f0002)) !important;
  color: #fff !important;
  font-family: var(--pwmsh-display-font, "Bebas Neue"), sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  box-shadow: 0 14px 32px rgba(225, 6, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
/* Kill empty black notice pills under the header on cart */
body.woocommerce-cart .woocommerce-notices-wrapper:empty,
body.woocommerce-cart .woocommerce-info:empty,
body.woocommerce-cart .woocommerce-message:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

/* Sticky 18+ cart gate polish */
.pw-cart-age-box {
  position: sticky !important;
  bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  z-index: 40 !important;
  border: 1.5px solid rgba(225,6,0,.55) !important;
  border-radius: 14px !important;
  background: linear-gradient(160deg, rgba(24,0,0,.96), rgba(8,8,10,.98)) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.45) !important;
  padding: 12px 14px !important;
}

/* Checkout dark-glass panels */
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .wc-block-checkout {
  color: #fff !important;
}
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order {
  background: linear-gradient(160deg, rgba(18,18,24,.96), rgba(7,7,10,.98)) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 16px !important;
  padding: 14px !important;
}
body.woocommerce-checkout .woocommerce-checkout-payment,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  border-radius: 12px !important;
  border-color: rgba(255,255,255,.12) !important;
}
body.woocommerce-checkout #place_order,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 52px !important;
  border-radius: 14px !important;
  background: var(--pw-red-grad-btn, linear-gradient(180deg,#ff3129,#e10600 55%,#8f0002)) !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

/* Payment badges alignment */
.pw-pay-badges,
.pwmsh-pay-badges,
.pw-footer-payments {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.pw-pay-badges img,
.pwmsh-pay-badges img,
.pw-footer-payments img,
.pw-pk3__trust-badges img {
  height: 24px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 42px !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: none !important;
}

/* Shop/category cards — V96 16/10 cover + sharp Instant Win pills */
.pwv43-card__image,
.pwv160-card__media,
.pwmsh-product-img {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #09090b !important;
  border-radius: 18px 18px 0 0 !important;
}
.pwv43-card__image img,
.pwv160-card__media img,
.pwmsh-product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  image-rendering: auto !important;
  filter: saturate(1.08) contrast(1.06) brightness(1.01) !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  transform: translateZ(0) !important;
}
.pwv43-card__instant {
  position: absolute !important;
  z-index: 8 !important;
  left: 50% !important;
  bottom: auto !important;
  top: 0 !important;
  transform: translate(-50%, -50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 24, 40, 0.55) !important;
  background: rgba(8, 8, 12, 0.72) !important;
  color: #ff1828 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.15) !important;
  backdrop-filter: blur(10px) saturate(1.15) !important;
  pointer-events: none !important;
}
.pwv43-card__instant svg,
.pwv43-card__instant svg path {
  fill: #ff1828 !important;
  filter: drop-shadow(0 0 4px rgba(255, 24, 40, 0.45)) !important;
}
