/* Elathi SmartPOS checkout (parts/checkout/buy.js). Paper and ink, logo yellow for the one main action, green only
   for "paid", amber only for warnings. Computer: order summary beside the steps. Phone: a full-screen sheet. */
.ebuy-ends{display:inline-flex;align-items:center;margin-left:4px;padding-left:10px;border-left:1px solid rgba(255,255,255,.35);opacity:.9}
html.ebuy-open{overflow:hidden}
dialog.ebuy{--ink:#101010;--mute:#5c5c5c;--line:#e4e2de;--paper:#f1f0ee;--yel:#ffc800;--ok:#17803d;--warn:#8a5a00;--warnbg:#fff6dc;--bad:#a61b1b;--badbg:#fdecec;
  width:min(920px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:24px;background:#fff;color:var(--ink);
  box-shadow:0 1px 0 rgba(0,0,0,.04),0 32px 80px -24px rgba(16,16,16,.45);font:16px/1.5 "Geist","Elathi Sans","Segoe UI",system-ui,sans-serif;overflow:hidden;overscroll-behavior:contain}
dialog.ebuy::backdrop{background:rgba(16,16,16,.55);backdrop-filter:blur(3px)}
dialog.ebuy[open]{animation:ebuy-in .22s ease-out}
@keyframes ebuy-in{from{opacity:0;transform:translateY(8px) scale(.99)}}
.ebuy [hidden]{display:none!important}
.ebuy *,.ebuy *::before{box-sizing:border-box}
.ebuy .ebuy-i{display:inline-grid;place-items:center;flex:none;width:18px;height:18px}
.ebuy .ebuy-i svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ebuy .ebuy-sr{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.ebuy .ebuy-shell{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);max-height:calc(100dvh - 32px)}

/* the order summary */
.ebuy .ebuy-sum{display:flex;flex-direction:column;gap:14px;padding:28px 24px;background:var(--ink);color:#fff;overflow:auto}
.ebuy .ebuy-brand{margin:0;font-size:14px;letter-spacing:.02em;color:rgba(255,255,255,.7)}
.ebuy .ebuy-plans{display:grid;gap:8px}
.ebuy .ebuy-plan{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1.5px solid rgba(255,255,255,.18);border-radius:14px;cursor:pointer;transition:border-color .15s,background .15s}
.ebuy .ebuy-plan:has(:checked){border-color:var(--yel);background:rgba(255,200,0,.1)}
.ebuy .ebuy-plan:has(:focus-visible){outline:2px solid var(--yel);outline-offset:2px}
.ebuy .ebuy-plan:has(:disabled){cursor:default}
.ebuy .ebuy-plan:has(:disabled:not(:checked)){opacity:.4}
.ebuy .ebuy-pn{font-weight:500}
.ebuy .ebuy-pp{display:flex;align-items:baseline;gap:8px}
.ebuy .ebuy-pp b{font-weight:500;font-size:17px}
.ebuy .ebuy-pp s{font-size:13.5px;color:rgba(255,255,255,.55)}
.ebuy .ebuy-inc{margin:2px 0 0;padding:0;list-style:none;display:grid;gap:8px;font-size:14.5px;color:rgba(255,255,255,.85)}
.ebuy .ebuy-inc li{display:flex;gap:10px;align-items:flex-start}
.ebuy .ebuy-inc .ebuy-i{width:16px;height:16px;margin-top:3px;color:var(--yel)}
.ebuy .ebuy-tot{display:flex;justify-content:space-between;align-items:baseline;margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.14)}
.ebuy .ebuy-tot span{color:rgba(255,255,255,.7);font-size:14.5px}
.ebuy .ebuy-tot b{font-size:30px;font-weight:500;letter-spacing:-.02em}
.ebuy .ebuy-saving{margin:-8px 0 0;font-size:13.5px;color:rgba(255,255,255,.65);text-align:right}
.ebuy .ebuy-saving:empty{display:none}
.ebuy .ebuy-offer{margin:0;align-self:flex-start;padding:4px 12px;border-radius:999px;background:var(--yel);color:var(--ink);font-size:13px;font-weight:500}
.ebuy .ebuy-sec{display:flex;gap:10px;margin:0;font-size:13px;line-height:1.45;color:rgba(255,255,255,.65)}
.ebuy .ebuy-sec .ebuy-i{width:16px;height:16px;margin-top:2px;color:#fff}

/* the steps */
.ebuy .ebuy-main{position:relative;display:flex;flex-direction:column;padding:22px 28px 26px;overflow:auto}
.ebuy .ebuy-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.ebuy .ebuy-steps{display:flex;gap:6px;margin:0;padding:0;list-style:none;font-size:13.5px;color:var(--mute)}
.ebuy .ebuy-steps li{display:flex;align-items:center;gap:8px}
.ebuy .ebuy-steps li+li::before{content:"";width:18px;height:1px;background:var(--line);margin-right:4px}
.ebuy .ebuy-n{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line);font-size:12px;font-weight:500}
.ebuy .ebuy-steps .is-on{color:var(--ink);font-weight:500}
.ebuy .ebuy-steps .is-on .ebuy-n{border-color:var(--ink);background:var(--ink);color:#fff}
.ebuy .ebuy-steps .is-done .ebuy-n{border-color:var(--ok);background:var(--ok);color:#fff}
.ebuy .ebuy-x{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:12px;background:var(--paper);color:var(--ink);cursor:pointer}
.ebuy .ebuy-x .ebuy-i{width:20px;height:20px}
.ebuy .ebuy-h{margin:0 0 6px;font-size:26px;font-weight:450;letter-spacing:-.025em;line-height:1.15}
.ebuy .ebuy-h3{margin:22px 0 8px;font-size:16px;font-weight:500}
.ebuy .ebuy-lead{margin:0 0 20px;color:var(--mute)}

/* the form */
.ebuy .ebuy-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.ebuy .ebuy-f{display:grid;gap:6px;margin-bottom:14px}
.ebuy .ebuy-f label{font-size:14px;font-weight:500}
.ebuy .ebuy-f small{font-size:13px;color:var(--mute)}
.ebuy .ebuy-in{display:flex;align-items:center;height:48px;border:1.5px solid var(--line);border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s}
.ebuy .ebuy-in:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px rgba(16,16,16,.08)}
.ebuy .ebuy-in:has([aria-invalid=true]){border-color:var(--bad)}
.ebuy .ebuy-pre{padding:0 2px 0 14px;color:var(--mute)}
.ebuy .ebuy-in input{flex:1;min-width:0;height:100%;padding:0 14px;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:16px}
.ebuy .ebuy-in.has-pre input{padding-left:8px}
.ebuy .ebuy-in input::placeholder{color:#a8a59f}
.ebuy .ebuy-link{display:inline-block;margin:0 0 12px;padding:0;border:0;background:none;color:#101010;font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ebuy .ebuy-err{display:flex;margin:2px 0 12px;padding:11px 14px;border-radius:12px;background:var(--badbg);color:var(--bad);font-size:14.5px}
.ebuy .ebuy-go,.ebuy .ebuy-sec-btn,.ebuy .ebuy-ghost{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:52px;padding:0 22px;border:0;border-radius:14px;font:inherit;font-size:16.5px;font-weight:500;cursor:pointer}
.ebuy .ebuy-go{width:100%;background:var(--yel);color:var(--ink)}
.ebuy .ebuy-sec-btn{background:var(--ink);color:#fff}
.ebuy .ebuy-ghost{background:var(--paper);color:var(--ink)}
.ebuy button:disabled{opacity:.55;cursor:progress}
.ebuy button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ebuy .ebuy-fine{margin:12px 0 0;font-size:12.5px;color:var(--mute);text-align:center}
.ebuy .ebuy-acts{display:grid;gap:10px;margin-top:6px}

/* payment in progress */
.ebuy .ebuy-spin{width:44px;height:44px;margin:4px 0 18px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--ink);animation:ebuy-spin .9s linear infinite}
@keyframes ebuy-spin{to{transform:rotate(1turn)}}
.ebuy .ebuy-warn{display:flex;gap:12px;margin:0 0 16px;padding:14px 16px;border-radius:14px;background:var(--warnbg);color:var(--warn);font-size:14.5px;line-height:1.45}
.ebuy .ebuy-warn .ebuy-i{margin-top:1px}

/* the licence */
.ebuy .ebuy-ok{display:flex;gap:14px;align-items:flex-start;margin-bottom:6px}
.ebuy .ebuy-ok>.ebuy-i{width:40px;height:40px;color:var(--ok)}
.ebuy .ebuy-lic{padding:18px;border-radius:18px;background:var(--paper);border:1px solid var(--line)}
.ebuy .ebuy-lict{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:500;color:var(--mute)}
.ebuy .ebuy-code{display:block;margin:10px 0 14px;padding:14px 16px;border-radius:12px;background:#fff;border:1px dashed #cfccc5;font:500 19px/1.35 "Geist Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;letter-spacing:.06em;word-break:normal;overflow-wrap:anywhere;user-select:all}
.ebuy .ebuy-lica{display:flex;flex-wrap:wrap;gap:8px}
.ebuy .ebuy-chip{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:500;cursor:pointer;transition:border-color .15s}
.ebuy .ebuy-chip.is-ok{border-color:var(--ok);color:var(--ok)}
.ebuy .ebuy-keep{display:flex;gap:10px;margin:14px 0 0;font-size:13.5px;color:var(--mute);line-height:1.45}
.ebuy .ebuy-keep .ebuy-i{width:16px;height:16px;margin-top:2px}
.ebuy .ebuy-mail{display:flex;gap:10px;margin:14px 0 0;font-size:14.5px;color:var(--mute)}
.ebuy .ebuy-mail .ebuy-i{margin-top:2px}
.ebuy .ebuy-how{margin:0 0 16px;padding-left:22px;color:var(--mute);font-size:14.5px;display:grid;gap:4px}
.ebuy .ebuy-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;margin:0 0 20px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);font-size:14px}
.ebuy .ebuy-dl dt{color:var(--mute)}
.ebuy .ebuy-dl dd{margin:0;text-align:right;word-break:break-word}

/* "are you sure" over the steps */
.ebuy .ebuy-conf{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:rgba(255,255,255,.88);backdrop-filter:blur(2px);z-index:2}
.ebuy .ebuy-cbox{width:min(380px,100%);padding:24px;border-radius:18px;background:#fff;box-shadow:0 18px 48px -16px rgba(16,16,16,.35);border:1px solid var(--line)}
.ebuy .ebuy-cbox>.ebuy-i{width:28px;height:28px;color:var(--warn)}
.ebuy .ebuy-cbox h3{margin:10px 0 6px;font-size:19px;font-weight:500;letter-spacing:-.01em}
.ebuy .ebuy-cbox p{margin:0 0 16px;color:var(--mute);font-size:14.5px}

/* the coupon's Apply button and its answer */
.ebuy .ebuy-apply{flex:none;height:36px;margin:0 6px 0 0;padding:0 14px;border:0;border-radius:9px;background:var(--ink);color:#fff;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.ebuy .ebuy-apply:disabled{opacity:.6;cursor:default}
.ebuy .ebuy-apply .ebuy-i{display:none}
.ebuy .ebuy-cmsg{margin:2px 0 0;font-size:13.5px;color:#a61b1b}
.ebuy .ebuy-cmsg.is-ok{color:var(--ok,#17803d)}
.ebuy .ebuy-in input[readonly]{color:var(--mute)}
/* after payment: the dark panel shows what was bought, not the plan choice */
.ebuy .ebuy-paid{display:none}
dialog.ebuy.is-done .ebuy-plans,dialog.ebuy.is-done .ebuy-sum > .ebuy-inc,dialog.ebuy.is-done .ebuy-tot,dialog.ebuy.is-done .ebuy-saving,dialog.ebuy.is-done .ebuy-offer{display:none}
dialog.ebuy.is-done .ebuy-paid{display:grid;gap:10px}
.ebuy .ebuy-paid-t{display:flex;gap:8px;align-items:center;margin:0;color:var(--yel);font-size:14px;font-weight:500}
.ebuy .ebuy-paid-t .ebuy-i{width:18px;height:18px}
.ebuy .ebuy-paid-amt{font-size:40px;font-weight:500;letter-spacing:-.02em;line-height:1.1}
.ebuy .ebuy-paid-plan{margin:-4px 0 6px;color:rgba(255,255,255,.8);font-size:15px}
.ebuy .ebuy-paid .ebuy-inc{display:grid}
.ebuy .ebuy-paid-next{margin:8px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.7);font-size:13.5px}
@media (max-width:760px){dialog.ebuy.is-done .ebuy-paid{gap:6px}.ebuy .ebuy-paid-amt{font-size:28px}.ebuy .ebuy-paid .ebuy-inc,.ebuy .ebuy-paid-next{display:none}}
/* the launch offer as an applied coupon ticket, and its burst */
.ebuy .ebuy-ticket{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,200,0,.12);border:1.5px dashed var(--yel);color:#fff}
.ebuy .ebuy-ticket[hidden]{display:none}
.ebuy .ebuy-ticket > .ebuy-i{flex:none;width:34px;height:34px;padding:8px;border-radius:9px;background:var(--yel);color:var(--ink)}
.ebuy .ebuy-tk-t b{display:block;font-size:14.5px;font-weight:600}
.ebuy .ebuy-tk-t small{display:block;color:rgba(255,255,255,.72);font-size:13px}
.ebuy .ebuy-ticket.is-pop{animation:ebuy-pop .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes ebuy-pop{0%{transform:scale(.85);opacity:0}100%{transform:none;opacity:1}}
.ebuy .ebuy-sum{position:relative}
.ebuy .ebuy-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
dialog.ebuy.is-done .ebuy-ticket{display:none}
@media (prefers-reduced-motion:reduce){.ebuy .ebuy-ticket.is-pop{animation:none}}
@media (hover:hover){
  .ebuy .ebuy-plan:not(:has(:disabled)):hover{border-color:rgba(255,255,255,.4)}
  .ebuy .ebuy-go:not(:disabled):hover{background:#ffd633}
  .ebuy .ebuy-chip:hover,.ebuy .ebuy-x:hover{border-color:#bdbab4;background:#fafaf9}
}
@media (prefers-reduced-motion:reduce){dialog.ebuy[open]{animation:none}.ebuy .ebuy-spin{animation-duration:3s}}

/* phone: a full-screen sheet, the summary as a short header */
@media (max-width:760px){
  dialog.ebuy{width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}
  .ebuy .ebuy-shell{grid-template-columns:1fr;grid-template-rows:auto 1fr;height:100dvh;max-height:none;overflow:auto}
  .ebuy .ebuy-sum{padding:18px 16px 16px;gap:12px;overflow:visible}
  .ebuy .ebuy-plans{grid-template-columns:1fr 1fr}
  .ebuy .ebuy-plan{flex-direction:column;align-items:flex-start;gap:2px;padding:12px}
  .ebuy .ebuy-inc,.ebuy .ebuy-sec,.ebuy .ebuy-saving{display:none}
  .ebuy .ebuy-tot{margin-top:0;padding-top:12px}
  .ebuy .ebuy-tot b{font-size:24px}
  .ebuy .ebuy-main{padding:16px 16px calc(24px + env(safe-area-inset-bottom,0px));overflow:visible}
  .ebuy .ebuy-top{position:sticky;top:0;z-index:1;margin:-16px -16px 16px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line)}
  .ebuy .ebuy-sl{display:none}
  .ebuy .ebuy-steps .is-on .ebuy-sl{display:inline}
  .ebuy .ebuy-grid{grid-template-columns:1fr}
  .ebuy .ebuy-h{font-size:23px}
  .ebuy .ebuy-conf{position:fixed}
  dialog.ebuy.is-locked .ebuy-plans,dialog.ebuy.is-locked .ebuy-offer{display:none}
  dialog.ebuy.is-locked .ebuy-tot{padding-top:0;border-top:0}
}
