.woocommerce-installment-details {
    background: #f9f9f9;
    font-size: 0.95rem;
    border-left: 4px solid #007cba;
}

.installment-option {
    color: #1a1a1a;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 3px solid #b8860b;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    font-size: 16px;
}
/*
.installment-option {
    color: #2c3e50;
    margin: 18px 0;
    padding: 18px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    border-left: 6px solid #1976d2;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    font-size: 15px;
    font-weight: 600;
}

.installment-option {
    color: #1e3a5f;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    font-weight: 700;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.installment-option {
    color: #2d3748;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e53e3e;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.installment-option {
    color: #1a202c;
    margin: 25px 0;
    padding: 20px 20px 20px 60px;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border: 3px solid #38a169;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.3);
    font-weight: 700;
    font-size: 16px;
    position: relative;
}*/

/*===Goes together with ::before==*/
/*.installment-option {
    color: #1a202c;
    margin: 25px 0;
    padding: 20px 20px 20px 60px;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border: 3px solid #38a169;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.3);
    font-weight: 700;
    font-size: 16px;
    position: relative;
}
.installment-option::before {
    content: "ðŸ’°";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}*/
/*
.installment-option {
    color: #2d3748;
    margin: 20px 0;
    padding: 18px;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border: 3px solid #e53e3e;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    font-weight: 700;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}*/


/*===Complete CSS with Checkbox Styling===*/

/*.installment-option {
    color: #1a202c;
    margin: 25px 0;
    padding: 20px 20px 20px 60px;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border: 3px solid #38a169;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.3);
    font-weight: 700;
    font-size: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.installment-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
}

.installment-option::before {
    content: "💰";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}*/

/* Checkbox container */
/*.installment-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: 700;
}

/* Hide default checkbox */
/*.installment-option input[type="checkbox"] {
    display: none;
}*/

/* Custom checkbox */
/*.installment-option label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    border: 2px solid #38a169;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}*/

/* Checkbox checked state */
/*.installment-option input[type="checkbox"]:checked + label::before {
    background: #38a169;
    border-color: #2d784c;
}*/

/* Checkmark */
/*.installment-option input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}*/

/* Focus state for accessibility */
/*.installment-option input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.3);
    outline: none;
}*/


.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;
}