/* ===== WCCI Frontend (My Account + Cart Preview) ===== */
.wcci-account { max-width: 600px; font-family: inherit; }

.wcci-credit-summary {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.wcci-credit-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.wcci-credit-header h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.wcci-pay-badge { background: #1A73E8; color: #fff; border-radius: 12px; padding: 6px 12px; font-size: 14px; font-weight: 700; }

.wcci-badge { border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.wcci-badge.active { background: #E8F5E9; color: #2E7D32; }
.wcci-badge.locked { background: #FFEBEE; color: #C62828; }

.wcci-progress-track { background: #f0f0f0; border-radius: 8px; height: 8px; margin: 8px 0; overflow: hidden; }
.wcci-progress-fill { background: #1A73E8; height: 100%; border-radius: 8px; transition: width .6s ease; }
.wcci-bar-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; margin-bottom: 4px; }
.wcci-bar-row .wcci-bar-value { font-weight: 600; color: #111; }
.wcci-bar-row .wcci-bar-value small { font-weight: 400; color: #777; }
.wcci-bar-split { display: flex; gap: 20px; margin-top: 8px; font-size: 12px; }
.wcci-bar-item { display: flex; align-items: center; gap: 5px; }
.wcci-bar-item strong { font-size: 13px; }
.wcci-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.wcci-dot.used { background: #1A73E8; }
.wcci-dot.avail { background: #E8F5E9; border: 1.5px solid #2E7D32; }

.wcci-installment-info {
    margin-top: 12px; font-size: 13px; color: #555;
    background: #F8F9FA; border-radius: 8px; padding: 8px 12px;
}

.wcci-lock-alert {
    background: #FFF3E0; border: 1px solid #FFB300; border-radius: 12px;
    padding: 16px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px;
}
.wcci-lock-icon { font-size: 24px; }
.wcci-lock-alert strong { display: block; margin-bottom: 4px; color: #E65100; }
.wcci-lock-alert p { margin: 0; font-size: 13px; color: #666; }

.wcci-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 16px; gap: 4px; }
.wcci-tab {
    background: none; border: none; padding: 10px 16px; cursor: pointer;
    font-size: 14px; color: #888; border-bottom: 2px solid transparent;
    margin-bottom: -2px; display: flex; align-items: center; gap: 6px; transition: color .2s;
}
.wcci-tab.active { color: #1A73E8; border-bottom-color: #1A73E8; font-weight: 600; }
.wcci-tab-count { background: #1A73E8; color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 6px; }
.wcci-tab-content { display: none; }
.wcci-tab-content.active { display: block; }

.wcci-installment-row {
    display: flex; align-items: center; gap: 12px; background: #fff;
    border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06); border-right: 4px solid transparent;
}
.wcci-installment-row.overdue { border-right-color: #E53935; }
.wcci-installment-row.pending { border-right-color: #1A73E8; }
.wcci-installment-row.future  { border-right-color: #ccc; }

.wcci-inst-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.wcci-inst-icon.overdue { background: #FFEBEE; }
.wcci-inst-icon.pending { background: #E3F2FD; }
.wcci-inst-icon.future  { background: #F5F5F5; }

.wcci-inst-info { flex: 1; }
.wcci-inst-title { font-size: 14px; font-weight: 600; color: #111; }
.wcci-inst-sub { font-size: 12px; color: #777; margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.wcci-badge-small { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.wcci-badge-small.overdue { background: #FFEBEE; color: #C62828; }
.wcci-badge-small.pending { background: #E3F2FD; color: #0D47A1; }
.wcci-badge-small.future  { background: #F5F5F5; color: #555; }

.wcci-inst-amount { text-align: left; flex-shrink: 0; }
.wcci-inst-amount strong { font-size: 15px; display: block; }
.wcci-inst-amount small { color: #888; font-size: 11px; }

.wcci-pay-btn {
    background: #1A73E8; color: #fff; border: none; border-radius: 20px;
    padding: 7px 16px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .2s;
}
.wcci-pay-btn:hover { background: #1557b0; }
.wcci-pay-btn:disabled { background: #ccc; cursor: not-allowed; }

.wcci-total-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #F8F9FA; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-top: 12px;
}
.wcci-total-row strong { font-size: 16px; color: #111; }

.wcci-empty { color: #888; font-size: 14px; padding: 20px 0; text-align: center; }

/* Cart/Checkout Preview */
.wcci-cart-preview { background: #f0f6ff; border-radius: 12px; padding: 16px; margin: 8px 0; border: 1px solid #d0e4ff; }
.wcci-cart-preview.is-active { background: #E8F5E9; border-color: #A5D6A7; }
.wcci-cart-preview.is-active .wcci-cart-preview-header strong { color: #2E7D32; }
.wcci-active-note { color: #2E7D32 !important; }
.wcci-cart-preview-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wcci-pay-badge-sm { background: #1A73E8; color: #fff; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.wcci-split-notice p { font-size: 13px; color: #555; margin: 0 0 12px; }
.wcci-preview-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.wcci-pill { border-radius: 14px; padding: 6px 16px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.wcci-pill.blue { background: #1A73E8; color: #fff; }
.wcci-pill.dark { background: #333; color: #fff; }
.wcci-pill small { font-size: 10px; opacity: .85; }
.wcci-preview-note { font-size: 12px; color: #777; margin: 10px 0 0; }
.wcci-notice-error { color: #C62828; font-size: 13px; background: #FFEBEE; border-radius: 8px; padding: 10px 14px; margin: 8px 0; }

/* Installment Toggle Checkbox (Cart/Checkout) */
.wcci-toggle-row td { padding: 12px 0; border-top: 1px dashed #ddd; border-bottom: 1px dashed #ddd; }
.wcci-toggle-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.wcci-toggle-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1A73E8; cursor: pointer; }
.wcci-toggle-row .description { font-size: 12px; color: #777; margin: 6px 0 0; }
