/* Shopacc2N - effects for LISTING card buttons only.
 * No JavaScript/payment handlers altered. Desktop: hover glow/shimmer.
 * Touchscreens: a small press response. Respect reduced-motion preferences.
 */
#app[data-shopacc-card-kind] .shop-listing-actions > :is(.shop-listing-detail,.shop-listing-buy),
.shopacc-account-fallback .shopacc-account-fallback-actions > a {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  transform: translateY(0) scale(1);
  will-change: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .18s cubic-bezier(.22,.78,.28,1),
              box-shadow .22s ease,
              background-color .2s ease,
              border-color .2s ease,
              filter .2s ease !important;
}

/* Keep detail outlined and clean, but make it feel interactive. */
#app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-detail,
.shopacc-account-fallback .shopacc-account-fallback-actions > a:first-child {
  background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  color: #1d355c !important;
  border: 1px solid #c8d6ec !important;
  box-shadow: 0 2px 5px rgba(26,74,137,.05) !important;
}

/* Purchase is the primary action. */
#app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-buy,
.shopacc-account-fallback .shopacc-account-fallback-actions > .shopacc-listing-buy-fallback {
  background: linear-gradient(115deg,#f8274e 0%,#f01845 55%,#e9175a 100%) !important;
  border: 1px solid #ef244e !important;
  color: #ffffff !important;
  box-shadow: 0 5px 12px rgba(240,24,69,.18) !important;
}

/* A subtle moving highlight, no extra DOM and no interference with clicks. */
#app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-buy::before,
.shopacc-account-fallback .shopacc-account-fallback-actions > .shopacc-listing-buy-fallback::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -55%; bottom: -55%;
  left: -72%; width: 37%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.33),transparent);
  transform: skewX(-22deg);
  transition: left .6s ease;
}

@media (hover: hover) and (pointer: fine) {
  #app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-detail:hover,
  .shopacc-account-fallback .shopacc-account-fallback-actions > a:first-child:hover {
    filter: none !important;
    transform: translateY(-2px) !important;
    border-color: #4f89ec !important;
    color: #1e5cbe !important;
    box-shadow: 0 7px 17px rgba(37,99,235,.15), inset 0 0 0 1px rgba(37,99,235,.08) !important;
  }
  #app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-buy:hover,
  .shopacc-account-fallback .shopacc-account-fallback-actions > .shopacc-listing-buy-fallback:hover {
    filter: none !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(115deg,#ff3d5c 0%,#f51546 55%,#ed1265 100%) !important;
    box-shadow: 0 10px 22px rgba(240,24,69,.27) !important;
  }
  #app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-buy:hover::before,
  .shopacc-account-fallback .shopacc-account-fallback-actions > .shopacc-listing-buy-fallback:hover::before {
    left: 145%;
  }
}

/* Tap/click always responds, even on touchscreens with no hover. */
#app[data-shopacc-card-kind] .shop-listing-actions > :is(.shop-listing-detail,.shop-listing-buy):active,
.shopacc-account-fallback .shopacc-account-fallback-actions > a:active {
  transform: translateY(1px) scale(.96) !important;
  filter: brightness(.96) !important;
  box-shadow: 0 2px 5px rgba(15,23,42,.10) !important;
  transition-duration: .08s !important;
}

#app[data-shopacc-card-kind] .shop-listing-actions > :is(.shop-listing-detail,.shop-listing-buy):focus-visible,
.shopacc-account-fallback .shopacc-account-fallback-actions > a:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 3px !important;
}

#app[data-shopacc-card-kind] .shop-listing-actions > :is(.shop-listing-detail,.shop-listing-buy):disabled {
  opacity: .6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #app[data-shopacc-card-kind] .shop-listing-actions > :is(.shop-listing-detail,.shop-listing-buy),
  #app[data-shopacc-card-kind] .shop-listing-actions > :is(.shop-listing-detail,.shop-listing-buy):hover,
  #app[data-shopacc-card-kind] .shop-listing-actions > :is(.shop-listing-detail,.shop-listing-buy):active,
  .shopacc-account-fallback .shopacc-account-fallback-actions > a,
  .shopacc-account-fallback .shopacc-account-fallback-actions > a:hover,
  .shopacc-account-fallback .shopacc-account-fallback-actions > a:active,
  #app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-buy::before,
  .shopacc-account-fallback .shopacc-account-fallback-actions > .shopacc-listing-buy-fallback::before {
    transition: none !important;
    transform: none !important;
  }
  #app[data-shopacc-card-kind] .shop-listing-actions > .shop-listing-buy::before,
  .shopacc-account-fallback .shopacc-account-fallback-actions > .shopacc-listing-buy-fallback::before {
    display: none;
  }
}
