/* =========================================
   Notify When Arrives (NWA) – Clean CSS (v2)
   - Geen Colorbox layout overrides (voorkomt 'alleen overlay')
   - Alleen styling voor NWA elementen
   - Consistent met tokens van de nieuwe huisstijl
   ========================================= */

/* Fallbacks als tokens ontbreken */
:root{
  --nwa-surface: var(--color-surface, #ffffff);
  --nwa-bg-soft: var(--color-bg-soft, #f6f7f9);

  --nwa-border: var(--color-border-subtle, rgba(17,24,39,.14));
  --nwa-border-strong: var(--color-border-strong, rgba(17,24,39,.22));

  --nwa-text: var(--color-text-main, #111827);
  --nwa-text-soft: var(--color-text-soft, #4b5563);
  --nwa-text-subtle: var(--color-text-subtle, #6b7280);

  --nwa-accent: var(--color-accent, #2563eb);
  --nwa-neutral-strong: var(--color-neutral-strong, #111827);

  --nwa-radius-lg: var(--radius-lg, 16px);
  --nwa-radius-md: var(--radius-md, 12px);

  --nwa-space-3: var(--space-3, 12px);
  --nwa-space-4: var(--space-4, 16px);
  --nwa-space-5: var(--space-5, 20px);

  --nwa-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,.12));
}

/* =========================================
   1) PRODUCTPAGE BLOCK (#nwa_product)
   ========================================= */

.nwa_list_button_custom{
  background-color: #fff;
  color: var(--color-text-soft);
  border: 1px solid var(--color-border-subtle);
  opacity: 1;
  cursor: pointer;
}

/* Hover / focus */
.nwa_list_button_custom:hover,
.nwa_list_button_custom:focus-visible{
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: var(--color-primary-soft, rgba(34,197,94,.08));
}

/* Active feedback */
.nwa_list_button_custom:active{
  transform: scale(0.96);
}



#nwa_product{
  margin: 18px 0;
}

#nwa_product .box-content{
  padding: var(--nwa-space-5);
  background: var(--nwa-surface);
  border: 1px solid var(--nwa-border);
  border-radius: var(--nwa-radius-lg);
  box-sizing: border-box;
}

#nwa_product_box_title,
#nwa_title{
  display: block;
  margin: 0 0 var(--nwa-space-3) 0;
  padding: 0 0 var(--nwa-space-3) 0;

  color: var(--nwa-text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;

  border-bottom: 1px solid var(--nwa-border);
}

#colorbox {
    box-shadow: none !important;
    webkit-box-shadow: none !important;
    border-radius: none !important;
}

#cboxContent {
    background: none !important;
}

#nwa_product_box_description{
  margin: 0 0 var(--nwa-space-4) 0;
  color: var(--nwa-text-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* Input */
#nwa_email{
  display: block;
  width: 100%;
  box-sizing: border-box;

  height: 54px;
  padding: 0 16px;

  background: #fff;
  border: 1px solid var(--nwa-border-strong);
  border-radius: var(--nwa-radius-md);

  color: var(--nwa-text);
  font-size: 16px;
  line-height: 1;

  transition: border-color .15s ease, box-shadow .15s ease;
}

#nwa_email:focus{ outline: none; }
#nwa_email:focus-visible{
border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
    outline: none;
}

/* Knop onder input */
#nwa_product_register{
  display: flex;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;

  margin-top: 12px;
  height: 54px;
  padding: 0 18px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--nwa-neutral-strong);
  background: var(--nwa-neutral-strong);
  color: var(--color-text-invert, #fff);

  border-radius: var(--nwa-radius-md);
  text-decoration: none;

  font-size: 16px;
  font-weight: 700;
  line-height: 1;

  transition: filter .15s ease, transform .10s ease;
}

#nwa_product_register:hover{ filter: brightness(0.95); }
#nwa_product_register:active{ transform: translateY(1px); }
#nwa_product_register:focus-visible{
border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
    outline: none;
}

/* Messages */
#nwa_product_msg{ margin-top: var(--nwa-space-3); }

#nwa_product_success,
#nwa_product_error{
  padding: 10px 12px;
  border-radius: var(--nwa-radius-md);
  font-size: 14px;
  line-height: 1.45;
}

#nwa_product_success{
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.22);
  color: rgb(6,95,70);
}

#nwa_product_error{
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color: rgb(153,27,27);
}

/* =========================================
   2) LIST / POPUP (#nwa_list) – categorie (Colorbox)
   Belangrijk: we wijzigen NIET #colorbox/#cbox* layout.
   ========================================= */

#nwa_list{
  position: relative;
  width: min(520px, calc(100vw - 24px));
  box-sizing: border-box;
}

#nwa_list .box-content{
  position: relative;
  padding: var(--nwa-space-5);
  box-sizing: border-box;

  background: var(--nwa-surface);
  border: 1px solid var(--nwa-border);
  border-radius: var(--nwa-radius-lg);
  box-shadow: var(--nwa-shadow);
}

/* Titel + scheiding */
#nwa_list_box_title{
  display: block;
  margin: 0 0 var(--nwa-space-3) 0;
  padding: 0 52px var(--nwa-space-3) 0;

  color: var(--nwa-text);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;

  border-bottom: 1px solid var(--nwa-border);
}

#nwa_list_box_description{
  margin: 0 0 var(--nwa-space-4) 0;
  color: var(--nwa-text-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* Close */
#nwa_list_close{
  position: absolute;
  top: 12px;
  right: 12px;

  width: 40px;
  height: 40px;

  border: 0;
  background: transparent;
  cursor: pointer;

  border-radius: var(--nwa-radius-md);
  text-decoration: none;

  color: var(--nwa-text-subtle);
  transition: background .15s ease, color .15s ease, transform .10s ease;
}

#nwa_list_close:hover{
  background: var(--nwa-bg-soft);
  color: var(--nwa-text);
}

#nwa_list_close:active{ transform: translateY(1px); }
#nwa_list_close:focus-visible{
  outline: 2px solid var(--nwa-accent);
  outline-offset: 2px;
}

#nwa_list_close > span{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Input */
#nwa_list_email{
  display: block;
  width: 100%;
  box-sizing: border-box;

  height: 54px;
  padding: 0 16px;

  background: #fff;
  border: 1px solid var(--nwa-border-strong);
  border-radius: var(--nwa-radius-md);

  color: var(--nwa-text);
  font-size: 15px;
  line-height: 1;

  transition: border-color .15s ease, box-shadow .15s ease;
}

#nwa_list_email:focus{ outline: none; }
#nwa_list_email:focus-visible{
  border-color: var(--nwa-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--nwa-accent) 35%, transparent);
}

/* Knop onder input */
#nwa_list_register{
  display: flex;
  width: 100%;
  box-sizing: border-box;

  margin-top: 12px;
  height: 54px;
  padding: 0 18px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--nwa-neutral-strong);
  background: var(--nwa-neutral-strong);
  color: var(--color-text-invert, #fff);

  border-radius: var(--nwa-radius-md);
  text-decoration: none;
  cursor: pointer;

  font-size: 15px;
  font-weight: 700;
  line-height: 1;

  transition: filter .15s ease, transform .10s ease;
  cursor: pointer;
}

#nwa_list_register:hover{ filter: brightness(0.95); }
#nwa_list_register:active{ transform: translateY(1px); }
#nwa_list_register:focus-visible{
  outline: 2px solid var(--nwa-accent);
  outline-offset: 2px;
}

#nwa_list_register > span{
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Messages */
#nwa_list_msg{ margin-top: var(--nwa-space-3); }

#nwa_list_success,
#nwa_list_error{
  padding: 10px 12px;
  border-radius: var(--nwa-radius-md);
  font-size: 15px;
  line-height: 1.45;
}

#nwa_list_success{
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.22);
  color: rgb(6,95,70);
}

#nwa_list_error{
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color: rgb(153,27,27);
}

/* Mobile */
@media (max-width: 520px){
  #nwa_list_box_title{ font-size: 22px; }
  #nwa_list .box-content{ padding: 18px; }
}

/* Optioneel: dubbele close van Colorbox verbergen */
/* #cboxClose{ display:none !important; } */
