:root{
  --sfpwa-blue:#5574ff;
  --sfpwa-blue2:#6d55ff;
  --sfpwa-gold:#f7ca67;
  --sfpwa-text:#f7f9ff;
  --sfpwa-muted:#aeb8cd;
  --sfpwa-bottom:84px;
}

#sfPwaPromo[hidden]{display:none!important}

#sfPwaPromo{
  position:fixed;
  left:50%;
  bottom:var(--sfpwa-bottom);
  z-index:2147483000;
  width:min(760px,calc(100vw - 28px));
  transform:translateX(-50%);
  font-family:Arial,Helvetica,sans-serif;
  pointer-events:none;
}

.sf-pwa-card{
  position:relative;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:72px;
  padding:9px 44px 9px 10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:15px;
  color:var(--sfpwa-text);
  background:
    linear-gradient(90deg,rgba(85,116,255,.13),transparent 28%),
    rgba(16,22,35,.97);
  box-shadow:0 8px 28px rgba(0,0,0,.42),0 0 22px rgba(85,116,255,.10);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  pointer-events:auto;
  opacity:0;
  transform:translateY(12px);
  animation:sfPwaBarIn .30s ease forwards;
}

.sf-pwa-card::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,#f7ca67,#5574ff);
}

.sf-pwa-icon-wrap{
  width:50px;
  height:50px;
  padding:2px;
  border-radius:12px;
  overflow:hidden;
  background:linear-gradient(135deg,#f7ca67,#5574ff);
  box-shadow:0 4px 14px rgba(0,0,0,.28);
}

.sf-pwa-icon{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:10px;
}

.sf-pwa-copy{
  min-width:0;
  text-align:left;
}

.sf-pwa-eyebrow{
  display:block;
  margin-bottom:2px;
  color:var(--sfpwa-gold);
  font-size:9px;
  font-weight:900;
  letter-spacing:.075em;
  text-transform:uppercase;
}

.sf-pwa-card h2{
  margin:0;
  overflow:hidden;
  color:#fff;
  font-size:15px;
  line-height:1.15;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.sf-pwa-card p{
  margin:4px 0 0;
  overflow:hidden;
  color:var(--sfpwa-muted);
  font-size:11px;
  line-height:1.3;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.sf-pwa-benefits{display:none}

.sf-pwa-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.sf-pwa-btn{
  min-height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  padding:0 12px;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
  cursor:pointer;
}

.sf-pwa-no{
  color:#c5cede;
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.12);
}
.sf-pwa-no:hover{
  color:#fff;
  background:rgba(255,255,255,.075);
}

.sf-pwa-install{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--sfpwa-blue),var(--sfpwa-blue2));
  box-shadow:0 5px 16px rgba(85,116,255,.24);
}

.sf-pwa-close{
  position:absolute;
  right:7px;
  top:50%;
  width:29px;
  height:29px;
  transform:translateY(-50%);
  border:0;
  border-radius:50%;
  background:transparent;
  color:#8793a8;
  font-size:20px;
  cursor:pointer;
}

.sf-pwa-close:hover{
  color:#fff;
  background:rgba(255,255,255,.06);
}

.sf-pwa-later{display:none}

.sf-pwa-status,
.sf-pwa-help{
  grid-column:2 / 4;
  margin:0;
  color:#bdc7da;
  font-size:10px;
  line-height:1.35;
}

.sf-pwa-status:empty{display:none}

.sf-pwa-help{
  margin-top:-2px;
  padding:6px 8px;
  border:1px solid rgba(247,202,103,.17);
  border-radius:8px;
  background:rgba(247,202,103,.05);
}

.sf-pwa-help strong{color:#f7d886}

@keyframes sfPwaBarIn{
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:700px){
  #sfPwaPromo{
    width:calc(100vw - 12px);
  }

  .sf-pwa-card{
    grid-template-columns:46px minmax(0,1fr);
    gap:9px;
    min-height:68px;
    padding:8px 35px 8px 8px;
    border-radius:13px;
  }

  .sf-pwa-icon-wrap{
    width:44px;
    height:44px;
    border-radius:10px;
  }

  .sf-pwa-icon{border-radius:8px}

  .sf-pwa-card h2{
    font-size:13px;
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
  }

  .sf-pwa-card p{
    margin-top:2px;
    font-size:9.5px;
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }

  .sf-pwa-actions{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:1.25fr 1fr;
    gap:6px;
    margin-top:0;
  }

  .sf-pwa-btn{
    min-height:34px;
    padding:0 8px;
    font-size:9px;
  }

  .sf-pwa-close{
    right:4px;
    top:8px;
    transform:none;
    width:27px;
    height:27px;
    font-size:18px;
  }

  .sf-pwa-status,
  .sf-pwa-help{
    grid-column:1 / -1;
    font-size:9px;
  }
}

@media(max-width:360px){
  .sf-pwa-card p{display:none}
  .sf-pwa-card{grid-template-columns:42px minmax(0,1fr)}
  .sf-pwa-icon-wrap{width:40px;height:40px}
}

@media(prefers-reduced-motion:reduce){
  .sf-pwa-card{animation:none;opacity:1;transform:none}
}
