/**
 * EBA Stripe — spinner on enroll button + success banner on return URL
 */

.eba-spin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ebaSpin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

@keyframes ebaSpin {
    to { transform: rotate(360deg); }
}

[data-eba-enroll][disabled] {
    opacity: 0.85;
    cursor: wait !important;
}

/* ===== POST-PAYMENT SUCCESS BANNER ===== */
.eba-checkout-banner {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 22px;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.6);
    animation: ebaBannerIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    max-width: calc(100vw - 32px);
}

.eba-checkout-banner__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
}

.eba-checkout-banner__inner svg {
    color: #4ade80;
    flex-shrink: 0;
}

@keyframes ebaBannerIn {
    from { opacity: 0; transform: translate(-50%, -16px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .eba-spin,
    .eba-checkout-banner { animation: none !important; }
}

/* small note under stripe enroll btn */
.eba-cp__enroll-note {
    font-size: 0.75rem;
    color: var(--eba-text-muted);
    text-align: center;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.eba-cp__enroll-note::before {
    content: '🔒';
    font-size: 0.875rem;
}
