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

.spm-pwa-install-action {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  text-align: left;
}

.spm-pwa-menu-entry,
.spm-pwa-sidebar-entry {
  width: 100%;
}

.spm-mobile-menu-panel .spm-pwa-menu-entry,
.spm-desktop-sidebar-nav .spm-pwa-sidebar-entry {
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 16px;
}

.spm-public-nav .spm-pwa-public-entry {
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 12px;
}

.spm-pwa-install-notice,
.spm-pwa-update-notice {
  align-items: center;
  background: #102b35;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 12px 30px rgba(7, 31, 38, 0.28);
  color: #fff;
  display: flex;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  position: fixed;
  right: 18px;
  z-index: 10020;
}

.spm-pwa-install-notice-action,
.spm-pwa-update-action {
  align-items: center;
  background: #18a992;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
}

.spm-pwa-update-notice > span {
  font-weight: 700;
  padding: 0 8px;
}

.spm-pwa-install-notice-close,
.spm-pwa-update-close,
.spm-pwa-modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.spm-pwa-modal-backdrop {
  align-items: center;
  background: rgba(5, 24, 31, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10030;
}

.spm-pwa-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(5, 24, 31, 0.3);
  color: #172733;
  max-width: 420px;
  padding: 28px;
  position: relative;
  width: 100%;
}

.spm-pwa-modal h2 {
  font-size: 24px;
  margin: 0 44px 10px 0;
}

.spm-pwa-modal p {
  color: #526572;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.spm-pwa-modal-close {
  color: #526572;
  position: absolute;
  right: 12px;
  top: 12px;
}

@media (max-width: 767px) {
  .spm-pwa-install-notice,
  .spm-pwa-update-notice {
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
    right: 12px;
  }

  .spm-pwa-install-notice-action {
    flex: 1;
    justify-content: center;
  }

  .spm-pwa-update-notice {
    justify-content: space-between;
  }

  .spm-pwa-update-notice > span {
    flex: 1;
    font-size: 14px;
  }
}

@media (display-mode: standalone) {
  .spm-pwa-install-action,
  .spm-pwa-install-notice {
    display: none !important;
  }
}