.hxnv-form-wrap{max-width:520px;margin:20px auto;box-sizing:border-box;font-family:inherit}.hxnv-form-inner{box-sizing:border-box;text-align:center}.hxnv-form-inner h2{margin:0 0 8px;font-size:30px;line-height:1.1}.hxnv-form-inner p{margin:0 0 20px;color:#5d6470;line-height:1.55}.hxnv-input-row{display:flex;gap:10px}.hxnv-form-inner input[type=email]{width:100%;box-sizing:border-box;padding:14px 15px;border:1px solid #cfd6df;border-radius:9px;font-size:16px;background:#fff}.hxnv-form-inner button{padding:14px 20px;border:0;border-radius:9px;cursor:pointer;font-size:15px;font-weight:700;background:#4564bd;color:#fff;white-space:nowrap}.hxnv-consent{display:flex;gap:9px;align-items:flex-start;text-align:left;margin-top:13px;font-size:13px;line-height:1.45;color:#606975}.hxnv-consent input{margin-top:3px}.hxnv-message{padding:12px;border-radius:8px;margin-bottom:15px;text-align:left}.hxnv-success{background:#edf8ef;color:#176b2c}.hxnv-error{background:#fff0f0;color:#9a2222}.hxnv-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.hxnv-template-classic{padding:30px;border:1px solid #e2e6ec;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(20,35,60,.06)}.hxnv-template-classic .hxnv-input-row{display:block}.hxnv-template-classic button{width:100%;margin-top:12px}.hxnv-template-modern{padding:36px;border-radius:22px;background:linear-gradient(145deg,#f7f9ff,#fff);border:1px solid #dbe3f4;box-shadow:0 16px 40px rgba(44,67,120,.12)}.hxnv-offer-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;border-radius:18px;background:#4564bd;font-size:27px}.hxnv-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:1.4px;color:#4564bd;margin-bottom:8px}.hxnv-template-modern button{min-width:165px}.hxnv-template-minimal{max-width:700px;padding:20px 22px;border-radius:12px;background:#f7f8fa;border:1px solid #e4e7ec}.hxnv-template-minimal .hxnv-form-copy{text-align:left}.hxnv-template-minimal .hxnv-form-copy p{margin-bottom:14px}.hxnv-template-minimal h2{font-size:23px}.hxnv-template-minimal .hxnv-consent{font-size:12px}.hxnv-template-minimal button{min-width:120px}.hxnv-template-bold{padding:38px;border-radius:20px;background:linear-gradient(135deg,#17233f,#304a82);color:#fff;box-shadow:0 18px 40px rgba(23,35,63,.18)}.hxnv-template-bold h2{font-size:42px;color:#fff}.hxnv-template-bold p{color:#d8e0f2}.hxnv-template-bold .hxnv-input-row{display:block}.hxnv-template-bold button{width:100%;margin-top:12px;background:#f0b43c;color:#1c2741}.hxnv-template-bold .hxnv-consent{color:#d8e0f2}.hxnv-trust{margin-top:15px;font-size:12px;color:#768193}.hxnv-template-bold .hxnv-trust{color:#cbd6ee}@media(max-width:600px){.hxnv-input-row{display:block}.hxnv-input-row button{width:100%;margin-top:10px}.hxnv-template-bold h2{font-size:34px}.hxnv-template-minimal .hxnv-form-copy{text-align:center}}

/* =========================================================
   Custom Template — Premium Newsletter Card
   The customer controls the colours/background image in the
   builder. There is intentionally NO outer box.
   ========================================================= */
.hxnv-template-custom{
  width:100%;
  max-width:var(--hxnv-custom-width);
  margin:20px auto;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible;
  box-sizing:border-box;
  position:relative;
}
.hxnv-template-custom .hxnv-form-inner{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:48px 52px 40px;
  background:var(--hxnv-custom-card);
  border:1px solid var(--hxnv-custom-border);
  border-radius:var(--hxnv-custom-radius);
  text-align:var(--hxnv-custom-align);
  box-sizing:border-box;
  box-shadow:0 22px 60px rgba(10,18,35,.20);
  background-repeat:no-repeat;
  background-size:var(--hxnv-custom-image-size);
  background-position:var(--hxnv-custom-image-position);
}
/* The builder background is now the actual newsletter card background. */
.hxnv-template-custom.hxnv-custom-bg-gradient .hxnv-form-inner{
  background:linear-gradient(135deg,var(--hxnv-custom-gradient-start),var(--hxnv-custom-gradient-end));
}
.hxnv-template-custom.hxnv-custom-bg-image .hxnv-form-inner{
  background-image:var(--hxnv-custom-image);
}
.hxnv-template-custom.hxnv-custom-has-overlay .hxnv-form-inner:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--hxnv-custom-overlay);
  opacity:var(--hxnv-custom-overlay-opacity);
  pointer-events:none;
}
/* Readable glass effect for a solid custom colour without creating another box. */
.hxnv-template-custom.hxnv-custom-bg-solid .hxnv-form-inner{
  background:var(--hxnv-custom-bg);
}
.hxnv-template-custom .hxnv-kicker{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0 0 18px;
  font-size:12px;
  font-weight:800;
  letter-spacing:6px;
  color:var(--hxnv-custom-button);
  text-transform:uppercase;
}
.hxnv-template-custom .hxnv-kicker:before,
.hxnv-template-custom .hxnv-kicker:after{
  content:"";
  display:block;
  width:110px;
  height:2px;
  background:var(--hxnv-custom-button);
  opacity:.9;
}
.hxnv-template-custom .hxnv-form-copy h2{
  margin:0 0 20px;
  color:var(--hxnv-custom-heading);
  font-size:clamp(36px,6vw,62px);
  line-height:1.02;
  font-weight:800;
  letter-spacing:-1px;
}
.hxnv-template-custom .hxnv-form-copy p{
  max-width:780px;
  margin:0 auto 38px;
  color:var(--hxnv-custom-text);
  font-size:clamp(18px,2.6vw,28px);
  line-height:1.42;
}
.hxnv-template-custom .hxnv-input-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr);
  gap:22px;
  align-items:stretch;
}
.hxnv-template-custom .hxnv-input-row input[type=email]{
  min-height:92px;
  padding:18px 26px 18px 72px;
  border:2px solid var(--hxnv-custom-border);
  border-radius:22px;
  background:rgba(8,18,36,.22);
  color:var(--hxnv-custom-text);
  font-size:22px;
  box-shadow:none;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.hxnv-template-custom .hxnv-input-row:before{
  content:"✉";
  position:absolute;
  z-index:2;
  left:28px;
  top:50%;
  transform:translateY(-50%);
  color:var(--hxnv-custom-text);
  font-size:32px;
  line-height:1;
  pointer-events:none;
}
.hxnv-template-custom .hxnv-input-row input[type=email]::placeholder{
  color:var(--hxnv-custom-text);
  opacity:.72;
}
.hxnv-template-custom .hxnv-input-row input[type=email]:focus{
  border-color:var(--hxnv-custom-button);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--hxnv-custom-button) 18%,transparent);
}
.hxnv-template-custom .hxnv-input-row button{
  min-height:92px;
  padding:18px 30px;
  border:0;
  border-radius:22px;
  background:linear-gradient(135deg,var(--hxnv-custom-button),color-mix(in srgb,var(--hxnv-custom-button) 72%,#8b0f59));
  color:var(--hxnv-custom-button-text);
  font-size:clamp(17px,2vw,24px);
  font-weight:800;
  letter-spacing:.5px;
  box-shadow:0 14px 28px color-mix(in srgb,var(--hxnv-custom-button) 30%,transparent);
  transition:transform .2s ease,filter .2s ease;
}
.hxnv-template-custom .hxnv-input-row button:before{
  content:"🎁";
  margin-right:15px;
  font-size:1.2em;
}
.hxnv-template-custom .hxnv-input-row button:hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
}
.hxnv-template-custom .hxnv-consent{
  margin:25px 0 0;
  gap:18px;
  align-items:flex-start;
  color:var(--hxnv-custom-text);
  font-size:18px;
  line-height:1.45;
  text-align:left;
}
.hxnv-template-custom .hxnv-consent input{
  appearance:none;
  -webkit-appearance:none;
  width:30px;
  height:30px;
  min-width:30px;
  margin:0;
  border:2px solid var(--hxnv-custom-text);
  border-radius:8px;
  background:transparent;
  cursor:pointer;
  position:relative;
}
.hxnv-template-custom .hxnv-consent input:checked{
  background:var(--hxnv-custom-button);
  border-color:var(--hxnv-custom-button);
}
.hxnv-template-custom .hxnv-consent input:checked:after{
  content:"✓";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--hxnv-custom-button-text);
  font-size:20px;
  font-weight:800;
}

/* Newsletter popup */
.hxnv-popup{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.hxnv-popup.is-open{display:flex}
.hxnv-popup-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,var(--hxnv-popup-overlay,.55));
  backdrop-filter:blur(2px);
}
.hxnv-popup-dialog{
  position:relative;
  z-index:1;
  width:min(100%,680px);
  max-height:90vh;
  overflow:auto;
  padding:8px;
}
.hxnv-popup-dialog-custom{
  width:min(100%,1000px);
  padding:0;
  overflow:visible;
}
.hxnv-popup-dialog .hxnv-form-wrap{margin:0}
.hxnv-popup-dialog-custom .hxnv-template-custom{margin:0 auto}
.hxnv-popup-close{
  position:absolute;
  right:18px;
  top:18px;
  z-index:5;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#1f2937;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 5px 20px rgba(0,0,0,.15);
}
.hxnv-popup-dialog-custom .hxnv-popup-close{
  right:24px;
  top:24px;
  width:64px;
  height:64px;
  background:rgba(7,15,30,.78);
  color:#fff;
  border:2px solid var(--hxnv-custom-button,#e91e63);
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  font-size:42px;
}
.hxnv-popup .hxnv-template-bold .hxnv-form-inner,
.hxnv-popup .hxnv-template-classic .hxnv-form-inner{padding-top:15px}

@media(max-width:700px){
  .hxnv-template-custom .hxnv-form-inner{padding:82px 24px 28px}
  .hxnv-template-custom .hxnv-kicker{font-size:10px;letter-spacing:3px;gap:10px}
  .hxnv-template-custom .hxnv-kicker:before,.hxnv-template-custom .hxnv-kicker:after{width:45px}
  .hxnv-template-custom .hxnv-form-copy h2{font-size:36px}
  .hxnv-template-custom .hxnv-form-copy p{font-size:18px;margin-bottom:26px}
  .hxnv-template-custom .hxnv-input-row{grid-template-columns:1fr;gap:12px}
  .hxnv-template-custom .hxnv-input-row:before{top:46px}
  .hxnv-template-custom .hxnv-input-row input[type=email],
  .hxnv-template-custom .hxnv-input-row button{min-height:68px;border-radius:16px;font-size:17px}
  .hxnv-template-custom .hxnv-consent{font-size:15px}
  .hxnv-popup{padding:12px}
  .hxnv-popup-dialog{width:100%;padding:0}
  .hxnv-popup-dialog-custom .hxnv-popup-close{right:14px;top:14px;width:52px;height:52px;font-size:34px}
}

/* =========================================================
   v1.5.6 Compact Custom Popup Layout
   Keep the website custom form unchanged. The popup uses the
   same custom design, but in the compact layout shown in the
   Signup Template preview.
   ========================================================= */
.hxnv-popup-dialog-custom{
  width:min(100%,560px);
}
.hxnv-popup-dialog-custom .hxnv-template-custom{
  width:100%;
  max-width:520px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-inner{
  padding:28px 34px 22px;
  box-shadow:0 18px 50px rgba(10,18,35,.18);
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-kicker{
  gap:12px;
  margin:0 0 6px;
  font-size:10px;
  letter-spacing:3px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-kicker:before,
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-kicker:after{
  width:44px;
  height:1px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-copy h2{
  margin:0 0 4px;
  font-size:34px;
  line-height:1.1;
  letter-spacing:-.5px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-copy p{
  max-width:100%;
  margin:0 0 16px;
  font-size:15px;
  line-height:1.4;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row{
  grid-template-columns:minmax(0,1fr) 140px;
  gap:0;
  padding:4px;
  border:2px solid var(--hxnv-custom-border);
  border-radius:14px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row:before{
  left:18px;
  font-size:19px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row input[type=email]{
  min-height:48px;
  padding:10px 12px 10px 46px;
  border:0;
  border-radius:10px;
  background:transparent;
  font-size:14px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row input[type=email]:focus{
  box-shadow:none;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row button{
  min-height:48px;
  padding:10px 12px;
  border-radius:10px;
  font-size:12px;
  letter-spacing:0;
  box-shadow:none;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row button:before{
  display:none;
}
/* The popup includes the same explicit marketing consent checkbox as the standard signup form. */
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-consent{
  display:flex;
  margin:12px 0 0;
  gap:9px;
  align-items:flex-start;
  text-align:left;
  font-size:13px;
  line-height:1.4;
}
.hxnv-popup-dialog-custom .hxnv-popup-close{
  right:-18px;
  top:-18px;
  width:48px;
  height:48px;
  font-size:30px;
}
@media(max-width:600px){
  .hxnv-popup-dialog-custom{width:100%;}
  .hxnv-popup-dialog-custom .hxnv-template-custom{max-width:100%;}
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-inner{padding:42px 18px 18px;}
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-copy h2{font-size:28px;}
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-copy p{font-size:14px;}
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row{grid-template-columns:minmax(0,1fr) 118px;}
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row:before{top:50%;}
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row input[type=email],
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-input-row button{min-height:46px;font-size:12px;}
  .hxnv-popup-dialog-custom .hxnv-popup-close{right:8px;top:8px;width:40px;height:40px;font-size:26px;}
}

/* =========================================================
   v1.5.7 Custom Popup Refinement
   - Keep the preferred v1.5.6 compact layout
   - Move the close button inside the card, top-right
   - Make the popup slightly wider for better text fit
   ========================================================= */
.hxnv-popup-dialog-custom{
  width:min(100%,640px);
}
/* Make the dialog and newsletter card the same width so the close
   button is positioned INSIDE the visible card, not in empty dialog space. */
.hxnv-popup-dialog-custom .hxnv-template-custom{
  width:100%;
  max-width:640px;
}
.hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-inner{
  padding:30px 42px 24px;
}
.hxnv-popup-dialog-custom .hxnv-popup-close{
  right:16px;
  top:14px;
  width:48px;
  min-width:48px;
  height:48px;
  min-height:48px;
  padding:0;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  border-radius:50%;
}
@media(max-width:600px){
  .hxnv-popup-dialog-custom{width:100%;}
  .hxnv-popup-dialog-custom .hxnv-template-custom{width:100%;max-width:100%;}
  .hxnv-popup-dialog-custom .hxnv-template-custom .hxnv-form-inner{padding:48px 18px 18px;}
  .hxnv-popup-dialog-custom .hxnv-popup-close{right:12px;top:12px;width:42px;min-width:42px;height:42px;min-height:42px;font-size:26px;}
}

/* v1.5.8 close button placement safeguard */
.hxnv-popup-dialog-custom > .hxnv-popup-close{
  position:absolute !important;
  right:16px !important;
  top:14px !important;
  margin:0 !important;
  transform:none !important;
}
@media(max-width:600px){
  .hxnv-popup-dialog-custom > .hxnv-popup-close{right:12px !important;top:12px !important;}
}


/* v1.5.11 Popup background submission feedback */
.hxnv-popup .hxnv-input-row button:disabled{
  cursor:wait;
  opacity:.78;
  transform:none;
}
.hxnv-popup-success-message{
  margin-top:16px;
  text-align:center;
}
