/* ============================================================
   assets/css/airos-checkout.css — Checkout compartido de AirOS (Fase 366)
   Es el checkout de Doña Tula, ahora común a todas las plantillas.
   Toma los colores de cada plantilla (ver variables --ack-* abajo); si la
   plantilla no los define, usa los de catalogo.php y, si no, unos neutros.
   Markup: lib/checkout-ui-lib.php · Lógica: assets/js/airos-checkout.js
   ============================================================ */
.ack-overlay {
  --ack-bg: var(--card-bg, var(--panel, #ffffff));
  --ack-fg: var(--texto, var(--text, #1c2430));
  --ack-muted: var(--crema2, var(--muted, #5b6674));
  --ack-line: var(--border, var(--line, rgba(28,36,48,.18)));
  --ack-field: var(--fondo, var(--bg, #f3f5f8));
  --ack-accent: var(--accent, var(--brand, #0090e0));
  --ack-img-bg: #ffffff;
}
.ack-overlay svg.ack-i { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; }
.ack-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; border-radius: 12px; background: var(--ack-accent); color: #fff; font: inherit; font-weight: 800; letter-spacing: .02em; }
.ack-btn:hover { filter: brightness(1.08); }
.ack-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; }
.ack-overlay.open { display: flex; }
.ack { position: relative; width: 100%; max-width: 1000px; max-height: 94vh; overflow-y: auto; background: var(--ack-bg); color: var(--ack-fg); border: 1px solid var(--ack-line); border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ack-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ack-line); background: var(--ack-field); color: var(--ack-fg); cursor: pointer; font-size: 16px; }
.ack-form { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ack-form h2 { font-family: var(--font-display, inherit); font-size: 26px; font-weight: 900; margin: 0; }
.ack-sub { margin: -14px 0 0; color: var(--ack-muted); font-size: 13px; }
.ack-sec h3 { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.ack-sec h3 span { width: 24px; height: 24px; border-radius: 50%; background: var(--ack-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0; }
.ack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ack-full { grid-column: 1 / -1; }
.ack-form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ack-muted); }
.ack-form input:not([type=radio]), .ack-form select, .ack-form textarea { width: 100%; box-sizing: border-box; background: var(--ack-field); color: var(--ack-fg); border: 1px solid var(--ack-line); border-radius: 10px; padding: 13px 14px; font-size: 15px; font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s; }
.ack-form input:focus, .ack-form select:focus, .ack-form textarea:focus { border-color: var(--ack-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ack-accent) 25%, transparent); }
.ack-form textarea { resize: vertical; }
.ack-opts { display: grid; gap: 10px; }
.ack-opt { position: relative; display: block !important; cursor: pointer; border: 1.5px solid var(--ack-line); border-radius: 12px; padding: 13px 14px 13px 44px; text-transform: none !important; letter-spacing: 0 !important; transition: border-color .15s, background .15s; }
.ack-opt:hover { border-color: var(--ack-accent); }
.ack-opt.on { border-color: var(--ack-accent); background: color-mix(in srgb, var(--ack-accent) 10%, transparent); }
.ack-opt input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; accent-color: var(--ack-accent); margin: 0; }
.ack-opt b { display: block; font-size: 14px; font-weight: 800; color: var(--ack-fg); }
.ack-opt b i { color: var(--ack-accent); width: 20px; }
.ack-opt small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--ack-muted); }
.ack-envio { margin-top: 10px; font-size: 13px; color: var(--ack-fg); }
.ack-envio small { color: var(--ack-muted); }
#ack-dir-verif:empty { display: none; }
.ack-aviso { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1px solid color-mix(in srgb, var(--ack-accent) 40%, transparent); background: color-mix(in srgb, var(--ack-accent) 8%, transparent); }
.ack-cta { margin-top: 8px; }
.ack-cta code { background: var(--ack-field); padding: 2px 6px; border-radius: 6px; user-select: all; }
.ack-msg { min-height: 18px; font-size: 13px; font-weight: 700; color: #ef4444; margin-bottom: -10px; }
.ack-confirm { width: 100%; padding: 16px; font-size: 15px; }
.ack-confirm:disabled { opacity: .6; cursor: wait; }
.ack-link { background: none; border: none; color: var(--ack-muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 4px; align-self: center; }
.ack-resumen { padding: 30px 26px; background: var(--ack-field); border-left: 1px solid var(--ack-line); border-radius: 0 20px 20px 0; display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.ack-resumen h3 { margin: 0 0 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ack-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ack-line); font-size: 13px; }
.ack-item img { width: 48px; height: 48px; object-fit: contain; background: var(--ack-img-bg); border-radius: 8px; flex-shrink: 0; }
.ack-item > div { flex: 1; min-width: 0; }
.ack-item b { display: block; font-size: 13px; }
.ack-item small { display: block; font-size: 11px; color: var(--ack-muted); }
.ack-item span { font-weight: 800; white-space: nowrap; }
.ack-fila { display: flex; justify-content: space-between; font-size: 14px; }
.ack-total { font-size: 20px; font-weight: 900; padding-top: 10px; border-top: 2px solid var(--ack-line); }
.ack-nota { font-size: 11px; color: var(--ack-muted); margin: 0; }
.ack-ok { grid-column: 1 / -1; text-align: center; padding: 56px 24px 48px; }
.ack-ok-ico { font-size: 76px; color: #22c55e; line-height: 1; margin-bottom: 14px; }
.ack-ok h2 { font-size: 28px; font-weight: 900; margin: 0 0 10px; }
.ack-ok p { color: var(--ack-muted); margin: 0 0 8px; }
.ack-ok .ack-btn { margin-top: 18px; min-width: 200px; }
@media (max-width: 820px) {
  .ack-overlay { padding: 0; align-items: stretch; }
  .ack { grid-template-columns: 1fr; border-radius: 0; max-height: 100vh; height: 100%; }
  .ack-resumen { order: -1; border-left: 0; border-bottom: 1px solid var(--ack-line); border-radius: 0; padding: 62px 18px 16px; }
  .ack-form { padding: 22px 18px 28px; }
  .ack-form h2 { font-size: 22px; }
  .ack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) { .ack-resumen #ack-items { max-height: 26vh; overflow-y: auto; } }
.ack-ok-ico svg.ack-i { width: 1em; height: 1em; }
.ack-opt b svg.ack-i { color: var(--ack-accent); margin-right: 4px; }
.ack-x svg.ack-i { width: 18px; height: 18px; }
.ack-aviso svg.ack-i { color: var(--ack-accent); }
.ack-aviso select { width: 100%; margin-top: 8px; }
.ack-confirm { }
/* Modo editor de carrito (catalogo.php): tildar, cantidad, quitar */
.ack-selall { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; padding: 4px 0 8px; cursor: pointer; }
.ack-selall input, .ack-item .ack-chk { width: 18px; height: 18px; accent-color: var(--ack-accent); flex-shrink: 0; margin: 0; }
.ack-item-ed.off { opacity: .55; }
.ack-qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.ack-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--ack-line); background: var(--ack-field); color: var(--ack-fg); cursor: pointer; font-size: 15px; line-height: 1; }
.ack-qty input { width: 58px; height: 28px; box-sizing: border-box; text-align: center; border: 1px solid var(--ack-line); border-radius: 8px; background: var(--ack-field); color: var(--ack-fg); font: inherit; font-size: 13px; }
.ack-qty .ack-rm { margin-left: auto; color: #ef4444; border-color: transparent; background: transparent; }
.ack-opt[hidden] { display: none !important; }

/* Continuar con Google (arriba de "Tus datos") */
.ack-google { margin: 0 0 14px; text-align: center; }
.ack-google[hidden], #ack-google-btn[hidden], .ack-google-st[hidden] { display: none !important; }
#ack-google-btn { display: flex; justify-content: center; min-height: 44px; }
.ack-google-st { font-size: 12px; color: var(--ack-muted); padding: 8px 0; }
.ack-google-st b { color: var(--ack-fg); }
.ack-google-or { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ack-muted); font-size: 11px; }
.ack-google-or::before, .ack-google-or::after { content: ""; flex: 1; height: 1px; background: var(--ack-line); }
