/* SmileData — 3-step popup checkout modal — v1 */

/* ── Overlay ── */
.sd-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.72);
  align-items: center; justify-content: center;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.sd-overlay.open { display: flex; }

/* ── Modal shell ── */
.sd-modal {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  width: 100%; max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  overflow: hidden;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

/* ── Modal header ── */
.sd-mhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sd-mhead-brand {
  font-size: 17px; font-weight: 800; color: #e2e8f0;
  display: flex; align-items: center; gap: 6px;
}
.sd-mclose {
  background: rgba(255,255,255,.08); border: none; color: #94a3b8;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.sd-mclose:hover { background: rgba(255,255,255,.15); color: #e2e8f0; }

/* ── Steps indicator ── */
.sd-steps-ind {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 22px 0;
}
.sd-sd {
  width: 28px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.12);
  transition: background .25s;
}
.sd-sd.on { background: #1a56db; }

/* ── Modal body ── */
.sd-mbody { padding: 22px 22px 24px; }

/* ── Steps (only .on is visible) ── */
.sd-mstep { display: none; }
.sd-mstep.on { display: block; }
.sd-mstep h3 {
  font-size: 20px; font-weight: 800; color: #f1f5f9; margin-bottom: 4px;
}
.sd-msub {
  font-size: 13px; color: #64748b; margin-bottom: 18px;
}

/* ── Form fields ── */
.sd-fl {
  display: block; font-size: 13px; font-weight: 600;
  color: #94a3b8; margin-bottom: 5px; margin-top: 14px;
}
.sd-modal input[type=text],
.sd-modal input[type=email],
.sd-modal input[type=password],
.sd-modal input[type=tel] {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px; color: #f1f5f9;
  font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.sd-modal input[type=text]:focus,
.sd-modal input[type=email]:focus,
.sd-modal input[type=password]:focus {
  border-color: #3b82f6;
}
.sd-modal input::placeholder { color: #475569; }

/* ── CTA button inside modal ── */
.sd-btn-go {
  display: block; width: 100%;
  margin-top: 18px; padding: 14px;
  background: #1a56db; color: #fff;
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .15s, transform .1s;
}
.sd-btn-go:hover:not(:disabled) { background: #1342b8; transform: translateY(-1px); }
.sd-btn-go:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Step 2: order summary row ── */
.sd-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px;
  font-size: 14px; color: #e2e8f0;
}
.sd-summary .sd-sum-price { font-size: 20px; font-weight: 800; color: #fff; }

/* ── Test mode badge ── */
.sd-testbadge {
  display: none; background: rgba(251,191,36,.15);
  border: 1px solid rgba(251,191,36,.3); border-radius: 8px;
  padding: 8px 12px; font-size: 12.5px; color: #fbbf24;
  margin-bottom: 10px; text-align: center;
}

/* ── Stripe Payment Element container ── */
#sd-payment-element { margin: 10px 0 4px; }

/* ── Secure note ── */
.sd-securenote {
  text-align: center; font-size: 12px; color: #475569; margin-top: 10px;
}

/* ── Step 3: paid confirmation banner ── */
.sd-paid-banner {
  background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.25);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.sd-paid-banner .sd-paid-ok { font-weight: 700; color: #4ade80; font-size: 14px; }
.sd-paid-banner .sd-paid-email { font-size: 12.5px; color: #64748b; margin-top: 3px; }

/* ── Toast ── */
.sd-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; border: 1px solid rgba(255,255,255,.12); color: #f1f5f9;
  padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 500;
  z-index: 9100; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  white-space: nowrap;
}
.sd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 520px) {
  .sd-modal { border-radius: 14px 14px 0 0; max-height: 96vh; }
  .sd-overlay { align-items: flex-end; padding: 0; }
}
