.infraos-pwa-notice {
  position: fixed;
  z-index: 100000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(440px, calc(100vw - 32px));
  border: 1px solid rgba(11, 23, 39, 0.16);
  border-radius: 14px;
  background: #0b1727;
  box-shadow: 0 18px 52px rgba(11, 23, 39, 0.28);
  color: #fff;
  padding: 13px 14px 13px 16px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.infraos-pwa-notice[hidden] {
  display: none;
}

.infraos-pwa-notice > span {
  flex: 1 1 auto;
}

.infraos-pwa-notice strong {
  color: inherit;
}

.infraos-pwa-notice button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0b1727;
  padding: 0 15px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.infraos-pwa-notice button.infraos-pwa-notice__close {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0;
  font-size: 20px;
}

.infraos-pwa-notice--network {
  left: 50%;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  justify-content: center;
  background: #8a5400;
  text-align: center;
}

.infraos-pwa-notice--network.is-online {
  background: #006b45;
}

@media (max-width: 600px) {
  .infraos-pwa-notice {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px));
    left: max(10px, env(safe-area-inset-left));
    max-width: none;
  }

  .infraos-pwa-notice--network {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    transform: none;
  }
}
