/* ===============================================
   MKFOOL V37 — non-invasive product button effects
   Based on V36. Does not change order handling.
================================================= */

/* Loading spinner appears in submit button during a real form submission. */
#mkfool-order-form button.premium-submit.mk-v37-is-submitting {
  position: relative !important;
  cursor: progress !important;
  pointer-events: none !important;
  opacity: 0.92;
}
#mkfool-order-form button.premium-submit .mk-v37-loading-spinner {
  display: inline-block !important;
  width: 17px;
  height: 17px;
  flex: none;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  animation: mk-v37-spinner 0.75s linear infinite;
}
#mkfool-order-form button.premium-submit .mk-v37-loading-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
@keyframes mk-v37-spinner { to { transform: rotate(360deg); } }

/* Soft, infrequent movement of the STICKY action only on phones.
   Using the individual CSS translate property preserves any transform
   the V33 JS uses to show/hide the sticky CTA. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  a.premium-mobile-sticky {
    animation: mk-v37-sticky-wiggle 7s ease-in-out infinite;
  }
  @keyframes mk-v37-sticky-wiggle {
    0%, 63%, 69%, 75%, 100% { translate: 0 0; }
    65% { translate: 2px 0; }
    67% { translate: -2px 0; }
    71% { translate: 1px 0; }
    73% { translate: -1px 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  a.premium-mobile-sticky,
  #mkfool-order-form button.premium-submit .mk-v37-loading-spinner {
    animation: none !important;
  }
}
