.woocommerce-installment-details {
    background: #f9f9f9;
    font-size: 0.95rem;
    border-left: 4px solid #007cba;
}

/*.installment-option {
    color:#333;
    margin: 15px 0;
    padding: 10px;
    background:#345c63;
    background-color: #28a745;
    border: 1px solid #eee;
}*/

.installment-details {
    margin-top: 0.5em;
    font-size: 0.9em;
}

.woocommerce-cart-table small,
.woocommerce-checkout-review-order-table small {
    display: block;
    font-size: 0.8em;
    color: #666;
}

/* Style for installment notice at checkout */
.woocommerce-info.installment-notice {
    background-color: #f5f5f5;
    border-left: 5px solid #57b33e;
    padding: 15px 20px;
    margin: 20px 0;
    color: #345c63;
    font-size: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(52, 92, 99, 0.1);
}

.woocommerce-info.installment-notice strong {
    color: #f47c30;
    display: inline-block;
    margin-right: 8px;
}

.woocommerce-error li:contains("only have one active installment") {
    color: #d63638;
    font-weight: bold;
}
.lipa-mdogo-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(52, 92, 99, 0.8); /* semi-transparent background using #345c63 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lipa-mdogo-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    padding: 10px;
}

.lipa-mdogo-close {
    color: #f47c30; /* orange close button */
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.lipa-mdogo-close:hover {
    color: #57b33e; /* green hover */
}

.installment-notice a#lipa-mdogo-terms-link {
    color: #57b33e; /* green link */
    text-decoration: underline;
    cursor: pointer;
}

/*form UI*/
.portfolio-form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-form-left {
  flex: 1;
}

.portfolio-form-wrapper h2.title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f1f1f;
}

.portfolio-form-wrapper .description {
  font-size: 13px;
  color: #666;
  margin: 4px 0 12px 0;
}

.portfolio-form-wrapper input[type="text"],
.portfolio-form-wrapper input[type="url"],
.portfolio-form-wrapper select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 4px;
  margin-bottom: 0.5rem;
}

.portfolio-form-wrapper input[type="checkbox"] {
  transform: scale(1.1);
  margin-right: 6px;
}

.portfolio-form-wrapper .save-next {
  background: linear-gradient(to right, #7b61ff, #4d47ff);
  color: white !important;
  padding: 0.65rem 1.25rem;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
}

.portfolio-form-image {
  width: 280px;
  flex-shrink: 0;
  text-align: center;
}

.portfolio-form-image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.lipa-mdogo-customer-portal {
    max-width: 1000px;
    margin: 2em auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lipa-mdogo-customer-portal table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.lipa-mdogo-customer-portal th {
    text-align: left;
    padding: 12px;
    background: #f8f8f8;
    border-bottom: 2px solid #ddd;
}

.lipa-mdogo-customer-portal td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.lipa-mdogo-customer-portal .button {
    white-space: nowrap;
}

/* My Account integration */
.woocommerce-account .lipa-mdogo-portal {
    margin: 2em 0;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Standalone page styling */
.page-template-default .lipa-mdogo-portal {
    max-width: 1000px;
    margin: 2em auto;
    padding: 20px;
}