.trp-pwa-bar[hidden], .trp-pwa-modal[hidden] { display: none !important; }

.trp-pwa-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 99999;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  background: rgba(255,255,255,.98);
  border: 1px solid #dce7fb;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(12,35,70,.18);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .2s ease, transform .2s ease;
  font-family: inherit;
}
.trp-pwa-bar.is-visible { opacity: 1; transform: translateY(0); }
.trp-pwa-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trp-pwa-brand img { width: 44px !important; height: 44px !important; flex: 0 0 44px; object-fit: contain; border-radius: 11px; }
.trp-pwa-brand strong { display: block; color: #0d1b38; font-size: 14px; line-height: 1.25; }
.trp-pwa-brand span { display: block; margin-top: 2px; color: #6a7893; font-size: 12px; line-height: 1.25; }
.trp-pwa-install { border: 0; border-radius: 12px; min-height: 42px; padding: 0 14px; background: #0b63f6; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.trp-pwa-close { position: absolute; top: -8px; right: -6px; width: 25px; height: 25px; padding: 0; border: 1px solid #d7dfec; border-radius: 50%; background: #fff; color: #60708c; font-size: 18px; line-height: 22px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.08); }

.trp-pwa-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; padding: 18px; background: rgba(8,19,39,.48); }
.trp-pwa-modal-card { position: relative; width: min(100%, 460px); padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.25); font-family: inherit; }
.trp-pwa-modal-card h3 { margin: 0 0 14px; color: #0d1b38; font-size: 21px; line-height: 1.25; }
.trp-pwa-modal-card ol { margin: 0 0 14px 20px; padding: 0; color: #273956; }
.trp-pwa-modal-card li { margin: 8px 0; line-height: 1.45; }
.trp-pwa-modal-card p { margin: 0 0 16px; color: #6a7893; font-size: 14px; line-height: 1.5; }
.trp-pwa-modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: #70809a; font-size: 28px; cursor: pointer; }
.trp-pwa-ok { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: #0b63f6; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

@media (min-width: 821px), (hover:hover) and (pointer:fine) {
  .trp-pwa-bar, .trp-pwa-modal { display: none !important; }
}
