.finance-cabinet.finance-cabinet--checkout-expanded,
.finance-cabinet--checkout .finance-withdrawal-block.finance-withdrawal-block--expanded {
  min-height: 0;
}
.finance-withdrawal-block--expanded .withdrawal-directions {
  grid-template-columns: repeat(4, minmax(0, 170px));
  grid-template-rows: none;
  grid-auto-rows: 90px;
  justify-content: center;
  gap: 10px;
  height: auto;
  padding-inline: 10px;
}
.finance-withdrawal-block--expanded .withdrawal-directions > button {
  width: 100%;
  background-size: min(150px, 88%) auto;
}
.finance-withdrawal-block--expanded .withdrawal-directions > button i { color: #222; }
.withdrawal-direction-currency {
  position: absolute;
  top: 0;
  right: 8px;
  padding: 0 4px;
  background: #454de6;
  color: #fff;
  font: 11px/15px Roboto, sans-serif;
}
.finance-withdrawal-block--expanded .withdrawal-destination {
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  height: auto;
}
.finance-withdrawal-block--expanded .withdrawal-destination input,
.withdrawal-destination--extra select { width: 100%; min-width: 0; }
.withdrawal-destination--extra :is(select, input:last-child) { grid-column: 1; }
.withdrawal-destination--extra select {
  height: 43px;
  padding: 0 10px;
  border: 1px solid #8de5ff;
  background: #f7f7f7;
  color: #111;
  font: 16px Arial, sans-serif;
  color-scheme: light;
}
.finance-cabinet--checkout .finance-withdrawal-block--expanded .withdrawal-confirm { margin-top: 0; }
.withdrawal-verification {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 21px;
  padding: 12px 0 6px;
}
.withdrawal-verification__image {
  display: block;
  width: min(240px, 100%);
  height: 84px;
  color: #eeacd0;
}
.withdrawal-verification__input {
  width: min(230px, 100%);
  min-height: 43px;
  padding: 10px;
  border: 1px solid #8de5ff;
  background: #f7f7f7;
  color: #111;
  font: 18px Arial, sans-serif;
  text-align: center;
}
.withdrawal-verification__status {
  min-height: 1.5em;
  margin: 0;
  color: #b9f2bd;
  font-size: 13px;
  text-align: center;
}
.withdrawal-verification__input[aria-invalid="true"] { border-color: #ed5448; }
.finance-withdrawal-block--expanded .withdrawal-notice {
  position: static;
  margin: 0 21px 15px;
  text-align: center;
  font-size: 14px;
}
@media (max-width: 820px) {
  .finance-withdrawal-block--expanded .withdrawal-directions { grid-template-columns: repeat(2, minmax(0, 170px)); }
  .finance-withdrawal-block--expanded .withdrawal-destination { grid-template-columns: minmax(0, 1fr); }
  .withdrawal-destination--extra > span { grid-row: 3; }
}

.finance-cabinet--history { min-height: 291px; }
.sidebar--scrolling {
  --sidebar-visible-top: max(0px, var(--sidebar-scroll-top, 50px));
  position: sticky;
  top: var(--sidebar-visible-top);
  max-height: calc(100dvh - var(--sidebar-visible-top));
  overflow: hidden auto;
  scrollbar-width: thin;
}

.sidebar--scrolling > :is(.sidebar-card, .sidebar-up) {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
}

.sidebar--scrolling > .account-card + .player-card { margin-top: 2px; }
.settings-toast.withdrawal-verification__error { left: auto; min-width: 0; cursor: default; }
@media screen and (max-device-width: 1050px) {
  html:has(.sidebar--scrolling),
  body:has(.sidebar--scrolling) { overflow-x: clip !important; }
}

.payment-method-grid > button,
.finance-withdrawal-block--expanded .withdrawal-directions > button {
  opacity: .95;
  transition: .3s;
}

.payment-method-grid > button:is(:hover, .is-active),
.finance-withdrawal-block--expanded .withdrawal-directions > button:is(:hover, .is-active) {
  border: 1px solid #51c524;
  background-color: #bfffb4e3;
  box-shadow: 0 0 10px 5px #312f2f;
  opacity: 1;
}
.finance-withdrawal-block--expanded .withdrawal-destination:has(> select) {
  grid-template-columns: minmax(0, 430px) minmax(0, 312px);
  column-gap: 8px;
}
.finance-withdrawal-block--expanded .withdrawal-destination:has(> select) > span { display: none; }
.finance-withdrawal-block--expanded .withdrawal-destination:has(> select) > select {
  grid-column: auto;
  padding: 5px;
  background: #fff;
  font-size: 14px;
}
@media (max-width: 820px) {
  .finance-withdrawal-block--expanded .withdrawal-destination:has(> select) { grid-template-columns: minmax(0, 1fr); }
}

