/**
 * ROOT-CAUSE payment marks — single visual system.
 * Ordinary <img> brand marks only. No boxes, no text reconstruction,
 * no icon fonts, no pseudo-elements pretending to be logos.
 *
 * Trust / homepage / product use .pwmsh-pay-ticker (winners-style marquee).
 * Footer / cart / checkout keep the static flex row.
 */

/* Static payment grids (non-ticker surfaces) */
html body .pw-pay-badges:not(.pwmsh-pay-ticker),
html body .pw-footer__payment-grid,
html body .pw-checkout-footer__payment-grid,
html body .pw-cart-trust__badges,
html body .pwmsh-pp-pay-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 14px 18px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  max-width: none !important;
  width: auto !important;
  grid-template-columns: none !important;
}

/* Trust / homepage pay area — overflow clip for marquee */
html body .pwv43-featured-hero__pay-badges,
html body.pwmsh-homepage-v43-mockup .pwv43-featured-hero__pay-badges,
html body .pwv57-trust__pay {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Sliding payment icons banner (mirrors .pwmsh-wticker) */
html body .pwmsh-pay-ticker,
html body .pwv43-featured-hero__pay-shared.pwmsh-pay-ticker,
html body.pwmsh-homepage-v43-mockup .pwv43-featured-hero__pay-shared.pwmsh-pay-ticker {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  flex-wrap: nowrap !important;
  background:
    linear-gradient(90deg, rgba(20, 0, 0, 0.55), rgba(6, 6, 8, 0.2) 28%, rgba(6, 6, 8, 0.2) 72%, rgba(20, 0, 0, 0.55)) !important;
  border-top: 1px solid rgba(255, 30, 30, 0.18) !important;
  border-bottom: 1px solid rgba(255, 30, 30, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  /* Decorative only — never pause / steal taps from the page */
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none !important;
}

html body .pwmsh-pay-ticker *,
html body .pwmsh-pay-ticker__track,
html body .pwmsh-pay-ticker__item,
html body .pwmsh-pay-ticker img {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

html body .pwmsh-pay-ticker__track {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  width: max-content !important;
  padding: 0 !important;
  margin: 0 !important;
  animation: pwmshPayTicker 32s linear infinite !important;
  animation-play-state: running !important;
  will-change: transform !important;
}

/* Equal groups — padding-right mirrors item gap so -50% lands on a perfect seam */
html body .pwmsh-pay-ticker__group {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  flex: 0 0 auto !important;
  gap: 28px !important;
  padding: 10px 28px 10px 0 !important;
  margin: 0 !important;
  width: max-content !important;
  box-sizing: content-box !important;
}

@keyframes pwmshPayTicker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html body .pwmsh-pay-ticker__track {
    animation: none !important;
    transform: none !important;
  }
}

html body .pwmsh-pay-ticker__item,
html body .pwmsh-pay-ticker .pw-pay-badge-item {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  flex: 0 0 auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html body .pw-pay-badge-item,
html body .pw-footer__payment-item,
html body .pw-checkout-footer__payment-item,
html body .pw-cart-trust__badge-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

html body .pwmsh-pay-ticker .pw-pay-badge-item {
  flex-direction: row !important;
  justify-content: center !important;
}

html body .pw-pay-badge,
html body .pw-footer__badge,
html body .pw-checkout-footer__badge,
html body .pw-cart-trust__badge,
html body .pwv43-featured-hero__pay-badge,
html body.pwmsh-homepage-v43-mockup .pwv43-featured-hero__pay-badge,
html body.pwmsh-homepage-v43-mockup .pwv81-pay-badge,
html body.pwmsh-homepage-v43-mockup .pwv82-pay-badge,
html body.pwmsh-homepage-v43-mockup .pwv85-pay-badge {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Show the real images; hide legacy SVG/text reconstructions */
html body .pw-pay-badge img,
html body .pw-pay-badge__img,
html body .pw-footer__badge img,
html body .pw-checkout-footer__badge img,
html body .pw-cart-trust__badge img,
html body .pw-pk3__trust-badges img,
html body .pwv43-featured-hero__pay-shared img,
html body .pwmsh-pay-ticker img,
html body.pwmsh-homepage-v43-mockup .pwv43-featured-hero__pay-shared img,
html body.pwmsh-homepage-v43-mockup .pwv43-featured-hero__pay-badge img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: 28px !important;
  max-height: 28px !important;
  max-width: 96px !important;
  min-width: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

html body .pw-pay-badge--mastercard img,
html body .pw-pay-badge--mastercard .pw-pay-badge__img {
  height: 30px !important;
  max-height: 30px !important;
}

html body .pw-pk3__trust-badges img,
html body .pw-pk3__trust-badges .pw-pay-badge__img {
  height: 22px !important;
  max-height: 22px !important;
}

/* Coming soon label on static grids only — ticker stays clean */
html body .pw-pay-badge-soon,
html body .pw-pay-badge-item.is-soon small {
  display: block !important;
  visibility: visible !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html body .pwmsh-pay-ticker .pw-pay-badge-soon,
html body .pwmsh-pay-ticker .pw-pay-badge-item.is-soon small {
  display: none !important;
}

/* Google Pay (and any soon mark) stays full brightness in the trust ticker */
html body .pwmsh-pay-ticker__item.is-soon .pw-pay-badge__img,
html body .pwmsh-pay-ticker .pw-pay-badge--googlepay .pw-pay-badge__img {
  opacity: 1 !important;
  filter: none !important;
}

/* Kill legacy text-mark / pseudo logo systems */
html body.pwmsh-homepage-v43-mockup .pwv43-featured-hero__pay-badge::before,
html body.pwmsh-homepage-v43-mockup .pwv43-featured-hero__pay-badge::after,
html body .pwv78-apple-mark,
html body .pwv78-google-mark,
html body .pwv78-pay-word,
html body .pwv73-pay-logo,
html body .pwv73-pay-word,
html body .pwv74-pay-svg,
html body .pwv76-pay-svg,
html body .pwv77-pay-inline,
html body .pw-pay-badge__fallback {
  display: none !important;
  content: none !important;
}

@media (max-width: 820px) {
  html body .pw-pay-badge img,
  html body .pw-pay-badge__img,
  html body .pw-footer__badge img,
  html body .pw-checkout-footer__badge img,
  html body .pw-cart-trust__badge img,
  html body .pwv43-featured-hero__pay-shared img,
  html body .pwmsh-pay-ticker img {
    height: 24px !important;
    max-height: 24px !important;
  }
  html body .pw-pay-badge--mastercard img,
  html body .pw-pay-badge--mastercard .pw-pay-badge__img {
    height: 26px !important;
    max-height: 26px !important;
  }
  html body .pw-pay-badges:not(.pwmsh-pay-ticker),
  html body .pw-footer__payment-grid {
    gap: 12px 14px !important;
  }
  html body .pwmsh-pay-ticker__track {
    gap: 0 !important;
    padding: 0 !important;
  }
  html body .pwmsh-pay-ticker__group {
    gap: 22px !important;
    padding: 8px 22px 8px 0 !important;
  }
}
