/* Legacy Invite Payment Ladder product-page presentation. */
.ipl-container,
.ipl-container * {
  box-sizing: border-box;
}

.ipl-container {
  margin: 15px 0 20px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}

.ipl-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid #ccebd6;
  border-left: 4px solid #27ae60;
  border-radius: 4px;
  background: #f4fdf8;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.ipl-header-text {
  display: flex;
  align-items: center;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

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

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

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

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

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

.ipl-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin: 0;
}

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

.ipl-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  margin-right: 12px;
  padding-top: 4px;
}

.ipl-dot,
.ipl-dot-hollow {
  position: relative;
  z-index: 3;
  display: block;
  border-radius: 50%;
}

.ipl-dot {
  width: 14px;
  height: 14px;
  background: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

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

.ipl-step:not(:last-of-type) .ipl-marker::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 11px;
  bottom: calc(-1 * var(--ipl-gap));
  left: 11px;
  width: 2px;
  background: #eee;
}

.ipl-connector,
.ipl-connector::before {
  display: none !important;
  content: none !important;
}

.ipl-content {
  flex: 1;
  min-width: 0;
}

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

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

.ipl-amount {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

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

.ipl-sub {
  display: block;
  color: #777f7b;
  font-size: 16px;
  line-height: 1.4;
}

.awcdp-deposits-option {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.awcdp-radio.pay-full.ipl-promo-active {
  position: relative;
  padding: 15px;
  border: 2px solid #27ae60;
  border-radius: 8px;
  background: #f0fdf4;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.awcdp-radio.pay-full.ipl-promo-active .ipl-save-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #27ae60;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.awcdp-radio.pay-deposit {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

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

@media (max-width: 520px) {
  .ipl-container {
    margin-block: 12px 18px;
  }

  .ipl-accordion-header {
    padding: 12px;
  }

  .ipl-header-text {
    font-size: 16px;
  }

  .ipl-accordion-body {
    --ipl-gap: 18px;
    padding: 14px 12px;
  }

  .ipl-row {
    align-items: flex-start;
    gap: 8px;
  }

  .ipl-label,
  .ipl-amount {
    font-size: 16px;
  }

  .ipl-step.active .ipl-amount {
    font-size: 17px;
  }

  .ipl-sub {
    padding-right: 4px;
    font-size: 14px;
  }

  .awcdp-radio.pay-deposit,
  .awcdp-radio.pay-full.ipl-promo-active {
    padding: 14px 12px;
  }

  .awcdp-radio.pay-full.ipl-promo-active .ipl-save-badge {
    right: 12px;
  }
}
