/* ================================
   Vitran - PWA Install Box
================================ */

#vitran-pwa-box {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: none;
}

.vitran-pwa-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.vitran-pwa-text {
  flex: 1;
  text-align: right;
  font-weight: 700;
}

/* Buttons */
#vitran-install-btn,
#vitran-close-btn,
#vitran-guide-close {
  border: 0;
  cursor: pointer;
}

#vitran-install-btn {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

#vitran-close-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

/* ================================
   Vitran - PWA Guide Modal
================================ */

#vitran-pwa-guide {
  display: none;
}

#vitran-pwa-guide.is-active {
  display: block;
}

.vitran-pwa-guide-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 100000;
}

.vitran-pwa-guide-content {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #111827;
  border-radius: 20px;
  padding: 22px 18px 18px;
  z-index: 100001;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

#vitran-guide-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
}

/* Guide Content */
.vitran-pwa-guide-body {
  text-align: right;
}

.vitran-pwa-guide-body h3 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

.vitran-pwa-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vitran-pwa-guide-steps li {
  position: relative;
  margin-bottom: 14px;
  padding-right: 18px;
  line-height: 1.9;
  font-size: 16px;
}

.vitran-pwa-guide-steps li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f172a;
}

.vitran-pwa-guide-body strong {
  white-space: nowrap;
}

/* ================================
   Responsive Styles
================================ */

@media (min-width: 769px) {
  #vitran-pwa-box {
    max-width: 420px;
    left: auto;
    right: 16px;
  }

  .vitran-pwa-guide-content {
    max-width: 430px;
    left: 50%;
    right: auto;
    width: calc(100% - 32px);
    transform: translate(-50%, -50%);
  }
}

/* Ensure buttons remain clickable */
#vitran-install-btn,
#vitran-close-btn,
#vitran-guide-close {
  position: relative;
  z-index: 100002;
  pointer-events: auto;
}