/* Sticky Buy Bar Styles */
.sticky-buy {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(64px) scale(0.94);
  bottom: calc(86px + var(--safe-bottom)) !important; /* 10px above the menu, like every gap down here */
  width: calc(100% - 28px);
  max-width: 402px;
  z-index: 950 !important;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-buy.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.sticky-buy-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px 18px 14px 14px;
  background: rgba(7, 13, 25, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.sticky-buy .info {
  min-width: 0;
  flex: 1;
}

.sticky-buy .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.sticky-buy .name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.sticky-btn {
  position: relative;
  overflow: hidden;
  border: none;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  font-weight: 800;
  box-shadow: 0 6px 30px rgba(70, 166, 255, 0.22);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  will-change: transform;
}

.sticky-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  pointer-events: none;
  animation: stickyBtnShimmer 3s linear infinite;
}

.sticky-btn:active,
.sticky-btn.is-active {
  transform: scale(0.96) !important;
  box-shadow: 0 4px 10px rgba(70, 166, 255, 0.2) !important;
}

@keyframes stickyBtnShimmer {
  0% {
    left: -45%;
  }
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-btn::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  .sticky-buy {
    bottom: calc(86px + var(--safe-bottom)) !important;
  }
}
