/* =========================================
   Invite Payment Ladder (Consolidated)
   Uses dynamic connector via .ipl-marker::after
   ========================================= */

/* 1) Main Container & Accordion */
.ipl-container {
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  font-family: inherit;
  box-sizing: border-box;
}

.ipl-accordion-header {
    /* 1. Subtle Mint Background: Stands out from white page, but isn't loud */
    background: #f4fdf8; 
    
    /* 2. Soft Green Border: Defines the edges cleanly */
    border: 1px solid #ccebd6;
    
    /* 3. The "Accent" Line: This is the key. It draws the eye immediately. */
    border-left: 4px solid #27ae60; 
    
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px; /* Softens the corners */
    transition: all 0.2s ease;
}

.ipl-accordion-header:hover {
    background: #eafaf1; 
    transform: translateY(-1px); /* subtle movement */
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.15); /* soft green shadow */
}

.ipl-header-text {
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.ipl-header-text strong {
  color: #27ae60;
  font-weight: 700;
}

/* Make the icon a circular badge */
.ipl-icon {
    margin-right: 10px;
    color: #fff;
    background: #27ae60;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.ipl-chevron {
  font-size: 11px;
  color: #aaa;
  transition: transform 0.3s ease;
}

.ipl-chevron.rotate { transform: rotate(180deg); }

.ipl-accordion-body {
  display: none;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #eee;

  /* gap between steps (controls connector length between rows) */
  --ipl-gap: 20px;
}

/* 2) Steps Layout */
.ipl-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin: 0;
}

.ipl-step:not(:last-of-type) {
  padding-bottom: var(--ipl-gap);
}

/* Marker column */
.ipl-marker {
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  margin-right: 12px;
  display: flex;
  justify-content: center;
  padding-top: 4px;           /* aligns dot with text cap-height */
  position: relative;
  z-index: 2;
}

/* Dots */
.ipl-dot {
  width: 14px;
  height: 14px;
  background-color: #27ae60;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
  display: block;
}

.ipl-dot-hollow {
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  background: #fff;
  border-radius: 50%;
  display: block;
}

/* Dynamic connector line (single line per step, no broken segments) */
.ipl-step:not(:last-of-type) .ipl-marker::after {
  content: "";
  position: absolute;
  left: 11px;
  transform: none;
  top: 11px;
/*  bottom: calc(-1 * var(--ipl-gap)); */
  width: 2px;
  background: #eee;
  z-index: 1;
}

/* Keep dots above the connector */
.ipl-dot, .ipl-dot-hollow {
  position: relative;
  z-index: 3;
}

/* IMPORTANT: disable old connector blocks entirely */
.ipl-connector,
.ipl-connector::before {
  display: none !important;
  content: none !important;
}

/* 3) Content Typography */
.ipl-content { flex: 1; }

.ipl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px!important;
  line-height: 1.4;
  margin-bottom: 2px;
}

.ipl-label {
  color: #444;
  font-weight: 500;
  font-size: 18px!important;
}

.ipl-amount {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  font-size: 18px!important; /* Updated to match the heading size */
}

.ipl-step.active .ipl-amount {
  color: #27ae60;
  font-size: 19px!important;
}

.ipl-sub {
  font-size: 16px!important;
  color: #888;
  line-height: 1.3;
  display: block;
  font-size: 20px;   /* Updated to 16px */
}

/* =========================================
   4. Promo / Discount Radio Styling
   ========================================= */

/* 1. Reset wrapper spacing */
.awcdp-deposits-option {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Give space for the badge */
}

/* 2. Style the Full Payment Option (ONLY when active) */
.awcdp-radio.pay-full.ipl-promo-active {
    background: #f0fdf4; /* Mint Green Background */
    border: 2px solid #27ae60; /* Strong Green Border */
    padding: 15px;
    border-radius: 8px;
    position: relative; /* Anchor for the badge */
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.1);
}

/* The "SAVE 10%" Badge */
.awcdp-radio.pay-full.ipl-promo-active::after {
    content: "Save 10%";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px; /* Pill shape */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}

/* 3. Make the Deposit Option look "Neutral" so the Deal pops */
.awcdp-radio.pay-deposit {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    opacity: 0.9;
}

/* 4. Bigger Radio Buttons */
.awcdp-radio input[type="radio"] {
    accent-color: #27ae60;
    transform: scale(1.3);
    margin-right: 10px;
}

