.app-download {
  --app-download-bottom: 25px;
  position: fixed;
  right: 25px;
  bottom: var(--app-download-bottom);
  z-index: 998;
  color: #1e1e1e;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgb(0 0 0 / 20%);
  font-family: var(--fontNormal, var(--font-body-family, sans-serif));
}

.app-download--with-chat {
  --app-download-bottom: 105px;
}

.app-download[open] {
  box-sizing: border-box;
  width: min(360px, calc(100vw - 41px));
  max-height: calc(100dvh - var(--app-download-bottom) - 16px);
  padding: 16px;
  overflow: auto;
  border-radius: 16px;
}

.app-download__toggle {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  list-style: none;
  cursor: pointer;
  border-radius: 50%;
}

.app-download__toggle::-webkit-details-marker {
  display: none;
}

.app-download[open] .app-download__toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.app-download[open] .app-download__toggle:hover {
  background-color: #f4f4f4;
}

.app-download__toggle:focus-visible,
.app-download__store:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 3px;
}

.app-download__open img,
.app-download__store img {
  display: block;
}

.app-download__close,
.app-download[open] .app-download__open {
  display: none;
}

.app-download[open] .app-download__close {
  display: block;
}

.app-download__title {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 56px 8px 0;
  font-family: var(--fontBold, inherit);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.app-download__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-download__text,
.app-download__note {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
}

.app-download__note {
  margin-top: 8px;
  color: #595959;
}

.app-download__qr {
  box-sizing: border-box;
  flex: none;
  width: clamp(100px, 35vw, 132px);
  height: auto;
  padding: 4px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.app-download__store {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgb(0 0 0 / 12%);
}
