:root{
  --green:#61c454;
  --green-dark:#4fb445;
  --bg:#f3f3f3;
  --card:#f8f8f8;
  --line:#d9d9d9;
  --text:#171717;
  --muted:#6f7683;
  --danger:#ef3d2f;
}

.novalyx-checkout{
  font-family:Poppins,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

.novalyx-checkout *{
  box-sizing:border-box;
}

/* largeur globale */
.novalyx-wrap,
.novalyx-wrap--narrow{
  width:min(85%, 1240px);
  margin:0 auto;
}

/* haut */
.novalyx-topbar{
  background:linear-gradient(135deg,var(--green-dark),var(--green));
  color:#fff;
  text-align:center;
  padding:16px 12px;
  font-size:20px;
  font-weight:700;
  position:sticky;
  top:0;
  z-index:20;
}

.novalyx-header{
  padding:24px 0 8px;
}

.novalyx-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding:4px 0 10px;
}

.novalyx-brand-row{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.novalyx-logo-slot img{
  max-height:38px;
  display:block;
}

.novalyx-divider{
  width:1px;
  height:42px;
  background:#d4d4d4;
}

.novalyx-secure-text{
  display:flex;
  align-items:center;
  gap:10px;
  color:#616161;
  font-size:20px;
  font-weight:500;
}

.novalyx-badges{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.novalyx-badges img{
  display:block;
  max-height:42px;
  width:auto;
}

.novalyx-offer-title{
  text-align:center;
  padding:22px 0 12px;
  font-size:clamp(28px,3vw,38px);
  font-weight:800;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:-.4px;
}

.novalyx-offer-title .red{
  color:var(--danger);
}

.novalyx-applied-banner{
  background:#c9f0c1;
  border-radius:16px;
  padding:16px 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:clamp(17px,2vw,24px);
  color:#2e4731;
  font-weight:500;
  margin-bottom:18px;
}

.novalyx-applied-banner .check{
  font-size:28px;
  line-height:1;
  color:#59b85a;
}

.novalyx-social-proof{
  display:flex;
  align-items:center;
  gap:10px;
  color:#5d87f5;
  font-size:14px;
  font-weight:500;
  margin-bottom:10px;
}

/* sections */
.novalyx-section{
  padding:16px 0 22px;
}

.novalyx-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
  border-bottom:1px solid #d9d9d9;
  padding-bottom:8px;
}

.novalyx-section-head h2{
  margin:0;
  font-size:clamp(24px,3vw,32px);
  letter-spacing:-.3px;
}

.novalyx-section-head p{
  margin:4px 0 0;
  color:#78c96a;
  font-size:14px;
  font-weight:600;
}

/* packs */
.novalyx-packs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}

.novalyx-pack{
  position:relative;
  background:#f8f8f8;
  border:1px solid #cfcfcf;
  padding:18px 16px 16px;
  transition:.2s ease;
  overflow:hidden;
  cursor:pointer;
  min-width:0;
}

.novalyx-pack.selected{
  border:4px solid var(--green);
  background:#f7f7f7;
}

.novalyx-pack-badge{
  position:absolute;
  top:0;
  left:0;
  right:0;
  background:var(--green);
  color:#1d1d1d;
  font-size:13px;
  font-weight:800;
  padding:12px 16px;
  text-transform:uppercase;
  text-align:left;
}

.novalyx-pack-name{
  margin:0;
  font-size:26px;
  letter-spacing:-.2px;
  text-align:center;
  padding-top:38px;
}

.novalyx-pack-image{
  padding:10px 0 4px;
  text-align:center;
}

.novalyx-pack-image img{
  height:170px;
  width:100%;
  object-fit:contain;
}

.novalyx-price-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
}

.novalyx-old-price{
  text-decoration:line-through;
  font-size:21px;
  font-weight:500;
  color:#111;
}

.novalyx-new-price{
  font-size:34px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.8px;
  color:var(--danger);
}

.novalyx-saving{
  color:#111;
  font-weight:500;
  font-size:14px;
  margin-bottom:8px;
  text-align:center;
}

.novalyx-pack-free{
  color:#2b6fb0;
  font-weight:500;
  font-size:14px;
  text-transform:uppercase;
  text-align:center;
}

/* protection */
.novalyx-shipping-protect{
  background:#f8f8f8;
  border:1px solid #d9d9d9;
  border-radius:16px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:16px;
  flex-wrap:wrap;
}

.novalyx-shipping-protect label{
  display:flex;
  align-items:center;
  gap:12px;
}

.novalyx-protection-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.novalyx-protection-copy small{
  color:#666;
  line-height:1.45;
}

.novalyx-protection-price{
  font-size:22px;
  font-weight:800;
}

/* grille checkout */
.novalyx-checkout-grid{
  display:grid;
  grid-template-columns:minmax(220px,.62fr) minmax(0,1.18fr) minmax(260px,.78fr);
  gap:22px;
  align-items:start;
}

/* cartes */
.novalyx-card{
  background:#f8f8f8;
  border:1px solid #d9d9d9;
  border-radius:16px;
  padding:16px;
}

.novalyx-card h3{
  margin:0 0 14px;
  font-size:22px;
}

/* colonne gauche moins large visuellement */
.novalyx-side-card{
  max-width:300px;
  width:100%;
  justify-self:start;
}

.novalyx-benefits{
  display:grid;
  gap:14px;
}

.novalyx-benefit{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:start;
}

.novalyx-benefit-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:20px;
}

.novalyx-benefit strong{
  display:block;
  margin-bottom:4px;
  font-size:15px;
}

.novalyx-benefit p{
  margin:0;
  color:#555;
  line-height:1.5;
  font-size:14px;
}

.novalyx-reviews{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.novalyx-review{
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px;
  background:#fff;
}

.novalyx-review-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}

.novalyx-review-name{
  font-weight:700;
  font-size:14px;
}

.novalyx-review-city{
  font-size:12px;
  color:#777;
}

.novalyx-review p{
  margin:0;
  color:#444;
  line-height:1.45;
  font-size:13px;
}

/* colonne milieu */
.novalyx-checkout-card{
  min-width:0;
}

/* IMPORTANT : on laisse WooCommerce respirer */
.novalyx-woo-checkout form.checkout{
  display:block !important;
}

.novalyx-woo-checkout #customer_details{
  display:block !important;
  margin:0 !important;
}

.novalyx-woo-checkout .col2-set{
  display:block !important;
}

.novalyx-woo-checkout .col-1,
.novalyx-woo-checkout .col-2{
  float:none !important;
  width:100% !important;
  margin:0 0 16px 0 !important;
}

.novalyx-woo-checkout .woocommerce-billing-fields,
.novalyx-woo-checkout .woocommerce-additional-fields{
  background:#fff;
  padding:16px;
  border-radius:12px;
  border:1px solid #ddd;
}

.novalyx-woo-checkout .woocommerce-form-coupon-toggle,
.novalyx-woo-checkout .woocommerce-NoticeGroup,
.novalyx-woo-checkout .woocommerce-notices-wrapper{
  margin-bottom:12px;
}

.novalyx-woo-checkout input.input-text,
.novalyx-woo-checkout select,
.novalyx-woo-checkout textarea{
  border-radius:12px !important;
  border:1px solid #ddd !important;
  background:#fff !important;
  min-height:48px;
  padding:10px 14px !important;
  box-shadow:none !important;
}

.novalyx-woo-checkout textarea{
  min-height:90px;
}

.novalyx-woo-checkout label{
  font-weight:600;
  color:#222;
  margin-bottom:6px;
  display:block;
}

/* on masque le review natif car tu as une card à droite */
.novalyx-woo-checkout #order_review_heading,
.novalyx-woo-checkout #order_review{
  display:none !important;
}

.novalyx-woo-checkout .woocommerce-checkout-payment{
  margin-top:14px;
}

.novalyx-woo-checkout #payment{
  background:#fff !important;
  border:1px solid #ddd;
  border-radius:12px;
  padding:16px;
}

.novalyx-woo-checkout #place_order{
  background:linear-gradient(135deg,var(--green-dark),var(--green)) !important;
  border:none !important;
  border-radius:14px !important;
  min-height:56px;
  font-size:20px !important;
  font-weight:700;
}

/* colonne droite */
.novalyx-summary-card{
  position:sticky;
  top:84px;
  align-self:start;
}

.novalyx-selected-summary{
  display:grid;
  grid-template-columns:78px 1fr;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  margin-bottom:14px;
}

.novalyx-selected-image img{
  width:78px;
  height:78px;
  object-fit:contain;
  background:#f7f7f7;
  border:1px solid #ddd;
  border-radius:10px;
  padding:6px;
}

.novalyx-selected-name{
  font-weight:700;
  font-size:17px;
}

.novalyx-selected-price{
  font-size:24px;
  font-weight:800;
  color:var(--danger);
}

.novalyx-summary-points{
  display:grid;
  gap:10px;
  margin-top:14px;
  color:#444;
  font-size:14px;
  line-height:1.5;
}

/* sticky mobile */
.novalyx-sticky-mobile{
  display:none;
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:30;
  background:#171717;
  color:#fff;
  border-radius:16px;
  padding:12px 14px;
  align-items:center;
  gap:12px;
}

.novalyx-sticky-mobile .meta{
  flex:1;
  min-width:0;
}

.novalyx-sticky-mobile strong{
  display:block;
  font-size:14px;
}

.novalyx-sticky-mobile span{
  font-size:13px;
  color:#ddd;
}

.novalyx-sticky-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 16px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--green-dark),var(--green));
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

/* responsive */
@media (max-width: 1200px){
  .novalyx-wrap,
  .novalyx-wrap--narrow{
    width:min(92%, 1240px);
  }

  .novalyx-checkout-grid{
    grid-template-columns:.72fr 1.28fr;
  }

  .novalyx-summary-card{
    grid-column:2;
    position:static;
  }
}

@media (max-width: 980px){
  .novalyx-wrap,
  .novalyx-wrap--narrow{
    width:calc(100% - 24px);
  }

  .novalyx-header-row{
    align-items:flex-start;
  }

  .novalyx-packs,
  .novalyx-checkout-grid{
    grid-template-columns:1fr;
  }

  .novalyx-pack{
    padding:16px;
  }

  .novalyx-pack-image img{
    height:160px;
  }

  .novalyx-new-price{
    font-size:32px;
  }

  .novalyx-topbar{
    font-size:16px;
    padding:12px;
  }

  .novalyx-offer-title{
    font-size:26px;
    line-height:1.3;
  }

  .novalyx-applied-banner{
    padding:14px;
    font-size:18px;
  }

  .novalyx-badges{
    justify-content:flex-start;
  }

  .novalyx-badges img{
    max-height:34px;
  }

  .novalyx-side-card{
    max-width:none;
  }

  .novalyx-summary-card{
    position:static;
  }

  .novalyx-sticky-mobile{
    display:flex;
  }

  body{
    padding-bottom:86px;
  }
}