/* ===============================
   TG Popup - Front styles
   =============================== */

/* Overlay */
.tgpopup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

/* Modal */
.tgpopup-modal{
  width: min(700px, 96vw);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}

/* Close button */
.tgpopup-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
}

.tgpopup-close:hover{
  background: rgba(0,0,0,.75);
}

/* Content */
.tgpopup-body{
  display: block;
}

.tgpopup-img{
  width: 100%;
  height: auto;
  display: block;
}

/* CTA */
.tgpopup-cta{
  display: block;
  margin: 14px;
  padding: 12px 14px;
  text-align: center;
  border-radius: 12px;
  background: #e82224;
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(232,34,36,.22);
}

.tgpopup-cta:hover{
  background: #c91517;
}

/* Mobile */
@media (max-width: 560px){
  .tgpopup-modal{
    width: 95vw;
  }
  .tgpopup-cta{
    margin: 12px;
  }
}