/* Native dialog uses the browser top layer, above floating buttons and widgets. */
.investment-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(460px, calc(100vw - 40px), calc((100dvh - 110px) * .82));
  max-width: none;
  max-height: none;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #000;
}
.investment-modal::backdrop { background: rgb(0 0 0 / 60%); }
.investment-modal-card { background: #fff; border-radius: 30px; padding: 32px 36px 36px; }
.investment-modal h2 { margin: 0 0 22px; text-align: center; font-size: clamp(16px, 2.2vw, 22px); font-weight: 500; line-height: 1.5; white-space: normal; }
.investment-qr-panel { padding: 24px; border-radius: 30px; background: #eef3f9; }
.investment-qr-code { position: relative; width: 100%; aspect-ratio: 1; }
.investment-qr-image { display: block; width: 100%; height: 100%; }
.investment-qr-logo { position: absolute; width: 18% !important; height: 18%; object-fit: contain; left: 41%; top: 41%; border-radius: 20%; }
.investment-modal-close { position: absolute; right: 0; top: -58px; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.investment-modal-close::before, .investment-modal-close::after { content: ''; position: absolute; top: 19px; left: 0; width: 40px; height: 3px; border-radius: 3px; background: #fff; transform: rotate(45deg); }
.investment-modal-close::after { transform: rotate(-45deg); }
.investment-modal-close:is(:focus, :focus-visible, :active) { outline: none; box-shadow: none; }
html.investment-modal-open { overflow: hidden; }
#main-content .qa-account-action { display: flex; justify-content: center; margin: 48px auto 56px; position: relative; z-index: 1; }
#main-content .qa-account-action a { padding: 12px 36px; text-decoration: none !important; }
#main-content .qa-account-action h3 { margin: 0; line-height: 1.5; }
@media (max-width: 767px) {
  #main-content .qa-account-action { margin: 32px auto 40px; }
  #main-content .qa-account-action a { width: 14rem; padding: 12px 24px; }
}
@media (max-height: 650px) {
  .investment-modal-card { padding: 22px 30px 30px; border-radius: 22px; }
  .investment-modal h2 { margin-bottom: 16px; font-size: 18px; }
  .investment-qr-panel { padding: 20px; border-radius: 20px; }
}

#main-content .qa-account-action a:is(:hover, :focus, :active), #main-content .qa-account-action a h3 { text-decoration: none !important; }
