.prpwa-lock {
  overflow: hidden !important;
}

.prpwa-install[hidden],
.prpwa-view[hidden],
[hidden] {
  display: none !important;
}

.prpwa-install {
  --prpwa-accent: #7c5cff;
  --prpwa-on-accent: #fff;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  color: #111;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
}

.prpwa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.prpwa-card {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 24px), 390px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate(-50%, 20px) scale(0.985);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.prpwa-install.is-visible .prpwa-backdrop {
  opacity: 1;
}

.prpwa-install.is-visible .prpwa-card {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.prpwa-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  opacity: 0.55;
  cursor: pointer;
}

.prpwa-close:hover,
.prpwa-close:focus-visible {
  opacity: 1;
}

.prpwa-close svg {
  width: 20px;
  height: 20px;
}

.prpwa-install svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prpwa-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-right: 30px;
}

.prpwa-heading img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.prpwa-heading > div {
  min-width: 0;
}

.prpwa-heading span {
  display: block;
  margin-bottom: 2px;
  overflow: hidden;
  color: #777;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.prpwa-heading h2,
.prpwa-view h2 {
  margin: 0 !important;
  color: #111 !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
}

.prpwa-view > p {
  margin: 13px 0 14px !important;
  color: #505050 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.prpwa-primary {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 13px;
  background: var(--prpwa-accent);
  color: var(--prpwa-on-accent);
  box-shadow: none;
  font: 800 14px/1 inherit;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.prpwa-primary:hover {
  filter: brightness(0.97);
}

.prpwa-primary:active {
  transform: translateY(1px);
}

.prpwa-primary svg {
  width: 18px;
  height: 18px;
}

.prpwa-primary.is-muted {
  opacity: 0.65;
}

.prpwa-later {
  display: block;
  margin: 8px auto -4px;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: #686868;
  font: 650 12px/1.2 inherit;
  cursor: pointer;
}

.prpwa-later:hover {
  color: #111;
}

.prpwa-android-fallback {
  margin-top: 10px;
  padding: 10px;
  border-radius: 11px;
  background: #f4f4f5;
  color: #333;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.prpwa-kebab {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 2px;
  border-radius: 6px;
  background: #e7e7e9;
  color: #111;
  font-size: 18px;
  line-height: 1;
}

.prpwa-safari-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
  padding: 10px;
  border-radius: 11px;
  background: #f2f6ff;
  color: #222;
  font-size: 11px;
  line-height: 1.4;
}

.prpwa-safari-note svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #287bdc;
}

.prpwa-ios-guide {
  display: grid;
  grid-template-columns: 46px 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fafafa;
}

.prpwa-share-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef5ff;
  color: #1677df;
}

.prpwa-share-icon svg {
  width: 27px;
  height: 27px;
}

.prpwa-guide-arrow {
  color: #8a8a8a;
  font-size: 17px;
  text-align: center;
}

.prpwa-ios-guide > span:last-child {
  min-width: 0;
}

.prpwa-ios-guide b,
.prpwa-ios-guide small {
  display: block;
}

.prpwa-ios-guide b {
  color: #111;
  font-size: 13px;
  line-height: 1.25;
}

.prpwa-ios-guide small {
  margin-top: 3px;
  color: #707070;
  font-size: 11px;
}

.prpwa-status {
  height: 0;
  overflow: hidden;
}

.prpwa-splash {
  position: fixed;
  z-index: 2147483640;
  inset: 0;
  display: none;
  place-items: center;
  background: var(--prpwa-background-global, #fff);
  opacity: 0;
}

.prpwa-splash.is-active {
  display: grid;
  animation: prpwa-in 0.22s ease forwards;
}

.prpwa-splash.is-leaving {
  animation: prpwa-out 0.4s ease forwards;
}

.prpwa-splash img {
  width: min(32vw, 132px);
  height: min(32vw, 132px);
  object-fit: contain;
  border-radius: 28px;
  animation: prpwa-logo-in 0.45s cubic-bezier(0.2, 1.2, 0.35, 1) both;
}

@keyframes prpwa-in {
  to { opacity: 1; }
}

@keyframes prpwa-out {
  to { opacity: 0; visibility: hidden; }
}

@keyframes prpwa-logo-in {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 360px) {
  .prpwa-card {
    padding: 15px;
    border-radius: 18px;
  }

  .prpwa-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .prpwa-heading img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .prpwa-heading h2,
  .prpwa-view h2 {
    font-size: 19px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prpwa-card,
  .prpwa-backdrop,
  .prpwa-splash,
  .prpwa-splash img {
    animation: none !important;
    transition: none !important;
  }

  .prpwa-splash.is-active {
    opacity: 1;
  }
}
