/* assets/css/mpesa-frontend-styles.css */

/* General Styles */
body.mpesa-waiting-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f7f7f7;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.mpesa-waiting-container {
    text-align: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mpesa-waiting-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333333;
}

.mpesa-waiting-container p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 30px;
}

/* Spinner Styles */
.mpesa-waiting-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
}

.mpesa-waiting-spinner svg {
    animation: rotate 2s linear infinite;
    width: 100%;
    height: 100%;
}

.mpesa-waiting-spinner circle {
    stroke: #007bff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
    stroke-dasharray: 90,150;
    stroke-dashoffset: 0;
    fill: none;
}

/* Spinner Animation */
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1,150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90,150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90,150;
        stroke-dashoffset: -124;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .mpesa-waiting-container {
        padding: 20px;
    }

    .mpesa-waiting-container h2 {
        font-size: 1.5rem;
    }

    .mpesa-waiting-spinner {
        width: 40px;
        height: 40px;
        border-width: 6px;
    }
}
