/* Checkout - Partial Payment Option */
#sejoli-pp-checkout-option {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.sejoli-pp-payment-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.sejoli-pp-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    flex: 1;
    transition: all 0.2s ease;
}

.sejoli-pp-radio:hover {
    border-color: #4a90d9;
}

.sejoli-pp-radio input:checked + .sejoli-pp-radio-label {
    font-weight: 600;
}

.sejoli-pp-radio:has(input:checked) {
    border-color: #4a90d9;
    background: #eef4fb;
}

.sejoli-pp-radio-label {
    font-size: 14px;
}

.sejoli-pp-schedule-info {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.sejoli-pp-info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.sejoli-pp-label {
    color: #666;
    font-size: 13px;
}

.sejoli-pp-value {
    font-weight: 600;
    font-size: 14px;
}

.sejoli-pp-highlight {
    color: #e74c3c;
    font-size: 16px;
}

.sejoli-pp-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sejoli-pp-schedule-table th,
.sejoli-pp-schedule-table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.sejoli-pp-schedule-table th {
    background: #f0f0f0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.sejoli-pp-schedule-table .pp-dp-row {
    background: #eef4fb;
    font-weight: 600;
}

/* Member Area */
.sejoli-pp-member-area {
    padding: 20px;
}

.sejoli-pp-member-area .ui.header {
    margin-bottom: 20px;
}

/* Status Badges */
.sejoli-pp-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sejoli-pp-status-pending {
    background: #fff3cd;
    color: #856404;
}

.sejoli-pp-status-paid {
    background: #cce5ff;
    color: #004085;
}

.sejoli-pp-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.sejoli-pp-status-overdue {
    background: #f8d7da;
    color: #721c24;
}

.sejoli-pp-status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* Modal */
.sejoli-pp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sejoli-pp-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.sejoli-pp-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Button */
.sejoli-pp-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    color: #fff;
    text-decoration: none;
}

.sejoli-pp-btn-primary {
    background: #4a90d9;
}

.sejoli-pp-btn-primary:hover {
    background: #357abd;
}

.sejoli-pp-btn-success {
    background: #28a745;
}

.sejoli-pp-btn-success:hover {
    background: #218838;
}

.sejoli-pp-btn-info {
    background: #17a2b8;
}

.sejoli-pp-btn-info:hover {
    background: #138496;
}

.sejoli-pp-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.sejoli-pp-btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.sejoli-pp-btn-sm {
    padding: 5px 12px;
    font-size: 11px;
}

#sejoli-pp-member-table .sejoli-pp-btn {
    display: inline-block;
    margin: 2px 3px 2px 0;
    line-height: 1.4;
    text-decoration: none;
    vertical-align: middle;
}

#sejoli-pp-member-table .sejoli-pp-btn:visited,
#sejoli-pp-member-table .sejoli-pp-btn:link,
#sejoli-pp-member-table .sejoli-pp-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sejoli-pp-payment-toggle {
        flex-direction: column;
    }

    .sejoli-pp-modal-content {
        width: 95%;
        padding: 20px;
    }

    .sejoli-pp-schedule-table {
        font-size: 12px;
    }
}
