.toph-popup-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:12px;
  background:rgba(9,18,28,.42);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  z-index:999999;
}

.toph-popup-overlay.is-visible{display:flex}

html.toph-popup-open,
body.toph-popup-open{overflow:hidden!important}

.toph-popup-card{
  position:relative;
  width:min(430px,88vw);
  max-height:86vh;
  overflow:auto;
  border-radius:28px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 22px 65px rgba(0,0,0,.26);
  text-align:center;
  animation:tophPopIn .34s ease;
  scrollbar-width:none;
}
.toph-popup-card::-webkit-scrollbar{display:none}

@keyframes tophPopIn{
  from{transform:scale(.92) translateY(12px);opacity:0}
  to{transform:scale(1) translateY(0);opacity:1}
}

.toph-popup-close{
  position:absolute;
  top:12px;
  left:12px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#075fd8;
  color:#fff;
  font-size:25px;
  line-height:1;
  cursor:pointer;
  z-index:5;
  box-shadow:0 8px 22px rgba(7,95,216,.28);
}
[dir="ltr"] .toph-popup-close{left:auto;right:12px}

.toph-popup-hero-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 10px 4px;
  background:linear-gradient(180deg,#f7fbff 0%,#eef6ff 100%);
}

.toph-popup-hero-wrap picture{
  display:flex;
  width:100%;
  justify-content:center;
}

.toph-popup-hero{
  display:block;
  width:100%;
  max-width:335px;
  height:auto;
  object-fit:contain;
  border-radius:20px;
}

.toph-popup-body{
  padding:8px 18px 6px;
}

.toph-popup-title{
  margin:0 0 4px;
  color:#102844;
  font-size:22px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.2px;
}

.toph-popup-subtitle{
  margin:0 0 6px;
  color:#0a8fe3;
  font-size:18px;
  line-height:1.25;
  font-weight:850;
}

.toph-popup-desc{
  margin:0;
  color:#24324b;
  font-size:14px;
  line-height:1.55;
  font-weight:500;
}

.toph-popup-store-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:8px 14px 14px;
  flex-wrap:nowrap;
}

.toph-popup-store-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.toph-popup-store-link img{
  display:block;
  width:132px;
  max-width:39vw;
  height:auto;
}

.toph-popup-footer-note{
  margin:-4px 0 12px;
  color:#7a8495;
  font-size:12px;
}

@media (min-width:768px){
  .toph-popup-card{
    width:min(500px,88vw);
  }
  .toph-popup-hero{
    max-width:390px;
  }
  .toph-popup-store-link img{
    width:150px;
  }
}

@media (max-width:640px){
  .toph-popup-overlay{
    padding:8px!important;
  }

  .toph-popup-card{
    width:84vw!important;
    max-width:330px!important;
    max-height:82vh!important;
    border-radius:24px!important;
  }

  .toph-popup-close{
    width:36px!important;
    height:36px!important;
    top:9px!important;
    left:9px!important;
    font-size:22px!important;
  }
  [dir="ltr"] .toph-popup-close{left:auto!important;right:9px!important}

  .toph-popup-hero-wrap{
    padding:8px 8px 2px!important;
  }

  .toph-popup-hero{
    max-width:250px!important;
    border-radius:18px!important;
  }

  .toph-popup-body{
    padding:6px 12px 4px!important;
  }

  .toph-popup-title{
    font-size:18px!important;
    margin-bottom:3px!important;
  }

  .toph-popup-subtitle{
    font-size:15px!important;
    margin-bottom:4px!important;
  }

  .toph-popup-desc{
    font-size:12px!important;
    line-height:1.4!important;
  }

  .toph-popup-store-row{
    gap:7px!important;
    padding:7px 10px 11px!important;
  }

  .toph-popup-store-link img{
    width:106px!important;
    max-width:38vw!important;
  }

  .toph-popup-footer-note{
    display:none!important;
  }
}

@media (max-width:380px){
  .toph-popup-card{
    width:82vw!important;
    max-width:300px!important;
    max-height:80vh!important;
  }
  .toph-popup-hero{
    max-width:225px!important;
  }
  .toph-popup-title{font-size:17px!important}
  .toph-popup-subtitle{font-size:14px!important}
  .toph-popup-desc{font-size:11.5px!important}
  .toph-popup-store-link img{width:96px!important}
}
