/* The client portal on /funcionalidades/portal-de-clientes/
   (scripts/mockups/screens/client-portal.mjs): the portal's own shell — a
   wide sidebar in the product's sidebar tones, the organization's name over
   it and the client at its foot — around the portal home and one invoice.
   Base rules draw the resting scene (the home); [data-mk-scene] rules draw
   where each scene ends, and the motion between them sits at the bottom. */

.pn-frame[data-screen="client-portal"] {
  /* How far Waiting on you scrolls the home: its height less the window's. */
  --po-lift: -268px;
}

.pn-frame[data-screen="client-portal"] .pn-scroll { overflow: hidden; }

/* ---------- the sidebar ---------- */

.pn-frame[data-screen="client-portal"] .po-side {
  display: flex;
  flex: 0 0 200px;
  flex-direction: column;
  border-right: 1px solid #d8d7d3;
  background: #ecebe7;
  color: #27231f;
}

.pn-frame[data-screen="client-portal"] .po-brand {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
}

.pn-frame[data-screen="client-portal"] .po-mark {
  display: flex;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  overflow: hidden;
  border-radius: 7px;
}

.pn-frame[data-screen="client-portal"] .po-mark svg { width: 100%; height: 100%; }

.pn-frame[data-screen="client-portal"] .po-brand b {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-frame[data-screen="client-portal"] .po-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px;
}

.pn-frame[data-screen="client-portal"] .po-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  color: rgb(39 35 31 / 0.7);
  font-size: 12px;
}

/* The active item's bar, on the rail's edge (the product's -left-2.5). */
.pn-frame[data-screen="client-portal"] .po-item::before {
  content: '';
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #467557;
  opacity: 0;
}

.pn-frame[data-screen="client-portal"] .po-ni { width: 15px; height: 15px; flex: 0 0 auto; stroke-width: 1.75; }

.pn-frame[data-screen="client-portal"] .po-item.is-home,
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-invoices {
  background: #d2e3d7;
  color: #27231f;
  font-weight: 550;
}

.pn-frame[data-screen="client-portal"] .po-item.is-home::before,
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-invoices::before { opacity: 1; }

.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-home {
  background: transparent;
  color: rgb(39 35 31 / 0.7);
  font-weight: 400;
}

.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-home::before { opacity: 0; }

.pn-frame[data-screen="client-portal"] .po-foot {
  padding: 10px 11px 11px;
  border-top: 1px solid #d8d7d3;
}

.pn-frame[data-screen="client-portal"] .po-acct {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pn-frame[data-screen="client-portal"] .po-face {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #467557;
  color: #f9f8f5;
  font-size: 10.5px;
  font-weight: 650;
}

.pn-frame[data-screen="client-portal"] .po-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.pn-frame[data-screen="client-portal"] .po-who b { font-size: 11px; font-weight: 650; }
.pn-frame[data-screen="client-portal"] .po-who em { color: rgb(39 35 31 / 0.55); font-size: 9.5px; }

.pn-frame[data-screen="client-portal"] .po-who small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgb(39 35 31 / 0.45);
  font-size: 9.5px;
}

.pn-frame[data-screen="client-portal"] .po-org { width: 10px; height: 10px; flex: 0 0 auto; }
.pn-frame[data-screen="client-portal"] .po-chev { width: 12px; height: 12px; flex: 0 0 auto; color: rgb(39 35 31 / 0.55); }

/* ---------- the top bar ---------- */

.pn-frame[data-screen="client-portal"] .po-top { padding-left: 10px; }

.pn-frame[data-screen="client-portal"] .po-fold {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--ac-mut);
}

/* The page's title: two names in one place, one showing per scene. */
.pn-frame[data-screen="client-portal"] .po-titles { display: grid; }
.pn-frame[data-screen="client-portal"] .po-at { grid-area: 1 / 1; }
.pn-frame[data-screen="client-portal"] .po-at.is-invoices { visibility: hidden; }
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-at.is-home { visibility: hidden; }
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-at.is-invoices { visibility: visible; }

/* ---------- the pages ---------- */

.pn-frame[data-screen="client-portal"] .po-pages {
  display: grid;
  flex: 1 1 auto !important;
  min-height: 0;
}

.pn-frame[data-screen="client-portal"] .po-page { grid-area: 1 / 1; min-width: 0; }
.pn-frame[data-screen="client-portal"] .po-page.is-invoice { opacity: 0; visibility: hidden; }
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-page.is-home { opacity: 0; visibility: hidden; }
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-page.is-invoice { opacity: 1; visibility: visible; }

.pn-frame[data-screen="client-portal"] .po-home {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 30px 26px;
}

.pn-frame[data-screen="client-portal"] .po-link { color: var(--ac-accent); }
.pn-frame[data-screen="client-portal"] .po-link.is-strong { font-weight: 650; text-decoration: underline; }

.pn-frame[data-screen="client-portal"] .po-mono {
  font-family: var(--ac-mono);
  font-variant-numeric: tabular-nums;
}

.pn-frame[data-screen="client-portal"] .po-card .pn-card-body.is-flush { gap: 0; padding: 0; }

/* The action a CardHeader carries on its right. */
.pn-frame[data-screen="client-portal"] .pn-card-head > .po-pill,
.pn-frame[data-screen="client-portal"] .pn-card-head > .po-link,
.pn-frame[data-screen="client-portal"] .pn-card-head > .po-links {
  flex: 0 0 auto;
  align-self: center;
  font-size: 11.5px;
}

.pn-frame[data-screen="client-portal"] .po-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(70 117 87 / 0.1);
  color: var(--ac-accent);
  font-size: 10px !important;
  font-weight: 550;
}

.pn-frame[data-screen="client-portal"] .po-links { display: flex; gap: 14px; }

.pn-frame[data-screen="client-portal"] .po-btn.is-sm { padding: 5px 9px; font-size: 10.5px; }
.pn-frame[data-screen="client-portal"] .po-btn.is-sm svg { width: 12px; height: 12px; }

/* StatCard: label and icon, the figure, the hint. */
.pn-frame[data-screen="client-portal"] .po-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pn-frame[data-screen="client-portal"] .po-stat {
  padding: 12px 14px 11px;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: #fff;
}

.pn-frame[data-screen="client-portal"] .po-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: var(--ac-mut);
  font-size: 11.5px;
}

.pn-frame[data-screen="client-portal"] .po-si { width: 14px; height: 14px; flex: 0 0 auto; color: #a29e98; }

.pn-frame[data-screen="client-portal"] .po-stat-value {
  margin-top: 7px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.pn-frame[data-screen="client-portal"] .po-stat-hint { margin-top: 3px; color: #a29e98; font-size: 10px; }

/* What we need from you. */
.pn-frame[data-screen="client-portal"] .po-needs { display: flex; flex-direction: column; padding: 0; list-style: none; }

.pn-frame[data-screen="client-portal"] .po-need {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--ac-line);
}

.pn-frame[data-screen="client-portal"] .po-need:first-child { padding-top: 0; border-top: 0; }
.pn-frame[data-screen="client-portal"] .po-need:last-child { padding-bottom: 0; }
.pn-frame[data-screen="client-portal"] .po-need-text { flex: 1; min-width: 0; }
.pn-frame[data-screen="client-portal"] .po-need-title { font-size: 12px; font-weight: 550; }
.pn-frame[data-screen="client-portal"] .po-need-desc { margin-top: 2px; color: var(--ac-mut); font-size: 11.5px; }

.pn-frame[data-screen="client-portal"] .po-need-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 10px;
}

.pn-frame[data-screen="client-portal"] .po-need-meta .po-mono { color: #a29e98; }
.pn-frame[data-screen="client-portal"] .po-need-meta .po-mono.is-late { color: var(--ac-bad); font-weight: 550; }

.pn-frame[data-screen="client-portal"] .po-chip {
  padding: 1px 5px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 550;
}

.pn-frame[data-screen="client-portal"] .po-chip.is-bad { border-color: rgb(220 38 38 / 0.4); background: rgb(220 38 38 / 0.08); color: var(--ac-bad); }
.pn-frame[data-screen="client-portal"] .po-chip.is-accent { border-color: rgb(70 117 87 / 0.4); background: rgb(70 117 87 / 0.1); color: var(--ac-accent); }

/* The next meeting. */
.pn-frame[data-screen="client-portal"] .po-meet {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  font-size: 12px;
}

.pn-frame[data-screen="client-portal"] .po-meet b { font-weight: 550; }
.pn-frame[data-screen="client-portal"] .po-meet em { color: var(--ac-mut); }

/* Billing paid. */
.pn-frame[data-screen="client-portal"] .is-billing .pn-card-body { gap: 8px; }

.pn-frame[data-screen="client-portal"] .po-paid {
  align-self: flex-end;
  color: var(--ac-mut);
  font-family: var(--ac-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.pn-frame[data-screen="client-portal"] .po-bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef1;
}

.pn-frame[data-screen="client-portal"] .po-bar u { display: block; height: 100%; border-radius: inherit; background: var(--ac-good); }

/* Waiting on you. The rows carry their padding and hairline inside, so one
   can close to nothing without leaving its border behind. */
.pn-frame[data-screen="client-portal"] .po-wait { padding: 0; list-style: none; }
.pn-frame[data-screen="client-portal"] .po-wait-row { max-height: 60px; overflow: hidden; }

.pn-frame[data-screen="client-portal"] .po-wait-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--ac-line);
}

.pn-frame[data-screen="client-portal"] .po-wait-row:last-child .po-wait-in { border-bottom: 0; }

.pn-frame[data-screen="client-portal"] .po-wait-what {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}

.pn-frame[data-screen="client-portal"] .po-wait-title {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-frame[data-screen="client-portal"] .po-wait-what b.po-wait-title { font-variant-numeric: tabular-nums; font-weight: 550; }

.pn-frame[data-screen="client-portal"] .po-wait-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.pn-frame[data-screen="client-portal"] .po-wait-side .po-mono { color: var(--ac-mut); font-size: 10.5px; }

.pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-home,
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-home { translate: 0 var(--po-lift); }

.pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-wait-row.is-proposal,
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-wait-row.is-proposal { max-height: 0; opacity: 0; }

.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-wait-row.is-invoice .po-wait-in { background: #f6f6f4; }

/* The contact card. */
.pn-frame[data-screen="client-portal"] .po-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 12px;
}

/* ---------- the invoice ---------- */

.pn-frame[data-screen="client-portal"] .po-inv {
  display: flex;
  flex-direction: column;
  padding: 24px 30px 26px;
}

.pn-frame[data-screen="client-portal"] .po-back { color: var(--ac-accent); font-size: 11.5px; }

.pn-frame[data-screen="client-portal"] .po-inv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.pn-frame[data-screen="client-portal"] .po-inv-title { display: flex; align-items: center; gap: 10px; }
.pn-frame[data-screen="client-portal"] .po-inv-title .pn-badge { font-size: 10px; letter-spacing: 0; }

.pn-frame[data-screen="client-portal"] .po-inv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  align-items: start;
  gap: 18px;
  margin-top: 20px;
}

.pn-frame[data-screen="client-portal"] .po-inv-main { display: flex; flex-direction: column; gap: 18px; }

.pn-frame[data-screen="client-portal"] .po-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.pn-frame[data-screen="client-portal"] .po-lines td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ac-line);
  vertical-align: top;
}

.pn-frame[data-screen="client-portal"] .po-lines tr:last-child td { border-bottom: 0; }
.pn-frame[data-screen="client-portal"] .po-lines .is-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pn-frame[data-screen="client-portal"] .po-lines .is-muted { color: var(--ac-mut); }
.pn-frame[data-screen="client-portal"] .po-lines .is-strong { font-weight: 550; }

.pn-frame[data-screen="client-portal"] .po-terms { font-size: 11.5px; }
.pn-frame[data-screen="client-portal"] .po-notes { margin-top: -6px; color: var(--ac-mut); font-size: 11.5px; }

.pn-frame[data-screen="client-portal"] .po-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 0;
  margin: 0;
  font-size: 11.5px;
}

.pn-frame[data-screen="client-portal"] .po-totals dt { color: var(--ac-mut); }
.pn-frame[data-screen="client-portal"] .po-totals dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }

.pn-frame[data-screen="client-portal"] .po-totals .is-balance {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--ac-line);
  color: var(--ac-ink);
  font-weight: 650;
}

.pn-frame[data-screen="client-portal"] .po-pay {
  padding-top: 12px;
  border-top: 1px solid var(--ac-line);
}

.pn-frame[data-screen="client-portal"] .po-pay-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  font-size: 11.5px;
}

/* Pay now, and what it says while the checkout opens. */
.pn-frame[data-screen="client-portal"] .po-pay-at { display: grid; }
.pn-frame[data-screen="client-portal"] .po-pay-at em { grid-area: 1 / 1; justify-self: center; }
.pn-frame[data-screen="client-portal"] .po-pay-at .is-opening { visibility: hidden; }
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-pay-at .is-ready { visibility: hidden; }
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-pay-at .is-opening { visibility: visible; }
.pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-pay-btn { opacity: 0.55; }

.pn-frame[data-screen="client-portal"] .po-pay-note { margin-top: 7px; color: #a29e98; font-size: 9.5px; line-height: 1.45; }

/* ---------- the confirmation ---------- */

.pn-frame[data-screen="client-portal"] .po-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(17 19 24 / 0.25);
  opacity: 0;
  visibility: hidden;
}

.pn-frame[data-screen="client-portal"] .po-modal {
  width: 400px;
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(17 19 24 / 0.18), 0 2px 8px rgb(17 19 24 / 0.08);
}

.pn-frame[data-screen="client-portal"] .po-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px 13px;
  border-bottom: 1px solid var(--ac-line);
}

.pn-frame[data-screen="client-portal"] .po-modal-head p { font-size: 14.5px; font-weight: 650; }
.pn-frame[data-screen="client-portal"] .po-close { width: 15px; height: 15px; color: var(--ac-dim); }
.pn-frame[data-screen="client-portal"] .po-modal-body { padding: 15px 20px 18px; }
.pn-frame[data-screen="client-portal"] .po-modal-body > p { color: var(--ac-mut); font-size: 11.5px; }

.pn-frame[data-screen="client-portal"] .po-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Home: the figures and the cards come in, then the bell counts. */
  .pn-frame[data-screen="client-portal"][data-mk-scene="0"] .po-stat {
    animation: po-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.08s + var(--i) * 70ms) both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="0"] .po-home > .po-card {
    animation: po-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="0"] .po-home > .po-card.is-meeting { animation-delay: 0.5s; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="0"] .po-home > .po-card.is-billing { animation-delay: 0.6s; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="0"] .po-home > .po-card.is-waiting { animation-delay: 0.7s; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="0"] .po-home > .po-card.is-contact { animation-delay: 0.8s; }

  .pn-frame[data-screen="client-portal"][data-mk-scene="0"] .po-bell {
    animation: po-pop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) 1.3s both;
  }

  /* Waiting on you: down the page, Accept proposal, the dialog, confirm,
     and the proposal leaves the list. */
  .pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-home {
    animation: po-scroll 1.05s cubic-bezier(0.45, 0, 0.2, 1) 0.25s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-accept {
    animation: po-press 0.32s ease 2.3s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-overlay {
    animation: po-veil 1.85s linear 2.55s;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-modal {
    animation: po-dialog 1.85s ease 2.55s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-confirm {
    animation: po-press 0.32s ease 4s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="1"] .po-wait-row.is-proposal {
    animation: po-collapse 0.45s ease 4.5s both;
  }

  /* The invoice: its row under the pointer, the page, then Pay now. */
  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-wait-row.is-invoice .po-wait-in {
    animation: po-tint 0.2s ease 0.1s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-page.is-home { animation: po-held-shown 0.6s step-end; }

  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-page.is-invoice {
    animation: po-page-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-home { animation: po-held-on 0.6s step-end; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-home::before { animation: po-held-opaque 0.6s step-end; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-invoices { animation: po-held-off 0.6s step-end; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-item.is-invoices::before { animation: po-held-clear 0.6s step-end; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-at.is-home { animation: po-held-visible 0.6s step-end; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-at.is-invoices { animation: po-held-hidden 0.6s step-end; }

  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-pay-btn {
    animation: po-pay 0.36s ease 2.6s both;
  }

  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-pay-at .is-ready { animation: po-held-visible 2.8s step-end; }
  .pn-frame[data-screen="client-portal"][data-mk-scene="2"] .po-pay-at .is-opening { animation: po-held-hidden 2.8s step-end; }
}

@keyframes po-rise { from { opacity: 0; translate: 0 7px; } }
@keyframes po-pop { from { opacity: 0; scale: 0.3; } }
@keyframes po-scroll { from { translate: 0 0; } }

@keyframes po-press {
  0% { scale: 1; }
  45% { scale: 0.94; }
  100% { scale: 1; }
}

/* The dialog is up between the press and the confirmation, and gone after:
   no fill, so outside its window the closed state shows. */
@keyframes po-veil {
  0% { opacity: 0; visibility: visible; }
  8% { opacity: 1; visibility: visible; }
  91% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: visible; }
}

@keyframes po-dialog {
  0% { scale: 0.96; translate: 0 6px; }
  8%, 100% { scale: 1; translate: 0 0; }
}

@keyframes po-collapse { from { max-height: 60px; opacity: 1; } }
@keyframes po-tint { from { background: transparent; } }
@keyframes po-page-in { from { opacity: 0; translate: 0 8px; visibility: visible; } }

/* Held: the state before the switch, for as long as the switch waits. */
@keyframes po-held-shown { from, to { opacity: 1; visibility: visible; } }
@keyframes po-held-visible { from, to { visibility: visible; } }
@keyframes po-held-hidden { from, to { visibility: hidden; } }
@keyframes po-held-on { from, to { background: #d2e3d7; color: #27231f; font-weight: 550; } }
@keyframes po-held-off { from, to { background: transparent; color: rgb(39 35 31 / 0.7); font-weight: 400; } }
@keyframes po-held-opaque { from, to { opacity: 1; } }
@keyframes po-held-clear { from, to { opacity: 0; } }

/* Pressed, then dimmed while the checkout opens: the end is the scene's. */
@keyframes po-pay {
  0% { scale: 1; opacity: 1; }
  45% { scale: 0.96; opacity: 1; }
  100% { scale: 1; }
}
