.cav-pwa-card {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  z-index: 99990;
  display: flex;
  width: min(390px, calc(100vw - 36px));
  padding: 18px;
  gap: 13px;
  border: 1px solid rgba(165, 90, 155, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 45px rgba(73, 38, 69, .2);
  font-family: inherit;
  color: #342533;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 24px));
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  pointer-events: none;
}

.cav-pwa-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  animation: cav-pwa-gentle-pulse 2.8s ease-in-out 2;
}

.cav-pwa-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #b96aad, #8f4b86);
}

.cav-pwa-icon svg {
  width: 25px;
  fill: #fff;
}

.cav-pwa-content {
  min-width: 0;
  padding-right: 14px;
}

.cav-pwa-title {
  display: block;
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.25;
  color: #6f3b69;
}

.cav-pwa-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #62535f;
}

.cav-pwa-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cav-pwa-actions button {
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cav-pwa-install {
  border: 0;
  background: #a55a9b;
  color: #fff;
}

.cav-pwa-install:hover,
.cav-pwa-install:focus-visible {
  background: #88477f;
}

.cav-pwa-later {
  border: 1px solid #d9c5d5;
  background: #fff;
  color: #6f3b69;
}

.cav-pwa-close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #7d6879;
  font: 400 24px/1 Arial, sans-serif;
  cursor: pointer;
}

@keyframes cav-pwa-gentle-pulse {
  0%, 100% { box-shadow: 0 16px 45px rgba(73, 38, 69, .2); }
  50% { box-shadow: 0 16px 45px rgba(73, 38, 69, .2), 0 0 0 7px rgba(165, 90, 155, .1); }
}

@media (max-width: 600px) {
  .cav-pwa-card {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .cav-pwa-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cav-pwa-card,
  .cav-pwa-card.is-visible {
    transition: none;
    animation: none;
  }
}
