/* pmpro-checkout-popup.css */

/* Processing Overlay Styling (Bootstrap-like Modal) */
.pmpro-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Light, semi-transparent background */
    z-index: 10000; /* Ensure it covers everything */
    display: none; /* Initially hidden, JavaScript will change this to 'flex' */
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pmpro-loading-card {
    padding: 40px 60px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    animation: fadeIn 0.3s ease-in-out;
}

.pmpro-loading-card p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #495057;
}

/* Simple CSS Spinner (Bootstrap Standard) */
.spinner-border {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    color: var(--pmpro--color--primary, #007bff); /* Uses PMPro/Bootstrap primary color variable */
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Override PMPro's default inline style for the message container */
#pmpro_processing_message {
    visibility: initial !important; 
    height: 0; 
    overflow: visible; 
}
