.pc-pwa-update[hidden] {
  display: none !important;
}

.pc-pwa-update {
  box-sizing: border-box;
  position: fixed;
  z-index: 1200;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(720px, calc(100% - 36px));
  padding: 16px 48px 16px 16px;
  border: 1px solid rgba(161, 91, 255, .72);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 14, 38, .98), rgba(13, 10, 36, .98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .58), 0 0 32px rgba(108, 69, 255, .2);
  color: #f8f7ff;
  backdrop-filter: blur(18px);
}

.pc-pwa-update__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(67, 169, 255, .74);
  border-radius: 50%;
  background: linear-gradient(145deg, #8d28e9, #138df2);
  font-size: 29px;
  line-height: 1;
  box-shadow: 0 0 24px rgba(104, 75, 255, .36);
}

.pc-pwa-update__content {
  min-width: 0;
}

.pc-pwa-update__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #d696ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pc-pwa-update__content strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.pc-pwa-update__content p {
  margin: 5px 0 0;
  color: #d6d9e8;
  font-size: 13px;
  line-height: 1.55;
}

.pc-pwa-update__content small {
  display: block;
  min-height: 0;
  margin-top: 4px;
  color: #aeb8d6;
  font-size: 11px;
}

.pc-pwa-update__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-pwa-update__later {
  border: 0;
  padding: 7px;
  background: transparent;
  color: #cbd0e2;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.pc-pwa-update__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #dfe4f3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 720px) {
  .pc-pwa-update {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(134px, calc(env(safe-area-inset-bottom) + 126px));
    grid-template-columns: 42px minmax(0, 1fr);
    width: calc(100% - 20px);
    gap: 11px;
    padding: 14px 38px 14px 13px;
    border-radius: 16px;
    max-height: calc(100dvh - 154px);
    overflow-y: auto;
  }

  .pc-pwa-update__icon {
    width: 42px;
    height: 42px;
    font-size: 25px;
  }

  .pc-pwa-update__content strong {
    font-size: 15px;
  }

  .pc-pwa-update__content p {
    font-size: 12px;
  }

  .pc-pwa-update__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .pc-pwa-update__actions .pc-btn {
    flex: 1 1 150px;
    justify-content: center;
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pc-pwa-update:not([hidden]) {
    animation: pc-pwa-update-in .18s ease-out both;
  }

  @keyframes pc-pwa-update-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
