.lh-pwa-prompt {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10030;
  display: none;
  width: min(360px, calc(100vw - 28px));
  box-sizing: border-box;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: start;
  padding: 13px;
  color: #172033;
  background: rgba(255, 255, 255, .985);
  border: 1px solid #d9e5f1;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .16), 0 1px 4px rgba(15, 23, 42, .05);
  backdrop-filter: blur(12px);
  animation: lhPwaPromptIn .22s ease;
}

.lh-pwa-prompt.is-open {
  display: grid;
}

.lh-pwa-prompt-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #1463a5;
  background: #eef6ff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px #d6e7f8;
}

.lh-pwa-prompt-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lh-pwa-prompt-icon.has-brand-icon {
  background: #fff;
  box-shadow: inset 0 0 0 1px #d6e7f8, 0 4px 12px rgba(15, 23, 42, .06);
}

.lh-pwa-prompt-icon.has-brand-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.lh-pwa-prompt-icon.has-brand-icon::before,
.lh-pwa-prompt-icon.has-brand-icon::after {
  content: none;
}

.lh-pwa-prompt-icon::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(2px);
}

.lh-pwa-prompt-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 10px;
  height: 5px;
  border-bottom: 1.8px solid currentColor;
  border-radius: 0 0 9px 9px;
  transform: translateX(-50%);
}

.lh-pwa-prompt-copy {
  min-width: 0;
  padding-top: 1px;
}

.lh-pwa-prompt-copy strong {
  margin: 0 0 4px;
  color: #101828;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.lh-pwa-prompt-copy span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.42;
}

.lh-pwa-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
}

.lh-pwa-prompt-actions[hidden],
.lh-pwa-prompt-actions button[hidden],
.lh-pwa-prompt[data-pwa-state="ios-browser"] .lh-pwa-prompt-actions,
.lh-pwa-prompt[data-pwa-state="https"] .lh-pwa-prompt-actions,
.lh-pwa-prompt[data-pwa-state="blocked"] .lh-pwa-prompt-actions,
.lh-pwa-prompt[data-pwa-state="unsupported"] .lh-pwa-prompt-actions,
.lh-pwa-prompt[data-pwa-state="login-required"] .lh-pwa-prompt-actions {
  display: none !important;
}

.lh-pwa-prompt-actions button {
  min-height: 34px;
  max-width: 100%;
  border: 1px solid #d6e1ec;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.lh-pwa-prompt-actions button:hover {
  background: #f7faff;
  border-color: #bfd3ea;
}

.lh-pwa-prompt-actions button.primary {
  background: #1463a5;
  border-color: #1463a5;
  color: #fff;
  box-shadow: 0 7px 16px rgba(20, 99, 165, .20);
  min-width: 132px;
}

.lh-pwa-prompt-actions button.primary:hover {
  background: #0f548d;
  border-color: #0f548d;
}

.lh-pwa-prompt-actions button[data-pwa-later] {
  border-color: #d6e1ec;
  background: #fff;
  color: #667085;
  margin-left: 0;
}

.lh-pwa-prompt-actions button[data-pwa-later]:hover {
  background: #f4f7fa;
  color: #344054;
}

.lh-pwa-prompt-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lh-pwa-prompt-close:hover {
  background: #f2f5f8;
  color: #344054;
}

.lh-pwa-prompt.is-limited .lh-pwa-prompt-icon {
  color: #9a6200;
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px #f3d99b;
}

.lh-pwa-prompt.is-limited .lh-pwa-prompt-icon.has-brand-icon {
  background: #fff;
  box-shadow: inset 0 0 0 1px #d6e7f8, 0 4px 12px rgba(15, 23, 42, .06);
}

.lh-pwa-prompt-actions:empty {
  display: none;
}

@keyframes lhPwaPromptIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 420px) {
  .lh-pwa-prompt {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .22);
  }

  .lh-pwa-prompt-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .lh-pwa-prompt-copy strong {
    font-size: 13px;
    padding-right: 2px;
  }

  .lh-pwa-prompt-copy span {
    font-size: 12px;
  }

  .lh-pwa-prompt-actions {
    display: flex;
    gap: 6px;
  }

  .lh-pwa-prompt-actions button {
    flex: 1 1 auto;
    min-height: 36px;
    white-space: normal;
  }

  .lh-pwa-prompt-actions button.primary {
    min-width: 0;
  }

  .lh-pwa-prompt-actions button[data-pwa-later] {
    flex: 1 1 auto;
    min-height: 30px;
    margin-left: 0;
  }
}

/* iOS Home Screen installation guidance */
.lh-pwa-prompt[data-pwa-state="ios-browser"] .lh-pwa-prompt-actions { display:flex!important; }
.lh-pwa-prompt[data-pwa-state="ios-browser"] [data-pwa-ios-install] { display:inline-flex!important; align-items:center; justify-content:center; }
.lh-pwa-ios-help { margin-top:10px; padding:10px 12px; border:1px solid #d6e7f8; border-radius:10px; background:#f7fbff; display:grid; gap:5px; }
.lh-pwa-ios-help[hidden] { display:none!important; }
.lh-pwa-ios-help strong { font-size:12px!important; color:#174a75; }
.lh-pwa-ios-help span { font-size:11.5px!important; line-height:1.4; color:#475467; }
