:root {
  --bc-primary: #033760;
  --bc-primary-deep: #022a4a;
  --bc-cream: #faefb7;
  --bc-white: #ffffff;
  --bc-text: #172033;
}

.bc-pwa-banner {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  padding: 13px 14px 13px 16px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 18px;
  color: var(--bc-white);
  background: rgb(3 55 96 / 97%);
  box-shadow: 0 16px 50px rgb(0 20 42 / 30%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: bc-pwa-enter 280ms ease-out both;
}

.bc-pwa-banner[hidden] { display: none; }

.bc-pwa-banner__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--bc-primary);
  background: var(--bc-cream);
}

.bc-pwa-banner__copy { flex: 1; min-width: 0; }
.bc-pwa-banner__title { display: block; font-size: 14px; font-weight: 780; }
.bc-pwa-banner__text { display: block; margin-top: 2px; color: rgb(255 255 255 / 72%); font-size: 12px; }

.bc-pwa-banner__action,
.bc-pwa-banner__close {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.bc-pwa-banner__action {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--bc-primary);
  background: var(--bc-cream);
  font-size: 13px;
  font-weight: 780;
}

.bc-pwa-banner__close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: rgb(255 255 255 / 72%);
  background: transparent;
  font-size: 22px;
}

.bc-pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgb(1 25 48 / 66%);
  backdrop-filter: blur(7px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bc-pwa-modal[hidden] { display: none; }

.bc-pwa-modal__card {
  width: min(100%, 430px);
  box-sizing: border-box;
  padding: 25px;
  border-radius: 24px;
  color: var(--bc-text);
  background: var(--bc-white);
  box-shadow: 0 26px 90px rgb(0 16 36 / 35%);
}

.bc-pwa-modal__mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--bc-cream);
  background: var(--bc-primary);
  font-size: 24px;
}

.bc-pwa-modal h2 { margin: 0; color: var(--bc-primary); font-size: 23px; }
.bc-pwa-modal p { margin: 10px 0 0; color: #5e6c82; line-height: 1.55; }
.bc-pwa-modal ol { margin: 18px 0 0; padding-left: 22px; color: #354258; line-height: 1.8; }
.bc-pwa-modal__done {
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--bc-white);
  background: var(--bc-primary);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

@keyframes bc-pwa-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .bc-pwa-banner { gap: 9px; padding: 11px 10px 11px 12px; }
  .bc-pwa-banner__icon { display: none; }
  .bc-pwa-banner__text { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bc-pwa-banner__action { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-pwa-banner { animation: none; }
}
