/* Workwise PWA — splash (standalone first paint) + install banner */

.ww-pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #ffffff;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.ww-pwa-splash[hidden] {
  display: none !important;
}
.ww-pwa-splash.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ww-pwa-splash__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(50, 106, 255, 0.18);
  background: #fff;
}
.ww-pwa-splash__name {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e1e1e;
}
.ww-pwa-splash__bar {
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: #e4ebff;
  overflow: hidden;
  position: relative;
}
.ww-pwa-splash__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: #326AFF;
  border-radius: inherit;
  animation: ww-pwa-bar 1s ease-in-out infinite;
}
@keyframes ww-pwa-bar {
  0% { left: -40%; }
  100% { left: 100%; }
}

.ww-pwa-install {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: -2.61824px 26px 49px rgba(182, 186, 203, 0.28);
  padding: 14px 14px 12px;
  color: #1e1e1e;
}

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

.ww-pwa-install__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ww-pwa-install__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  background: #e4ebff;
}

.ww-pwa-install__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1e1e1e;
}

.ww-pwa-install__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #67758a;
}

.ww-pwa-install__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ww-pwa-install .btn-pwa {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.ww-pwa-install .btn-pwa-primary {
  background: #326AFF;
  border-color: #326AFF;
  color: #fff;
}

.ww-pwa-install .btn-pwa-ghost {
  background: #fff;
  border-color: #e9ecef;
  color: #67758a;
}

.ww-pwa-install__ios-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: #67758a;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .ww-pwa-install {
    left: auto;
    right: 24px;
    bottom: 24px;
    margin: 0;
  }
}
