/* Checkout + PIX */

/* Fluxo: grudado no vermelho + formulário mais largo */
body.fo-checkout-flow .fo-cart-page {
  padding-top: 0.65rem;
  padding-bottom: 2.5rem;
}

body.fo-checkout-flow .fo-checkout--wide,
body.fo-checkout-flow .fo-cart-page.fo-checkout {
  max-width: 920px;
}

body.fo-checkout-flow .fo-cart-page h1 {
  font-size: 1.85rem;
  margin-bottom: 0.25rem;
}

body.fo-checkout-flow .fo-cart-page .fo-lead {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

body.fo-checkout-flow .fo-checkout-steps {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  gap: 1rem;
}

.fo-checkout-form--lg {
  max-width: none;
  width: 100%;
  padding: 1.5rem 1.6rem;
  gap: 1.05rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}

.fo-checkout-form--lg .fo-field label {
  font-size: 0.8rem;
}

.fo-checkout-form--lg .fo-field input,
.fo-checkout-form--lg .fo-field select {
  font-size: 1.05rem;
  padding: 0.85rem 0.95rem;
  min-height: 48px;
}

.fo-checkout-form--lg .fo-btn-primary {
  margin-top: 0.35rem;
  min-height: 52px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.fo-checkout-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .fo-checkout-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.fo-checkout-h {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: #111827;
}

.fo-checkout-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fo-checkout-err {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.fo-checkout-alert {
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #ad6800;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.fo-checkout-steps {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ca3af;
}

.fo-checkout-steps span.is-active { color: #ff2739; }
.fo-checkout-steps span.is-done { color: #16a34a; }

/* —— Página PIX —— */
.fo-pay {
  max-width: 980px;
}

.fo-pay-head {
  text-align: center;
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.5rem;
}

.fo-pay-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #32bcad;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.fo-pay-head h1 {
  margin: 0 0 0.35rem !important;
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
  color: #111827;
}

.fo-pay-head__meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 600;
}

.fo-pay-head__amount {
  margin: 0.65rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #ff2739;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fo-pay-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 860px) {
  .fo-pay-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
  }
}

.fo-pay-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  text-align: center;
}

.fo-pay-qr-wrap {
  display: inline-flex;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #f3f4f6;
  margin-bottom: 0.85rem;
}

.fo-pay-qr {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  border-radius: 4px;
  background: #fff;
}

.fo-pay-scan {
  margin: 0 0 1.25rem;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
}

.fo-pay-copy-block {
  text-align: left;
}

.fo-pay-copy-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.fo-pay-code {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  resize: none;
  margin-bottom: 0.75rem;
  background: #f9fafb;
  color: #374151;
  word-break: break-all;
}

.fo-pay-code:focus {
  outline: none;
  border-color: #ff2739;
  box-shadow: 0 0 0 3px rgba(255, 39, 57, 0.12);
}

.fo-pay-panel .fo-btn-primary {
  gap: 0.55rem;
}

.fo-pay-panel .fo-btn-primary.is-copied {
  background: #16a34a;
}

.fo-pay-wait {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.15rem auto 0;
  padding: 0.55rem 0.95rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  font-size: 0.88rem;
  font-weight: 700;
}

.fo-pay-wait__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  animation: fo-pay-pulse 1.2s ease-in-out infinite;
}

@keyframes fo-pay-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .fo-pay-wait__dot { animation: none; }
}

.fo-pay-resumo {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.fo-pay-resumo h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.fo-pay-resumo__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fo-pay-resumo__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  color: #374151;
}

.fo-pay-resumo__item strong {
  flex-shrink: 0;
  color: #111827;
  font-weight: 800;
}

.fo-pay-resumo__name {
  line-height: 1.35;
  font-weight: 600;
}

.fo-pay-resumo__qty {
  color: #9ca3af;
  font-weight: 800;
  margin-right: 0.2rem;
}

.fo-pay-resumo__totals {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.fo-pay-resumo__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  color: #6b7280;
  font-weight: 600;
}

.fo-pay-resumo__row strong {
  color: #111827;
  font-weight: 800;
}

.fo-pay-resumo__row strong.is-free {
  color: #16a34a;
}

.fo-pay-resumo__row--total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 2px solid #111827;
  font-size: 1.05rem;
  color: #111827;
  font-weight: 800;
}

.fo-pay-resumo__row--total strong {
  font-size: 1.35rem;
  color: #ff2739;
}

.fo-pay-state {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  max-width: 440px;
  margin: 1rem auto;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

.fo-pay-state h1 {
  margin: 0 0 0.5rem !important;
  font-size: 1.5rem !important;
}

.fo-pay-state p {
  margin: 0;
  color: #6b7280;
  font-weight: 600;
}

.fo-pay-state__ico {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.fo-pay-state--ok .fo-pay-state__ico { color: #16a34a; }
.fo-pay-state--err .fo-pay-state__ico { color: #ef4444; }

.fo-pay-state__amount {
  margin: 0.85rem 0 1.25rem !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

.fo-pay-state__btn {
  max-width: 280px;
  margin: 0 auto;
}

.fo-pay-state a:not(.fo-btn-primary) {
  color: #ff2739;
  font-weight: 700;
}
