File size: 1,430 Bytes
9113b22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0631f4
 
9113b22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0631f4
 
9113b22
 
 
 
 
 
 
b0631f4
 
9113b22
 
b0631f4
 
9113b22
 
 
b0631f4
9113b22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/* Custom styles for the payment interface */

#payment-element {
    min-height: 150px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#payment-element:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

#submit-button {
    position: relative;
    overflow: hidden;
}

#submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

#submit-button:disabled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%
    );
    background-size: 1rem 1rem;
    animation: stripe-loading 1s linear infinite;
}

@keyframes stripe-loading {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1rem 0;
    }
}

#error-message {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    #submit-button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}