/* Subtle fixed-bottom install prompt */
.pwa-install-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10055;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.pwa-install-wrap.is-visible {
  pointer-events: auto;
}

.pwa-install-wrap[hidden],
.pwa-install-wrap:not(.is-visible) {
  pointer-events: none;
}

.pwa-install-wrap.is-visible > * {
  pointer-events: auto;
}

.pwa-install-steps {
  display: none;
  max-width: 28rem;
  margin: 0 auto 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--brand-surface, #fff);
  border: 1px solid var(--brand-border, #ecd9c8);
  border-radius: 12px;
  box-shadow: var(--brand-shadow, 0 8px 32px rgba(92, 64, 51, 0.1));
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-theme-3, #6b5c4f);
  line-height: var(--leading-snug, 1.35);
  text-align: center;
}

.pwa-install-steps.is-open {
  display: block;
}

.pwa-install-steps-text {
  margin: 0;
}

.pwa-install-steps strong,
.pwa-install-ios-steps strong {
  color: var(--text-black, #3d2e1f);
}

.pwa-install-steps em,
.pwa-install-ios-steps em {
  color: #b34f28;
}

.pwa-install-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--brand-border, #ecd9c8);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(92, 64, 51, 0.14);
  backdrop-filter: blur(8px);
}

.pwa-install-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-theme-3, #6b5c4f);
  line-height: var(--leading-snug, 1.35);
}

.pwa-install-text strong {
  color: var(--text-black, #3d2e1f);
  font-weight: 600;
}

.pwa-install-btn {
  flex-shrink: 0;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: #b34f28;
  color: #fff;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pwa-install-btn:hover {
  background: #9a3f1c;
}

.pwa-install-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-theme-3, #6b5c4f);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pwa-install-dismiss:hover {
  background: rgba(92, 64, 51, 0.06);
  color: var(--text-black, #3d2e1f);
}

@media (max-width: 400px) {
  .pwa-install-text {
    font-size: var(--text-xs, 0.75rem);
  }

  .pwa-install-btn {
    padding: 0.35rem 0.65rem;
  }
}
