/* ── SliceWP OTP Verification Styles ── */

#swp-otp-wrapper {
  position: relative;
}

/* ── OTP Panel ── */
#swp-otp-container {
  font-family: 'Segoe UI', system-ui, sans-serif;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 36px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(79, 70, 229, 0.10);
  border: 1px solid #ede9fe;
  animation: swpFadeIn .35s ease;
}

@keyframes swpFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

#swp-otp-container .swp-otp-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

#swp-otp-container h2 {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

#swp-otp-container .swp-sub {
  text-align: center;
  color: #6b7280;
  font-size: .93rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* OTP digit inputs */
.swp-otp-digits {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.swp-otp-digits input {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  color: #1a1a2e;
  background: #fafafa;
}

.swp-otp-digits input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
  background: #fff;
}

.swp-otp-digits input.filled {
  border-color: #8b5cf6;
  background: #faf5ff;
}

/* Verify button */
#swp-verify-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  letter-spacing: .02em;
}

#swp-verify-btn:hover  { opacity: .9; }
#swp-verify-btn:active { transform: scale(.98); }
#swp-verify-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Resend row */
.swp-resend-row {
  text-align: center;
  margin-top: 18px;
  font-size: .875rem;
  color: #6b7280;
}

.swp-resend-row button {
  background: none;
  border: none;
  color: #6366f1;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: .875rem;
}

.swp-resend-row button:disabled { color: #a5b4fc; cursor: not-allowed; }

/* Back link */
.swp-back-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: .85rem;
  color: #9ca3af;
  cursor: pointer;
  text-decoration: underline;
}
.swp-back-link:hover { color: #6366f1; }

/* Error / info notices */
.swp-notice {
  padding: 11px 16px;
  border-radius: 8px;
  font-size: .875rem;
  margin-bottom: 18px;
  text-align: center;
}
.swp-notice.error   { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.swp-notice.success { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.swp-notice.info    { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }

/* Spinner inside button */
.swp-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: swpSpin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes swpSpin { to { transform: rotate(360deg); } }

/* ── Success Screen ── */
#swp-otp-success {
  text-align: center;
  padding: 48px 24px;
  animation: swpFadeIn .4s ease;
}

.swp-success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

#swp-otp-success h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

#swp-otp-success p {
  color: #6b7280;
  font-size: .95rem;
  line-height: 1.6;
}
