/* CashOutLayout (4563) paints one stationary title and fade over all three screens. */
#main > :is(.ch-home, .cashout-amount, .cw-page) {
  --cashout-gutter: 20px;
  width: min(100%, 540px);
  padding-inline: var(--cashout-gutter);
  padding-top: 0;
}
#main :is(.ch-header, .ca-header, .cw-header) {
  position: sticky;
  top: var(--mast);
  z-index: 2;
  isolation: isolate;
  box-sizing: border-box;
  height: calc(56px + env(safe-area-inset-top));
  padding-top: calc(12px + env(safe-area-inset-top));
  pointer-events: none;
}
#main :is(.ch-header, .ca-header, .cw-header)::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--cashout-gutter)) auto;
  height: calc(88px + env(safe-area-inset-top));
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, #0c0b1c 65%, rgba(12,11,28,0));
}
#main :is(.ch-header, .ca-header, .cw-header) h1 {
  grid-column: 2;
  align-self: center;
  margin: 0;
  text-align: center;
  font: 500 16px/22px Manrope, sans-serif;
  letter-spacing: normal;
  color: #fff;
  background: linear-gradient(to bottom, #fff 38%, #887cee);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#main :is(.ch-header, .ca-header, .cw-header) button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  pointer-events: auto;
}
:root[data-nav-cashout-header] #main :is(.ch-header, .ca-header, .cw-header) {
  view-transition-name: cashout-header;
}
::view-transition-group(cashout-header) { z-index: 1; animation: none; }
::view-transition-old(cashout-header) { animation: none; opacity: 0; }
::view-transition-new(cashout-header) { animation: none; }
@media (max-width: 760px) {
  body:has(#main > :is(.ch-home, .cashout-amount, .cw-page)) > :is(.mast, .bottom-nav) { display: none; }
  #main:has(> :is(.ch-home, .cashout-amount, .cw-page)) { padding: 0; }
  #main > :is(.ch-home, .cashout-amount, .cw-page) {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
  }
  #main :is(.ch-header, .ca-header, .cw-header) { top: 0; }
  #main .cashout-amount { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  #main .ca-content { min-height: calc(100dvh - 68px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  #main .cw-page .controls:has(.cw-scroll) { height: max(380px, calc(100dvh - 68px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
}
@media (forced-colors: active) {
  #main :is(.ch-header, .ca-header, .cw-header) h1 { -webkit-text-fill-color: CanvasText; }
}
