.hyu-partial-badge {
    display: inline-block;
    padding: 0.1em 0.5em;
    border-radius: 2em;
    font-size: 0.75em;
    line-height: 1.4;
    color: #fff;
    margin-left: 0.5em;
}

.hyu-partial-cod-panel {
    border: 1px solid #dcdcde;
    padding: 1.5em;
    margin-bottom: 1.5em;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hyu-partial-cod-panel__header {
    margin-bottom: 1em;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1em;
}

.hyu-partial-cod-panel__header h3 {
    margin: 0 0 0.5em 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.hyu-partial-cod-panel__description {
    margin: 0;
    color: #6c757d;
    font-size: 0.95em;
}

.hyu-partial-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 0;
    border-bottom: 1px solid #f1f1f1;
}

.hyu-partial-breakdown-row:last-child {
    border-bottom: none;
}

.hyu-partial-breakdown-row.total-row {
    background: #f8f9fa;
    margin: 0 -1.5em 1em -1.5em;
    padding: 1em 1.5em;
    border-bottom: 2px solid #dee2e6;
    font-size: 1.1em;
}

.hyu-partial-breakdown-row.advance-row .amount {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

.hyu-partial-breakdown-row.cod-row .amount {
    color: #fd7e14;
    font-weight: bold;
}

.hyu-partial-breakdown-row.fee-row {
    padding: 0.4em 0;
    font-size: 0.9em;
    color: #6c757d;
}

.hyu-partial-breakdown-row.savings-row {
    background: #fff3cd;
    margin: 1em -1.5em 0 -1.5em;
    padding: 0.8em 1.5em;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.hyu-partial-cod-panel__gateway {
    margin: 1.5em 0;
    background: #e7f3ff;
    padding: 1em;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.hyu-partial-cod-panel__gateway-info {
    margin: 0;
    color: #1e3a8a;
    font-size: 1em;
}

.hyu-partial-cod-panel__gateway-info .gateway-name {
    color: #0066cc;
    font-weight: 600;
}

.hyu-partial-cod-panel__benefits {
    display: none;
}

.hyu-partial-cod-panel__note {
    margin-top: 1em;
    font-size: 0.85em;
    color: #495057;
}

.hyu-partial-cod-panel__note a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.hyu-partial-cod-panel__note a:hover {
    text-decoration: underline;
}

.benefit-icon {
    font-size: 1.2em;
}

.hyu-partial-cod-panel--disabled {
    opacity: 0.6;
    filter: grayscale(50%);
}

/* Payment method messages */
.payment-method-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-method-message.prepaid-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    animation: pulse-success 1s ease-in-out;
}

.payment-method-message.cod-warning-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.payment-method-message.partial-cod-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #fd7e14;
}

@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.hyu-partial-cart-banner {
    padding: 0.75em 1em;
    border-left: 4px solid #198754;
    background: linear-gradient(135deg, #f6fff9 0%, #e8f5e8 100%);
    margin-bottom: 1em;
    border-radius: 4px;
    animation: slideIn 0.5s ease-out;
}

.hyu-partial-cart-banner strong {
    color: #0f5132;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hyu-partial-breakdown-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3em;
    }
    
    .hyu-partial-breakdown-row.total-row,
    .hyu-partial-breakdown-row.savings-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hyu-partial-cod-panel__benefits {
        flex-direction: column;
        gap: 0.8em;
    }
    
    .benefit-item {
        justify-content: center;
    }
}

/* Account page partial payment styles */
.partial-payment-status {
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-size: 0.85em;
    flex-wrap: wrap;
}

.payment-status {
    text-align: center;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    min-width: 60px;
}

.payment-status.advance-paid,
.payment-status.cod-paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.advance-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.payment-status.cod-pending {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-divider {
    font-weight: bold;
    color: #6c757d;
    font-size: 1.2em;
}

.prepaid-payment-status {
    text-align: center;
    color: #28a745;
    font-weight: bold;
}

.hyu-partial-payment-details .advance-row th,
.hyu-partial-payment-details .advance-row td { 
    color: #28a745;
    font-weight: 500;
}

.hyu-partial-payment-details .cod-row th,
.hyu-partial-payment-details .cod-row td,
.hyu-partial-payment-details .cod-due-row th,
.hyu-partial-payment-details .cod-due-row td { 
    color: #fd7e14;
    font-weight: 500;
}

.hyu-partial-payment-details .payment-status.paid { 
    color: #28a745; 
    font-weight: bold; 
    font-size: 0.9em;
}

.hyu-partial-payment-details .payment-status.pending { 
    color: #ffc107; 
    font-weight: bold; 
    font-size: 0.9em;
}

/* Payment method badges */
.payment-price-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.payment-price-badge.savings {
    background: #28a745;
    color: white;
    animation: pulse-green 2s infinite;
}

.payment-price-badge.charge {
    background: #ffc107;
    color: #212529;
}

.payment-price-badge.neutral {
    background: #6c757d;
    color: white;
}

.payment-price-badge.partial {
    background: #17a2b8;
    color: white;
    font-size: 12px;
    max-width: 200px;
    white-space: normal;
    line-height: 1.3;
}

/* Animation for savings badge */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Responsive design for badges */
@media (max-width: 768px) {    
    .payment-price-badge {
        display: block;
        margin-left: 0;
        margin-top: 6px;
        text-align: center;
        font-size: 12px;
    }
    
    .payment-price-badge.partial {
        max-width: none;
    }
}
