.ab1-ip {
  --ab1-v: 146, 70, 255;
  --ab1-bg: rgba(22, 14, 40, .62);
  --ab1-br: rgba(255,255,255,.10);
}

/* Row des icônes */
.ab1-ip-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;

  padding:10px 12px;

  background: var(--ab1-bg);
  border: 1px solid var(--ab1-br);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* "Payez en" */
.ab1-ip-prefix{
  font-weight:900;
  letter-spacing:.2px;
  color:#fff;
  opacity:.95;
  margin-right: 2px;
}

/* Pills type "icônes" noires */
.ab1-ip-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;

  border:0;
  cursor:pointer;

  padding:8px 12px;
  border-radius:12px;

  background: rgba(255,133,60,.72);
  color:#fff;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.ab1-ip-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.18), 0 0 0 3px rgba(var(--ab1-v), .18);
  background: rgba(0,0,0,.80);
}

.ab1-ip-pilltext{
  font-weight:900;
  font-size:16px;
  line-height:1;
}

/* Badge recommandé */
.ab1-ip-badge{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(var(--ab1-v), .22);
  border:1px solid rgba(var(--ab1-v), .35);
  color:#fff;
}


/* =========================
   "À partir de" (injecté sous le Total)
   - même X que "Total :" (padding 16px)
   - très proche du total
   - typo alignée
========================= */
.ab1-ip-fromline{
  /* rapproche du total */
  margin-top: -6px;

  /* même X que le texte du bandeau (padding horizontal 16px) */
  padding-left: 0px;
  padding-right: 16px;

  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  /* rendu glass léger mais discret */
  background: transparent;
  border: none;
  border-radius: 0;
}

.ab1-ip-fromline small,
.ab1-ip-fromline strong{
  font-size: 14px;
  line-height: 1;
}

.ab1-ip-fromline small{
  opacity:.80;
  font-weight:700;
}

.ab1-ip-fromline strong,
.ab1-ip-fromline .ab1-ip-fromvalue{
  font-weight:900;
  letter-spacing:.2px;
}

/* =========================
   Modal
========================= */
.ab1-ip-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:99999;
}
.ab1-ip-modal.is-open{ display:block; }

.ab1-ip-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.ab1-ip-panel{
  position:absolute;
  right: 16px;
  left: 16px;
  max-width: 560px;
  margin: 7vh auto 0;

  border-radius: 0px;
  background: rgba(18, 10, 34, .78);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  color:#fff;
  overflow:hidden;
}

.ab1-ip-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.ab1-ip-panel-title{
  font-weight:900;
  letter-spacing:.2px;
}

.ab1-ip-close{
  border:none;
  background:transparent;
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  opacity:.85;
}
.ab1-ip-close:hover{ opacity:1; }

.ab1-ip-panel-body{ padding:14px 16px; }

/* =========================
   Tableau échéances : 1 seul cadre
   - pas de border radius
   - lignes serrées
========================= */
.ab1-ip-table{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 0;          /* ✅ cadre droit */
  padding: 8px 12px;
  margin-bottom: 12px;
}

.ab1-ip-line{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding: 6px 0;            /* ✅ resserré */
  margin: 0;

  background: transparent;   /* ✅ plus de "carte" */
  border: none;              /* ✅ */
  border-radius: 0;          /* ✅ */
}

.ab1-ip-line + .ab1-ip-line{
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ab1-ip-line .k{
  font-weight:700;
  opacity:.90;
  font-size: 13px;
}

.ab1-ip-line .v{
  font-weight:900;
  font-size: 13px;
}

/* =========================
   Summary
========================= */
.ab1-ip-summary{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  display:grid;
  gap:8px;
}

.ab1-ip-sum-line{
  display:flex;
  justify-content:space-between;
  opacity:.92;
}

.ab1-ip-disclaimer{
  margin-top:6px;
  font-size:12px;
  opacity:.68;
}

/* Footer */
.ab1-ip-panel-foot{
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:flex-end;
}

.ab1-ip-btn-close{
  padding:10px 12px;
  border-radius:0px;
  border:1px solid rgba(var(--ab1-v), .40);
  background: rgba(var(--ab1-v), .18);
  color:#fff;
  cursor:pointer;
  font-weight:800;
}
.ab1-ip-btn-close:hover{
  box-shadow: 0 0 0 3px rgba(var(--ab1-v), .18);
}

/* Mobile portrait : éviter chevauchements dans le bandeau total */
@media (max-width: 480px) {

  /* Le bandeau sticky du configurator : on force une colonne */
  .ab1c-total{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  /* Ligne Total : prend toute la largeur, pas de wrap bizarre */
  .ab1c-total-line{
    width: 100% !important;
    white-space: normal !important;
  }

  /* Notre "À partir de" : sous le total, même padding, mais plus compact */
  .ab1-ip-fromline{
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-top: 0 !important;
    justify-content: space-between !important;
  }

  .ab1-ip-fromline small,
  .ab1-ip-fromline strong{
    font-size: 13px !important;
  }
}

@media (max-width: 480px){
  .ab1-ip-row{
    gap:8px;
  }
  .ab1-ip-prefix{
    width:100%;
    margin-bottom:2px;
  }
}
