/* Versatile Technology - shared PWA install button
   Loaded on every page via root-absolute path so it works at any depth. */

#vt-pwa-install-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  display: none;
  align-items: center;
  gap: 10px;
  background: #0d6efd;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow:
    0 6px 20px rgba(13, 110, 253, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

#vt-pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(13, 110, 253, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.18);
}

#vt-pwa-install-btn:active {
  transform: translateY(0);
}

#vt-pwa-install-btn.vt-visible {
  display: inline-flex;
}

#vt-pwa-install-btn .vt-pwa-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#vt-pwa-install-btn .vt-pwa-label {
  white-space: nowrap;
}

#vt-pwa-install-btn .vt-pwa-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

#vt-pwa-install-btn .vt-pwa-dismiss:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* iOS Safari "Add to Home Screen" hint sheet */
#vt-pwa-ios-hint {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 20px;
  z-index: 2147483000;
  display: none;
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
}

#vt-pwa-ios-hint.vt-visible {
  display: block;
}

#vt-pwa-ios-hint .vt-pwa-ios-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#vt-pwa-ios-hint strong {
  color: #0d6efd;
}

#vt-pwa-ios-hint .vt-pwa-share-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

#vt-pwa-ios-hint .vt-pwa-dismiss {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6b7280;
  font-size: 14px;
}

#vt-pwa-ios-hint .vt-pwa-dismiss:hover {
  background: #f3f4f6;
}

@media (max-width: 480px) {
  #vt-pwa-install-btn {
    right: 14px;
    bottom: 14px;
    padding: 11px 15px 11px 12px;
    font-size: 13px;
  }
}

/* "Enable Notifications" button - iOS only (needs a real tap to trigger
   the permission prompt there, see pwa-install.js maybeRequestNotifPermission) */
#vt-pwa-notif-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  display: none;
  align-items: center;
  gap: 10px;
  background: #0d6efd;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow:
    0 6px 20px rgba(13, 110, 253, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

#vt-pwa-notif-btn:active {
  transform: translateY(0);
}

#vt-pwa-notif-btn.vt-visible {
  display: inline-flex;
}

#vt-pwa-notif-btn .vt-pwa-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#vt-pwa-notif-btn .vt-pwa-label {
  white-space: nowrap;
}

#vt-pwa-notif-btn .vt-pwa-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

#vt-pwa-notif-btn .vt-pwa-dismiss:hover {
  background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 480px) {
  #vt-pwa-notif-btn {
    right: 14px;
    bottom: 14px;
    padding: 11px 15px 11px 12px;
    font-size: 13px;
  }
}