.pwa-install-button {
  display: none;
}

.pwa-install-button[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .pwa-install-button {
    min-height: 46px;
    padding: 0 11px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(0, 124, 125, .24);
    border-radius: 12px;
    color: #fff;
    background: #078f8e;
    box-shadow: 0 8px 18px rgba(0, 124, 125, .16);
    font-family: inherit;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  }

  .pwa-install-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
  }

  .pwa-install-button:focus-visible {
    outline: 3px solid rgba(6, 157, 152, .22);
    outline-offset: 2px;
  }

  .pwa-install-button.is-ready {
    box-shadow:
      0 0 0 3px rgba(7, 143, 142, .12),
      0 8px 18px rgba(0, 124, 125, .2);
  }

  .pwa-install-button.is-waiting {
    cursor: progress;
    filter: saturate(.72);
    opacity: .82;
  }

  .pwa-install-button.is-waiting svg {
    animation: wm-install-wait 1s linear infinite;
  }

  .pwa-install-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@keyframes wm-install-wait {
  to {
    transform: rotate(360deg);
  }
}

.wm-install-toast {
  position: fixed;
  right: 50%;
  bottom: 22px;
  z-index: 2147483600;
  width: max-content;
  max-width: min(92vw, 430px);
  padding: 14px 18px;
  border: 1px solid rgba(0, 124, 125, .3);
  border-radius: 14px;
  color: #102d37;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 46px rgba(7, 31, 42, .2);
  backdrop-filter: blur(16px);
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
  opacity: 0;
  transform: translate(50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}

.wm-install-toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 360px) {
  .pwa-install-button {
    width: 46px;
    padding: 0;
  }

  .pwa-install-button span {
    display: none;
  }
}
