/* Arxey shared checkout — themed per site via --ax-* variables */
:root {
  --ax-font: inherit;
  --ax-bg: #ffffff;
  --ax-surface: #f5f3ee;
  --ax-ink: #15212a;
  --ax-muted: #6b7880;
  --ax-line: rgba(0,0,0,.1);
  --ax-accent: #0b5e7a;
  --ax-accent-ink: #ffffff;
  --ax-cash: #8a5634;
  --ax-radius: 18px;
  --ax-field-radius: 12px;
  --ax-scrim: rgba(10, 20, 28, .55);
}
.ax-scrim { position: fixed; inset: 0; z-index: 900; background: var(--ax-scrim); opacity: 0; pointer-events: none; transition: opacity .35s; }
.ax-scrim.open { opacity: 1; pointer-events: auto; }
.ax-sheet { position: fixed; z-index: 1000; left: 50%; top: 50%; width: min(680px, calc(100% - 24px)); max-height: calc(100svh - 32px);
  transform: translate(-50%, -47%); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .3s;
  background: var(--ax-bg); color: var(--ax-ink); font-family: var(--ax-font); border-radius: var(--ax-radius); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.45); }
.ax-sheet.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.ax-sheet * { box-sizing: border-box; }
.ax-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 12px; }
.ax-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; font-family: inherit; }
.ax-head p { margin: 2px 0 0; font-size: .85rem; color: var(--ax-muted); }
.ax-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ax-surface); color: var(--ax-ink); cursor: pointer; flex: none; font-size: 18px; line-height: 1; }
.ax-body { padding: 4px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.ax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ax-f { display: grid; gap: 5px; }
.ax-f.full { grid-column: 1 / -1; }
.ax-lbl, .ax-f > label { font-size: .76rem; font-weight: 600; color: var(--ax-muted); letter-spacing: .02em; }
.ax-f input, .ax-f select, .ax-f textarea { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--ax-line); border-radius: var(--ax-field-radius);
  background: var(--ax-surface); color: var(--ax-ink); font: inherit; font-size: 16px; }
.ax-f textarea { height: 76px; padding: 10px 12px; resize: vertical; }
.ax-f input:focus, .ax-f select:focus, .ax-f textarea:focus { outline: 2px solid var(--ax-accent); outline-offset: 1px; }
.ax-err { font-size: .75rem; color: #b3261e; min-height: 0; }
.ax-note-s { font-size: .76rem; color: var(--ax-cash); }
.ax-lbl { font-size: .76rem; font-weight: 600; color: var(--ax-muted); }
.ax-f [aria-invalid] { border-color: #b3261e; }
.ax-tbl-w { overflow-x: auto; }
.ax-step { display: flex; align-items: center; height: 46px; border: 1px solid var(--ax-line); border-radius: var(--ax-field-radius); background: var(--ax-surface); overflow: hidden; }
.ax-step button { width: 46px; height: 100%; border: 0; background: none; color: var(--ax-accent); font-size: 1.3rem; cursor: pointer; }
.ax-step output { flex: 1; text-align: center; font-weight: 700; }
.ax-sum { margin-top: 16px; padding: 14px 16px; border-radius: var(--ax-field-radius); background: var(--ax-surface); font-size: .9rem; }
.ax-sum .r { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--ax-muted); }
.ax-sum .r.t { color: var(--ax-ink); font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--ax-line); margin-top: 8px; padding-top: 10px; }
.ax-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: var(--ax-field-radius); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: 12px; }
.ax-btn.cash { background: var(--ax-cash); color: #fff; }
.ax-btn.wa { background: #0e7a3c; color: #fff; white-space: normal; text-align: center; padding: 0 14px; line-height: 1.2; }
.ax-btn.ghost { background: var(--ax-surface); color: var(--ax-ink); border: 1px solid var(--ax-line); }
.ax-hint { font-size: .78rem; color: var(--ax-muted); text-align: center; margin: 10px 0 0; }
[hidden] { display: none !important; }
/* invoice */
.ax-inv { background: #fff; color: #15212a; border: 1px solid #e8ecee; border-radius: 14px; padding: 22px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .88rem; }
.ax-inv-h { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eef1f2; padding-bottom: 14px; }
.ax-inv-h .co { font-weight: 800; font-size: 1.1rem; }
.ax-inv-h .co small { display: block; font-weight: 400; color: #6b7880; font-size: .76rem; line-height: 1.5; margin-top: 4px; }
.ax-inv-h .meta { text-align: right; color: #44535c; font-size: .8rem; }
.ax-inv-h .meta b { display: block; color: #15212a; font-size: 1rem; }
.ax-tag { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ax-tag.paid { background: #e3f6ea; color: #1d7a43; } .ax-tag.cash { background: #fbeedd; color: #7a4a26; }
.ax-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 0; color: #44535c; }
.ax-parties h5 { margin: 0 0 3px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8a979e; }
.ax-parties b { color: #15212a; }
.ax-tbl { width: 100%; border-collapse: collapse; }
.ax-tbl th { text-align: left; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #8a979e; padding: 8px 0; border-bottom: 1px solid #eef1f2; }
.ax-tbl td { padding: 10px 0; border-bottom: 1px solid #f3f5f6; }
.ax-tbl .n { text-align: right; }
.ax-tot { margin: 12px 0 0 auto; width: 100%; max-width: 260px; }
.ax-tot td { padding: 3px 0; } .ax-tot td:last-child { text-align: right; }
.ax-tot tr.t td { font-weight: 800; font-size: 1.1rem; border-top: 1px solid #eef1f2; padding-top: 8px; }
.ax-note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f8f1e4; color: #6b4226; font-size: .8rem; }
.ax-ok { display: flex; gap: 12px; align-items: center; }
.ax-ok i { width: 40px; height: 40px; border-radius: 50%; background: #e3f6ea; color: #1d7a43; display: grid; place-items: center; font-style: normal; font-weight: 900; flex: none; }
.ax-rep { margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--ax-field-radius); background: var(--ax-surface); font-size: .85rem; color: var(--ax-muted); }
.ax-rep .av { width: 44px; height: 44px; border-radius: 50%; background: var(--ax-accent); color: var(--ax-accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.ax-rep b { display: block; color: var(--ax-ink); font-size: .95rem; }
.ax-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) {
  .ax-grid, .ax-parties, .ax-two { grid-template-columns: 1fr; }
  .ax-sheet { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92svh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .ax-sheet.open { transform: translateY(0); }
}
@media print {
  html.ax-printing, html.ax-printing body { overflow: visible !important; height: auto !important; }
  html.ax-printing body > *:not(#axInv) { display: none !important; }
  html.ax-printing #axInv, html.ax-printing #axInv .ax-body { display: block !important; position: static !important; transform: none !important; opacity: 1 !important; filter: none !important; max-height: none !important; overflow: visible !important; box-shadow: none !important; width: 100% !important; background: #fff !important; }
  html.ax-printing #axInv .ax-head, html.ax-printing #axInv .ax-rep, html.ax-printing #axInv .ax-btn, html.ax-printing #axInv .ax-two, html.ax-printing #axInv .ax-hint { display: none !important; }
  html.ax-printing #ax-inv-print { border: 0; padding: 0; }
}
.ax-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--ax-field-radius); background: #fdecea; color: #7a1d14; font-size: .86rem; line-height: 1.45; }
.ax-alert a { color: #7a1d14; font-weight: 700; margin-left: 4px; }

/* ---- Aleymi: cuenta y efectivo en la reserva ---- */
.ax-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: rgba(11, 94, 122, .07); font-size: .92rem; }
.ax-acct-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ax-link { background: none; border: 0; padding: 0; color: #0b5e7a; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ax-cashbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(47, 107, 79, .09); border: 1px solid rgba(47, 107, 79, .22); color: #2f6b4f; }
.ax-cashbox b { display: block; color: #1f4a37; }
.ax-cashbox small { display: block; color: #3d5a4c; font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.ax-f[hidden], .ax-who[hidden] { display: none !important; }
a.ax-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
/* Aviso suave en la × cuando se toca fuera de la hoja con datos escritos */
@keyframes ax-nudge { 0%, 100% { transform: none; } 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.ax-x.ax-nudge { animation: ax-nudge .45s ease; box-shadow: 0 0 0 3px rgba(14, 143, 168, .35); }
@media (prefers-reduced-motion: reduce) { .ax-x.ax-nudge { animation: none; } }
