.sq-pwa-card {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(390px, calc(100vw - 32px));
    max-width: 390px;
    box-sizing: border-box;
    margin: 0;
    padding: 17px;
    overflow: hidden;
    border: 1px solid #e8ddf4;
    border-radius: 19px;
    background: linear-gradient(120deg, #fff 0%, #fcf8ff 62%, #f7f0ff 100%);
    box-shadow: 0 10px 28px rgba(73, 39, 108, .07);
    color: #4d3b63;
    font-family: inherit;
    text-align: left;
}
.sq-pwa-card * { box-sizing: border-box; }
.sq-pwa-symbol { flex: 0 0 54px; width: 54px; height: 54px; padding: 3px; border-radius: 16px; background: #f0e5fb; box-shadow: 0 4px 12px rgba(112,64,173,.12); }
.sq-pwa-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 13px; }
.sq-pwa-copy { min-width: 0; flex: 1; }
.sq-pwa-kicker { margin: 0 0 5px; color: #8c68b4; font-size: 9px; font-weight: 800; letter-spacing: 1.15px; }
.sq-pwa-copy h2 { margin: 0 0 5px; color: #4d3567; font-size: 14px; line-height: 1.35; font-weight: 800; }
.sq-pwa-copy > p:not(.sq-pwa-kicker) { margin: 0 0 11px; color: #8c809a; font-size: 11px; line-height: 1.55; }
.sq-pwa-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #7b4ab4, #623694); box-shadow: 0 5px 12px rgba(98,54,148,.2); color: #fff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.sq-pwa-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 7px 16px rgba(98,54,148,.26); }
.sq-pwa-button:focus-visible { outline: 3px solid #d7c1ef; outline-offset: 3px; }
.sq-pwa-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sq-pwa-badge { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #f0e6fa; color: #a17bc9; }
.sq-pwa-badge svg { width: 14px; height: 14px; fill: currentColor; }
.sq-pwa-help { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #e7dcf2; border-radius: 11px; background: rgba(255,255,255,.8); color: #756486; font-size: 11px; line-height: 1.6; }
.sq-pwa-help[hidden] { display: none; }
@media (max-width: 420px) {
  .sq-pwa-card { gap: 11px; padding: 14px; border-radius: 16px; }
  .sq-pwa-symbol { flex-basis: 46px; width: 46px; height: 46px; border-radius: 13px; }
  .sq-pwa-copy h2 { font-size: 13px; padding-right: 10px; }
  .sq-pwa-copy > p:not(.sq-pwa-kicker) { font-size: 10px; }
  .sq-pwa-button { min-height: 36px; }
}

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


/* Floating install card: top-right, above the login UI */
@media (max-width: 520px) {
  .sq-pwa-card {
    top: 10px;
    right: 10px;
    width: min(330px, calc(100vw - 20px));
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(45, 25, 68, .18);
  }
  .sq-pwa-symbol { flex-basis: 40px; width: 40px; height: 40px; }
  .sq-pwa-kicker { font-size: 8px; }
  .sq-pwa-copy h2 { font-size: 12px; }
  .sq-pwa-copy > p:not(.sq-pwa-kicker) { font-size: 10px; margin-bottom: 8px; }
  .sq-pwa-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
}
