/* =====================================================================
   checkout.css — Estilos del modal de checkout Printonic
   ===================================================================== */

/* ---------- Botón "Comprar ahora" en panel del slicer ---------- */
.checkout-pay-wrap { margin: 20px 0 12px; text-align: center; }
.checkout-pay-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #41C0F0 0%, #2BA8D8 100%);
  color: #0A0A0A; border: none; border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: -0.01em; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 14px rgba(65, 192, 240, 0.35);
}
.checkout-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(65, 192, 240, 0.45);
  filter: brightness(1.05);
}
.checkout-pay-btn:active { transform: translateY(0); }
.checkout-pay-label { flex: 0 0 auto; }
.checkout-pay-amount {
  flex: 1; text-align: right;
  font-family: 'JetBrains Mono', monospace; font-size: 1.05rem;
}
.checkout-pay-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.checkout-pay-hint {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: #6B7280; text-align: center; letter-spacing: 0.02em;
}

/* ---------- Overlay y modal ---------- */
.checkout-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: coFadeIn 0.2s ease;
}
.checkout-overlay[hidden] { display: none; }
@keyframes coFadeIn { from { opacity: 0; } to { opacity: 1; } }

.checkout-modal {
  width: 100%; max-width: 640px;
  max-height: calc(100vh - 32px);
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  font-family: 'DM Sans', sans-serif;
  color: #1F1F1F;
  animation: coSlideUp 0.25s ease;
}
@keyframes coSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Header ---------- */
.checkout-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #F0F0F0;
  background: #FAFAFA;
}
.checkout-steps {
  display: flex; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.checkout-step { color: #B0B0B0; }
.checkout-step.is-active { color: #41C0F0; font-weight: 700; }
.checkout-step.is-done { color: #1F1F1F; }
.checkout-step.is-done::before { content: '✓ '; color: #41C0F0; }

.checkout-close {
  background: transparent; border: none; cursor: pointer;
  color: #6B7280; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: background 0.15s ease;
}
.checkout-close:hover { background: #F0F0F0; color: #1F1F1F; }
.checkout-close svg { width: 20px; height: 20px; }

/* ---------- Summary ---------- */
.checkout-summary {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(65, 192, 240, 0.06), rgba(236, 97, 159, 0.04));
  border-bottom: 1px solid #F0F0F0;
}
.checkout-summary-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.co-sum-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: #6B7280; text-transform: uppercase; letter-spacing: 0.06em;
}
.co-sum-value { font-weight: 500; color: #1F1F1F; }

/* ---------- Body ---------- */
.checkout-body { flex: 1; overflow-y: auto; padding: 24px 20px; }
.checkout-pane { display: none; }
.checkout-pane.is-active { display: block; animation: coFadeIn 0.2s ease; }

.checkout-pane-title {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.checkout-pane-desc { color: #6B7280; font-size: 0.9rem; margin-bottom: 20px; }

/* ---------- Grid de campos ---------- */
.checkout-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.checkout-field { display: flex; flex-direction: column; gap: 4px; }
.checkout-field.full { grid-column: 1 / -1; }
.checkout-field label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: #6B7280; text-transform: uppercase; letter-spacing: 0.05em;
}
.checkout-field .req { color: #EC619F; }
.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  padding: 11px 14px;
  border: 1px solid #E0E0E0; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: #1F1F1F; background: #FFFFFF;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  outline: none; border-color: #41C0F0;
  box-shadow: 0 0 0 3px rgba(65, 192, 240, 0.15);
}
.checkout-field input.co-invalid,
.checkout-field select.co-invalid {
  border-color: #EC619F; background: rgba(236, 97, 159, 0.04);
}
.checkout-field textarea { resize: vertical; min-height: 64px; font-family: 'DM Sans', sans-serif; }

@media (max-width: 520px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---------- Toggle ---------- */
.checkout-toggle {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px;
  background: #FAFAFA;
  border: 1px solid #F0F0F0; border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem; line-height: 1.45;
  margin-top: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checkout-toggle:hover { background: #F5F5F5; }
.checkout-toggle input { margin-top: 3px; flex: 0 0 auto; accent-color: #41C0F0; }
.checkout-toggle.co-invalid { border-color: #EC619F; background: rgba(236, 97, 159, 0.06); }

.checkout-fact-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed #E0E0E0;
}
@media (max-width: 520px) { .checkout-fact-block { grid-template-columns: 1fr; } }

/* ---------- Radios ---------- */
.checkout-radio-group {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
.checkout-radio {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border: 1px solid #E0E0E0; border-radius: 12px;
  cursor: pointer;
  transition: border 0.15s ease, background 0.15s ease;
  background: #FFFFFF;
}
.checkout-radio:hover { border-color: #B0B0B0; background: #FAFAFA; }
.checkout-radio input[type="radio"] { margin-top: 3px; accent-color: #41C0F0; flex: 0 0 auto; }
.checkout-radio:has(input:checked) {
  border-color: #41C0F0; background: rgba(65, 192, 240, 0.05);
  box-shadow: 0 0 0 1px #41C0F0;
}
.checkout-radio-body { flex: 1; }
.checkout-radio-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px; gap: 8px;
}
.checkout-radio-head strong { font-size: 0.95rem; font-weight: 700; }
.checkout-radio-body p { font-size: 0.82rem; color: #6B7280; line-height: 1.4; }
.checkout-price-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 600;
  color: #1F1F1F; background: #F0F0F0;
  padding: 4px 10px; border-radius: 999px;
}
.checkout-price-tag.is-discount { background: rgba(249, 176, 0, 0.15); color: #B07A00; }

.checkout-addr-block {
  padding: 16px;
  background: #FAFAFA;
  border: 1px solid #F0F0F0; border-radius: 12px;
  margin-top: 4px;
}

/* ---------- Totales ---------- */
.checkout-totals {
  margin: 20px 0 16px; padding: 16px;
  background: linear-gradient(135deg, rgba(65, 192, 240, 0.04), rgba(236, 97, 159, 0.04));
  border: 1px solid #E0E0E0; border-radius: 12px;
}
.co-totals-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 0.92rem;
}
.co-totals-row strong { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; }
.co-totals-discount { color: #B07A00; }
.co-totals-grand {
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid #E0E0E0; font-size: 1.05rem;
}
.co-totals-grand strong {
  font-family: 'DM Sans', sans-serif; font-size: 1.3rem; font-weight: 700;
  color: #41C0F0;
}

/* ---------- Footer ---------- */
.checkout-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #F0F0F0;
  background: #FAFAFA;
}
.checkout-footer[hidden] { display: none; }

.checkout-btn-primary {
  flex: 1; padding: 13px 22px;
  background: #1F1F1F; color: #FFFFFF; border: none; border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.checkout-btn-primary:hover { background: #41C0F0; color: #0A0A0A; transform: translateY(-1px); }
.checkout-btn-primary:disabled { background: #C0C0C0; cursor: not-allowed; transform: none; }

.checkout-btn-ghost {
  padding: 13px 18px;
  background: transparent; color: #6B7280;
  border: 1px solid #E0E0E0; border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.checkout-btn-ghost:hover { border-color: #1F1F1F; color: #1F1F1F; }

/* ---------- Pantalla éxito / error ---------- */
.checkout-pane-success,
.checkout-pane-error { text-align: center; padding: 20px 16px; }
.checkout-success-icon,
.checkout-error-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.checkout-success-icon { background: rgba(65, 192, 240, 0.12); color: #41C0F0; }
.checkout-error-icon { background: rgba(236, 97, 159, 0.12); color: #EC619F; }
.checkout-success-icon svg,
.checkout-error-icon svg { width: 36px; height: 36px; }
.checkout-success-id {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  color: #6B7280; margin: 8px 0 16px;
}
.checkout-success-id strong { color: #41C0F0; font-size: 1rem; letter-spacing: 0.04em; }
.checkout-success-msg,
.checkout-error-msg {
  font-size: 0.95rem; color: #1F1F1F; line-height: 1.6;
  max-width: 480px; margin: 0 auto 20px;
}
.checkout-success-actions {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 320px; margin: 0 auto;
}
.checkout-btn-wa {
  background: #25D366; color: #FFFFFF;
  padding: 13px 22px; border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.checkout-btn-wa:hover { background: #1FB558; transform: translateY(-1px); }

/* =====================================================================
   PANEL DATOS BANCARIOS (en pantalla de éxito, solo si transferencia)
   ===================================================================== */
.co-bank-card {
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #F9B000;
  border-radius: 14px;
  padding: 22px 20px;
  margin: 8px auto 24px;
  max-width: 520px;
  box-shadow: 0 4px 12px rgba(249, 176, 0, 0.08);
}

.co-bank-header { margin-bottom: 16px; }
.co-bank-eyebrow {
  margin: 0 0 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #B07A00;
}
.co-bank-title {
  margin: 0;
  font-size: 1.1rem; font-weight: 700; color: #1F1F1F;
  letter-spacing: -0.01em;
}

.co-bank-fields {
  display: flex; flex-direction: column; gap: 2px;
}
.co-bank-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #F0F0F0;
}
.co-bank-row:last-child { border-bottom: none; }

.co-bank-row-copy {
  grid-template-columns: 110px 1fr auto;
}

.co-bank-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: #6B7280; text-transform: uppercase; letter-spacing: 0.04em;
}
.co-bank-value {
  font-size: 0.92rem; color: #1F1F1F;
  word-break: break-all;
}
.co-bank-value.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}
.co-bank-strong { font-weight: 700; font-size: 0.95rem; }
.co-bank-value.mono:hover { color: #41C0F0; }

.co-bank-copy-btn {
  background: #F0F0F0; color: #1F1F1F;
  border: none; border-radius: 8px;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.co-bank-copy-btn:hover { background: #41C0F0; color: #0A0A0A; }
.co-bank-copy-btn.is-copied {
  background: #4ADE80; color: #0A0A0A;
}

.is-copied-flash {
  animation: copyFlash 0.8s ease;
}
@keyframes copyFlash {
  0%   { background: transparent; }
  30%  { background: rgba(74, 222, 128, 0.25); }
  100% { background: transparent; }
}

.co-bank-row-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 2px solid #F9B000 !important;
  border-bottom: none;
}
.co-bank-value-total {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: #41C0F0;
}

.co-bank-notice {
  margin-top: 18px;
  padding: 14px 16px;
  background: #FAFAFA;
  border-left: 3px solid #EC619F;
  border-radius: 0 8px 8px 0;
}
.co-bank-notice-title {
  margin: 0 0 6px;
  font-size: 0.92rem; font-weight: 600; color: #1F1F1F;
}
.co-bank-notice-text {
  margin: 0;
  font-size: 0.82rem; line-height: 1.5; color: #6B7280;
}

/* ---------- Mobile ---------- */
@media (max-width: 520px) {
  .checkout-modal { max-height: 100vh; border-radius: 0; }
  .checkout-overlay { padding: 0; align-items: stretch; }
  .checkout-pane-title { font-size: 1.2rem; }

  .co-bank-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .co-bank-row-copy {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .co-bank-row-copy .co-bank-label { grid-column: 1 / -1; }
  .co-bank-row-total { grid-template-columns: 1fr; }
}

/* =====================================================================
   CSS adicional para el checkout (pantalla "redirigiendo a MercadoPago")
   PEGÁ ESTO AL FINAL del CSS que ya tenés del checkout (mismo archivo
   donde están las reglas .checkout-modal, .checkout-pane, etc.)
   ===================================================================== */
 
.checkout-pane-redirect {
  text-align: center;
  padding: 32px 24px;
}
 
.checkout-redirect-spinner {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: #41C0F0;
}
 
.checkout-redirect-spinner svg {
  width: 100%;
  height: 100%;
}
 
.checkout-pane-redirect .checkout-pane-title {
  margin-bottom: 12px;
}
 
.checkout-pane-redirect .checkout-success-id {
  font-family: 'JetBrains Mono', Monaco, monospace;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 16px;
}
 
.checkout-pane-redirect .checkout-success-msg {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}
 