.pwa-network,
.pwa-update {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: min(560px, calc(100% - 32px));
  margin-inline: auto;
  padding: 14px 16px;
  border: 1px solid #cbcff2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 14, 135, 0.18);
  color: #17172b;
}

.pwa-network {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pwa-network[data-state="offline"] {
  border-left: 5px solid #b9476b;
}

.pwa-network[data-state="online"] {
  border-left: 5px solid #22715a;
}

.pwa-network button,
.pwa-update button,
.site-footer__install {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #cbcff2;
  border-radius: 8px;
  background: #fff;
  color: #120e87;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.pwa-update p {
  margin: 0 0 10px;
  font-weight: 800;
}

.pwa-update > div {
  display: flex;
  gap: 8px;
}

.pwa-update [data-pwa-refresh] {
  border-color: #2c4ade;
  background: #2c4ade;
  color: #fff;
}

.site-footer__install {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #eef1ff;
  text-align: left;
}

.pwa-network[hidden],
.pwa-update[hidden],
.site-footer__install[hidden],
[data-pwa-ios-install][hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .pwa-network,
  .pwa-update {
    scroll-behavior: auto;
  }
}

@media (max-width: 420px) {
  .pwa-network {
    align-items: flex-start;
  }

  .pwa-update > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
