/* Justin Mockenhaupt Photography — SureCart Stripe Wallet Bridge */
.jmp-wallet-bridge {
  margin: 0 0 28px;
  padding: 0;
  width: 100%;
}


/* v1.0.6: Stripe must be able to measure the Express Checkout iframe while
   determining wallet availability. Keep it in layout with visibility:hidden;
   do not use display:none until Stripe reports that no wallets are eligible. */
.jmp-wallet-bridge.is-awaiting-wallets {
  visibility: hidden;
  min-height: 62px;
}

.jmp-wallet-bridge[hidden] {
  display: none !important;
}

.jmp-wallet-eyebrow {
  margin: 0 0 12px !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: .19em !important;
  text-transform: uppercase !important;
  color: #777 !important;
}

.jmp-wallet-element {
  min-height: 50px;
  width: 100%;
}

.jmp-wallet-status {
  margin: 10px 0 0 !important;
  min-height: 0;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #686868 !important;
}

.jmp-wallet-status:empty {
  display: none;
}

.jmp-wallet-status.is-error {
  color: #8d2929 !important;
}

.jmp-wallet-legal {
  margin: 12px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  color: #7b7975 !important;
}

.jmp-wallet-legal a {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.jmp-wallet-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  color: #8a8883;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jmp-wallet-divider::before,
.jmp-wallet-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(32, 32, 32, .14);
}

.jmp-wallet-bridge.is-processing {
  pointer-events: none;
  opacity: .78;
}

@media (max-width: 600px) {
  .jmp-wallet-bridge {
    margin-bottom: 24px;
  }

  .jmp-wallet-divider {
    margin-top: 20px;
  }
}


/* Admin-only diagnostics added by v1.0.2. */
.jmp-wallet-diagnostic {
  margin: 12px 0 18px;
  padding: 10px 12px;
  border: 1px solid #d6b86a;
  background: #fff9e8;
  color: #4b4028;
  font-size: 12px;
  line-height: 1.45;
}

/* v1.0.3: suppress SureCart's deprecated wallet component while this bridge is active. */
sc-express-payment {
  display: none !important;
}

/* Permanent administrator-only diagnostic panel. The PHP renders the first
   status before JavaScript runs, so it also catches script loading failures. */
.jmp-wallet-debug-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  width: min(390px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid #cba84e;
  border-radius: 6px;
  background: #fff8df;
  color: #3e3522;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jmp-wallet-debug-panel strong {
  font-weight: 700;
}

/* v1.0.7: JS uses opacity while Stripe negotiates wallets so Firefox can fully
   render and measure the embedded frame. Override the older awaiting rule. */
.jmp-wallet-bridge.is-awaiting-wallets {
  visibility: visible;
  min-height: 62px;
}

/* v1.0.12: do not visually suppress Stripe's Express Checkout iframe while
   waiting for the ready callback. This is intentional for Firefox, where the
   iframe may render before the callback is delivered. */
.jmp-wallet-bridge.is-awaiting-wallets {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-height: 62px;
}
