/* Checkout Page Styles */
.checkout-header {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.checkout-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-number {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
}

.progress-step.completed .step-label {
    color: var(--secondary-color);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-label {
    font-size: 14px;
    color: #6c757d;
}

.checkout-content {
    padding: 40px 0;
}

.checkout-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: none;
}

.checkout-card.active {
    display: block;
}

.checkout-card .card-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.checkout-card .card-header h2 {
    font-size: 22px;
    margin-bottom: 0;
    color: var(--dark-color);
}

.checkout-card .card-header h2 i {
    color: var(--primary-color);
}

.checkout-card .card-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.order-summary-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.order-summary-card .card-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.order-summary-card .card-header h2 {
    font-size: 22px;
    margin-bottom: 0;
    color: var(--dark-color);
}

.order-summary-card .card-header h2 i {
    color: var(--primary-color);
}

.order-summary-card .card-body {
    padding: 20px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex-grow: 1;
}

.order-item-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-item-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

.empty-cart i {
    font-size: 50px;
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #6c757d;
}

.order-totals {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.totals-row.total {
    font-weight: 700;
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.impact-message {
    background-color: rgba(0, 109, 119, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    display: flex;
}

.impact-icon {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 15px;
}

.impact-message p {
    margin-bottom: 0;
}

.delivery-info, .need-help {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.delivery-info h5, .need-help h5 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.delivery-info ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.delivery-info li, .need-help p {
    color: #6c757d;
}

.payment-methods {
    margin-top: 20px;
}

.payment-tabs .nav-tabs {
    border-bottom: none;
    justify-content: center;
}

.payment-tabs .nav-link {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 0 5px;
    color: #6c757d;
    font-weight: 600;
}

.payment-tabs .nav-link.active {
    background-color: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.payment-tabs .nav-link img {
    height: 30px;
}

.payment-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.payment-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.payment-summary .summary-row.total {
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.secure-payment {
    color: #6c757d;
    font-size: 14px;
}

.secure-payment i {
    color: var(--primary-color);
    margin-right: 5px;
}

.confirmation-message {
    padding: 20px 0;
}

.confirmation-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.confirmation-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.confirmation-message .lead {
    color: #6c757d;
    margin-bottom: 20px;
}

.order-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
}

.mpesa-animation {
    display: flex;
    justify-content: center;
}

.mpesa-animation .phone {
    width: 200px;
    height: 350px;
    background-color: #333;
    border-radius: 20px;
    padding: 10px;
    position: relative;
}

.mpesa-animation .screen {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.mpesa-animation .notification {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mpesa-animation .header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mpesa-animation .header i {
    color: var(--primary-color);
    margin-right: 10px;
}

.mpesa-animation .header span {
    font-weight: 600;
}

.mpesa-animation .content {
    text-align: center;
}

.mpesa-animation .content h5 {
    color: var(--primary-color);
    margin: 10px 0;
}

.mpesa-animation .amount {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    color: var(--dark-color);
}

.mpesa-animation .actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .checkout-progress {
        flex-wrap: wrap;
    }
    
    .progress-step {
        width: 33%;
        margin-bottom: 15px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .confirmation-actions .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .checkout-content .row {
        flex-direction: column-reverse;
    }
    
    .order-summary-card {
        position: static;
        margin-bottom: 30px;
    }
    
    .payment-tabs .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .progress-step .step-label {
        font-size: 12px;
    }
    
    .payment-tabs .nav-link {
        padding: 6px 8px;
        margin: 0 2px;
    }
    
    .mpesa-animation .phone {
        width: 150px;
        height: 280px;
    }
}