.op-pwa-install {
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  max-width: calc(100vw - 28px);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transform: translate3d(-50%, 18px, 0) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 99999;
}

.op-pwa-install.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.op-pwa-install__button {
  align-items: center;
  appearance: none;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.13), transparent 26%),
    linear-gradient(135deg, #15106f 0%, #20148f 52%, #17106d 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  box-shadow:
    0 18px 46px rgba(18, 16, 80, 0.32),
    0 8px 22px rgba(15, 11, 43, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: 800 15px/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  gap: 12px;
  isolation: isolate;
  letter-spacing: 0;
  min-height: 58px;
  max-width: min(100%, 410px);
  overflow: hidden;
  padding: 10px 23px 10px 11px;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  z-index: 0;
}

.op-pwa-install__button::before {
  background: linear-gradient(90deg, #f6c424, #ff2f80, #6d28d9, #f6c424);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  opacity: 0.9;
  position: absolute;
  z-index: 0;
}

.op-pwa-install__button::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 196, 36, 0.25), transparent 60%),
    radial-gradient(circle at 85% 35%, rgba(255, 47, 128, 0.24), transparent 58%);
  content: "";
  height: 96px;
  position: absolute;
  right: -34px;
  top: -42px;
  width: 150px;
  z-index: 0;
}

.op-pwa-install__button:hover {
  box-shadow:
    0 22px 54px rgba(18, 16, 80, 0.4),
    0 0 0 1px rgba(246, 196, 36, 0.34),
    0 0 30px rgba(255, 47, 128, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.op-pwa-install__button:focus-visible {
  outline: 3px solid rgba(246, 196, 36, 0.62);
  outline-offset: 4px;
}

.op-pwa-install__shine {
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.3) 48%, transparent 100%);
  height: 120%;
  left: -76%;
  pointer-events: none;
  position: absolute;
  top: -10%;
  transform: skewX(-18deg);
  width: 44%;
  z-index: 1;
}

.op-pwa-install.is-visible .op-pwa-install__shine {
  animation: op-pwa-shine 3.8s ease-in-out 0.45s infinite;
}

.op-pwa-install__icon {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    #3b3493;
  border-radius: 999px;
  box-shadow:
    0 8px 18px rgba(8, 7, 52, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #f6c424;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
  z-index: 2;
}

.op-pwa-install__icon svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.op-pwa-install__label {
  align-items: baseline;
  color: #ffffff;
  display: inline-flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  z-index: 2;
}

.op-pwa-install__label strong {
  color: #f6c424;
  font-weight: 900;
}

@keyframes op-pwa-shine {
  0% {
    left: -70%;
  }

  38%,
  100% {
    left: 130%;
  }
}

@media (max-width: 480px) {
  .op-pwa-install {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .op-pwa-install__button {
    font-size: 14px;
    min-height: 54px;
    max-width: calc(100vw - 28px);
    padding-right: 17px;
  }

  .op-pwa-install__icon {
    height: 34px;
    width: 34px;
  }
}
