html.download-demo-open {
  overflow: hidden !important;
}

#download-demo-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: auto auto 0 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(500px, 100vw);
  max-width: 100vw;
  min-height: 246px;
  max-height: calc(100dvh - 20px);
  padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 20px 20px 0 0;
  background: #31246d;
  color: #fff;
  font: 16px/1.4 Arial, sans-serif;
  box-shadow: 0 -8px 40px #08001940;
  overflow: auto;
  overscroll-behavior: contain;
}

#download-demo-dialog:not([open]) {
  display: none;
}

#download-demo-dialog::backdrop {
  background: #0009;
}

#download-demo-dialog button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#download-demo-dialog button:focus-visible {
  outline: 2px solid #fff0a2;
  outline-offset: 4px;
}

#download-demo-dialog .download-demo-close {
  position: absolute;
  top: 12px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaa1bf;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

#download-demo-dialog .download-demo-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 112px;
  box-sizing: border-box;
  padding: 25px 28px 20px 0;
  border-bottom: 1px solid #9187aa;
}

#download-demo-dialog .download-demo-logo {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border-radius: 9px;
  object-fit: contain;
}

#download-demo-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}

#download-demo-dialog .download-demo-h5 {
  display: block;
  width: fit-content;
  margin: 10px auto 24px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #ffffffe6;
  font-size: 18px;
  line-height: 25px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#download-demo-dialog .download-demo-actions {
  display: flex;
  justify-content: center;
}

#download-demo-dialog .download-demo-app {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 175px;
  height: 49px;
  padding: 0;
  border: 0;
  border-radius: 25px;
  background: #0c97f6;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

#download-demo-dialog .download-demo-android {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

#download-demo-dialog .download-demo-offer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 9px 9px 9px 0;
  background: linear-gradient(110deg, #ff8629, #ff352f);
  color: #ffe582;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

#download-demo-dialog .download-demo-offer::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 0;
  height: 0;
  border-top: 6px solid #ff8629;
  border-right: 7px solid transparent;
}

#download-demo-status {
  margin: 16px 0 0;
  text-align: center;
  color: #f5e6bf;
  font-size: 13px;
  line-height: 19px;
}

#download-demo-status[hidden] {
  display: none;
}

@media (max-width: 390px) {
  #download-demo-dialog {
    padding-right: 16px;
    padding-left: 16px;
  }

  #download-demo-dialog .download-demo-heading {
    gap: 10px;
  }

  #download-demo-dialog .download-demo-logo {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }
}
