.ck-drawer {
  --ck-paper: #f6f2e9;
  --ck-ink: #201f1c;
  --ck-muted: #635f57;
  --ck-rule: #d6d0c5;
  --ck-accent: #f04a32;
  --ck-display: var(--display, Impact, "Arial Narrow", sans-serif);
  --ck-mono: var(--mono, "Courier New", monospace);
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgb(32 31 28 / 15%);
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  color: var(--ck-ink);
  background: var(--ck-paper);
  box-shadow: -18px 0 90px rgb(0 0 0 / 20%);
  font:
    400 15px/1.4 Arial,
    Helvetica,
    sans-serif;
  text-align: left;
  color-scheme: light;
}

.ck-drawer:not([open]),
.ck-drawer [hidden] {
  display: none !important;
}
.ck-drawer[open] {
  display: block;
  animation: ck-enter 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ck-drawer::backdrop {
  background: rgb(12 15 15 / 65%);
  backdrop-filter: blur(4px);
  animation: ck-fade 240ms ease-out;
}
.ck-drawer *,
.ck-drawer *::before,
.ck-drawer *::after {
  box-sizing: border-box;
}
.ck-drawer :is(h2, h3, p, fieldset, legend) {
  margin: 0;
  padding: 0;
}
.ck-drawer button,
.ck-drawer input {
  font: inherit;
}
.ck-drawer button {
  cursor: pointer;
}
.ck-drawer svg {
  display: block;
  width: 21px;
  height: 21px;
}
.ck-panel {
  padding: max(32px, env(safe-area-inset-top)) 32px
    max(32px, env(safe-area-inset-bottom));
}
.ck-header {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ck-ink);
  background: transparent;
}
.ck-drawer .ck-kicker,
.ck-caption,
.ck-total small {
  font: 600 10px/1.5 var(--ck-mono);
  letter-spacing: 0.095em;
  text-transform: uppercase;
}
.ck-drawer .ck-kicker {
  color: #a83120;
  margin-bottom: 5px;
}
.ck-drawer .ck-title {
  color: var(--ck-ink);
  font-family: var(--ck-display);
  font-weight: 800;
  font-size: clamp(35px, 7vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.ck-title:focus {
  outline: none;
}
.ck-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  padding: 0;
  border: 1px solid var(--ck-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ck-ink);
}
.ck-close:hover {
  border-color: var(--ck-ink);
  background: #eae5da;
}
.ck-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding-top: 24px;
}
.ck-product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ck-product-art {
  flex: none;
  width: 52px;
  height: 48px;
  object-fit: contain;
}
.ck-product h3 {
  font:
    700 19px/1.25 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -0.04em;
}
.ck-product p {
  color: var(--ck-muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}
.ck-product p span[aria-hidden] {
  margin-inline: 4px;
}
.ck-platform,
.ck-edition {
  min-width: 0;
  border: 0;
}
.ck-platform legend,
.ck-edition legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ck-ink);
  font-size: 14px;
  font-weight: 700;
}
.ck-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.ck-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.ck-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.ck-option-body {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #a9a49a;
  border-radius: 3px;
  color: var(--ck-ink);
  font-size: 14px;
  font-weight: 600;
}
.ck-radio {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: none;
  border: 1px solid #847f76;
  border-radius: 50%;
}
.ck-option input:checked + .ck-option-body {
  background: #eae5da;
  box-shadow: inset 0 0 0 1px var(--ck-ink);
  border-color: var(--ck-ink);
}
.ck-option input:checked + .ck-option-body .ck-radio {
  border-color: var(--ck-ink);
}
.ck-option input:checked + .ck-option-body .ck-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ck-ink);
  border-radius: 50%;
}
.ck-summary {
  padding: 15px 0 0;
  border-top: 1px solid var(--ck-rule);
  color: var(--ck-ink);
}
.ck-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ck-line + .ck-line {
  margin-top: 8px;
}
.ck-savings {
  color: #a83120;
}
.ck-line.ck-total {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--ck-rule);
  font-size: 22px;
}
.ck-total small {
  color: var(--ck-muted);
}
.ck-drawer .ck-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--ck-ink);
  border-radius: 3px;
  background: var(--ck-ink);
  color: var(--ck-paper);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  transition:
    background-color 0.18s,
    color 0.18s;
}
.ck-drawer .ck-action:enabled:hover {
  background: var(--ck-accent);
  color: #191511;
  border-color: var(--ck-accent);
}
.ck-action svg {
  transition: transform 0.2s;
}
.ck-action:enabled:hover svg {
  transform: translateX(3px);
}
.ck-form .ck-caption {
  margin-top: -17px;
  color: var(--ck-muted);
  text-align: center;
}
.ck-drawer .ck-action:disabled {
  color: #645e55;
  background: #e9e4d9;
  border-color: var(--ck-rule);
  cursor: default;
}
.ck-action:disabled svg {
  visibility: hidden;
}
.ck-drawer button:focus-visible,
.ck-drawer input:not([type="radio"]):focus-visible,
.ck-option input:focus-visible + .ck-option-body {
  outline: 2px solid #a83120;
  outline-offset: 4px;
}
@keyframes ck-enter {
  from {
    transform: translateX(36px);
    opacity: 0.55;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes ck-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 480px) {
  .ck-drawer {
    border-left: 0;
  }
  .ck-panel {
    padding-inline: 20px;
    padding-top: max(22px, env(safe-area-inset-top));
  }
  .ck-header {
    padding-bottom: 18px;
  }
  .ck-form {
    gap: 21px;
  }
}
@media (max-width: 345px) {
  .ck-options {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ck-drawer[open],
  .ck-drawer::backdrop,
  .ck-action svg,
  .ck-drawer .ck-action {
    animation: none;
    transition: none;
  }
}

/* ── payment method + crypto panel ──────────────────────────────────── */
.ck-method {
  min-width: 0;
  border: 0;
}
.ck-method legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ck-ink);
  font-size: 14px;
  font-weight: 700;
}
.ck-off {
  font: 600 9px/1 var(--ck-mono);
  letter-spacing: 0.06em;
  color: #a83120;
  background: #ffded2;
  border: 1px solid #e8a18b;
  border-radius: 2px;
  padding: 3px 5px;
  margin-left: 5px;
  vertical-align: 1px;
}
.ck-pay {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 18px;
}
.ck-pay[hidden],
.ck-form[hidden] {
  display: none !important;
}
.ck-payment-details {
  display: grid;
  gap: 12px;
}
.ck-reference {
  overflow-wrap: anywhere;
  color: var(--ck-muted);
  font: 11px/1.45 var(--ck-mono);
}
.ck-pay > [data-ck="retry"] {
  align-self: start;
  padding: 9px 12px;
  border: 1px solid var(--ck-rule);
  border-radius: 3px;
  background: transparent;
  color: var(--ck-ink);
  font-size: 13px;
}
.ck-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ck-muted);
  font: 600 11px/1 var(--ck-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ck-back:hover {
  color: var(--ck-ink);
}
.ck-back svg {
  width: 15px;
  height: 15px;
}
.ck-drawer .ck-pay-title {
  font-family: var(--ck-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ck-pay-lead {
  color: var(--ck-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: -7px;
}
.ck-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.ck-drawer .ck-asset {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #a9a49a;
  border-radius: 3px;
  background: transparent;
  color: var(--ck-ink);
  text-align: left;
}
.ck-asset b {
  font: 700 13px/1.2 Arial, sans-serif;
  letter-spacing: 0.02em;
}
.ck-asset span {
  color: var(--ck-muted);
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-drawer .ck-asset:hover {
  border-color: var(--ck-ink);
}
.ck-drawer .ck-asset.is-on {
  background: #eae5da;
  border-color: var(--ck-ink);
  box-shadow: inset 0 0 0 1px var(--ck-ink);
}
.ck-coin {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ck-rule);
  border-radius: 3px;
  background: #fffdf8;
}
.ck-qr {
  flex: none;
  width: 118px;
  height: 118px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ck-rule);
  border-radius: 2px;
}
.ck-qr-code,
.ck-qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}
.ck-qr-fail {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ck-muted);
  font-size: 11px;
  text-align: center;
}
.ck-detail {
  min-width: 0;
}
.ck-due {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}
.ck-due span:first-child {
  flex-basis: 100%;
  margin-bottom: 4px;
  color: var(--ck-muted);
  font: 600 9px/1 var(--ck-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ck-due strong {
  font: 800 21px/1 var(--ck-display);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ck-due span:last-child {
  font: 600 11px/1 var(--ck-mono);
  color: var(--ck-muted);
}
.ck-usd {
  margin-top: 7px;
  color: var(--ck-muted);
  font-size: 11px;
  line-height: 1.4;
}
.ck-network {
  margin-top: 5px;
  color: #a83120;
  font-size: 10px;
  line-height: 1.4;
}
.ck-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border: 1px dashed #a9a49a;
  border-radius: 3px;
  background: #eae5da;
}
.ck-addr code {
  min-width: 0;
  flex: 1;
  font: 400 11px/1.45 var(--ck-mono);
  overflow-wrap: anywhere;
}
.ck-drawer .ck-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 6px 9px;
  border: 1px solid var(--ck-ink);
  border-radius: 2px;
  background: var(--ck-ink);
  color: var(--ck-paper);
  font: 700 10px/1 Arial, sans-serif;
}
.ck-copy svg {
  width: 13px;
  height: 13px;
}
.ck-drawer .ck-copy:hover,
.ck-drawer .ck-copy.is-done {
  background: #2f7d4f;
  border-color: #2f7d4f;
}
.ck-addr-actions {
  display: flex;
  gap: 8px;
}
.ck-drawer .ck-copy-alt {
  background: transparent;
  color: var(--ck-ink);
}
.ck-drawer .ck-copy-alt:hover {
  background: #2f7d4f;
  border-color: #2f7d4f;
  color: #fff;
}
.ck-wallet {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--ck-rule);
  border-radius: 2px;
  color: var(--ck-ink);
  font: 700 10px/1 Arial, sans-serif;
  text-decoration: none;
}
.ck-wallet:hover {
  border-color: var(--ck-ink);
}
.ck-lock {
  color: var(--ck-muted);
  font: 600 10px/1.4 var(--ck-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ck-steps {
  margin: 0;
  padding-left: 17px;
  color: var(--ck-muted);
  font-size: 12px;
  line-height: 1.6;
}
.ck-steps li::marker {
  color: #a83120;
  font-weight: 700;
}
.ck-steps b {
  color: var(--ck-ink);
}
.ck-drawer .ck-send {
  justify-content: center;
  text-align: center;
  text-decoration: none;
  margin-top: 2px;
}
.ck-pay .ck-caption {
  margin-top: -10px;
}
@media (max-width: 400px) {
  .ck-coin {
    flex-direction: column;
    align-items: stretch;
  }
  .ck-qr {
    align-self: center;
  }
}

.ck-why {
  margin-top: 9px;
  padding: 9px 11px;
  border-left: 2px solid #e8a18b;
  background: #ffded24d;
  color: #5c4a42;
  font-size: 11px;
  line-height: 1.5;
}
.ck-why b {
  color: #843421;
}
