/* Nạp/Rút use the same record_bg and btn_close2 skin as Đơn cược. */
#hv-wallet-overlay {
  background: rgba(0, 0, 0, .58);
  backdrop-filter: none;
}

#hv-wallet-overlay .hv-modal,
#hv-wallet-overlay.is-withdraw .hv-modal,
#hv-wallet-overlay:not(.is-withdraw) .hv-modal,
#hv-wallet-overlay[data-pane="crypto"] .hv-modal,
#hv-wallet-overlay[data-pane="bank-result"] .hv-modal {
  width: min(1544px, 96vw, calc(94dvh * 1.68375));
  height: auto;
  aspect-ratio: 1544 / 917;
  min-height: 0;
  max-height: 94dvh;
  border: 0;
  border-radius: 10px;
  background: url('/branding/hv368-popup-frame.png') center / 100% 100% no-repeat;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .72);
  color: #f4e7c8;
}

#hv-wallet-overlay .hv-wallet-popup-header {
  flex: 0 0 11%;
  justify-content: flex-start;
  min-height: 0;
  padding: 0 15% 0 4%;
}

#hv-wallet-overlay .hv-modal-title {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #ffb97a;
  font-size: clamp(24px, 2.3vw, 37px);
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 2px 2px #5a210d, 0 0 5px #b65b1b;
}

#hv-wallet-overlay .hv-modal-title::before,
#hv-wallet-overlay .hv-modal-title::after { display: none; }

#hv-wallet-overlay .hv-close {
  top: 0;
  right: 0;
  width: clamp(88px, 12%, 185px);
  height: auto;
  aspect-ratio: 231 / 146;
  border: 0;
  border-radius: 0;
  background: url('/remote/resources/native/f2/f283ea89-6c11-47e1-afe5-80923188b4d0.80560.png') center / 100% 100% no-repeat;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  text-shadow: none;
}

#hv-wallet-overlay .hv-modal-head,
#hv-wallet-overlay.is-withdraw .hv-modal-head {
  flex: 0 0 8%;
  height: auto;
  margin: 0 3.5%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #a97532;
  background: none;
}

#hv-wallet-overlay .hv-tabs {
  gap: 8px;
  width: 100%;
  max-width: 1100px;
}

#hv-wallet-overlay .hv-tab {
  min-height: 39px;
  padding: 5px 9px;
  border: 1px solid #8d632c;
  border-radius: 5px;
  background: linear-gradient(#30251f, #17110f 50%, #0d0b0a);
  box-shadow: inset 0 1px #d5aa6140, 0 2px 3px #0007;
  color: #e4d7b8;
  font-size: clamp(13px, 1.2vw, 19px);
  text-shadow: 0 1px 2px #000;
}

#hv-wallet-overlay .hv-tab.active {
  border-color: #d5a05a;
  background: linear-gradient(#713722, #3a1b16 55%, #1b0e0c);
  box-shadow: inset 0 1px #edbd7b, 0 2px 4px #0008;
  color: #ffe9bf;
  text-shadow: 0 1px #29100b;
}

#hv-wallet-overlay .hv-content,
#hv-wallet-overlay.is-withdraw .hv-content {
  flex: 1;
  min-height: 0;
  margin: 0 3.5% 3%;
  padding: clamp(12px, 2vw, 32px);
  border: 1px solid #98703c;
  border-radius: 8px;
  background: linear-gradient(#17131399, #090808b8);
  box-shadow: inset 0 1px #c8995455;
  scrollbar-color: #9d6e32 #15100e;
}

#hv-wallet-overlay .hv-input,
#hv-wallet-overlay .hv-select,
#hv-wallet-overlay .hv-transfer-input {
  border: 1px solid #98703c;
  border-radius: 5px;
  background: linear-gradient(#29211c, #0d0b0a);
  box-shadow: inset 0 2px 4px #0008;
  color: #f4e8cb;
}

#hv-wallet-overlay .hv-submit,
#hv-wallet-overlay .hv-transfer-submit {
  border: 1px solid #d2a061;
  border-radius: 6px;
  background: linear-gradient(#9b3d2a, #631b16 52%, #320c0b);
  box-shadow: inset 0 1px #e9ad72, 0 3px 6px #0009;
  color: #ffe5ba;
  text-shadow: 0 1px #270907;
}

#hv-wallet-overlay .hv-transfer-submit {
  min-height: 54px;
  font-size: clamp(22px, 2vw, 30px);
}

#hv-wallet-overlay .hv-bank-start {
  width: min(860px, 88%);
  max-width: none;
}

#hv-wallet-overlay .hv-bank-prompt {
  margin-bottom: 28px;
  font-size: clamp(21px, 1.7vw, 27px);
}

#hv-wallet-overlay .hv-bank-start .hv-form-row {
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 62px;
  margin: 18px 0;
}

#hv-wallet-overlay .hv-bank-start .hv-label,
#hv-wallet-overlay .hv-withdraw-form .hv-label {
  font-size: clamp(19px, 1.5vw, 23px);
}

#hv-wallet-overlay .hv-bank-start .hv-input,
#hv-wallet-overlay .hv-withdraw-form .hv-input {
  min-height: 60px;
  font-size: clamp(18px, 1.5vw, 22px);
}

#hv-wallet-overlay .hv-bank-start .hv-submit,
#hv-wallet-overlay .hv-withdraw-form .hv-submit {
  min-width: 225px;
  min-height: 56px;
  font-size: 22px;
}

#hv-wallet-overlay .hv-withdraw-form {
  width: min(850px, 88%);
  margin: 0 auto;
}

#hv-wallet-overlay .hv-withdraw-form .hv-form-row {
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 62px;
  margin: 17px 0;
}

#hv-wallet-overlay .hv-transfer-form {
  justify-content: center;
  width: min(730px, 88%);
}

#hv-wallet-overlay .hv-transfer-input { min-height: 62px; }

@media (max-height: 570px) and (min-width: 601px) {
  #hv-wallet-overlay .hv-wallet-popup-header { flex-basis: 10%; }
  #hv-wallet-overlay .hv-modal-title { font-size: clamp(19px, 3.5vh, 27px); }
  #hv-wallet-overlay .hv-close { width: clamp(70px, 11%, 125px); }
  #hv-wallet-overlay .hv-modal-head,
  #hv-wallet-overlay.is-withdraw .hv-modal-head { flex-basis: 9%; }
  #hv-wallet-overlay .hv-tab { min-height: 28px; font-size: 12px; }
  #hv-wallet-overlay .hv-content,
  #hv-wallet-overlay.is-withdraw .hv-content { margin-bottom: 2%; padding: 7px 12px; }
  #hv-wallet-overlay .hv-transfer-submit { min-height: 38px; font-size: 20px; }
  #hv-wallet-overlay .hv-bank-prompt { margin-bottom: 8px; font-size: 13px; }
  #hv-wallet-overlay .hv-bank-start .hv-form-row,
  #hv-wallet-overlay .hv-withdraw-form .hv-form-row { min-height: 34px; margin: 5px 0; grid-template-columns: 120px minmax(0, 1fr); }
  #hv-wallet-overlay .hv-bank-start .hv-label,
  #hv-wallet-overlay .hv-withdraw-form .hv-label { font-size: 13px; }
  #hv-wallet-overlay .hv-bank-start .hv-input,
  #hv-wallet-overlay .hv-withdraw-form .hv-input { min-height: 34px; font-size: 13px; }
  #hv-wallet-overlay .hv-bank-start .hv-submit,
  #hv-wallet-overlay .hv-withdraw-form .hv-submit { min-height: 36px; font-size: 14px; }
  #hv-wallet-overlay .hv-transfer-input { min-height: 34px; }
}

@media (max-width: 600px) and (orientation: portrait) {
  #hv-wallet-overlay .hv-modal,
  #hv-wallet-overlay.is-withdraw .hv-modal,
  #hv-wallet-overlay:not(.is-withdraw) .hv-modal,
  #hv-wallet-overlay[data-pane="crypto"] .hv-modal,
  #hv-wallet-overlay[data-pane="bank-result"] .hv-modal {
    width: 98vw;
    height: 96dvh;
    max-height: 96dvh;
    aspect-ratio: auto;
  }
  #hv-wallet-overlay .hv-wallet-popup-header { flex: 0 0 7%; padding: 0 64px 0 5%; }
  #hv-wallet-overlay .hv-modal-title { font-size: 20px; }
  #hv-wallet-overlay .hv-close { width: 64px; }
  #hv-wallet-overlay .hv-modal-head,
  #hv-wallet-overlay.is-withdraw .hv-modal-head { flex: 0 0 8%; margin: 0 3%; }
  #hv-wallet-overlay .hv-tabs { gap: 4px; flex-wrap: nowrap; }
  #hv-wallet-overlay .hv-tab { min-height: 38px; padding: 3px 2px; font-size: 10px; }
  #hv-wallet-overlay .hv-content,
  #hv-wallet-overlay.is-withdraw .hv-content { margin: 0 3% 3%; padding: 10px; }
  #hv-wallet-overlay .hv-transfer-submit { min-height: 46px; font-size: 22px; }
  #hv-wallet-overlay .hv-bank-start,
  #hv-wallet-overlay .hv-withdraw-form,
  #hv-wallet-overlay .hv-transfer-form { width: 100%; }
  #hv-wallet-overlay .hv-bank-prompt { margin-bottom: 18px; font-size: 18px; }
  #hv-wallet-overlay .hv-bank-start .hv-form-row,
  #hv-wallet-overlay .hv-withdraw-form .hv-form-row { grid-template-columns: 96px minmax(0, 1fr); min-height: 50px; margin: 11px 0; }
  #hv-wallet-overlay .hv-bank-start .hv-label,
  #hv-wallet-overlay .hv-withdraw-form .hv-label { font-size: 16px; }
  #hv-wallet-overlay .hv-bank-start .hv-input,
  #hv-wallet-overlay .hv-withdraw-form .hv-input { min-height: 48px; font-size: 16px; }
  #hv-wallet-overlay .hv-bank-start .hv-submit,
  #hv-wallet-overlay .hv-withdraw-form .hv-submit { min-height: 49px; font-size: 18px; }
  #hv-wallet-overlay .hv-transfer-input { min-height: 49px; }
}
