:root.cco-open, :root.cco-open body { overflow: hidden; }
:root body.cpp .cco-scrim {
  position: fixed; inset: 0; z-index: 99998; background: rgba(27, 31, 36, .45);
  animation: cco-fade .2s var(--ease);
}
:root body.cpp .cco {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  max-height: calc(100dvh - 16px); display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--font);
  border-radius: var(--radius) var(--radius) 0 0;
  animation: cco-up .28s var(--ease);
}
:root body.cpp .cco-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 6px 6px 0 16px; border-bottom: 1px solid var(--rule);
}
:root body.cpp .cco-name {
  margin: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 800; font-stretch: 90%; color: var(--ink);
}
:root body.cpp .cco-name:focus { outline: none; }
:root body.cpp .cco-name:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:root body.cpp .cco-x {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer;
}
:root body.cpp .cco-x::before, :root body.cpp .cco-x::after {
  content: ""; position: absolute; left: 12px; top: 21px; width: 20px; height: 2px; background: var(--ink);
}
:root body.cpp .cco-x::before { transform: rotate(45deg); }
:root body.cpp .cco-x::after { transform: rotate(-45deg); }
:root body.cpp .cco-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
:root body.cpp .cco-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}
:root body.cpp .cco-total {
  margin: 0; font-size: 2.5rem; line-height: 1; letter-spacing: -.02em; font-weight: 800; font-stretch: 90%;
  font-variant-numeric: tabular-nums lining-nums;
}
:root body.cpp .cco-total.cco-soft { font-size: 1rem; line-height: 1.45; letter-spacing: 0; font-weight: 700; }
:root body.cpp .cco-line { margin: 6px 0 0; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
:root body.cpp .cco-line:empty { display: none; }
:root body.cpp .cco-label { display: block; margin: 20px 0 6px; font-size: 1rem; font-weight: 700; }
:root body.cpp .cco-words {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px; font: inherit; font-size: 1.0625rem;
  font-variant-numeric: tabular-nums; color: var(--ink); background: var(--paper);
  border: 2px solid #8a929d; border-radius: 8px;
}
:root body.cpp .cco-words:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
:root body.cpp .cco-hint { margin: 6px 0 0; font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
:root body.cpp .cco-go { width: 100%; margin-top: 16px; }
:root body.cpp .cco-go[hidden] { display: none; }
:root body.cpp .cco-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:root body.cpp .cco-msg {
  margin: 12px 0 0; padding: 12px 14px; font-size: .95rem; line-height: 1.4; font-weight: 600;
  color: var(--error); background: #fff8f7; box-shadow: inset 2px 0 0 var(--error); border-radius: 4px;
}
:root body.cpp .cco-msg[hidden] { display: none; }
:root body.cpp .cco-pay { margin-top: 16px; }
:root body.cpp .cco-pay:empty { margin-top: 0; }
:root body.cpp .cco-pay.cco-wait { min-height: 420px; background: rgba(217, 221, 225, .5); border-radius: 8px; }
@media (min-width: 760px) {
  :root body.cpp .cco {
    left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, 100vw - 48px); max-height: calc(100dvh - 48px);
    transform: translate(-50%, -50%); border-radius: var(--radius); animation: cco-fade .2s var(--ease);
  }
  :root body.cpp .cco-head { padding: 8px 12px 4px 28px; }
  :root body.cpp .cco-name { font-size: 1.375rem; }
  :root body.cpp .cco-body { padding: 16px 28px 24px; }
  :root body.cpp .cco-total { font-size: 2.75rem; }
}
@keyframes cco-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cco-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :root body.cpp .cco, :root body.cpp .cco-scrim { animation: none; }
}
:root body.cpp .cco-msg.cco-note { color: var(--ink); background: #e5ede7; box-shadow: none; }
:root body.cpp .cco-words::placeholder { color: var(--ink-soft); opacity: 1; }
:root body.cpp .cco-rule { color: var(--ink); font-weight: 600; }
:root body.cpp .cco-tick { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 16px 0 0; font-size: 1rem; font-weight: 700; cursor: pointer; }
:root body.cpp .cco-tick input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
:root body.cpp .cco-tick input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:root body.cpp .cco-longer { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
:root body.cpp .cco-longer.cco-longer-on { color: var(--ink); font-weight: 700; }
:root body.cpp .cco-longer:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:root body.cpp .cco-pay[hidden] { display: none; }
:root body.cpp .cco-long[hidden], :root body.cpp .cco-longer[hidden] { display: none; }
