.pwa-install {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pwa-install__trigger {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  white-space: nowrap;
  padding: .5rem .7rem;
  border-radius: 10px;
  border: 1px solid #b6d2c1;
  background: #eaf8ef;
  color: #1e5d3d;
  font-weight: 700;
}

.pwa-install__trigger:hover {
  background: #ddf1e5;
  border-color: #9ec8af;
}

.pwa-install__hint {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  z-index: 1200;
  width: min(22rem, 86vw);
  border: 1px solid #d8e5ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 21, 34, .16);
  padding: .6rem .7rem;
}

.pwa-install__hint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .3rem;
}

.pwa-install__hint p {
  margin: 0;
  color: #35525f;
  font-size: .9rem;
  line-height: 1.45;
}

.pwa-install__ios-steps {
  margin: .1rem 0 0;
  padding-left: 1rem;
  color: #35525f;
  font-size: .88rem;
  line-height: 1.4;
}

.pwa-install__ios-steps li {
  margin: .2rem 0;
}

.pwa-install__ios-substeps {
  margin: .25rem 0 0;
  padding-left: 1rem;
  list-style: disc;
}

.pwa-install__ios-substeps li {
  margin: .15rem 0 0;
}

.pwa-install__ios-steps img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

.pwa-install__close {
  width: auto;
  min-width: 2rem;
  padding: .2rem .35rem;
}

@media (max-width: 800px) {
  .pwa-install__trigger {
    font-size: .82rem;
    padding: .42rem .56rem;
  }

  .pwa-install__trigger span {
    display: none;
  }

  .pwa-install__hint {
    position: fixed;
    right: .6rem;
    top: 4rem;
    width: min(24rem, calc(100vw - 1.2rem));
  }
}
