/* Parish Tactical PWA install banner. z-index stays below the age gate (99999). */
.pt-pwa-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  box-sizing: border-box;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #0a0a0a;
  color: #ffffff;
  border-top: 2px solid #e3c582;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  font-family: Orbitron, Arial, Helvetica, sans-serif;
}

/* In iOS Safari (not the installed app), lift the tip above the bottom
   toolbar (~44px on SE and iPhone 14) plus a 16px gap. Home indicator,
   when present, is covered by the safe-area inset. */
.pt-pwa-install.is-ios:not(.is-standalone) {
  bottom: calc(44px + 16px + env(safe-area-inset-bottom, 0px));
  padding-bottom: 10px;
}

.pt-pwa-install[hidden] {
  display: none !important;
}

.pt-pwa-install__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  min-width: 0;
}

.pt-pwa-install__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 9px;
  background: #0a0a0a;
}

.pt-pwa-install__text {
  flex: 1 1 auto;
  min-width: 0;
}

.pt-pwa-install__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e3c582;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-pwa-install__copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-family: Arial, Helvetica, sans-serif;
  color: #f3f3f3;
  overflow-wrap: anywhere;
}

.pt-pwa-install__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.pt-pwa-install__add {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #e3c582;
  color: #000;
  font-family: Orbitron, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

.pt-pwa-install__add:hover,
.pt-pwa-install__add:focus {
  background: #d4a56a;
  outline: none;
}

.pt-pwa-install__dismiss {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: #e3c582;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  min-width: 32px;
  min-height: 32px;
}

.pt-pwa-install__dismiss:hover,
.pt-pwa-install__dismiss:focus {
  color: #ffffff;
  outline: none;
}

@media (max-width: 400px) {
  .pt-pwa-install {
    padding-left: 10px;
    padding-right: 10px;
  }
  .pt-pwa-install__bar {
    gap: 8px;
  }
  .pt-pwa-install__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .pt-pwa-install__title {
    font-size: 12px;
    letter-spacing: 0.03em;
  }
  .pt-pwa-install__add {
    padding: 8px 10px;
    font-size: 11px;
  }
}
