.ffgo-overlay[hidden]{
  display:none!important;
}

.ffgo-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  color:var(--ffgo-text,#2f241d);
  font-family:inherit;
}

.ffgo-overlay-is-open{
  overflow:hidden;
}

.ffgo-overlay__backdrop{
  position:absolute;
  inset:0;
  background:rgba(22,14,8,.56);
  backdrop-filter:blur(4px);
}

.ffgo-overlay__dialog{
  position:relative;
  z-index:1;
  width:min(92vw,760px);
  max-height:92vh;
  overflow:auto;
  margin:4vh auto;
  background:var(--ffgo-bg,#fff8ef);
  border-radius:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.5);
  animation:ffgo-pop .28s ease-out;
}

.ffgo-overlay__content{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:24px;
  align-items:center;
  padding:26px;
}

.ffgo-overlay__close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.72);
  color:var(--ffgo-text,#2f241d);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}

.ffgo-overlay__visual{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:250px;
  border-radius:22px;
  background:rgba(255,255,255,.55);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.65);
}

.ffgo-overlay__visual img{
  display:block;
  max-width:86%;
  max-height:235px;
  object-fit:contain;
  filter:drop-shadow(0 14px 18px rgba(47,36,29,.18));
}

.ffgo-overlay__placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  width:170px;
  height:170px;
  border-radius:50%;
  background:#fff;
  color:var(--ffgo-accent,#f47b20);
  font-weight:900;
  font-size:30px;
}

.ffgo-overlay__price-bubble{
  position:absolute;
  right:16px;
  top:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:70px;
  height:70px;
  border-radius:50%;
  background:var(--ffgo-accent,#f47b20);
  color:#fff;
  font-weight:900;
  font-size:23px;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  transform:rotate(6deg);
}

.ffgo-overlay__badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--ffgo-accent,#f47b20);
  color:#fff;
  border-radius:999px;
  padding:7px 12px;
  font-weight:800;
  font-size:13px;
  line-height:1;
  margin:0 0 12px;
}

.ffgo-overlay__badge:before{
  content:'🎁';
  font-size:15px;
}

.ffgo-overlay h2{
  margin:0 0 10px;
  color:var(--ffgo-text,#2f241d);
  font-size:clamp(25px,3vw,36px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.03em;
}

.ffgo-overlay__subtitle{
  margin:0 0 16px;
  font-size:17px;
  line-height:1.42;
  color:var(--ffgo-text,#2f241d);
}

.ffgo-overlay__benefits{
  list-style:none;
  margin:0 0 18px;
  padding:0;
  display:grid;
  gap:9px;
}

.ffgo-overlay__benefits li{
  position:relative;
  padding-left:28px;
  font-size:15px;
  line-height:1.35;
}

.ffgo-overlay__benefits li:before{
  content:'✓';
  position:absolute;
  left:0;
  top:-1px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:rgba(244,123,32,.15);
  color:var(--ffgo-accent,#f47b20);
  font-weight:900;
}

.ffgo-overlay__button,
.ffgo-overlay__secondary{
  width:100%;
  border-radius:var(--ffgo-button-radius,999px);
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease,opacity .16s ease;
}

.ffgo-overlay__button{
  border:0;
  background:var(--ffgo-button,#f47b20);
  color:var(--ffgo-button-text,#fff);
  font-size:17px;
  padding:15px 18px;
  box-shadow:0 12px 26px rgba(244,123,32,.32);
}

.ffgo-overlay__button:hover,
.ffgo-overlay__button:focus{
  background:var(--ffgo-button-hover,#d7630f);
  color:var(--ffgo-button-hover-text,#fff);
  transform:translateY(-1px);
  box-shadow:0 15px 30px rgba(244,123,32,.38);
}

.ffgo-overlay__button:disabled{
  opacity:.72;
  cursor:wait;
  transform:none;
}

.ffgo-overlay__secondary{
  margin-top:12px;
  padding:12px 16px;
  border:2px solid var(--ffgo-secondary-button-border,#f47b20);
  background:var(--ffgo-secondary-button,#fff);
  color:var(--ffgo-secondary-button-text,#2f241d);
  font-size:15px;
  text-decoration:none;
  box-shadow:none;
}

.ffgo-overlay__secondary:hover,
.ffgo-overlay__secondary:focus{
  background:var(--ffgo-secondary-button-hover,#fff3e8);
  color:var(--ffgo-secondary-button-hover-text,#2f241d);
  transform:translateY(-1px);
}

.ffgo-overlay__note{
  font-size:12px;
  line-height:1.35;
  margin:10px 0 0;
  opacity:.75;
  text-align:center;
}

.ffgo-overlay__message{
  margin:10px 0 0;
  font-size:13px;
  font-weight:700;
  color:var(--ffgo-accent,#f47b20);
  text-align:center;
}

.ffgo-cart-gift-badge{
  display:inline-block;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  background:#fff3e8;
  color:#d7630f;
  font-size:12px;
  font-weight:800;
}

.ffgo-cart-gift-quantity{
  display:inline-block;
  min-width:2em;
  text-align:center;
  font-weight:700;
}

@keyframes ffgo-pop{
  from{opacity:0;transform:translateY(16px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@media(max-width:720px){
  .ffgo-overlay__dialog{
    width:min(94vw,430px);
    margin:3vh auto;
    border-radius:24px;
  }

  .ffgo-overlay__content{
    grid-template-columns:1fr;
    gap:14px;
    padding:22px 18px 18px;
  }

  .ffgo-overlay__visual{
    min-height:170px;
  }

  .ffgo-overlay__visual img{
    max-height:165px;
  }

  .ffgo-overlay__price-bubble{
    width:58px;
    height:58px;
    font-size:20px;
    right:12px;
    top:12px;
  }

  .ffgo-overlay h2{
    font-size:26px;
  }

  .ffgo-overlay__subtitle{
    font-size:15px;
  }

  .ffgo-overlay__benefits{
    gap:7px;
  }

  .ffgo-overlay__benefits li{
    font-size:14px;
  }

  .ffgo-overlay__button{
    font-size:16px;
    padding:14px 15px;
  }

  .ffgo-overlay__secondary{
    font-size:14px;
    padding:11px 14px;
  }

  .ffgo-overlay__close{
    top:10px;
    right:10px;
  }
}


/* Compatibility: some themes style all <button> elements very aggressively. These rules keep the saved button settings active. */
.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__button,
.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__secondary{
  border-radius:var(--ffgo-button-radius,999px) !important;
}

.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__button{
  background:var(--ffgo-button,#f47b20) !important;
  background-color:var(--ffgo-button,#f47b20) !important;
  color:var(--ffgo-button-text,#fff) !important;
  border-color:var(--ffgo-button,#f47b20) !important;
}

.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__button:hover,
.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__button:focus{
  background:var(--ffgo-button-hover,#d7630f) !important;
  background-color:var(--ffgo-button-hover,#d7630f) !important;
  color:var(--ffgo-button-hover-text,#fff) !important;
  border-color:var(--ffgo-button-hover,#d7630f) !important;
}

.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__secondary{
  background:var(--ffgo-secondary-button,#fff) !important;
  background-color:var(--ffgo-secondary-button,#fff) !important;
  color:var(--ffgo-secondary-button-text,#2f241d) !important;
  border-color:var(--ffgo-secondary-button-border,#f47b20) !important;
}

.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__secondary:hover,
.ffgo-overlay[data-ffgo-overlay] .ffgo-overlay__secondary:focus{
  background:var(--ffgo-secondary-button-hover,#fff3e8) !important;
  background-color:var(--ffgo-secondary-button-hover,#fff3e8) !important;
  color:var(--ffgo-secondary-button-hover-text,#2f241d) !important;
  border-color:var(--ffgo-secondary-button-border,#f47b20) !important;
}
