/* Fiji Tap demo fixes, 12 November 2026. Unlayered, loaded last, so it wins over the shared kits. */

/* The flying butterfly goes behind the page content, so it never covers text or buttons.
   The body is made see-through so the butterfly shows in the gaps; the page colour still comes from <html>. */
html body{background:transparent}
.dimau-bf{z-index:-1}

/* The demo button keeps its blue glass look while a payment runs (it used to fall back to a red rule). */
html body .play:disabled,
html body .play:disabled:hover{
  background:linear-gradient(rgba(255,255,255,.94),rgba(217,239,255,.76));
  color:#0b2540;
  box-shadow:0 0 0 1px rgba(95,177,244,.36),0 2px 10px rgba(30,144,255,.2);
  opacity:.6;
  transform:none;
}

/* Feedback sits in the page instead of floating over the payment buttons and the chat button.
   Phones already did this (design.css); now desktop does too. */
html body .fb-open{position:static;margin:24px 72px 0 auto;width:max-content}

/* The shared chat button fades away while it would cover a payment button (see app.js). */
#dimau-connect-launcher{transition:opacity .2s ease}
html.tap-launcher-clear #dimau-connect-launcher{opacity:0;pointer-events:none;visibility:hidden}

/* The story steps (01 Tap to pay / 02 See the sale / 03 Build a history) as one tidy row that
   lights up step by step during a payment (app.js setStep). Phones still hide it (design.css). */
html body ol.hero-proof{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:28px 0 0;padding:6px}
html body ol.hero-proof li{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 10px;border-radius:14px;
  color:#33506b;transition:background .25s ease,color .25s ease,box-shadow .25s ease}
html body ol.hero-proof li span{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;
  background:rgba(104,191,229,.25);color:#012169;font:700 11px/1 Arial,Helvetica,sans-serif;transition:inherit}
html body ol.hero-proof li b{display:block;margin:0;font:600 12.5px/1.25 Arial,Helvetica,sans-serif;color:inherit}
html body ol.hero-proof li.on{background:#012169;color:#fff;box-shadow:0 4px 14px rgba(1,33,105,.3)}
html body ol.hero-proof li.on span{background:#fff;color:#012169}
html body ol.hero-proof li.done{color:#012169}
html body ol.hero-proof li.done span{background:#012169;color:#fff}
html body ol.hero-proof li.done span{font-size:0}
html body ol.hero-proof li.done span::after{content:"✓";font-size:12px}
@media (prefers-reduced-motion:reduce){html body ol.hero-proof li,html body ol.hero-proof li span{transition:none}}

/* Makes "Try the demo" the main path: the wallet buttons read as the alternative. */
html body .rail-caption{margin:14px 0 8px;font:600 12px/1.3 Arial,Helvetica,sans-serif;color:#33506b;text-align:center}

/* Say what each demo account is for. */
html body nav.account-entry{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;align-items:start}
html body nav.account-entry .acct-opt{display:flex;flex-direction:column;gap:6px;min-width:0}
html body nav.account-entry .acct-opt a{width:100%;box-sizing:border-box;justify-content:center}
html body nav.account-entry .acct-opt p,html body nav.account-entry .acct-note{margin:0;font:400 12.5px/1.4 Arial,Helvetica,sans-serif;color:#0b2540}
html body nav.account-entry .acct-note{grid-column:1/-1;color:#0b3a5c;font-size:12px}
/* The shared pill-row kit forces .account-entry into one sideways-scrolling line (with !important and
   two :not(#id) for weight). Here each pill sits above its description, so keep the grid. */
/* That kit rule lives in @layer dimau-history-lighting, and a layered !important beats any unlayered one,
   so this override goes in the same layer with a heavier selector. */
@layer dimau-history-lighting{
html:root body:not(#tap-a):not(#tap-b):not(#tap-c) nav.account-entry{display:grid!important;flex-wrap:wrap!important;align-items:start!important;overflow:visible!important;padding-bottom:0!important}
html:root body:not(#tap-a):not(#tap-b):not(#tap-c) nav.account-entry .acct-opt{flex:none!important;width:auto!important}
html:root body:not(#tap-a):not(#tap-b):not(#tap-c) nav.account-entry .acct-opt a{display:flex!important;width:max-content!important;max-width:100%!important;flex:none!important;margin:0!important;transform:none!important;align-self:flex-start!important}
}

/* The payoff: the merchant's sales record, shown after the first demo tap (app.js updateSalesRecord). */
html body .sales-record{margin:16px 0 0;padding:16px 16px 14px;border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(225,242,255,.9));
  box-shadow:0 0 0 1px rgba(95,177,244,.4),0 6px 20px rgba(1,33,105,.12);color:#0b2540;text-align:left}
html body .sales-record[hidden]{display:none}
html body .sales-record .sr-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
html body .sales-record h3{margin:0;font:700 12px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#012169}
html body .sales-record .sr-badge{font:700 10px/1 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#012169;
  background:rgba(104,191,229,.25);border-radius:999px;padding:5px 9px}
html body .sales-record .sr-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
html body .sales-record .sr-stats div{background:#fff;border-radius:10px;padding:10px 8px;box-shadow:0 0 0 1px rgba(1,33,105,.08);min-width:0}
html body .sales-record .sr-stats b{display:block;font:700 20px/1.15 Arial,Helvetica,sans-serif;color:#012169;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html body .sales-record .sr-stats span{display:block;margin-top:3px;font:500 11.5px/1.3 Arial,Helvetica,sans-serif;color:#33506b}
html body .sales-record p{margin:0 0 8px;font:400 13.5px/1.45 Arial,Helvetica,sans-serif;color:#0b2540}
html body .sales-record .sr-next{font-weight:700;color:#012169}
html body .sales-record .sr-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font:700 14px/1.2 Arial,Helvetica,sans-serif;color:#012169;text-decoration:underline;text-underline-offset:3px}
html body .sales-record.bump .sr-stats div{animation:srBump .6s ease}
@keyframes srBump{0%{transform:scale(1)}35%{transform:scale(1.05);box-shadow:0 0 0 2px #68BFE5}100%{transform:scale(1)}}
@media (max-width:600px){html body .sales-record .sr-stats b{font-size:17px}}
@media (prefers-reduced-motion:reduce){html body .sales-record.bump .sr-stats div{animation:none}}
