/* Payment Method Styles */
.payment-method-card {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background: white;
    margin-bottom: 10px;
}

    .payment-method-card.selected {
        border-color: #0d6efd;
        background-color: #f8f9fa;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

    .payment-method-card:hover:not(.selected) {
        border-color: #6c757d;
        transform: translateY(-2px);
    }

.payment-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cash-input-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #28a745;
}

.card-input-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #0d6efd;
}

.mpesa-input-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #17a2b8;
}

.shop-input-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #ffc107;
}

.quick-amount-btn {
    margin: 2px;
    font-size: 12px;
    padding: 5px 8px;
}

.change-display {
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

.change-positive {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.change-negative {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.change-zero {
    background: #e2e3e5;
    color: #383d41;
    border: 2px solid #d6d8db;
}

.payment-section {
    display: none;
}

    .payment-section.active {
        display: block;
        animation: fadeIn 0.3s ease-in;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amount-input-group {
    position: relative;
}

    .amount-input-group .form-control {
        padding-left: 40px;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .amount-input-group::before {
        content: '$';
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        font-weight: bold;
        color: #6c757d;
        z-index: 5;
    }

.card-type-select {
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ced4da;
}

/* Toast improvements */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .payment-method-card {
        padding: 10px;
        margin-bottom: 8px;
    }

    .payment-icon {
        font-size: 1.5rem;
    }

    .quick-amount-btn {
        font-size: 11px;
        padding: 4px 6px;
    }

    /* Stripe Elements styling */
    .StripeElement {
        box-sizing: border-box;
        height: 45px;
        padding: 10px 12px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        background-color: white;
    }

    .StripeElement--focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .StripeElement--invalid {
        border-color: #dc3545;
    }

    .StripeElement--webkit-autofill {
        background-color: #fefde5 !important;
    }

    /* Loading animation */
    .fa-spinner {
        animation: spin 1s linear infinite;
    }

    @@keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
    /* PWA Mobile Styles */
    .pwa-mode {
        -webkit-tap-highlight-color: transparent;
    }

    /* Better touch targets for mobile */
    @media (max-width: 768px) {
        button,
        .btn,
        .nav-link,
        .dropdown-item {
            min-height: 44px;
        }

        input,
        select,
        textarea {
            font-size: 16px !important;
        }

        /* Prevent body scroll when modal is open */
        body.modal-open {
            position: fixed;
            width: 100%;
        }
    }
}
