/* Shared button loading + action overlay */

.btn.is-loading,
.aptis-btn.is-loading,
.payment-submit-btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.82;
    cursor: wait;
}

.btn-loading-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loading-spinner,
.action-busy-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-loading-spin 0.65s linear infinite;
    flex-shrink: 0;
    opacity: 0.9;
}

.aptis-btn .btn-loading-spinner {
    width: 0.95rem;
    height: 0.95rem;
}

@keyframes btn-loading-spin {
    to { transform: rotate(360deg); }
}

body.is-action-busy {
    overflow: hidden;
}

.action-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(8, 10, 18, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.action-busy-overlay[hidden] {
    display: none !important;
}

.action-busy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    min-width: min(100%, 260px);
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: #1e293b;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.aptis-body .action-busy-card {
    background: #fff;
    border: 1px solid rgba(35, 8, 90, 0.08);
}

.action-busy-spinner {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
    border-color: rgba(74, 45, 143, 0.18);
    border-top-color: #4a2d8f;
}

.action-busy-label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}
