/* General container styling */
.payment-plan-container {
  font-family: Aeonik Trial, sans-serif;
  margin: 1rem 0;
  padding: 1rem;
}

.payment-plan-container td,
.payment-plan-container th {
  border-width: 0 1px 1px 0 !important; /* Apply borders to top, right, and bottom */
}

.payment-plan-container td:last-child,
.payment-plan-container th:last-child {
  border-right: none !important; /* Remove the right border on the last cell */
}

#payment-plan-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.trade-in-amount {
  margin-bottom: 0 !important;
}

/* Styled table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.styled-table th,
.styled-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.styled-table th {
  background-color: #f1f1f1;
  font-weight: bold;
  color: #333;
}

.styled-table tr:last-child td {
  border-bottom: none;
}

.styled-table td {
  color: #555;
}

/* ✅ RESPONSIVE TABLE */
@media (max-width: 768px) {
  .styled-table thead {
    display: none; /* Hide table header on mobile */
  }

  .styled-table tbody,
  .styled-table tr,
  .styled-table td {
    display: block;
    width: 100%;
  }

  td#free-product {
    display: flex !important;
  }

  .styled-table tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  .styled-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 0px;
    border-bottom: 1px solid #ddd !important;
  }

  .styled-table td::before {
    content: attr(data-label); /* Use table header as label */
    position: absolute;
    left: 10px;
    font-weight: bold;
    text-transform: capitalize;
    color: #333;
  }
}

/* Buttons styling */
#proceed-to-checkout {
  display: inline-block;
  margin-top: 1rem;
  padding: 16px 24px;
  background-color: #222a31;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 16px !important;
  font-weight: bold;
  cursor: pointer;
}

.payment-plan-container input,
.payment-plan-container select {
  border-radius: 8px !important;
}
