/* =============================================================================
   CF7 PayFlow Pro — Frontend CSS
   OTO/Order Bump widget and payment loading states
   ============================================================================= */

/* ─── Order Bumps container ──────────────────────────────────────────────────── */
.pfp-bumps {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pfp-bumps__title {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Individual bump row ────────────────────────────────────────────────────── */
.pfp-bump {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  user-select: none;
}

.pfp-bump:hover {
  border-color: #6366f1;
  background: #f5f5ff;
}

.pfp-bump input[type="checkbox"] {
  display: none; /* hide native, use custom */
}

/* Custom checkbox */
.pfp-bump__check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: #fff;
  flex-shrink: 0;
}

.pfp-bump.is-checked {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff, #f0f4ff);
  box-shadow: 0 2px 12px rgba(99,102,241,0.15);
}

.pfp-bump.is-checked .pfp-bump__check {
  background: #6366f1;
  border-color: #6366f1;
}

.pfp-bump.is-checked .pfp-bump__check::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
}

.pfp-bump__label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
}

.pfp-bump__price {
  font-size: 15px;
  font-weight: 700;
  color: #6366f1;
  white-space: nowrap;
}

/* ─── Order Total ────────────────────────────────────────────────────────────── */
.pfp-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f4ff, #eef2ff);
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.pfp-order-total__amount {
  font-size: 18px;
  font-weight: 800;
  color: #4f46e5;
}

/* ─── Loading / Processing State ─────────────────────────────────────────────── */
.pfp-field-blurred {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pfp-btn-blurred {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ─── Form Error ─────────────────────────────────────────────────────────────── */
.pfp-form-error {
  display: none;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin: 8px 0;
}

.pfp-form-error.is-visible { display: block; }

/* ─── Redirect / Verification Overlay ────────────────────────────────────────── */
.pfp-form-relative {
  position: relative !important;
}

.pfp-redirect-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  animation: pfp-fade-in 0.25s ease-out forwards;
}

.pfp-redirect-overlay__icon {
  width: 44px;
  height: 44px;
  border: 3px solid #e0e7ff;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: pfp-spin 0.8s linear infinite;
  margin-bottom: 14px;
}

.pfp-redirect-overlay__title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
}

.pfp-redirect-overlay__subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

@keyframes pfp-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pfp-spin {
  to { transform: rotate(360deg); }
}

