/**
 * WPayment SumUp Card Widget Styles
 */

#wpayment-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

#wpayment-container h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.payment-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.payment-summary p {
    margin: 8px 0;
    font-size: 16px;
    color: #374151;
}

.payment-summary strong {
    color: #1a1a1a;
}

#sumup-card {
    min-height: 400px;
    position: relative;
}

/* Loading state */
.sumup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* Success state */
.sumup-success {
    text-align: center;
    padding: 60px 20px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
}

.sumup-success h3 {
    font-size: 24px;
    color: #047857;
    margin: 0 0 12px 0;
}

.sumup-success p {
    font-size: 16px;
    color: #065f46;
    margin: 0;
}

/* Error state */
.sumup-error {
    text-align: center;
    padding: 60px 20px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
}

.sumup-error h3 {
    font-size: 24px;
    color: #b91c1c;
    margin: 0 0 12px 0;
}

.sumup-error p {
    font-size: 16px;
    color: #7f1d1d;
    margin: 0 0 24px 0;
}

/* Buttons */
.wpayment-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.wpayment-btn-primary {
    background: #3b82f6;
    color: white;
}

.wpayment-btn-primary:hover {
    background: #2563eb;
}

.wpayment-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

.wpayment-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Secure notice */
.payment-secure-notice {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    #wpayment-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    #wpayment-container h2 {
        font-size: 24px;
    }

    .payment-summary {
        padding: 16px;
    }

    .sumup-success,
    .sumup-error {
        padding: 40px 16px;
    }

    .wpayment-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}
