/* Hide Astra scroll-to-top; use floating call instead */
#ast-scroll-top {
  display: none !important;
}

/* Floating cart removed — checkout-only purchase flow */
.moytay-float-cart,
#moytay-float-cart-wrap {
  display: none !important;
}

.moytay-float-call {
  position: fixed;
  z-index: 9999;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  background: #d32f2f;
}

.moytay-float-call:hover,
.moytay-float-call:focus {
  background: #b71c1c;
  color: #fff;
  transform: translateY(-2px);
}

.moytay-float-call svg {
  display: block;
}

@media (max-width: 640px) {
  .moytay-float-call {
    inset-inline-end: 1rem;
    bottom: 1rem;
  }
}

/* Referral gift — stacked above the call button (shop / product / cart / checkout) */
.moytay-float-gift {
  position: fixed;
  z-index: 9999;
  inset-inline-end: 1.25rem;
  bottom: 5.25rem;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 4px;
  background: linear-gradient(145deg, #e0b93a 0%, #c9a227 55%, #a8861a 100%);
  color: #1a1405;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.moytay-float-gift:hover,
.moytay-float-gift:focus,
.moytay-float-gift[aria-expanded="true"] {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), 0 0 18px rgba(224, 185, 58, 0.35);
  color: #111;
}

.moytay-float-gift__icon {
  display: inline-flex;
  transform-origin: 50% 60%;
  animation: moytay-gift-wiggle 2.4s ease-in-out infinite;
}

.moytay-float-gift:hover .moytay-float-gift__icon,
.moytay-float-gift[aria-expanded="true"] .moytay-float-gift__icon {
  animation-play-state: paused;
}

.moytay-float-gift svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25));
}

@keyframes moytay-gift-wiggle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  15% {
    transform: rotate(-12deg) scale(1.05);
  }
  30% {
    transform: rotate(10deg) scale(1.05);
  }
  45% {
    transform: rotate(-6deg) scale(1);
  }
  60% {
    transform: rotate(4deg) scale(1);
  }
  75%,
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.moytay-float-gift-panel[hidden] {
  display: none !important;
}

.moytay-float-gift-panel {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.moytay-float-gift-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.moytay-float-gift-panel__card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
  background: #121214;
  color: #f2f2f2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  direction: rtl;
}

.moytay-float-gift-panel__close {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.moytay-float-gift-panel__card h3 {
  margin: 0 0 0.9rem;
  padding-left: 1.5rem;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.45;
  color: #e0b93a;
}

.moytay-float-gift-panel__body {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(242, 242, 242, 0.86);
}

.moytay-float-gift-panel__body p {
  margin: 0 0 0.85rem;
}

.moytay-float-gift-panel__body ul {
  margin: 0 0 0.85rem;
  padding: 0 1.1rem 0 0;
}

.moytay-float-gift-panel__body li {
  margin-bottom: 0.35rem;
}

.moytay-float-gift-panel__body strong {
  color: #e0b93a;
}

.moytay-float-gift-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  margin-top: 0.35rem;
  border-radius: 3px;
  background: linear-gradient(145deg, #e0b93a, #c9a227);
  color: #1a1405;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.moytay-float-gift-panel__cta:hover {
  filter: brightness(1.06);
  color: #111;
}

@media (max-width: 640px) {
  .moytay-float-gift {
    inset-inline-end: 1rem;
    bottom: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moytay-float-gift__icon {
    animation: none;
  }
}
