.pwa-scrollbar-theme,
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #008374 #eef2f1;
}

.pwa-scrollbar-theme::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.pwa-scrollbar-theme::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #eef2f1;
}

.pwa-scrollbar-theme::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #008374;
  border-radius: 999px;
  border: 2px solid #eef2f1;
}

.pwa-scrollbar-theme::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #006f63;
}

.pwa-install-btn {
  position: fixed;
  align-items: center;
  justify-content: center;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  background: #008080;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: all 0.25s ease;
}

.pwa-install-btn:hover {
  background: #006f6f;
  transform: translateY(-2px);
}

.pwa-install-btn:active {
  transform: scale(0.96);
}

.pwa-manual-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pwa-manual-box {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.pwa-manual-box h3 {
  margin: 0 0 10px;
  color: #008080;
  font-size: 22px;
  font-weight: 800;
}

.pwa-manual-box p {
  margin: 0 0 14px;
  color: #333333;
  font-size: 15px;
  line-height: 1.5;
}

.pwa-manual-steps {
  display: grid;
  gap: 9px;
}

.pwa-manual-steps div {
  background: #f3f7f7;
  border-radius: 10px;
  padding: 10px 12px;
  color: #222222;
  font-size: 14px;
  font-weight: 600;
}

.pwa-manual-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  color: #222222;
  font-size: 24px;
  line-height: 32px;
  cursor: pointer;
}

.pwa-update-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 1000001;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #313131;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 700;
}

.pwa-update-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: #008080;
  color: #ffffff;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.pwa-update-btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .pwa-install-btn {
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    padding: 11px 18px;
    font-size: 14px;
  }

  .pwa-manual-box {
    max-width: 94%;
    padding: 20px;
  }
}
