/* Stripe Payments Plugin — Styles */

/* Buy Button */
.sp-buy-btn {
    transition: background 0.2s, transform 0.15s;
}
.sp-buy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Pricing Cards */
.sp-pricing-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.sp-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Donation Form */
.sp-donate-amt {
    transition: all 0.2s;
    min-width: 60px;
}
.sp-donate-amt:hover {
    border-color: #e50914 !important;
    color: #e50914 !important;
}
.sp-donate-btn {
    transition: background 0.2s;
}
.sp-donate-btn:hover {
    background: #c73652 !important;
}

/* Payment Badge */
.sp-payment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    flex-wrap: wrap;
}

/* Admin — Transaction status badges */
.sp-status-completed { color: #16a34a; }
.sp-status-pending { color: #f59e0b; }
.sp-status-failed { color: #dc2626; }
.sp-status-refunded { color: #64748b; }

/* ===== On-Site Payment Modal ===== */
.sp-pay-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    z-index: 10000; display: flex; align-items: center;
    justify-content: center; padding: 20px;
    animation: spFadeIn 0.2s ease;
}
.sp-pay-modal {
    background: #fff; border-radius: 16px; max-width: 460px;
    width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden; animation: spSlideUp 0.3s ease;
}
.sp-pay-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.sp-pay-title {
    font-size: 1.05rem; font-weight: 700; color: #1e293b;
    font-family: Inter, system-ui, sans-serif;
}
.sp-pay-amount {
    font-size: 0.85rem; color: #e50914; font-weight: 600; margin-top: 2px;
}
.sp-pay-close {
    background: none; border: none; font-size: 1.5rem;
    color: #94a3b8; cursor: pointer; line-height: 1; padding: 0;
}
.sp-pay-close:hover { color: #e50914; }
.sp-pay-body { padding: 24px; }
.sp-pay-error {
    padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; color: #dc2626; font-size: 0.85rem;
    margin: 12px 0 0; font-family: Inter, system-ui, sans-serif;
}
.sp-pay-submit {
    width: 100%; padding: 14px; border: none; border-radius: 10px;
    background: #e50914; color: #fff; font-weight: 700;
    font-size: 1rem; cursor: pointer; margin-top: 20px;
    font-family: Inter, system-ui, sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.2s;
}
.sp-pay-submit:hover { background: #c73652; }
.sp-pay-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.sp-btn-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spSpin 0.6s linear infinite;
}
.sp-pay-secure {
    text-align: center; font-size: 0.75rem; color: #94a3b8;
    margin-top: 14px; font-family: Inter, system-ui, sans-serif;
}
.sp-pay-secure i { color: #16a34a; margin-right: 4px; }
.sp-pay-success {
    text-align: center; padding: 40px 24px;
    font-family: Inter, system-ui, sans-serif;
}
.sp-pay-check {
    width: 64px; height: 64px; border-radius: 50%;
    background: #f0fdf4; display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.sp-pay-check i { font-size: 2rem; color: #16a34a; }
.sp-pay-success h4 {
    font-size: 1.3rem; font-weight: 800; color: #1e293b; margin: 0 0 8px;
}
.sp-pay-success p {
    color: #64748b; font-size: 0.9rem; margin: 0 0 20px;
}
.sp-pay-done {
    padding: 10px 32px; border: none; border-radius: 8px;
    background: #e50914; color: #fff; font-weight: 600;
    font-size: 0.9rem; cursor: pointer; transition: background 0.2s;
}
.sp-pay-done:hover { background: #c73652; }
@keyframes spFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spSpin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .sp-pay-modal { border-radius: 12px; max-width: 100%; }
    .sp-pay-body { padding: 16px; }
}
