@quantaroute/checkout 1.5.0 → 1.7.0
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/CHANGELOG.md +35 -0
- package/README.md +39 -7
- package/dist/lib/index.d.ts +59 -4
- package/dist/lib/quantaroute-checkout.es.js +200 -190
- package/dist/lib/quantaroute-checkout.umd.js +136 -126
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/AddressForm.tsx +31 -7
- package/src/components/CheckoutWidget.tsx +265 -55
- package/src/components/PaymentStep.tsx +15 -5
- package/src/components/SavedAddressStep.tsx +8 -4
- package/src/core/checkout-api.ts +58 -3
- package/src/core/types.ts +31 -0
- package/src/index.ts +6 -0
- package/src/styles/checkout.css +574 -0
package/src/core/types.ts
CHANGED
|
@@ -104,6 +104,14 @@ export interface CheckoutWidgetController {
|
|
|
104
104
|
getStep: () => string;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
export type CheckoutMobilePresentation = 'auto' | 'sheet' | 'card';
|
|
108
|
+
|
|
109
|
+
export interface CheckoutMobileStepLabels {
|
|
110
|
+
auth?: string;
|
|
111
|
+
address?: string;
|
|
112
|
+
payment?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
107
115
|
// ─── Checkout event (client-side analytics hook) ─────────────────────────────
|
|
108
116
|
|
|
109
117
|
/** All step-transition event types emitted by the widget. */
|
|
@@ -120,6 +128,7 @@ export type CheckoutEventType =
|
|
|
120
128
|
| 'auth_skipped'
|
|
121
129
|
| 'saved_addresses_viewed'
|
|
122
130
|
| 'saved_address_selected'
|
|
131
|
+
| 'verify_address_step_viewed'
|
|
123
132
|
| 'map_step_viewed'
|
|
124
133
|
| 'location_confirmed'
|
|
125
134
|
| 'form_step_viewed'
|
|
@@ -197,6 +206,17 @@ export interface MapPinSelectorProps {
|
|
|
197
206
|
brandColor?: string;
|
|
198
207
|
}
|
|
199
208
|
|
|
209
|
+
/** Pre-fill manual fields when verifying an imported saved address. */
|
|
210
|
+
export interface AddressFormInitialValues {
|
|
211
|
+
flatNumber?: string;
|
|
212
|
+
floorNumber?: string;
|
|
213
|
+
buildingName?: string;
|
|
214
|
+
streetName?: string;
|
|
215
|
+
locality?: string;
|
|
216
|
+
label?: AddressLabel;
|
|
217
|
+
labelText?: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
200
220
|
export interface AddressFormProps {
|
|
201
221
|
digipin: string;
|
|
202
222
|
lat: number;
|
|
@@ -207,6 +227,10 @@ export interface AddressFormProps {
|
|
|
207
227
|
onBack: () => void;
|
|
208
228
|
onError?: (error: Error) => void;
|
|
209
229
|
theme?: 'light' | 'dark';
|
|
230
|
+
/** Pre-populate manual fields from a saved address row (lazy DigiPin verify). */
|
|
231
|
+
initialValues?: AddressFormInitialValues;
|
|
232
|
+
/** Override primary submit button label (default: "Save Address"). */
|
|
233
|
+
submitLabel?: string;
|
|
210
234
|
/** Checkout API config for merchant serviceability checks. */
|
|
211
235
|
checkoutConfig?: CheckoutApiConfig;
|
|
212
236
|
/** Buyer session token used by checkout-addresses serviceability_check. */
|
|
@@ -247,6 +271,13 @@ export interface CheckoutWidgetProps {
|
|
|
247
271
|
mapHeight?: string | number;
|
|
248
272
|
/** Widget header title. Defaults to 'Add Delivery Address'. */
|
|
249
273
|
title?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Mobile visual treatment. `auto` applies the improved mobile layout below 480px,
|
|
276
|
+
* `sheet` is for storefront drawers/modals, and `card` preserves the compact card feel.
|
|
277
|
+
*/
|
|
278
|
+
mobilePresentation?: CheckoutMobilePresentation;
|
|
279
|
+
/** Override the compact mobile step labels (e.g. Mobile / Address / Pay). */
|
|
280
|
+
mobileStepLabels?: CheckoutMobileStepLabels;
|
|
250
281
|
/**
|
|
251
282
|
* URL to an India boundary GeoJSON file (FeatureCollection).
|
|
252
283
|
* When provided, a thin grey outline is drawn on the map for legal compliance.
|
package/src/index.ts
CHANGED
|
@@ -71,6 +71,8 @@ export {
|
|
|
71
71
|
createAddress,
|
|
72
72
|
deleteAddress,
|
|
73
73
|
setDefaultAddress,
|
|
74
|
+
selectAddress,
|
|
75
|
+
verifyDigipin,
|
|
74
76
|
checkCodEligibility,
|
|
75
77
|
checkServiceability,
|
|
76
78
|
notifyAddressCompleted,
|
|
@@ -89,6 +91,7 @@ export type {
|
|
|
89
91
|
SendEmailOtpResult,
|
|
90
92
|
SavedAddress,
|
|
91
93
|
SavedAddressPayload,
|
|
94
|
+
VerifyDigipinPayload,
|
|
92
95
|
CodEligibilityResult,
|
|
93
96
|
ServiceabilityResult,
|
|
94
97
|
SessionContextPayload,
|
|
@@ -117,8 +120,11 @@ export type { UtmParams } from './core/utm';
|
|
|
117
120
|
export { getWebDeviceContext, detectDeviceType, detectPlatform } from './core/device';
|
|
118
121
|
export type {
|
|
119
122
|
CheckoutWidgetProps,
|
|
123
|
+
CheckoutMobilePresentation,
|
|
124
|
+
CheckoutMobileStepLabels,
|
|
120
125
|
MapPinSelectorProps,
|
|
121
126
|
AddressFormProps,
|
|
127
|
+
AddressFormInitialValues,
|
|
122
128
|
PhoneStepProps,
|
|
123
129
|
OtpStepProps,
|
|
124
130
|
EmailStepProps,
|
package/src/styles/checkout.css
CHANGED
|
@@ -1350,6 +1350,38 @@
|
|
|
1350
1350
|
font-weight: 600;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
+
/* Order lock — lazy DigiPin verification */
|
|
1354
|
+
.qr-order-lock-banner {
|
|
1355
|
+
margin: 0 16px 8px;
|
|
1356
|
+
padding: 10px 14px;
|
|
1357
|
+
border-radius: 8px;
|
|
1358
|
+
background: color-mix(in srgb, #f59e0b 14%, white);
|
|
1359
|
+
border: 1px solid color-mix(in srgb, #f59e0b 35%, white);
|
|
1360
|
+
font-size: 13px;
|
|
1361
|
+
font-weight: 600;
|
|
1362
|
+
line-height: 1.4;
|
|
1363
|
+
color: var(--qr-text, #1f2937);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.qr-checkout--dark .qr-order-lock-banner {
|
|
1367
|
+
background: color-mix(in srgb, #f59e0b 18%, #1f2937);
|
|
1368
|
+
border-color: color-mix(in srgb, #f59e0b 40%, #374151);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.qr-addr-card__pending-pin {
|
|
1372
|
+
font-size: 11px;
|
|
1373
|
+
font-weight: 600;
|
|
1374
|
+
color: #b45309;
|
|
1375
|
+
background: color-mix(in srgb, #f59e0b 12%, white);
|
|
1376
|
+
padding: 2px 8px;
|
|
1377
|
+
border-radius: 999px;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.qr-checkout--dark .qr-addr-card__pending-pin {
|
|
1381
|
+
color: #fbbf24;
|
|
1382
|
+
background: color-mix(in srgb, #f59e0b 20%, #1f2937);
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1353
1385
|
/* Payment step */
|
|
1354
1386
|
.qr-payment-step {
|
|
1355
1387
|
padding: 16px;
|
|
@@ -2006,3 +2038,545 @@
|
|
|
2006
2038
|
height: 10px;
|
|
2007
2039
|
flex-shrink: 0;
|
|
2008
2040
|
}
|
|
2041
|
+
|
|
2042
|
+
/* ============================================================
|
|
2043
|
+
Mobile-first commerce polish
|
|
2044
|
+
============================================================ */
|
|
2045
|
+
|
|
2046
|
+
.qr-checkout {
|
|
2047
|
+
--qr-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
2048
|
+
--qr-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
.qr-header__progress-mobile {
|
|
2052
|
+
display: none;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
.qr-header__progress-desktop {
|
|
2056
|
+
display: flex;
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
.qr-mobile-stepper {
|
|
2060
|
+
display: flex;
|
|
2061
|
+
align-items: center;
|
|
2062
|
+
width: 100%;
|
|
2063
|
+
gap: 6px;
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
.qr-mobile-stepper__item {
|
|
2067
|
+
display: inline-flex;
|
|
2068
|
+
align-items: center;
|
|
2069
|
+
gap: 6px;
|
|
2070
|
+
min-width: 0;
|
|
2071
|
+
color: var(--qr-text-muted);
|
|
2072
|
+
font-size: 12px;
|
|
2073
|
+
font-weight: 650;
|
|
2074
|
+
white-space: nowrap;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
.qr-mobile-stepper__mark {
|
|
2078
|
+
display: inline-flex;
|
|
2079
|
+
align-items: center;
|
|
2080
|
+
justify-content: center;
|
|
2081
|
+
width: 18px;
|
|
2082
|
+
height: 18px;
|
|
2083
|
+
border-radius: 999px;
|
|
2084
|
+
background: var(--qr-bg-subtle);
|
|
2085
|
+
border: 1px solid var(--qr-border);
|
|
2086
|
+
color: var(--qr-text-muted);
|
|
2087
|
+
font-size: 11px;
|
|
2088
|
+
line-height: 1;
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
.qr-mobile-stepper__item--active {
|
|
2092
|
+
color: var(--qr-text);
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
.qr-mobile-stepper__item--active .qr-mobile-stepper__mark,
|
|
2096
|
+
.qr-mobile-stepper__item--complete .qr-mobile-stepper__mark {
|
|
2097
|
+
background: var(--qr-primary);
|
|
2098
|
+
border-color: var(--qr-primary);
|
|
2099
|
+
color: #fff;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.qr-mobile-stepper__item--complete {
|
|
2103
|
+
color: var(--qr-primary);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
.qr-mobile-stepper__rail {
|
|
2107
|
+
flex: 1 1 14px;
|
|
2108
|
+
min-width: 10px;
|
|
2109
|
+
height: 2px;
|
|
2110
|
+
border-radius: 999px;
|
|
2111
|
+
background: color-mix(in srgb, var(--qr-primary) 24%, var(--qr-border));
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
.qr-payment-option {
|
|
2115
|
+
display: flex;
|
|
2116
|
+
align-items: center;
|
|
2117
|
+
width: 100%;
|
|
2118
|
+
gap: 12px;
|
|
2119
|
+
min-height: 58px;
|
|
2120
|
+
padding: 12px 14px;
|
|
2121
|
+
border-radius: 16px;
|
|
2122
|
+
border: 1.5px solid var(--qr-border);
|
|
2123
|
+
background: var(--qr-bg);
|
|
2124
|
+
color: var(--qr-text);
|
|
2125
|
+
font-family: var(--qr-font);
|
|
2126
|
+
text-align: left;
|
|
2127
|
+
cursor: pointer;
|
|
2128
|
+
transition:
|
|
2129
|
+
transform 120ms var(--qr-ease-out),
|
|
2130
|
+
border-color 160ms var(--qr-ease-out),
|
|
2131
|
+
box-shadow 160ms var(--qr-ease-out),
|
|
2132
|
+
background 160ms var(--qr-ease-out);
|
|
2133
|
+
-webkit-tap-highlight-color: transparent;
|
|
2134
|
+
touch-action: manipulation;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
.qr-payment-option:active:not(:disabled) {
|
|
2138
|
+
transform: scale(0.98);
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
.qr-payment-option:disabled {
|
|
2142
|
+
opacity: 0.55;
|
|
2143
|
+
cursor: not-allowed;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
.qr-payment-option--primary {
|
|
2147
|
+
border-color: color-mix(in srgb, var(--qr-primary) 42%, var(--qr-border));
|
|
2148
|
+
box-shadow: 0 10px 28px color-mix(in srgb, var(--qr-primary) 16%, transparent);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
.qr-payment-option--secondary {
|
|
2152
|
+
background: var(--qr-bg-subtle);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
.qr-payment-option__icon {
|
|
2156
|
+
display: inline-flex;
|
|
2157
|
+
align-items: center;
|
|
2158
|
+
justify-content: center;
|
|
2159
|
+
flex-shrink: 0;
|
|
2160
|
+
min-width: 36px;
|
|
2161
|
+
height: 36px;
|
|
2162
|
+
padding: 0 8px;
|
|
2163
|
+
border-radius: 999px;
|
|
2164
|
+
background: var(--qr-primary-light);
|
|
2165
|
+
color: var(--qr-primary);
|
|
2166
|
+
font-size: 11px;
|
|
2167
|
+
font-weight: 800;
|
|
2168
|
+
letter-spacing: 0.03em;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
.qr-payment-option__copy {
|
|
2172
|
+
display: flex;
|
|
2173
|
+
flex: 1;
|
|
2174
|
+
min-width: 0;
|
|
2175
|
+
flex-direction: column;
|
|
2176
|
+
gap: 2px;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
.qr-payment-option__title {
|
|
2180
|
+
font-size: 14px;
|
|
2181
|
+
font-weight: 750;
|
|
2182
|
+
letter-spacing: -0.01em;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
.qr-payment-option__sub {
|
|
2186
|
+
font-size: 12px;
|
|
2187
|
+
color: var(--qr-text-muted);
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
.qr-payment-option__amount {
|
|
2191
|
+
flex-shrink: 0;
|
|
2192
|
+
color: var(--qr-text);
|
|
2193
|
+
font-size: 14px;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
@media (hover: hover) and (pointer: fine) {
|
|
2197
|
+
.qr-payment-option:hover:not(:disabled) {
|
|
2198
|
+
border-color: var(--qr-primary);
|
|
2199
|
+
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
@media (max-width: 480px) {
|
|
2204
|
+
.qr-checkout {
|
|
2205
|
+
--qr-radius-sm: 12px;
|
|
2206
|
+
--qr-radius: 16px;
|
|
2207
|
+
--qr-radius-lg: 22px;
|
|
2208
|
+
min-height: 100dvh;
|
|
2209
|
+
background:
|
|
2210
|
+
linear-gradient(180deg, color-mix(in srgb, var(--qr-primary) 7%, var(--qr-bg)) 0%, var(--qr-bg) 148px);
|
|
2211
|
+
overflow-y: auto;
|
|
2212
|
+
-webkit-overflow-scrolling: touch;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
.qr-checkout--mobile-sheet {
|
|
2216
|
+
min-height: min(100dvh, 760px);
|
|
2217
|
+
border-radius: 24px 24px 0 0;
|
|
2218
|
+
box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.18);
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
.qr-checkout--mobile-card {
|
|
2222
|
+
min-height: auto;
|
|
2223
|
+
border-radius: var(--qr-radius-lg);
|
|
2224
|
+
box-shadow: var(--qr-shadow-card);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
.qr-header {
|
|
2228
|
+
position: sticky;
|
|
2229
|
+
top: 0;
|
|
2230
|
+
z-index: 60;
|
|
2231
|
+
display: grid;
|
|
2232
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2233
|
+
gap: 10px;
|
|
2234
|
+
padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
|
|
2235
|
+
border-bottom: 0;
|
|
2236
|
+
background: color-mix(in srgb, var(--qr-bg) 92%, transparent);
|
|
2237
|
+
backdrop-filter: blur(18px);
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
.qr-header__brand {
|
|
2241
|
+
min-width: 0;
|
|
2242
|
+
justify-content: center;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
.qr-header__title {
|
|
2246
|
+
overflow: hidden;
|
|
2247
|
+
color: var(--qr-text);
|
|
2248
|
+
font-size: 16px;
|
|
2249
|
+
font-weight: 750;
|
|
2250
|
+
text-overflow: ellipsis;
|
|
2251
|
+
white-space: nowrap;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
.qr-header__logo {
|
|
2255
|
+
width: 22px;
|
|
2256
|
+
height: 22px;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
.qr-header__logo-img {
|
|
2260
|
+
max-height: 30px;
|
|
2261
|
+
max-width: 132px;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
.qr-header__progress-desktop {
|
|
2265
|
+
display: none;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
.qr-header__progress-mobile {
|
|
2269
|
+
display: flex;
|
|
2270
|
+
justify-content: center;
|
|
2271
|
+
padding: 0 8px 10px;
|
|
2272
|
+
border-bottom: 1px solid color-mix(in srgb, var(--qr-border) 75%, transparent);
|
|
2273
|
+
background: color-mix(in srgb, var(--qr-bg) 92%, transparent);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
.qr-mobile-stepper {
|
|
2277
|
+
max-width: 360px;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
.qr-header-banner {
|
|
2281
|
+
padding: 8px 16px;
|
|
2282
|
+
border-top: 1px solid color-mix(in srgb, var(--qr-primary) 14%, transparent);
|
|
2283
|
+
border-bottom: 1px solid color-mix(in srgb, var(--qr-primary) 14%, transparent);
|
|
2284
|
+
background: color-mix(in srgb, var(--qr-primary) 9%, var(--qr-bg));
|
|
2285
|
+
color: var(--qr-text);
|
|
2286
|
+
font-size: 12px;
|
|
2287
|
+
text-align: center;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
.qr-step-header {
|
|
2291
|
+
margin: 12px 16px 0;
|
|
2292
|
+
padding: 14px;
|
|
2293
|
+
border: 1px solid var(--qr-border);
|
|
2294
|
+
border-radius: 18px;
|
|
2295
|
+
background: color-mix(in srgb, var(--qr-bg) 92%, var(--qr-bg-subtle));
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
.qr-step-title {
|
|
2299
|
+
font-size: 15px;
|
|
2300
|
+
font-weight: 750;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
.qr-step-sub {
|
|
2304
|
+
font-size: 12px;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
.qr-auth-step {
|
|
2308
|
+
align-items: stretch;
|
|
2309
|
+
padding: 28px 20px calc(18px + env(safe-area-inset-bottom, 0px));
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
.qr-auth-step__icon {
|
|
2313
|
+
align-self: center;
|
|
2314
|
+
width: 46px;
|
|
2315
|
+
height: 46px;
|
|
2316
|
+
margin-bottom: 14px;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
.qr-auth-step__title {
|
|
2320
|
+
font-size: 22px;
|
|
2321
|
+
letter-spacing: -0.03em;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
.qr-auth-step__sub {
|
|
2325
|
+
max-width: 280px;
|
|
2326
|
+
margin-right: auto;
|
|
2327
|
+
margin-left: auto;
|
|
2328
|
+
margin-bottom: 22px;
|
|
2329
|
+
font-size: 14px;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
.qr-phone-field,
|
|
2333
|
+
.qr-email-field {
|
|
2334
|
+
min-height: 56px;
|
|
2335
|
+
border-radius: 16px;
|
|
2336
|
+
background: color-mix(in srgb, var(--qr-bg) 96%, var(--qr-bg-subtle));
|
|
2337
|
+
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
.qr-phone-field__prefix,
|
|
2341
|
+
.qr-phone-field__input,
|
|
2342
|
+
.qr-email-field__input {
|
|
2343
|
+
min-height: 54px;
|
|
2344
|
+
font-size: 16px;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
.qr-otp-boxes {
|
|
2348
|
+
gap: 8px;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
.qr-otp-box {
|
|
2352
|
+
width: clamp(40px, 13vw, 48px);
|
|
2353
|
+
height: 54px;
|
|
2354
|
+
border-radius: 14px;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
.qr-auth-step__skip {
|
|
2358
|
+
align-self: center;
|
|
2359
|
+
min-height: 44px;
|
|
2360
|
+
padding: 12px 16px;
|
|
2361
|
+
text-decoration: none;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
.qr-saved-step {
|
|
2365
|
+
padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
|
|
2366
|
+
gap: 14px;
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
.qr-saved-step__list {
|
|
2370
|
+
gap: 12px;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
.qr-addr-card {
|
|
2374
|
+
gap: 12px;
|
|
2375
|
+
padding: 16px;
|
|
2376
|
+
border-width: 1px;
|
|
2377
|
+
border-radius: 20px;
|
|
2378
|
+
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
.qr-addr-card--default {
|
|
2382
|
+
background:
|
|
2383
|
+
linear-gradient(180deg, color-mix(in srgb, var(--qr-primary) 10%, var(--qr-bg)) 0%, var(--qr-bg) 100%);
|
|
2384
|
+
box-shadow:
|
|
2385
|
+
0 0 0 1px color-mix(in srgb, var(--qr-primary) 24%, transparent),
|
|
2386
|
+
0 14px 34px color-mix(in srgb, var(--qr-primary) 10%, transparent);
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
.qr-addr-card__label {
|
|
2390
|
+
font-size: 14px;
|
|
2391
|
+
font-weight: 750;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
.qr-addr-card__default-badge,
|
|
2395
|
+
.qr-addr-card__pending-pin,
|
|
2396
|
+
.qr-addr-card__brand-chip {
|
|
2397
|
+
padding: 4px 9px;
|
|
2398
|
+
font-size: 11px;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
.qr-addr-card__line {
|
|
2402
|
+
font-size: 14px;
|
|
2403
|
+
line-height: 1.48;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
.qr-addr-card .qr-btn--sm {
|
|
2407
|
+
min-height: 48px;
|
|
2408
|
+
border-radius: 14px;
|
|
2409
|
+
font-size: 14px;
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
.qr-icon-btn {
|
|
2413
|
+
width: 34px;
|
|
2414
|
+
height: 34px;
|
|
2415
|
+
border-radius: 12px;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
.qr-search-bar {
|
|
2419
|
+
padding: 12px 14px 8px;
|
|
2420
|
+
border-bottom: 0;
|
|
2421
|
+
background: transparent;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
.qr-search-bar__input-wrap {
|
|
2425
|
+
min-height: 46px;
|
|
2426
|
+
border-radius: 16px;
|
|
2427
|
+
background: color-mix(in srgb, var(--qr-bg) 94%, transparent);
|
|
2428
|
+
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
.qr-map-outer {
|
|
2432
|
+
margin: 0 12px;
|
|
2433
|
+
border-radius: 22px;
|
|
2434
|
+
border: 1px solid var(--qr-border);
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
.qr-digipin-badge {
|
|
2438
|
+
top: 12px;
|
|
2439
|
+
left: 12px;
|
|
2440
|
+
padding: 6px 12px 6px 9px;
|
|
2441
|
+
border-radius: 999px;
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
.qr-locate-btn {
|
|
2445
|
+
top: auto;
|
|
2446
|
+
right: 14px;
|
|
2447
|
+
bottom: 14px;
|
|
2448
|
+
width: 42px;
|
|
2449
|
+
height: 42px;
|
|
2450
|
+
border-radius: 14px;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.qr-map-actions,
|
|
2454
|
+
.qr-form-actions {
|
|
2455
|
+
position: sticky;
|
|
2456
|
+
bottom: 0;
|
|
2457
|
+
padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
|
|
2458
|
+
background: color-mix(in srgb, var(--qr-bg) 94%, transparent);
|
|
2459
|
+
border-top: 1px solid color-mix(in srgb, var(--qr-border) 76%, transparent);
|
|
2460
|
+
backdrop-filter: blur(16px);
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
.qr-map-hint {
|
|
2464
|
+
font-size: 12px;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
.qr-order-lock-banner,
|
|
2468
|
+
.qr-offer-banner {
|
|
2469
|
+
margin: 10px 14px;
|
|
2470
|
+
border-radius: 16px;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.qr-form-wrapper {
|
|
2474
|
+
max-height: none;
|
|
2475
|
+
overflow-y: visible;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
.qr-form-digipin-strip {
|
|
2479
|
+
margin: 0 14px;
|
|
2480
|
+
border-radius: 16px;
|
|
2481
|
+
border: 1px solid color-mix(in srgb, var(--qr-primary) 24%, var(--qr-border));
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
.qr-fieldset {
|
|
2485
|
+
margin: 12px 14px 0;
|
|
2486
|
+
border: 1px solid var(--qr-border);
|
|
2487
|
+
border-radius: 18px;
|
|
2488
|
+
background: var(--qr-bg);
|
|
2489
|
+
overflow: hidden;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.qr-fieldset__legend {
|
|
2493
|
+
padding: 14px 14px 10px;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.qr-auto-grid,
|
|
2497
|
+
.qr-fields-grid,
|
|
2498
|
+
.qr-label-picker,
|
|
2499
|
+
.qr-label-text-field {
|
|
2500
|
+
padding-right: 14px;
|
|
2501
|
+
padding-left: 14px;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
.qr-fields-grid {
|
|
2505
|
+
grid-template-columns: 1fr;
|
|
2506
|
+
gap: 2px;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
.qr-field__input,
|
|
2510
|
+
.qr-auto-row__select {
|
|
2511
|
+
min-height: 48px;
|
|
2512
|
+
border-radius: 14px;
|
|
2513
|
+
font-size: 15px;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
.qr-label-picker__option {
|
|
2517
|
+
min-height: 48px;
|
|
2518
|
+
border-radius: 14px;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.qr-payment-step {
|
|
2522
|
+
padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px));
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
.qr-payment-step .qr-auth-step__title,
|
|
2526
|
+
.qr-payment-step .qr-auth-step__sub {
|
|
2527
|
+
text-align: left;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
.qr-payment-option {
|
|
2531
|
+
min-height: 64px;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
.qr-payment-step__meta {
|
|
2535
|
+
margin-top: 10px;
|
|
2536
|
+
text-align: left;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
.qr-success {
|
|
2540
|
+
padding: 42px 22px 28px;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
.qr-cod-banner,
|
|
2544
|
+
.qr-prepaid-nudge {
|
|
2545
|
+
margin-right: 14px;
|
|
2546
|
+
margin-left: 14px;
|
|
2547
|
+
border-radius: 16px;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
.qr-footer {
|
|
2551
|
+
padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
|
|
2552
|
+
border-top: 0;
|
|
2553
|
+
background: transparent;
|
|
2554
|
+
font-size: 10px;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
@media (max-width: 360px) {
|
|
2559
|
+
.qr-mobile-stepper__label {
|
|
2560
|
+
font-size: 11px;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.qr-mobile-stepper__mark {
|
|
2564
|
+
width: 17px;
|
|
2565
|
+
height: 17px;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
.qr-header__title {
|
|
2569
|
+
font-size: 15px;
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2574
|
+
.qr-payment-option,
|
|
2575
|
+
.qr-mobile-stepper__mark {
|
|
2576
|
+
transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
.qr-payment-option:active:not(:disabled) {
|
|
2580
|
+
transform: none;
|
|
2581
|
+
}
|
|
2582
|
+
}
|