/* PWA Install Dialog */
.pwa-dialog {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.pwa-dialog-content {
  background-color: black;
  color: white;
  margin: 10% auto;
  padding: 20px 32px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.pwa-dialog-close {
  position: absolute;
  color: white;
  font-size: 28px;
  font-weight: bold;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.pwa-dialog-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.pwa-dialog-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.pwa-dialog-steps {
  list-style: decimal;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-dialog-steps li {
  line-height: 1.6;
  list-style: decimal;
  list-style-position: inside;
}

/* Show app buttons section by default on website */
.app_block {
  display: flex;
}

/* Hide app buttons section when in PWA mode */
.pwa-mode .app_block,
html.pwa-mode .app_block,
body.pwa-mode .app_block {
  display: none !important;
}

/* Hide individual buttons when in PWA mode on mobile (backup) */
.pwa-mode .btn_ios,
.pwa-mode .btn_and,
html.pwa-mode .btn_ios,
html.pwa-mode .btn_and,
body.pwa-mode .btn_ios,
body.pwa-mode .btn_and {
  display: none;
}

/* Hide scrollbar when in PWA mode but allow scrolling */
html.pwa-mode,
html.pwa-mode body,
body.pwa-mode {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Webkit browsers */
html.pwa-mode::-webkit-scrollbar,
html.pwa-mode body::-webkit-scrollbar,
body.pwa-mode::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Hide scrollbar for all elements inside PWA mode */
.pwa-mode * {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.pwa-mode *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pwa-only {
  display: none;
}

.pwa-mode .pwa-only {
  display: block;
}
