.bbi-pwa-launch {
  display: none;
}

html.bbi-circle-standalone .bbi-pwa-launch {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 28px;
  background: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 1;
  transition: opacity 260ms ease, visibility 260ms ease;
}

html.bbi-circle-standalone .bbi-pwa-launch.is-finished {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.bbi-pwa-launch__inner {
  display: grid;
  justify-items: center;
  width: min(100%, 320px);
  text-align: center;
}

.bbi-pwa-launch__icon {
  width: 112px;
  height: 112px;
  margin-bottom: 19px;
  border: 1px solid #eeeeee;
  border-radius: 26px;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.10);
}

.bbi-pwa-launch strong {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0.055em;
}

.bbi-pwa-launch__line {
  position: relative;
  width: 112px;
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeeee;
}

.bbi-pwa-launch__line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: #ff6600;
  animation: bbi-pwa-launch-progress 1.05s ease-in-out infinite;
}

.bbi-pwa-launch p {
  margin: 13px 0 0 !important;
  color: #6b6f76 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.bbi-pwa-launch button {
  min-height: 44px;
  margin: 17px 0 0 !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #ff6600 !important;
  color: #111111 !important;
  font: 800 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

@keyframes bbi-pwa-launch-progress {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(240%); }
}

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

html.bbi-pwa-is-open,
html.bbi-pwa-is-open body {
  overflow: hidden !important;
}

.bbi-pwa {
  --bbi-orange: #ff6600;
  --bbi-black: #111111;
  --bbi-muted: #6b6f76;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.bbi-pwa.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bbi-pwa__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 10, 12, 0.48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  cursor: default;
}

.bbi-pwa__card {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  background: #ffffff;
  color: var(--bbi-black);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(28px) scale(0.985);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
  -webkit-overflow-scrolling: touch;
}

.bbi-pwa.is-visible .bbi-pwa__card {
  transform: translateY(0) scale(1);
}

.bbi-pwa__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: #f1f2f4;
  color: #33363a;
  font: 400 25px/1 sans-serif;
  cursor: pointer;
}

.bbi-pwa__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-right: 42px;
}

.bbi-pwa__icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 1px solid #ececef;
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.09);
}

.bbi-pwa__brand strong {
  display: block;
  margin-top: 2px;
  color: var(--bbi-black);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.bbi-pwa__eyebrow {
  display: block;
  color: var(--bbi-orange);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.15em;
}

.bbi-pwa__title {
  margin: 22px 0 8px !important;
  color: var(--bbi-black) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(25px, 7vw, 31px) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
}

.bbi-pwa__copy,
.bbi-pwa__copy p {
  color: var(--bbi-muted) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.bbi-pwa__copy p {
  margin: 0 !important;
}

.bbi-pwa__intro {
  margin-bottom: 16px !important;
}

.bbi-pwa__steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.bbi-pwa__steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 11px;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #eceef1;
  border-radius: 14px;
  background: #f8f8f9;
  color: #34373c;
  font-size: 14px;
  line-height: 1.35;
}

.bbi-pwa__steps li > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bbi-black);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.bbi-pwa__steps strong {
  color: #111;
  font-weight: 750;
}

.bbi-pwa__share {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: 2px;
  border: 1px solid #b7bbc1;
  border-radius: 5px;
  color: #1677ff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  vertical-align: -3px;
}

.bbi-pwa__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 20px;
}

.bbi-pwa__button {
  min-height: 50px;
  margin: 0 !important;
  padding: 12px 17px !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease;
}

.bbi-pwa__button:active {
  transform: scale(0.98);
}

.bbi-pwa__button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.bbi-pwa__button--primary {
  background: var(--bbi-orange) !important;
  color: #111 !important;
}

.bbi-pwa__button--secondary {
  background: #f0f1f3 !important;
  color: #4b4f55 !important;
}

.bbi-pwa__button--full {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .bbi-pwa {
    align-items: end;
    justify-items: end;
    padding: 24px;
  }

  .bbi-pwa__backdrop {
    background: rgba(8, 10, 12, 0.24);
  }
}

@media (max-width: 390px) {
  .bbi-pwa {
    padding: 10px;
  }

  .bbi-pwa__card {
    max-height: calc(100dvh - 20px);
    padding: 19px;
    border-radius: 22px;
  }

  .bbi-pwa__title {
    margin-top: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbi-pwa-launch__line span {
    width: 100%;
    animation: none !important;
  }

  .bbi-pwa,
  .bbi-pwa__card,
  .bbi-pwa__button {
    transition: none !important;
  }
}
