/* ============================================
   CHECKOUT / RESGATE - estilos complementares
   ============================================ */

/* ---- Modais ---- */
.af-modal .modal-content {
  border: none;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(45, 48, 71, 0.25);
}
.af-modal .modal-header {
  border: none;
  padding: 28px 28px 0;
}
.af-modal .modal-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #2D3047;
}
.af-modal .modal-body { padding: 16px 28px 28px; }
.af-modal .af-modal-emoji {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 6px;
}
.af-modal .af-modal-sub {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.af-field { margin-bottom: 14px; }
.af-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #2D3047;
}
.af-field input {
  width: 100%;
  border: 2px solid #f0e6dd;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: 'Fredoka', sans-serif;
  background: #FFF9F4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.af-field input:focus {
  outline: none;
  border-color: #FF6B9D;
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.12);
  background: #fff;
}
.af-field input.af-code-input {
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.af-btn-primary {
  width: 100%;
  border: none;
  border-radius: 50px;
  padding: 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #FF6B9D 0%, #FF9F43 100%);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.3);
}
.af-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 107, 157, 0.4); }
.af-btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; }

.af-modal-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa0b0;
}
.af-modal-foot a { color: #E63E7A; font-weight: 600; text-decoration: none; }
.af-modal-foot a:hover { text-decoration: underline; }

.af-form-msg {
  display: none;
  font-size: 0.88rem;
  margin: 4px 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
}
.af-form-msg.show { display: block; }
.af-form-msg--error { background: #ffe8ee; color: #c0234c; }

.af-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #9aa0b0;
}

/* ---- Modal de sucesso ---- */
.af-success-code {
  display: inline-block;
  background: #FFF9F4;
  border: 2px dashed #FF6B9D;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #E63E7A;
  margin: 8px 0 18px;
}

/* ---- Banner de acesso (topo) ---- */
.af-access-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: linear-gradient(135deg, #06D6A0 0%, #4ECDC4 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6, 214, 160, 0.35);
  animation: afSlideDown 0.4s ease;
}
@keyframes afSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.af-access-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.af-access-msg { font-weight: 500; font-size: 0.95rem; }
.af-access-actions { display: flex; align-items: center; gap: 10px; }
.af-access-btn {
  background: #fff;
  color: #06906c;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 0.15s;
}
.af-access-btn:hover { transform: translateY(-1px); color: #06906c; }
.af-access-close {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.af-access-close:hover { background: rgba(255,255,255,0.4); }
/* Empurra o conteudo para nao ficar sob o banner fixo. */
body.af-has-banner .navbar-custom { top: 48px; }

/* ---- Nota "confirmando pagamento" ---- */
.af-pending-note {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2000;
  background: #2D3047;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  max-width: 90vw;
  box-shadow: 0 12px 32px rgba(45, 48, 71, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.af-pending-note a { color: #FFC93C; font-weight: 600; }
.af-spinner {
  width: 16px; height: 16px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: afSpin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes afSpin { to { transform: rotate(360deg); } }

/* ---- Link "ja paguei" na navbar ---- */
.nav-link.af-resgatar-link { cursor: pointer; }

@media (max-width: 575px) {
  .af-access-msg { font-size: 0.85rem; }
  .af-access-inner { padding: 8px 12px; }
}
