@thepayulink/checkout 2.0.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/style.js ADDED
@@ -0,0 +1,251 @@
1
+ // Checkout modal styles, injected once into <head> on first open().
2
+ export const CSS = `
3
+ #pl-overlay * { box-sizing: border-box; margin: 0; padding: 0; }
4
+ #pl-overlay { --pl-blue:#3395ff; --pl-blue-dark:#1f86f5; --pl-brand:#0b3068; --pl-ink:#1a2a44; --pl-mut:#6b7c93; --pl-line:#eceff4;
5
+ position: fixed; inset: 0; z-index: 2147483000; font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
6
+ display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,24,31,0);
7
+ animation: pl-backdropIn .4s ease forwards; -webkit-font-smoothing: antialiased; }
8
+ @keyframes pl-backdropIn { to { background: rgba(13,17,23,.62); backdrop-filter: blur(3px); } }
9
+ #pl-overlay.pl-closing { animation: pl-backdropOut .25s ease forwards; }
10
+ @keyframes pl-backdropOut { to { background: rgba(20,24,31,0); backdrop-filter: blur(0); } }
11
+
12
+ #pl-overlay .pl-modal { width: 100%; max-width: 1060px; height: 600px; max-height: 92vh; background: #fff; border-radius: 16px; overflow: hidden; display: flex;
13
+ box-shadow: 0 30px 80px rgba(0,0,0,.45); opacity: 0; transform: translateY(16px) scale(.97);
14
+ animation: pl-modalIn .5s cubic-bezier(.16,1,.3,1) .08s forwards; }
15
+ @keyframes pl-modalIn { to { opacity: 1; transform: none; } }
16
+ #pl-overlay.pl-closing .pl-modal { animation: pl-modalOut .22s ease forwards; }
17
+ @keyframes pl-modalOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }
18
+
19
+ /* ============ LEFT BRAND PANEL ============ */
20
+ #pl-overlay .pl-left { width: 320px; flex-shrink: 0; color: #fff; padding: 26px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden;
21
+ background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 45%), linear-gradient(165deg, color-mix(in srgb, var(--pl-brand) 86%, #2a55a8) 0%, var(--pl-brand) 55%, color-mix(in srgb, var(--pl-brand) 80%, #000) 100%); }
22
+ #pl-overlay .pl-left::before { content:""; position:absolute; width:240px; height:240px; right:-90px; bottom:120px; border-radius:50%;
23
+ background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); animation: pl-float 8s ease-in-out infinite; }
24
+ @keyframes pl-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
25
+ #pl-overlay .pl-left > * { position: relative; z-index: 1; opacity: 0; animation: pl-fadeUp .55s cubic-bezier(.4,0,.2,1) forwards; }
26
+ #pl-overlay .pl-left > *:nth-child(1){animation-delay:.22s} #pl-overlay .pl-left > *:nth-child(2){animation-delay:.30s}
27
+ #pl-overlay .pl-left > *:nth-child(3){animation-delay:.38s} #pl-overlay .pl-left > *:nth-child(4){animation-delay:.46s}
28
+ @keyframes pl-fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
29
+
30
+ #pl-overlay .pl-brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
31
+ #pl-overlay .pl-logo { position: relative; width: 50px; height: 50px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 5px 16px rgba(0,0,0,.22); overflow: hidden; }
32
+ #pl-overlay .pl-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
33
+ #pl-overlay .pl-logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.8) 50%, transparent 68%); transform: translateX(-160%); animation: pl-shine 5s ease-in-out infinite; }
34
+ @keyframes pl-shine { 0% { transform: translateX(-160%); } 22% { transform: translateX(160%); } 100% { transform: translateX(160%); } }
35
+ #pl-overlay .pl-bname { font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; }
36
+ #pl-overlay .pl-btrust { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: #cfe0a8;
37
+ background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); padding: 3px 9px 3px 6px; border-radius: 20px; }
38
+ #pl-overlay .pl-btrust svg { width: 14px; height: 14px; color: #8fd04f; }
39
+
40
+ #pl-overlay .pl-summary { background: rgba(255,255,255,.92); border-radius: 14px; padding: 18px; color: var(--pl-ink); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
41
+ #pl-overlay .pl-summary .pl-sl { font-size: 13px; font-weight: 600; color: #5b6b85; }
42
+ #pl-overlay .pl-summary .pl-samt { font-size: 32px; font-weight: 800; letter-spacing: -.6px; margin: 6px 0 12px; }
43
+ #pl-overlay .pl-summary .pl-snote { font-size: 12.5px; line-height: 1.55; color: #5b6b85; border-top: 1px solid #eceff4; padding-top: 11px; }
44
+
45
+ #pl-overlay .pl-illus { margin-top: auto; align-self: center; width: 215px; color: #fff; opacity: .9; }
46
+ #pl-overlay .pl-secured { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; }
47
+ #pl-overlay .pl-secured svg { color: rgba(255,255,255,.7); }
48
+ #pl-overlay .pl-pb { display: inline-flex; align-items: center; gap: 5px; }
49
+ #pl-overlay .pl-pb img { width: 16px; height: 16px; object-fit: contain; border-radius: 4px; background: #fff; padding: 1px; }
50
+ #pl-overlay .pl-pb strong { color: #fff; font-weight: 800; }
51
+
52
+ /* ============ RIGHT / MAIN ============ */
53
+ #pl-overlay .pl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; }
54
+ #pl-overlay .pl-head { display: flex; align-items: center; gap: 4px; padding: 15px 16px; border-bottom: 1px solid var(--pl-line); flex-shrink: 0; }
55
+ #pl-overlay .pl-head .pl-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; color: var(--pl-ink); }
56
+ #pl-overlay .pl-hic { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--pl-mut); cursor: pointer; border: none; background: none; border-radius: 50%; transition: background .15s; flex-shrink: 0; }
57
+ #pl-overlay .pl-hic svg { width: 19px; height: 19px; }
58
+ #pl-overlay .pl-hic:hover { background: #f2f4f7; }
59
+ #pl-overlay .pl-back { opacity: 0; pointer-events: none; transition: opacity .2s; }
60
+ #pl-overlay .pl-back.pl-show { opacity: 1; pointer-events: auto; }
61
+ #pl-overlay .pl-dots { font-size: 20px; } #pl-overlay .pl-close-x { font-size: 24px; }
62
+
63
+ #pl-overlay .pl-vp { flex: 1; position: relative; overflow: hidden; }
64
+ #pl-overlay .pl-screen { position: absolute; inset: 0; overflow-y: auto; opacity: 0; transform: translateX(30px); pointer-events: none;
65
+ transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1); }
66
+ #pl-overlay .pl-screen.pl-active { opacity: 1; transform: none; pointer-events: auto; }
67
+ #pl-overlay .pl-pad { padding: 24px 28px; }
68
+
69
+ #pl-overlay .pl-foot { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-top: 1px solid var(--pl-line); font-size: 12.5px; color: #97a3b4; flex-shrink: 0; background: #fbfcfe; font-weight: 500; }
70
+ #pl-overlay .pl-foot svg { width: 14px; height: 14px; }
71
+
72
+ /* ---- secured splash (gateway init animation) ---- */
73
+ #pl-overlay .pl-splash { position: absolute; inset: 0; z-index: 8; background: #f4f5f7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; transition: opacity .45s ease, visibility .45s; }
74
+ #pl-overlay .pl-splash.pl-splash-hide { opacity: 0; visibility: hidden; }
75
+ #pl-overlay .pl-shield { position: relative; width: 148px; height: 172px; display: flex; align-items: center; justify-content: center;
76
+ animation: pl-shieldin .65s cubic-bezier(.16,1,.3,1) both, pl-shieldfloat 3.2s ease-in-out 0.65s infinite; transform-origin: center; }
77
+ #pl-overlay .pl-shield-bg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 34px rgba(40,90,220,.38)); }
78
+ #pl-overlay .pl-shield-shine { position: absolute; top: 8%; left: 14%; width: 36%; height: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); z-index: 1; pointer-events: none; }
79
+ #pl-overlay .pl-shield-logo { position: relative; z-index: 2; width: 60px; height: 60px; object-fit: contain; border-radius: 16px; background: #fff; padding: 9px; box-shadow: 0 6px 16px rgba(0,0,0,.20); margin-bottom: 12px;
80
+ animation: pl-shlogoin .6s cubic-bezier(.16,1,.3,1) .2s both; }
81
+ @keyframes pl-shieldin { from { opacity: 0; transform: scale(.5) translateY(12px); } }
82
+ @keyframes pl-shlogoin { from { opacity: 0; transform: scale(.4) rotate(-10deg); } }
83
+ @keyframes pl-shieldfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
84
+ #pl-overlay .pl-splash-foot { position: absolute; bottom: 48px; display: flex; align-items: center; gap: 7px; font-size: 14px; color: #8a97a8; font-weight: 500;
85
+ opacity: 0; animation: pl-fadeUp .5s ease .45s forwards; }
86
+ #pl-overlay .pl-splash-foot .pl-pb { display: inline-flex; align-items: center; gap: 6px; }
87
+ #pl-overlay .pl-splash-foot img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
88
+ #pl-overlay .pl-splash-foot strong { color: #162f56; font-weight: 800; }
89
+ @media (max-width: 840px) { #pl-overlay .pl-splash { z-index: 12; } #pl-overlay .pl-splash-foot { bottom: 38px; } }
90
+
91
+ /* ---- loader ---- */
92
+ #pl-overlay .pl-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 18px; }
93
+ @keyframes pl-spin { to { transform: rotate(360deg); } }
94
+ #pl-overlay .pl-bload { position: relative; width: 86px; height: 86px; display: flex; align-items: center; justify-content: center; }
95
+ #pl-overlay .pl-bload img { width: 48px; height: 48px; object-fit: contain; border-radius: 13px; z-index: 3; animation: pl-breathe 1.5s ease-in-out infinite; }
96
+ @keyframes pl-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
97
+ #pl-overlay .pl-bring { position: absolute; inset: 4px; border-radius: 50%; z-index: 2; background: conic-gradient(from 0deg, var(--pl-blue), rgba(51,149,255,0) 68%);
98
+ -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: pl-spin .9s linear infinite; }
99
+ #pl-overlay .pl-bripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(51,149,255,.45); z-index: 1; animation: pl-ripple 1.8s ease-out infinite; }
100
+ #pl-overlay .pl-bripple2 { animation-delay: .9s; }
101
+ @keyframes pl-ripple { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
102
+ #pl-overlay .pl-loader p { font-size: 13px; color: var(--pl-mut); font-weight: 500; animation: pl-fadepulse 1.6s ease-in-out infinite; }
103
+ @keyframes pl-fadepulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
104
+
105
+ /* ---- contact form ---- */
106
+ #pl-overlay .pl-h1 { font-size: 19px; font-weight: 700; color: var(--pl-ink); margin-bottom: 4px; letter-spacing: -.2px; }
107
+ #pl-overlay .pl-sub { font-size: 13px; color: var(--pl-mut); margin-bottom: 20px; }
108
+ #pl-overlay .pl-opt { font-weight: 400; color: #aab2bf; }
109
+ #pl-overlay .pl-field { margin-bottom: 18px; }
110
+ #pl-overlay .pl-field label { display: block; font-size: 13px; color: var(--pl-mut); margin-bottom: 7px; font-weight: 600; }
111
+ #pl-overlay .pl-input { width: 100%; padding: 13px 14px; border: 1px solid #d5dae0; border-radius: 9px; font-size: 15px; font-family: inherit; color: var(--pl-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
112
+ #pl-overlay .pl-input:focus { border-color: var(--pl-blue); box-shadow: 0 0 0 3px rgba(51,149,255,.16); }
113
+ #pl-overlay .pl-input::placeholder { color: #aab2bf; }
114
+ #pl-overlay .pl-phone { display: flex; }
115
+ #pl-overlay .pl-phone .pl-cc { display: flex; align-items: center; padding: 0 12px; border: 1px solid #d5dae0; border-right: none; border-radius: 9px 0 0 9px; background: #f7f8fa; font-size: 15px; color: var(--pl-ink); white-space: nowrap; }
116
+ #pl-overlay .pl-phone .pl-input { border-radius: 0 9px 9px 0; }
117
+ #pl-overlay .pl-inwrap { position: relative; }
118
+ #pl-overlay .pl-inicon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #aab2bf; pointer-events: none; }
119
+ #pl-overlay .pl-padleft { padding-left: 42px; }
120
+ #pl-overlay .pl-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; margin-top: 8px; background: linear-gradient(135deg, var(--pl-blue), var(--pl-blue-dark)); color: #fff; border: none; border-radius: 11px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
121
+ transition: filter .15s, transform .08s, box-shadow .15s; box-shadow: 0 8px 20px rgba(51,149,255,.3); }
122
+ #pl-overlay .pl-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
123
+ #pl-overlay .pl-cta:active { transform: scale(.99); }
124
+ #pl-overlay .pl-cta-arr svg { width: 18px; height: 18px; transition: transform .15s; }
125
+ #pl-overlay .pl-cta:hover .pl-cta-arr svg { transform: translateX(3px); }
126
+ #pl-overlay .pl-err { color:#e02424; font-size:12.5px; font-weight:600; margin-top:8px; min-height:14px; text-align:center; }
127
+ #pl-overlay .pl-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 12px; color: #1a9d57; font-weight: 600; }
128
+ #pl-overlay .pl-trust svg { width: 14px; height: 14px; }
129
+
130
+ /* ============ OPTIONS: nav + pane ============ */
131
+ #pl-overlay .pl-options { display: flex; height: 100%; }
132
+ #pl-overlay .pl-nav { width: 240px; flex-shrink: 0; border-right: 1px solid var(--pl-line); padding: 12px 12px 16px; overflow-y: auto; background: #fcfdff; }
133
+ #pl-overlay .pl-navlabel { font-size: 11px; font-weight: 700; color: #9aa6b6; text-transform: uppercase; letter-spacing: .6px; padding: 12px 8px 8px; }
134
+ #pl-overlay .pl-navitem { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 11px; cursor: pointer; transition: background .14s, box-shadow .14s; position: relative; }
135
+ #pl-overlay .pl-navitem:hover { background: #f1f5fd; }
136
+ #pl-overlay .pl-navitem.active { background: #fff; box-shadow: inset 3px 0 0 var(--pl-blue), 0 2px 12px rgba(51,149,255,.12); border: 1px solid #e4ecfb; }
137
+ #pl-overlay .pl-ni-ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #eaf2ff; color: var(--pl-blue); }
138
+ #pl-overlay .pl-ni-ic svg { width: 20px; height: 20px; }
139
+ #pl-overlay .pl-ni-body { flex: 1; min-width: 0; }
140
+ #pl-overlay .pl-ni-t { font-size: 14.5px; font-weight: 600; color: var(--pl-ink); }
141
+ #pl-overlay .pl-ni-s { font-size: 11.5px; color: var(--pl-mut); margin-top: 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
142
+ #pl-overlay .pl-ni-apps { display: flex; gap: 3px; flex-shrink: 0; }
143
+ #pl-overlay .pl-ni-apps img { width: 19px; height: 19px; border-radius: 5px; background: #fff; border: 1px solid var(--pl-line); padding: 2px; object-fit: contain; }
144
+ #pl-overlay .pl-navitem.pl-disabled { cursor: pointer; }
145
+ #pl-overlay .pl-navitem.pl-disabled:hover { background: #f1f5fd; }
146
+ #pl-overlay .pl-ni-ic.pl-ic-card { background: #eaf0ff; color: #4071e0; }
147
+ #pl-overlay .pl-ni-ic.pl-ic-netbanking { background: #e7f6ef; color: #1a9d57; }
148
+ #pl-overlay .pl-ni-ic.pl-ic-wallet { background: #fdeede; color: #d98324; }
149
+ #pl-overlay .pl-ni-ic.pl-ic-emi { background: #f1ecfd; color: #7a52d8; }
150
+ #pl-overlay .pl-soon { font-size: 10px; font-weight: 700; color: #8a97a8; background: #eef1f5; padding: 4px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; align-self: center; }
151
+ #pl-overlay .pl-navitem.active, #pl-overlay .pl-navitem { animation: pl-fadeUp .36s cubic-bezier(.4,0,.2,1) backwards; }
152
+ #pl-overlay .pl-nav .pl-navitem:nth-of-type(2){animation-delay:.04s} #pl-overlay .pl-nav .pl-navitem:nth-of-type(3){animation-delay:.08s}
153
+ #pl-overlay .pl-nav .pl-navitem:nth-of-type(4){animation-delay:.12s} #pl-overlay .pl-nav .pl-navitem:nth-of-type(5){animation-delay:.16s}
154
+
155
+ /* ---- pane (UPI detail) ---- */
156
+ #pl-overlay .pl-pane { flex: 1; min-width: 0; padding: 22px 26px; overflow-y: auto; }
157
+ #pl-overlay .pl-paneh { font-size: 16px; font-weight: 700; color: var(--pl-ink); margin-bottom: 14px; }
158
+ #pl-overlay .pl-paneh2 { margin-top: 26px; }
159
+ #pl-overlay .pl-qrcard { display: flex; align-items: center; gap: 22px; background: #f4f6fc; border: 1px solid #e9edf6; border-radius: 16px; padding: 20px; animation: pl-qrpop .5s cubic-bezier(.16,1,.3,1) backwards .06s; }
160
+ @keyframes pl-qrpop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
161
+ #pl-overlay .pl-qrbox { position: relative; width: 162px; height: 162px; flex-shrink: 0; background: #fff; border-radius: 14px; padding: 11px; box-shadow: 0 8px 22px rgba(20,40,80,.1); display: flex; align-items: center; justify-content: center; }
162
+ #pl-overlay .pl-qrbox img { display: block; width: 140px !important; height: 140px !important; }
163
+ #pl-overlay .pl-qrside { flex: 1; min-width: 0; }
164
+ #pl-overlay .pl-scan { font-size: 14px; font-weight: 600; color: var(--pl-ink); line-height: 1.4; margin-bottom: 14px; }
165
+ #pl-overlay .pl-approw { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin-bottom: 16px; }
166
+ #pl-overlay .pl-uapp { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid #e6ebf4; border-radius: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; transition: border-color .15s, transform .12s, box-shadow .15s; }
167
+ #pl-overlay .pl-uapp:hover { border-color: var(--pl-blue); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(51,149,255,.16); }
168
+ #pl-overlay .pl-uapp img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
169
+ #pl-overlay .pl-validrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #0a8a4a; background: #e7f8ef; border: 1px solid #bfead0; padding: 5px 12px; border-radius: 20px; }
170
+ #pl-overlay .pl-validrow.pl-expired { color: #e02424; background: #fdecec; border-color: #f5c2c2; }
171
+ #pl-overlay .pl-validrow.pl-expired .pl-dot { background: #e02424; animation: none; }
172
+ #pl-overlay .pl-dot { width: 7px; height: 7px; border-radius: 50%; background: #1aa85a; animation: pl-blink 1.6s infinite; }
173
+ @keyframes pl-blink { 0%{box-shadow:0 0 0 0 rgba(26,168,90,.6)} 70%{box-shadow:0 0 0 7px rgba(26,168,90,0)} 100%{box-shadow:0 0 0 0 rgba(26,168,90,0)} }
174
+
175
+ #pl-overlay .pl-vparow { display: flex; flex-direction: column; gap: 12px; border: 1px solid #e6ebf4; border-radius: 14px; padding: 16px; }
176
+ #pl-overlay .pl-vpa { width: 100%; padding: 14px 14px; border: 1px solid #d5dae0; border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--pl-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
177
+ #pl-overlay .pl-vpa:focus { border-color: var(--pl-blue); box-shadow: 0 0 0 3px rgba(51,149,255,.16); }
178
+ #pl-overlay .pl-vpa::placeholder { color: #aab2bf; }
179
+ #pl-overlay .pl-verify { width: 100%; padding: 15px; background: #16181f; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: filter .15s, transform .08s; }
180
+ #pl-overlay .pl-verify:hover { filter: brightness(1.25); }
181
+ #pl-overlay .pl-verify:active { transform: scale(.99); }
182
+
183
+ #pl-overlay .pl-pendrow { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:18px; font-size:13px; font-weight:600; color:var(--pl-mut); }
184
+ #pl-overlay .pl-pendrow.pl-fail { color:#e02424; }
185
+ #pl-overlay .pl-mini-spin { width:14px; height:14px; border:2px solid #d5dae0; border-top-color:var(--pl-blue); border-radius:50%; animation:pl-spin .8s linear infinite; display:inline-block; }
186
+ #pl-overlay .pl-qrloading { width:140px; height:140px; border-radius:10px; background:linear-gradient(90deg,#f2f4f7,#e9eef6,#f2f4f7); background-size:200% 100%; animation:pl-shimmer 1.2s linear infinite; }
187
+ @keyframes pl-shimmer { to { background-position:-200% 0; } }
188
+ #pl-overlay .pl-qrerr { width:140px; height:140px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; font-size:11.5px; line-height:1.35; color:#8a97a8; text-align:center; padding:6px; }
189
+ #pl-overlay .pl-retry { background:var(--pl-blue); color:#fff; border:none; border-radius:8px; padding:7px 14px; font:700 12px Inter,sans-serif; cursor:pointer; }
190
+
191
+ /* ---- success (celebration) ---- */
192
+ #pl-overlay .pl-success { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; gap: 6px; }
193
+ #pl-overlay .pl-burst { position: relative; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
194
+ #pl-overlay .pl-check { position: relative; z-index: 3; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(145deg,#13c66a,#00a251); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 32px rgba(0,162,81,.4); animation: pl-pop .55s cubic-bezier(.2,1.5,.35,1) both, pl-glow 2.4s ease-in-out .7s infinite; }
195
+ #pl-overlay .pl-check svg { width: 44px; height: 44px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: pl-draw .5s .28s cubic-bezier(.6,0,.3,1) forwards; }
196
+ @keyframes pl-pop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
197
+ @keyframes pl-draw { to { stroke-dashoffset: 0; } }
198
+ @keyframes pl-glow { 0%,100% { box-shadow: 0 12px 32px rgba(0,162,81,.4); } 50% { box-shadow: 0 12px 40px rgba(0,162,81,.6); } }
199
+ #pl-overlay .pl-ripple { position: absolute; z-index: 1; width: 86px; height: 86px; border-radius: 50%; border: 2.5px solid rgba(0,162,81,.45); opacity: 0; animation: pl-rip 1.5s ease-out .12s 2 forwards; }
200
+ #pl-overlay .pl-ripple2 { animation-delay: .55s; border-color: rgba(0,162,81,.3); }
201
+ @keyframes pl-rip { 0% { transform: scale(.6); opacity: .85; } 100% { transform: scale(2.05); opacity: 0; } }
202
+ #pl-overlay .pl-confetti { position: absolute; left: 50%; top: 50%; z-index: 2; background: var(--c); opacity: 0; transform: translate(-50%,-50%) scale(.3); animation: pl-conf 1.9s cubic-bezier(.12,.7,.2,1) forwards; }
203
+ @keyframes pl-conf { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 12% { opacity: 1; } 72% { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--tx) * 1.12), calc(-50% + var(--ty) * 1.12 + 14px)) rotate(var(--r)) scale(.9); } }
204
+ #pl-overlay .pl-success h2 { font-size: 22px; color: var(--pl-ink); font-weight: 700; animation: pl-fadeUp .45s ease .4s backwards; }
205
+ #pl-overlay .pl-success p { font-size: 13px; color: var(--pl-mut); animation: pl-fadeUp .45s ease .5s backwards; }
206
+ #pl-overlay .pl-pid { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--pl-ink); background: #f2f4f7; padding: 6px 10px; border-radius: 6px; margin-top: 8px; animation: pl-fadeUp .45s ease .6s backwards; }
207
+ #pl-overlay .pl-utr { margin-top: 6px; }
208
+ @media (prefers-reduced-motion: reduce) { #pl-overlay .pl-confetti, #pl-overlay .pl-ripple { display: none; } #pl-overlay .pl-check { animation: pl-pop .3s ease both; } }
209
+
210
+ #pl-overlay .pl-screen::-webkit-scrollbar, #pl-overlay .pl-nav::-webkit-scrollbar, #pl-overlay .pl-pane::-webkit-scrollbar { width: 6px; }
211
+ #pl-overlay .pl-screen::-webkit-scrollbar-thumb, #pl-overlay .pl-nav::-webkit-scrollbar-thumb, #pl-overlay .pl-pane::-webkit-scrollbar-thumb { background: #d5dae0; border-radius: 3px; }
212
+
213
+ #pl-toast { position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(10px); background:#16181f; color:#fff; padding:12px 20px; border-radius:10px; font:600 14px Inter,system-ui,sans-serif; box-shadow:0 10px 30px rgba(0,0,0,.3); z-index:2147483600; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; max-width:90vw; text-align:center; }
214
+ #pl-toast.pl-show { opacity:1; transform:translateX(-50%) translateY(0); }
215
+
216
+ /* ============ RESPONSIVE / MOBILE ============ */
217
+ @media (max-width: 840px) {
218
+ #pl-overlay { padding: 0; align-items: stretch; }
219
+ #pl-overlay .pl-modal { flex-direction: column; height: 100%; max-height: 100%; max-width: 100%; border-radius: 0; }
220
+ #pl-overlay .pl-left { width: 100%; flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; flex-shrink: 0; }
221
+ #pl-overlay .pl-left::before { display: none; }
222
+ #pl-overlay .pl-brandrow { margin-bottom: 0; flex: 1; }
223
+ #pl-overlay .pl-logo { width: 44px; height: 44px; }
224
+ #pl-overlay .pl-bname { font-size: 17px; }
225
+ #pl-overlay .pl-summary { background: none; box-shadow: none; padding: 0; text-align: right; }
226
+ #pl-overlay .pl-summary .pl-sl, #pl-overlay .pl-summary .pl-snote { display: none; }
227
+ #pl-overlay .pl-summary .pl-samt { font-size: 22px; margin: 0; color: #fff; }
228
+ #pl-overlay .pl-illus, #pl-overlay .pl-secured { display: none; }
229
+ #pl-overlay .pl-main { flex: 1; min-height: 0; }
230
+ #pl-overlay .pl-options { flex-direction: column; }
231
+ #pl-overlay .pl-nav { display: none; }
232
+ #pl-overlay .pl-pane { padding: 20px 18px; }
233
+ #pl-overlay .pl-back.pl-show { opacity: 0; pointer-events: none; }
234
+ }
235
+ @media (max-width: 460px) {
236
+ #pl-overlay .pl-qrcard { flex-direction: column; text-align: center; gap: 16px; }
237
+ #pl-overlay .pl-qrside { width: 100%; }
238
+ #pl-overlay .pl-approw { justify-content: center; }
239
+ #pl-overlay .pl-validrow { margin: 0 auto; }
240
+ }
241
+ `;
242
+
243
+ let injected = false;
244
+ export function injectStyles(doc = document) {
245
+ if (injected && doc.getElementById('pl-checkout-styles')) return;
246
+ const style = doc.createElement('style');
247
+ style.id = 'pl-checkout-styles';
248
+ style.textContent = CSS;
249
+ doc.head.appendChild(style);
250
+ injected = true;
251
+ }