/* FastDePix Popup Premium — prefixo fastdepix-popup */

.fastdepix-popup[hidden] {
  display: none !important;
}

/* Bloqueia scroll da página só com modal/confirmação abertos (classes adicionadas via JS). */
html.fdp-fast-checkout-open,
html.fdp-close-confirm-open,
body.fdp-fast-checkout-open,
body.fdp-close-confirm-open {
  overflow: hidden;
  height: 100%;
}

.fastdepix-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--fpx-text, #fff);
}

.fastdepix-popup__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.22), rgba(6, 17, 31, 0.92));
  backdrop-filter: blur(12px);
}

.fastdepix-popup__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-width: 100%;
  max-height: min(94vh, 900px);
  max-height: min(94dvh, 900px);
  background: linear-gradient(165deg, var(--fpx-card, #0b1730) 0%, var(--fpx-bg2, #101d36) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--fpx-radius, 22px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(96, 165, 250, 0.08) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fastdepix-popup__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fpx-grad-start, #3b82f6), var(--fpx-cyan, #60a5fa), var(--fpx-grad-end, #8b5cf6));
  z-index: 2;
}

/* Barra superior — fechar fora da área dos selos */
.fastdepix-popup__topbar {
  position: relative;
  z-index: 6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  padding: 10px 12px 4px;
}

.fastdepix-popup .fastdepix-popup__close,
.fastdepix-popup button.fastdepix-popup__close {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 10px;
  background: rgba(16, 29, 54, 0.95) !important;
  color: var(--fpx-muted, #cbd5e1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  line-height: 1;
  font-size: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
}

.fastdepix-popup .fastdepix-popup__close:hover,
.fastdepix-popup button.fastdepix-popup__close:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #fff !important;
  transform: scale(1.04);
}

.fastdepix-popup .fastdepix-popup__close:focus-visible {
  outline: 2px solid var(--fpx-cyan, #60a5fa);
  outline-offset: 2px;
}

.fastdepix-popup__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(calc(94vh - 52px), 860px);
  max-height: min(calc(94dvh - 52px), 860px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Badges */
.fastdepix-popup__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 20px 0;
  padding-right: 12px;
}

.fastdepix-popup__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--fpx-btn-start, #3b82f6), var(--fpx-btn-end, #8b5cf6));
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.fastdepix-popup__badge--soft {
  background: rgba(96, 165, 250, 0.12);
  color: var(--fpx-cyan, #60a5fa);
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: none;
}

/* Produto */
.fastdepix-popup__product {
  padding: 16px 20px 12px;
}

.fastdepix-popup__product-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: start;
}

.fastdepix-popup__product-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.fastdepix-popup__product-img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.fastdepix-popup__product-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fpx-text, #fff);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.fastdepix-popup__product-price {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--fpx-cyan, #60a5fa), #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fastdepix-popup__product-desc {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--fpx-muted, #cbd5e1);
}

.fastdepix-popup__benefits {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.fastdepix-popup__benefits li {
  position: relative;
  padding: 0 0 0 22px;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.fastdepix-popup__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fpx-icon, #60a5fa), var(--fpx-grad-end, #8b5cf6));
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

/* Form */
.fastdepix-popup__form-section {
  padding: 16px 20px 20px;
  background: rgba(6, 17, 31, 0.45);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.fastdepix-popup__form-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.fastdepix-popup__form-lead {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fpx-muted, #cbd5e1);
}

.fastdepix-popup__field {
  display: block;
  margin-bottom: 14px;
}

.fastdepix-popup__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.fastdepix-popup__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(16, 29, 54, 0.9);
  color: var(--fpx-text, #fff);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fastdepix-popup__input::placeholder {
  color: #64748b;
}

.fastdepix-popup__input:focus {
  outline: none;
  border-color: var(--fpx-cyan, #60a5fa);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.fastdepix-popup__hint {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.fastdepix-popup__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.875rem;
}

.fastdepix-popup__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

.fastdepix-popup__button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fastdepix-popup__button--primary {
  background: linear-gradient(135deg, var(--fpx-btn-start, #3b82f6), var(--fpx-btn-end, #8b5cf6));
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.fastdepix-popup__button--primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.45);
}

.fastdepix-popup__button--secondary {
  background: rgba(96, 165, 250, 0.12);
  color: var(--fpx-cyan, #60a5fa);
  border: 1px solid rgba(96, 165, 250, 0.35);
  margin-bottom: 10px;
}

.fastdepix-popup__button--ghost {
  background: transparent;
  color: var(--fpx-muted, #cbd5e1);
  font-weight: 600;
  min-height: 44px;
}

.fastdepix-popup__button.is-copied {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
}

.fastdepix-popup__footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.fastdepix-popup__footer-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  color: #475569;
}

/* Loading */
.fastdepix-popup__loading {
  padding: 48px 24px;
  text-align: center;
}

.fastdepix-popup__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(96, 165, 250, 0.2);
  border-top-color: var(--fpx-cyan, #60a5fa);
  animation: fpx-spin 0.85s linear infinite;
}

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

.fastdepix-popup__loading-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.fastdepix-popup__loading-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fpx-muted, #cbd5e1);
}

/* PIX — fundo premium azul → roxo */
.fastdepix-popup--pix-step .fastdepix-popup__card {
  background: linear-gradient(
    165deg,
    #0c1a3d 0%,
    #152a5c 28%,
    #1e1b4b 55%,
    #0b1730 100%
  );
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 56px rgba(99, 102, 241, 0.18),
    0 0 0 1px rgba(96, 165, 250, 0.12) inset;
}

.fastdepix-popup--pix-step .fastdepix-popup__glow {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--fpx-grad-start, #3b82f6),
    var(--fpx-cyan, #60a5fa),
    var(--fpx-grad-end, #8b5cf6),
    #c084fc
  );
}

.fastdepix-popup--pix-step .fastdepix-popup__body {
  background: transparent;
}

.fastdepix-popup__pix {
  position: relative;
  padding: 22px 20px 26px;
  text-align: center;
  overflow: hidden;
}

.fastdepix-popup__pix::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 55% at 50% -10%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(139, 92, 246, 0.22), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.fastdepix-popup__pix > * {
  position: relative;
  z-index: 1;
}

.fastdepix-popup__pix-head {
  margin-bottom: 12px;
}

.fastdepix-popup__pix-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.fastdepix-popup__pix-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fpx-muted, #cbd5e1);
}

.fastdepix-popup__pix-amount {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fastdepix-popup__pix-qr {
  display: block;
  margin: 0 auto 16px;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.fastdepix-popup__pix-copy-wrap {
  margin-bottom: 4px;
}

.fastdepix-popup__pix-code {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-size: 0.68rem;
  line-height: 1.45;
  font-family: ui-monospace, monospace;
  resize: none;
  max-height: 72px;
}

.fastdepix-popup__button--copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 14px 36px rgba(59, 130, 246, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.fastdepix-popup__button--copy:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(124, 58, 237, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.fastdepix-popup__button--copy.is-copied {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4) !important;
}

.fastdepix-popup__copy-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.fastdepix-popup__pix-waiting-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--fpx-muted, #cbd5e1);
  opacity: 0.9;
}

.fastdepix-popup__pix-status {
  margin: 12px 0;
  font-size: 0.875rem;
  color: var(--fpx-muted, #cbd5e1);
}

.fastdepix-popup__pix-status.is-pulse {
  animation: fpx-pulse 1.5s ease-in-out infinite;
}

@keyframes fpx-pulse {
  50% { opacity: 0.55; }
}

.fastdepix-popup__timer {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Success / error */
.fastdepix-popup--paid .fastdepix-popup__card {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(52, 211, 153, 0.2) inset;
}

.fastdepix-popup--paid .fastdepix-popup__glow {
  background: linear-gradient(90deg, #059669, #34d399, #6ee7b7);
}

.fastdepix-popup__success,
.fastdepix-popup__state-error {
  padding: 40px 24px;
  text-align: center;
  animation: fpx-success-in 0.45s ease-out;
}

@keyframes fpx-success-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fastdepix-popup__paid-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(5, 150, 105, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.fastdepix-popup__access {
  margin: 20px 0 8px;
  padding: 16px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.fastdepix-popup__access-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fpx-text, #f8fafc);
}

.fastdepix-popup__access-item + .fastdepix-popup__access-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.fastdepix-popup__access-product {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fpx-muted, #94a3b8);
}

.fastdepix-popup__access-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.fastdepix-popup__access-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fpx-muted, #94a3b8);
}

.fastdepix-popup__access-value {
  display: block;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}

.fastdepix-popup__access-value--code {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.fastdepix-popup__access-copy {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  cursor: pointer;
}

.fastdepix-popup__access-copy:hover {
  border-color: rgba(34, 197, 94, 0.5);
}

.fastdepix-popup__access-expires,
.fastdepix-popup__access-pending {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--fpx-muted, #94a3b8);
  text-align: center;
}

.fastdepix-popup__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.4);
}

.fastdepix-popup__state-error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.fastdepix-popup__button--order {
  margin-top: 12px;
  text-decoration: none;
}

.fastdepix-popup__order-ref {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.fastdepix-popup__whatsapp {
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.fastdepix-popup__whatsapp-hint {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--fpx-muted, #cbd5e1);
  line-height: 1.45;
}

.fastdepix-popup__button--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}

.fastdepix-popup__button--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.45);
  color: #fff !important;
}

.fastdepix-popup__wa-icon {
  flex-shrink: 0;
}

/* Diálogo de confirmação ao fechar (mesma identidade visual do checkout) */
.fastdepix-popup--confirm {
  z-index: 1000001;
}

.fastdepix-popup__card--confirm {
  width: min(400px, 100%);
  max-height: none;
}

.fastdepix-popup__confirm-inner {
  padding: 28px 24px 24px;
  text-align: center;
}

.fastdepix-popup__confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--fpx-cyan, #60a5fa);
}

.fastdepix-popup__confirm-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fpx-text, #fff);
  line-height: 1.3;
}

.fastdepix-popup__confirm-text {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fpx-muted, #cbd5e1);
}

.fastdepix-popup__confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fastdepix-popup--confirm .fastdepix-popup__button {
  font-family: inherit;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  text-transform: none;
  letter-spacing: normal;
  box-sizing: border-box;
}

.fastdepix-popup--confirm .fastdepix-popup__button--primary {
  background: linear-gradient(135deg, var(--fpx-btn-start, #3b82f6), var(--fpx-btn-end, #8b5cf6)) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4) !important;
}

.fastdepix-popup--confirm .fastdepix-popup__button--ghost {
  background: rgba(96, 165, 250, 0.12) !important;
  color: var(--fpx-muted, #cbd5e1) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  box-shadow: none !important;
}

.fastdepix-popup--confirm .fastdepix-popup__button--ghost:hover {
  background: rgba(96, 165, 250, 0.2) !important;
  color: var(--fpx-text, #fff) !important;
}

.fastdepix-popup--confirm .fastdepix-popup__btn-label {
  display: inline-block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Tablet estreito */
@media (max-width: 600px) {
  .fastdepix-popup {
    padding: 10px;
  }

  .fastdepix-popup__badges {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fastdepix-popup__product,
  .fastdepix-popup__form-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .fastdepix-popup {
    padding: 0;
    align-items: flex-end;
  }

  .fastdepix-popup__card {
    width: 100%;
    max-width: 100%;
    max-height: min(96dvh, 96vh);
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .fastdepix-popup__topbar {
    min-height: 44px;
    padding: 8px 12px 0;
  }

  .fastdepix-popup__body {
    max-height: min(calc(96dvh - 48px), calc(96vh - 48px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .fastdepix-popup__badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px 16px 0;
    padding-right: 16px;
  }

  .fastdepix-popup__badge {
    justify-content: center;
    text-align: center;
    font-size: 9px;
    padding: 6px 8px;
    letter-spacing: 0.03em;
    line-height: 1.2;
    min-width: 0;
  }

  .fastdepix-popup__badge--soft {
    grid-column: 1 / -1;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
  }

  .fastdepix-popup__product {
    padding: 12px 16px 10px;
  }

  .fastdepix-popup__product-row {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
  }

  .fastdepix-popup__product-img {
    height: 72px;
    min-height: 72px;
  }

  .fastdepix-popup__product-img-wrap {
    border-radius: 12px;
  }

  .fastdepix-popup__product-title {
    font-size: 0.9375rem;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .fastdepix-popup__product-price {
    font-size: 1.35rem;
  }

  .fastdepix-popup__product-desc {
    margin-top: 10px;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .fastdepix-popup__benefits {
    margin-top: 8px;
  }

  .fastdepix-popup__benefits li {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .fastdepix-popup__form-section {
    padding: 14px 16px 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .fastdepix-popup__form-title {
    font-size: 1rem;
  }

  .fastdepix-popup__form-lead {
    margin-bottom: 12px;
    font-size: 0.8125rem;
  }

  .fastdepix-popup__field {
    margin-bottom: 12px;
  }

  .fastdepix-popup__input {
    padding: 12px 14px;
    font-size: 16px;
  }

  .fastdepix-popup__hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
  }

  .fastdepix-popup__button {
    min-height: 48px;
    font-size: 0.9375rem;
  }

  .fastdepix-popup__footer {
    font-size: 0.6875rem;
    line-height: 1.4;
  }

  .fastdepix-popup__footer-sub {
    font-size: 0.625rem;
    color: #64748b;
  }

  /* PIX mobile */
  .fastdepix-popup__pix {
    padding: 18px 16px 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .fastdepix-popup__pix-qr {
    max-width: min(220px, 72vw);
    height: auto;
    width: 100%;
  }

  .fastdepix-popup--confirm {
    align-items: center;
    padding: 12px;
  }

  .fastdepix-popup__card--confirm {
    width: calc(100% - 24px);
    border-radius: var(--fpx-radius, 22px);
    border: 1px solid rgba(148, 163, 184, 0.22);
  }

  .fastdepix-popup__confirm-inner {
    padding: 24px 18px 20px;
  }
}

/* Telas muito estreitas */
@media (max-width: 360px) {
  .fastdepix-popup__badges {
    grid-template-columns: 1fr;
  }

  .fastdepix-popup__badge--soft {
    grid-column: auto;
    width: 100%;
  }

  .fastdepix-popup__product-row {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .fastdepix-popup__product-img {
    height: 64px;
    min-height: 64px;
  }
}

.fastdepix-popup__state-oos {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 4px 4px;
  text-align: center;
}

.fastdepix-popup__oos-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 4px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.fastdepix-popup__state-oos--reserved_by_other .fastdepix-popup__oos-icon {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.32);
  animation: fdp-oos-pulse 1.8s ease-in-out infinite;
}

@keyframes fdp-oos-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(96, 165, 250, 0); }
}

.fastdepix-popup__oos-heading {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.fastdepix-popup__oos-message {
  margin: 0 auto 4px;
  max-width: 32ch;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--fdp-text-secondary, #94a3b8);
}

.fastdepix-popup__state-oos .fastdepix-popup__oos-title {
  margin: 22px 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fdp-text-secondary, #94a3b8);
  text-align: left;
}

.fastdepix-popup__alt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fastdepix-popup__alt-btn {
  position: relative;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 48px 1fr 20px !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 10px 14px 10px 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(15, 23, 42, 0.55) !important;
  background-image: none !important;
  background-color: rgba(15, 23, 42, 0.55) !important;
  color: #f8fafc !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease !important;
  font: inherit !important;
  box-shadow: none !important;
}

.fastdepix-popup__alt-btn:hover,
.fastdepix-popup__alt-btn:focus-visible {
  border-color: rgba(99, 102, 241, 0.55) !important;
  background-color: rgba(30, 41, 59, 0.85) !important;
  outline: none !important;
}

.fastdepix-popup__alt-btn:hover .fastdepix-popup__alt-arrow,
.fastdepix-popup__alt-btn:focus-visible .fastdepix-popup__alt-arrow {
  transform: translateX(2px);
  color: #a5b4fc;
}

.fastdepix-popup__alt-btn:active {
  transform: scale(0.995);
}

.fastdepix-popup__alt-thumb {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  flex-shrink: 0;
}

.fastdepix-popup__alt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fastdepix-popup__alt-thumb--empty {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(56, 189, 248, 0.12));
}

.fastdepix-popup__alt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fastdepix-popup__alt-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fastdepix-popup__alt-price {
  font-size: 0.82rem;
  font-weight: 500;
  color: #38bdf8;
  line-height: 1.2;
}

.fastdepix-popup__alt-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.18s ease, color 0.18s ease;
}
