/* Install button styles for pages that do not load crew-form component CSS */
body:not(.crew-forms-body) .pwa-install-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--traffic-blue, #0000ff);
  border-radius: 10px;
  background: var(--traffic-blue, #0000ff);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.24);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  color: var(--comp-blue)
}

body:not(.crew-forms-body) .pwa-install-button.show {
  display: inline-flex;
}

body:not(.crew-forms-body) .pwa-install-button:hover,
body:not(.crew-forms-body) .pwa-install-button:active {
  background: var(--comp-blue, #ffffff);
  border-color: var(--comp-blue, #ffffff);
  color: var(--traffic-blue, #0000ff);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28);
}

body:not(.crew-forms-body) .pwa-install-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

body:not(.crew-forms-body) .pwa-install-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

body:not(.crew-forms-body) .pwa-install-label {
  white-space: nowrap;
}

/* PWA install icon */
.pwa-install-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  body:not(.crew-forms-body) .pwa-install-button {
    padding: 5px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
  }

  body:not(.crew-forms-body) .pwa-install-label {
    display: none;
  }

  body:not(.crew-forms-body) .pwa-install-icon {
    display: inline-flex;
  }
}

/* iOS Install Instructions Modal */
.ios-install-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ios-install-content {
  position: relative;
  width: min(460px, 92vw);
  background: #ffffff;
  color: #1a202c;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.ios-install-content h3 {
  margin: 0 0 10px;
}

.ios-install-content p,
.ios-install-content ol {
  margin: 0 0 12px;
}
