.withdrawal-frame .deposit-title {
  left: 94px;
  transform: none;
}

.withdrawal-support {
  display: grid;
  width: 30px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.withdrawal-support img {
  width: 30px;
  height: 34px;
  object-fit: contain;
}

.withdrawal-content > .task-title {
  margin: 65px 0 12px;
}

.withdrawal-form {
  margin-top: 0;
  padding: 18px 23px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: #303030;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
}

.withdrawal-form [hidden] {
  display: none !important;
}

.withdrawal-form .field-label {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 15px;
}

.withdrawal-amount-row {
  display: flex;
  height: 40px;
  overflow: hidden;
  border-radius: 5px;
  background: #f3f3f3;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

#withdrawal-amount {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 0;
  outline-color: var(--gold);
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.withdrawal-all {
  width: 80px;
  flex: 0 0 80px;
  border: 0;
  background: linear-gradient(180deg, #fff4ad 0%, #e9cc4d 65%, #d0a91f 100%);
  color: #282828;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.withdrawal-available {
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(232, 197, 79, 0.2);
  border-radius: 6px;
  background: #282828;
  color: #ccc;
  font-size: 14px;
  line-height: 20px;
}

.withdrawal-available span {
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.withdrawal-type-field {
  margin-top: 18px;
}

.withdrawal-type-switch {
  display: grid;
  height: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 5px;
  background: #f3f3f3;
  color: #333;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.withdrawal-type-switch label {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.withdrawal-type-switch label:has(input:checked) {
  background: linear-gradient(180deg, #fff4ad 0%, #e9cc4d 65%, #d0a91f 100%);
}

.withdrawal-type-switch input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 0;
  appearance: none;
  border: 3px solid #aaa;
  border-radius: 50%;
  background: #777;
}

.withdrawal-type-switch input:checked {
  border-color: #a1a2ca;
  background: transparent;
}

.withdrawal-type-switch input:focus-visible {
  outline: 2px solid #777;
  outline-offset: 2px;
}

.withdrawal-new-bank {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.withdrawal-select-wrap {
  position: relative;
  height: 40px;
  border-radius: 5px;
  background: #f3f3f3;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.withdrawal-bank-trigger {
  padding-left: 15px;
  color: #555;
  font-size: 12px;
}

.withdrawal-bank-trigger.has-selection {
  color: #333;
}

.withdrawal-select-wrap select[hidden],
.withdrawal-bank-brand[hidden] {
  display: none;
}

.withdrawal-bank-picker .bank-confirm:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.withdrawal-select-wrap::after {
  position: absolute;
  top: calc(50% - 3px);
  right: 16px;
  width: 0;
  height: 0;
  border-top: 9px solid #333;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  pointer-events: none;
}

#withdrawal-bank,
.withdrawal-input {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 5px;
  outline-color: var(--gold);
  background: #f3f3f3;
  color: #333;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

#withdrawal-bank {
  padding-right: 38px;
  appearance: none;
  background: transparent;
  color: #555;
}

.withdrawal-input {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.withdrawal-bank-empty,
.withdrawal-error {
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid #777;
  border-radius: 5px;
  color: #ddd;
  font-size: 12px;
  line-height: 18px;
}

.withdrawal-existing-bank {
  margin-top: 22px;
}

.withdrawal-bank-empty {
  margin: 0;
}

.withdrawal-saved-fields {
  display: grid;
  gap: 20px;
}

.withdrawal-favourite-wrap:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.withdrawal-favourite-wrap {
  height: auto;
  min-height: 64px;
}

.withdrawal-favourite-wrap .withdrawal-bank-trigger {
  position: relative;
  height: auto;
  min-height: 64px;
  padding: 10px 38px 10px 12px;
}

.withdrawal-favourite-display {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.withdrawal-favourite-details {
  display: grid;
  min-width: 0;
  gap: 3px;
  overflow-wrap: anywhere;
  line-height: 18px;
}

.withdrawal-favourite-number {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.withdrawal-favourite-brand,
.withdrawal-favourite-brand img {
  display: block;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  object-fit: contain;
}

.withdrawal-error {
  border-color: #aa6262;
  color: #ffb4b4;
}

.withdrawal-demo-note {
  margin: 10px 8px 0;
  color: #eee;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

.withdrawal-frame:has(.withdrawal-favourite-dialog[open])::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  content: "";
  pointer-events: none;
}

.withdrawal-favourite-dialog {
  width: min(calc(100% - 40px), 366px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(232, 197, 79, 0.45);
  border-radius: 14px;
  background: #252525;
  color: #eee;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.withdrawal-favourite-dialog::backdrop {
  background: transparent;
}

.favourite-dialog-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(232, 197, 79, 0.3);
  border-radius: 12px;
  background: rgba(232, 197, 79, 0.08);
  color: var(--gold-bright);
  font-size: 30px;
}

.favourite-dialog-status {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.withdrawal-favourite-dialog h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 27px;
}

.favourite-dialog-account {
  display: grid;
  gap: 4px;
  margin: 18px 0 12px;
  padding: 12px 14px;
  border: 1px solid #454545;
  border-radius: 8px;
  background: #303030;
  font-size: 13px;
}

.favourite-dialog-number,
#favourite-dialog-privacy {
  color: #bbb;
  font-size: 12px;
  line-height: 18px;
}

#favourite-dialog-privacy {
  margin: 0;
}

.favourite-dialog-error {
  margin: 12px 0 0;
  color: #ffb4b4;
  font-size: 12px;
  line-height: 18px;
}

.favourite-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 22px;
}

.favourite-dialog-actions button {
  min-height: 42px;
  padding: 8px;
  border: 1px solid #666;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.favourite-dialog-actions .withdrawal-success-done {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff4ad, #e9cc4d);
  color: #222;
}

.favourite-dialog-actions button:hover {
  filter: brightness(1.1);
}

.favourite-dialog-actions button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.favourite-dialog-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.withdrawal-favourite-dialog.withdrawal-success-dialog {
  width: min(calc(100% - 40px), 380px);
  box-sizing: border-box;
  padding: 26px 24px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  color: #202124;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
  color-scheme: light;
}

.withdrawal-success-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.withdrawal-success-dialog h2 {
  margin: 0 0 16px;
  color: #202124;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.withdrawal-success-dialog > p {
  margin: 0;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.6;
}

.withdrawal-success-dialog a {
  color: #3c4043;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.withdrawal-success-dialog .withdrawal-success-transaction {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #f8f9fa;
  font-size: 13px;
}

.withdrawal-success-reference {
  color: #202124;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.withdrawal-success-dialog .withdrawal-success-demo {
  margin-top: 12px;
  color: #6b7075;
  font-size: 11px;
}

.withdrawal-success-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.withdrawal-success-done {
  min-width: 64px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3c4043;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.withdrawal-success-done:hover {
  background: #f1f3f4;
}

.withdrawal-success-done:focus-visible,
.withdrawal-success-dialog a:focus-visible {
  outline: 2px solid #596579;
  outline-offset: 3px;
}

.saved-bank-dialog-description {
  margin: 0;
  color: #ccc;
  font-size: 13px;
  line-height: 20px;
}

.saved-bank-options {
  display: grid;
  gap: 10px;
  max-height: min(350px, 42dvh);
  overflow-y: auto;
  margin-top: 18px;
  padding: 3px;
  scrollbar-width: thin;
  scrollbar-color: #8d7940 #252525;
}

.saved-bank-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid #484848;
  border-radius: 9px;
  background: #303030;
  color: #eee;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.saved-bank-option[aria-checked="true"] {
  border-color: var(--gold);
  background: rgba(232, 197, 79, 0.08);
}

.saved-bank-option:hover {
  border-color: var(--gold);
}

.saved-bank-option:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.saved-bank-option > img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.saved-bank-option-details {
  display: grid;
  min-width: 0;
  gap: 3px;
  overflow-wrap: anywhere;
  color: #bbb;
  font-size: 12px;
  line-height: 17px;
}

.saved-bank-option-details strong {
  color: #f4f4f4;
  font-size: 14px;
}

.saved-bank-option-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid #888;
  border-radius: 50%;
  color: #222;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.saved-bank-option[aria-checked="true"] .saved-bank-option-check {
  border-color: var(--gold);
  background: var(--gold);
}

.favourite-dialog-actions.saved-bank-dialog-actions {
  grid-template-columns: 1fr;
}

.withdrawal-actions {
  flex: 0 0 94px;
  padding: 27px 9px;
  background: #676767;
}

.withdrawal-submit {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff4ad 0%, #e9cc4d 65%, #d0a91f 100%);
  color: #090909;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.withdrawal-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 360px) {
  .withdrawal-frame .deposit-title {
    left: 70px;
    font-size: 20px;
  }

  .withdrawal-form {
    padding-right: 14px;
    padding-left: 14px;
  }

  .withdrawal-type-switch label {
    gap: 5px;
    font-size: 11px;
  }
}
