/* offline-banner.css */
/* Banner created by /js/offline.js when the connection drops */

.offline-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10000;
  padding: 12px 16px;
  border-radius: 8px;
  background: #2e2e2e;
  color: white;
  font-family: "Dosis", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(calc(100% + 24px));
  transition: transform 0.25s ease;
  pointer-events: none;
}

.offline-banner.is-visible {
  transform: translateY(0);
}

.offline-banner.is-online {
  background: #0b5259;
}

/* HW */
.offline-banner--hw {
  background: #a13285;
}

.offline-banner--hw.is-online {
  background: #e4754d;
}

@media (min-width: 768px) {
  .offline-banner {
    left: 50%;
    right: auto;
    max-width: 480px;
    transform: translate(-50%, calc(100% + 24px));
  }

  .offline-banner.is-visible {
    transform: translate(-50%, 0);
  }
}
