/* NC Coupon Funnel — welcome popup + collapsed side tab.
   Palette follows the store: plum #3E1038, gold #B2863C, cream #FAF6F1.

   NOTE: nc-boutique-skin forces `h1..h6{color:#fff!important}` and
   `p{color:#D9CBD4!important}` plus light-on-dark input colours. On a white
   card that renders the heading invisible and the body copy washed out, so
   every text/form rule here is scoped as `body .ncf …` and carries
   !important to out-specify the skin. */

/* ---- shell --------------------------------------------------------------- */
.ncf{ position:fixed; inset:0; z-index:99990; display:flex; align-items:center; justify-content:center; padding:20px; }
.ncf[hidden]{ display:none !important; }
.ncf-ov{ position:absolute; inset:0; background:rgba(36,18,38,.55); backdrop-filter:blur(2px); animation:ncf-fade .22s ease both; }

.ncf-card{
  position:relative; z-index:1; width:100%; max-width:404px; max-height:calc(100vh - 40px);
  overflow:auto; background:#fff !important; border-radius:16px;
  box-shadow:0 24px 70px rgba(36,18,38,.32);
  animation:ncf-pop .26s cubic-bezier(.22,.9,.32,1) both;
  font-family:inherit; text-align:center;
}
.ncf-card-sm{ max-width:392px; }

@keyframes ncf-fade{ from{opacity:0} to{opacity:1} }
@keyframes ncf-pop{ from{opacity:0; transform:translateY(14px) scale(.97)} to{opacity:1; transform:none} }

.ncf-x{
  position:absolute; top:10px; right:10px; z-index:2;
  width:30px; height:30px; padding:0; border:0; border-radius:50%;
  background:rgba(255,255,255,.92) !important; color:#3E1038 !important;
  font-size:19px !important; line-height:1 !important; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(36,18,38,.16);
  transition:background .16s ease, transform .16s ease;
}
.ncf-x:hover{ background:#fff !important; transform:scale(1.06); }
/* The × glyph sits on the math axis, so flex-centring its line box still looks
   a hair high. An SVG cross is geometrically centred, so use that instead. */
body .ncf .ncf-x svg{ width:11px; height:11px; display:block; }

.ncf-media{ height:186px; overflow:hidden; background:#F3EAE1; }
.ncf-media img{ display:block; width:100%; height:100%; object-fit:cover; }

.ncf-body{ padding:22px 26px 24px; background:#fff !important; }
.ncf-body-center{ padding:34px 28px 28px; }

/* ---- copy ---------------------------------------------------------------- */
body .ncf .ncf-kick{
  display:inline-block !important; color:#B2863C !important;
  font-family:-apple-system,'Segoe UI',Helvetica,Arial,sans-serif !important;
  font-size:11.5px !important; font-weight:800 !important; line-height:1.4 !important;
  letter-spacing:2.2px !important; margin-bottom:9px;
}
body .ncf .ncf-title{
  margin:0 0 9px !important; padding:0 !important; color:#3E1038 !important;
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:23px !important; line-height:1.25 !important; font-weight:600 !important;
  letter-spacing:0 !important; text-transform:none !important;
}
body .ncf .ncf-sub{
  margin:0 0 16px !important; color:#6E5E68 !important;
  font-size:12.5px !important; line-height:1.6 !important; font-weight:400 !important;
}
body .ncf .ncf-note{
  margin:12px 0 0 !important; color:#7C6C74 !important;
  font-size:10.5px !important; line-height:1.5 !important; font-weight:400 !important;
}

/* ---- form ---------------------------------------------------------------- */
.ncf-form{ display:flex; flex-direction:column; gap:9px; }
body .ncf .ncf-input{
  width:100% !important; height:44px !important; margin:0 !important; padding:0 14px !important;
  border:1px solid #E0D5CC !important; border-radius:9px !important;
  background:#fff !important; color:#241226 !important;
  font-family:-apple-system,'Segoe UI',Helvetica,Arial,sans-serif !important;
  font-size:13px !important; line-height:42px !important; font-weight:400 !important;
  box-shadow:none !important; outline:none !important; -webkit-appearance:none;
}
body .ncf .ncf-input::placeholder{ color:#A99AA3 !important; opacity:1 !important; }
body .ncf .ncf-input:focus{
  border-color:#B2863C !important;
  box-shadow:0 0 0 3px rgba(178,134,60,.16) !important;
}

body .ncf .ncf-btn{
  width:100% !important; height:46px !important; padding:0 18px !important;
  border:0 !important; border-radius:9px !important; cursor:pointer;
  background:#3E1038 !important; color:#fff !important;
  font-family:-apple-system,'Segoe UI',Helvetica,Arial,sans-serif !important;
  font-size:13px !important; line-height:46px !important; font-weight:700 !important;
  letter-spacing:.3px !important; text-transform:none !important;
  transition:background .18s ease, opacity .18s ease, transform .12s ease;
}
body .ncf .ncf-btn:hover:not(:disabled){ background:#5A2152 !important; }
body .ncf .ncf-btn:active:not(:disabled){ transform:translateY(1px); }
body .ncf .ncf-btn:disabled{ opacity:.62 !important; cursor:default; }
body .ncf .ncf-btn-wide{ margin:4px 0 0 !important; }

body .ncf .ncf-msg{
  margin:11px 0 0 !important; padding:0 !important;
  font-size:11.5px !important; line-height:1.5 !important; font-weight:600 !important;
  color:#2F7D46 !important;
}
body .ncf .ncf-msg:empty{ display:none !important; }
body .ncf .ncf-msg.is-error{ color:#B32D2E !important; }

body .ncf .ncf-code{
  margin:6px 0 14px !important; padding:15px 20px !important;
  border:1px dashed #B2863C !important; border-radius:10px !important;
  background:#FDF9F3 !important; color:#3E1038 !important;
  font-size:21px !important; line-height:1.3 !important; font-weight:800 !important;
  letter-spacing:2.6px !important;
}

/* ---- collapsed side tab -------------------------------------------------- */
.ncf-tab{
  position:fixed; left:0; top:50%; transform:translateY(-50%); z-index:99970;
  display:flex; align-items:flex-start;
}
.ncf-tab[hidden]{ display:none !important; }
body .ncf-tab .ncf-tab-btn{
  padding:16px 10px !important; border:0 !important; border-radius:0 9px 9px 0 !important;
  cursor:pointer; background:#3E1038 !important; color:#fff !important;
  font-family:-apple-system,'Segoe UI',Helvetica,Arial,sans-serif !important;
  font-size:11px !important; line-height:1 !important; font-weight:800 !important;
  letter-spacing:2px !important; text-transform:none !important;
  writing-mode:vertical-rl !important;
  text-orientation:upright !important; /* letters stand upright, not lying on their side */
  box-shadow:0 6px 18px rgba(36,18,38,.26);
  transition:background .18s ease, padding .18s ease;
}
body .ncf-tab .ncf-tab-btn:hover{ background:#5A2152 !important; padding-right:13px !important; }
body .ncf-tab .ncf-tab-x{
  position:absolute; top:-9px; left:6px;
  width:19px; height:19px; padding:0; border:0; border-radius:50%;
  background:#fff !important; color:#7C6C74 !important;
  font-size:12px !important; line-height:1 !important; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 5px rgba(36,18,38,.28);
}
body .ncf-tab .ncf-tab-x:hover{ background:#3E1038 !important; color:#fff !important; }
body .ncf-tab .ncf-tab-x svg{ width:9px; height:9px; display:block; }

/* ---- mobile -------------------------------------------------------------- */
@media (max-width:560px){
  .ncf{ padding:14px; }
  .ncf-card{ max-width:100%; border-radius:14px; }
  .ncf-media{ height:150px; }
  body .ncf .ncf-title{ font-size:20px !important; }
  .ncf-body{ padding:18px 18px 20px; }
  .ncf-body-center{ padding:30px 20px 24px; }
  body .ncf-tab .ncf-tab-btn{
    padding:13px 8px !important; font-size:10px !important; letter-spacing:1.6px !important;
    writing-mode:vertical-rl !important; text-orientation:upright !important;
  }
}
