/**
 * Payment Status CSS
 *
 * Shared styling for payment status badges, summaries, and breakdowns
 * across all widgets and admin areas.
 *
 * @package BlijSchaapCore
 */

/* ============================================
   Payment Status Badges
   ============================================ */

.bsc-payment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.bsc-payment-status-badge .bsc-status-icon {
    font-size: 18px;
    line-height: 1;
}

.bsc-payment-status-badge .bsc-status-label {
    line-height: 1;
}

.bsc-payment-status-badge .bsc-status-amounts {
    font-weight: 500;
    font-size: 14px;
    opacity: 0.9;
}

/* Badge Variants */
.bsc-payment-status-badge.bsc-status-paid {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.bsc-payment-status-badge.bsc-status-partial {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.bsc-payment-status-badge.bsc-status-unpaid {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.bsc-payment-status-badge.bsc-status-pending {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.bsc-payment-status-badge.bsc-status-unknown {
    background: #e2e3e5;
    color: #383d41;
    border: 2px solid #6c757d;
}

/* ============================================
   Payment Summary (Booking Confirmation)
   ============================================ */

.bsc-payment-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #dee2e6;
}

.bsc-payment-status-header {
    text-align: center;
    margin-bottom: 20px;
}

.bsc-payment-breakdown {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.bsc-breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    transition: transform 0.2s ease;
}

.bsc-breakdown-item:hover {
    transform: translateX(4px);
}

.bsc-breakdown-item.bsc-paid {
    border-left-color: #28a745;
}

.bsc-breakdown-item.bsc-remaining {
    border-left-color: #ffc107;
}

.bsc-breakdown-icon {
    font-size: 20px;
    line-height: 1;
}

.bsc-breakdown-label {
    flex: 1;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.bsc-breakdown-amount {
    font-size: 18px;
    color: #212529;
    font-weight: 700;
}

.bsc-breakdown-amount.bsc-highlight {
    color: #ffc107;
    font-size: 20px;
}

.bsc-payment-reminder {
    margin-top: 16px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
    text-align: center;
    border: 1px solid #ffeeba;
}

.bsc-payment-details-title {
    font-size: 16px;
    color: #6c757d;
    margin: 24px 0 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Individual Payment Items
   ============================================ */

.bsc-payment-item {
    margin-bottom: 16px;
}

.bsc-payment-item .bsc-payment-status-badge {
    font-size: 13px;
    padding: 6px 14px;
}

.bsc-payment-item .bsc-payment-status-badge .bsc-status-icon {
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .bsc-payment-status-badge {
        font-size: 14px;
        padding: 8px 16px;
    }

    .bsc-payment-summary {
        padding: 16px;
    }

    .bsc-breakdown-item {
        padding: 10px 12px;
    }

    .bsc-breakdown-amount {
        font-size: 16px;
    }

    .bsc-breakdown-amount.bsc-highlight {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .bsc-payment-status-badge .bsc-status-amounts {
        display: none;
    }

    .bsc-breakdown-item {
        flex-wrap: wrap;
    }

    .bsc-breakdown-amount {
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }
}
