/* PWA update banner — plain CSS, no dependencies */

.panel-pwa-update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10060;
  direction: rtl;
  box-sizing: border-box;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #212121;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: YekanBakhRegular, is, Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.panel-pwa-update-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.panel-pwa-update-banner.is-hiding {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.panel-pwa-update-banner__text {
  margin: 0 0 12px;
  text-align: right;
}

.panel-pwa-update-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.panel-pwa-update-banner__btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font: inherit;
  cursor: pointer;
  line-height: 1.4;
}

.panel-pwa-update-banner__btn--primary {
  background: #cc0100;
  color: #ffffff;
}

.panel-pwa-update-banner__btn--primary:active {
  background: #a80100;
}

.panel-pwa-update-banner__btn--secondary {
  background: #f0f0f0;
  color: #333333;
}

.panel-pwa-update-banner__btn--secondary:active {
  background: #e2e2e2;
}

@media (max-width: 480px) {
  .panel-pwa-update-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .panel-pwa-update-banner__actions {
    width: 100%;
  }

  .panel-pwa-update-banner__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .panel-pwa-update-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 360px;
    margin: 0;
  }
}
