/* sst-checkout-account-precreate r3 (rules unchanged from r2; renamed with the r3 script because
 * Cloudflare ignores query strings and the PHP enqueues one ASSET_REV for both files)
 * Sits directly under #account_password_field inside the checkout customer-details column, so
 * it must not fight the A/B skins for layout: no fixed positioning, no z-index, no width games.
 */

.sst-apc {
  margin: 0 0 1.25em;
}

.sst-apc[hidden] {
  display: none !important;
}

.sst-apc__btn {
  display: inline-block;
  min-height: 44px;          /* comfortable tap target on mobile */
  padding: 0.65em 1.4em;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.sst-apc__btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.sst-apc__btn.is-busy {
  position: relative;
  color: transparent !important;   /* label hidden while the spinner runs */
}

.sst-apc__btn.is-busy::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: sst-apc-spin 0.7s linear infinite;
}

@keyframes sst-apc-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sst-apc__btn.is-busy::after { animation-duration: 2.4s; }
}

.sst-apc__purpose {
  margin: 0.5em 0 0;
  font-size: 0.86em;
  line-height: 1.5;
  opacity: 0.8;
}

.sst-apc__purpose[hidden] {
  display: none !important;
}

.sst-apc__msg {
  margin: 0.7em 0 0;
  padding: 0.6em 0.8em;
  border-left: 3px solid currentColor;
  font-size: 0.9em;
  line-height: 1.5;
}

.sst-apc__msg[hidden] {
  display: none !important;
}

.sst-apc__msg--info { color: #4a4a4a; background: rgba(0, 0, 0, 0.035); }
.sst-apc__msg--ok   { color: #1c6b3a; background: rgba(28, 107, 58, 0.07); }
.sst-apc__msg--err  { color: #8a1f1f; background: rgba(138, 31, 31, 0.06); }
/* Succeeded, but something needs the shopper's attention - a dropped coupon, or an
   order review that never came back. Must not read as a plain success. */
.sst-apc__msg--warn { color: #8a5a00; background: rgba(138, 90, 0, 0.08); }

/* Honeypot. Kept in the layout (not display:none) so a bot that skips hidden inputs still
   sees it, but pushed out of sight and out of the tab order for people. */
.sst-apc__hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
