/* Discounted wallet presets: animated rainbow treatment scoped to the wallet. */
@keyframes easysuPromoBorderFlow {
  0% {
    background-position:
      0 0,
      0% 50%;
  }
  50% {
    background-position:
      0 0,
      100% 50%;
  }
  100% {
    background-position:
      0 0,
      0% 50%;
  }
}

@keyframes easysuPromoGlow {
  0%,
  100% {
    box-shadow:
      0 6px 18px rgba(255, 61, 113, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.74) inset;
  }
  25% {
    box-shadow:
      0 7px 22px rgba(255, 184, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.78) inset;
  }
  50% {
    box-shadow:
      0 7px 24px rgba(0, 194, 255, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.82) inset;
  }
  75% {
    box-shadow:
      0 7px 22px rgba(126, 87, 255, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.78) inset;
  }
}

@keyframes easysuPromoSweep {
  0%,
  16% {
    transform: translateX(-30%) rotate(16deg);
    opacity: 0;
  }
  34% {
    opacity: 0.5;
  }
  62%,
  100% {
    transform: translateX(700%) rotate(16deg);
    opacity: 0;
  }
}

@keyframes easysuPromoBadge {
  0% {
    background-position: 0% 50%;
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.35) saturate(1.25);
    transform: scale(1.08);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
}

#wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ) {
  isolation: isolate;
  overflow: hidden;
  border: 3px solid transparent !important;
  background:
    linear-gradient(
        125deg,
        rgba(255, 228, 238, 0.98),
        rgba(255, 247, 204, 0.98),
        rgba(220, 255, 233, 0.98),
        rgba(218, 243, 255, 0.98),
        rgba(238, 225, 255, 0.98)
      )
      padding-box,
    linear-gradient(
        110deg,
        #ff3d71,
        #ffb800,
        #00c853,
        #00b8ff,
        #7e57ff,
        #ff3d71
      )
      border-box !important;
  background-size:
    100% 100%,
    320% 320% !important;
  animation:
    easysuPromoBorderFlow 3s linear infinite,
    easysuPromoGlow 1.8s ease-in-out infinite;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

html.dark
  #wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ) {
  background:
    linear-gradient(120deg, rgba(31, 35, 45, 0.98), rgba(23, 27, 37, 0.98))
      padding-box,
    linear-gradient(
        110deg,
        #ff4d8d,
        #ffc400,
        #39d98a,
        #00c2ff,
        #9b6dff,
        #ff4d8d
      )
      border-box !important;
  background-size:
    100% 100%,
    320% 320% !important;
}

#wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ):hover,
#wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ):focus-visible {
  transform: translateY(-3px) scale(1.01);
  filter: saturate(1.12);
}

#wallet-add-funds
  button.border-foreground:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ) {
  outline: 2px solid rgba(0, 122, 255, 0.72);
  outline-offset: 2px;
}

#wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  )::before {
  content: "";
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -32%;
  width: 24%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.94),
    transparent
  );
  filter: blur(1px);
  animation: easysuPromoSweep 2.8s ease-in-out infinite;
}

#wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  )
  > :not([class~="text-green-600"]) {
  position: relative;
  z-index: 2;
}

#wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  )
  > div.flex-1
  > div:first-child {
  color: #d81b60 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 10px rgba(216, 27, 96, 0.18);
}

html.dark
  #wallet-add-funds
  button:has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  )
  > div.flex-1
  > div:first-child {
  color: #ff8fbd !important;
}

#wallet-add-funds
  button
  > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: auto;
  min-width: 76px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(57, 20, 51, 0.42);
  background: linear-gradient(
    110deg,
    #ff3d71,
    #ffb800,
    #00c853,
    #00a8ff,
    #8b5cf6,
    #ff3d71
  );
  background-size: 400% 400%;
  box-shadow:
    0 4px 12px rgba(255, 61, 113, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  animation: easysuPromoBadge 1.65s linear infinite;
}

#wallet-add-funds
  button:nth-child(5):has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ) {
  animation-delay: -0.35s;
}

#wallet-add-funds
  button:nth-child(6):has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ) {
  animation-delay: -0.7s;
}

#wallet-add-funds
  button:nth-child(7):has(
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
  ) {
  animation-delay: -1.05s;
}

@media (prefers-reduced-motion: reduce) {
  #wallet-add-funds
    button:has(
      > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
    ),
  #wallet-add-funds
    button:has(
      > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"]
    )::before,
  #wallet-add-funds
    button
    > [class~="absolute"][class~="top-2"][class~="right-2"][class~="text-green-600"] {
    animation: none !important;
  }
}

/* Compatibility fallback for the production shadcn button markup. */
#wallet-add-funds button:has(.text-green-600) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 3px solid transparent !important;
  background:
    linear-gradient(125deg, #ffe4ee, #fff7cc, #dcffe9, #daf3ff, #eee1ff)
      padding-box,
    linear-gradient(110deg, #ff3d71, #ffb800, #00c853, #00b8ff, #7e57ff, #ff3d71)
      border-box !important;
  background-size: 100% 100%, 320% 320% !important;
  animation: easysuPromoBorderFlow 3s linear infinite, easysuPromoGlow 1.8s ease-in-out infinite;
}

#wallet-add-funds button:has(.text-green-600) > .text-green-600 {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  min-width: 76px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(57, 20, 51, 0.42);
  background: linear-gradient(110deg, #ff3d71, #ffb800, #00c853, #00a8ff, #8b5cf6, #ff3d71) !important;
  background-size: 400% 400% !important;
  box-shadow: 0 4px 12px rgba(255, 61, 113, 0.34);
  animation: easysuPromoBadge 1.65s linear infinite;
}

#wallet-add-funds button:has(.text-green-600)::before {
  content: "";
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -32%;
  width: 24%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94), transparent);
  filter: blur(1px);
  animation: easysuPromoSweep 2.8s ease-in-out infinite;
}

#wallet-add-funds button:has(.text-green-600) > *:not(.text-green-600) {
  position: relative;
  z-index: 2;
}
