@xapp/form-widget 1.112.2 → 1.112.3

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.
@@ -1138,75 +1138,298 @@ textarea.FormFieldTextInput-module_xapp_text_input_control__GO3Jw {
1138
1138
  * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used
1139
1139
  * until #1741, so a validation message sits exactly where it always has.
1140
1140
  */
1141
- .FormFieldDate-module_xapp_date_picker_container__d8LYB {
1142
- height: 100%;
1141
+ /* The month calendar that replaced @mui/x-date-pickers' DateCalendar (#1745).
1142
+ *
1143
+ * The metrics are MUI's own - a 320px calendar, 36px round days with a 2px gap, a 40px header -
1144
+ * so an unthemed calendar looks as it did. Box properties carry !important where a host page's
1145
+ * `button { ... }` rules would otherwise reach in: the widget is embedded on sites we do not
1146
+ * control, and MUI's emotion styles used to win those fights for us. */
1147
+ .Calendar-module_xapp_calendar__g0vk4 {
1143
1148
  display: flex;
1144
1149
  flex-direction: column;
1145
- justify-content: center;
1146
- align-items: center;
1147
- font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));
1150
+ box-sizing: border-box;
1151
+ width: 320px;
1152
+ max-width: 100%;
1153
+ margin: 0 auto;
1154
+ color: var(--xapp-form-widget-date-color, rgba(0, 0, 0, 0.87));
1155
+ font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));
1148
1156
  }
1149
1157
 
1150
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-weekDayLabel {
1151
- width: 30px !important;
1152
- height: 32px !important;
1158
+ .Calendar-module_xapp_calendar_header__rpFZl {
1159
+ display: flex;
1160
+ align-items: center;
1161
+ min-height: 40px;
1162
+ max-height: 40px;
1163
+ margin: 12px 0 4px;
1164
+ padding: 0 12px 0 24px;
1153
1165
  }
1154
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersCalendarHeader-root {
1155
- margin-top: 10px !important;
1156
- margin-bottom: 4px !important;
1166
+
1167
+ .Calendar-module_xapp_calendar_label__JueKy {
1168
+ flex: 1 1 auto;
1169
+ margin-right: auto;
1170
+ font-family: inherit;
1171
+ font-size: 1rem;
1172
+ font-weight: 500;
1173
+ line-height: 1.75;
1174
+ letter-spacing: 0.00938em;
1157
1175
  }
1158
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-slideTransition {
1159
- min-height: 200px !important;
1176
+
1177
+ .Calendar-module_xapp_calendar_nav__RRUAJ {
1178
+ display: flex;
1160
1179
  }
1161
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button {
1180
+
1181
+ .Calendar-module_xapp_calendar_nav_button__NTU0D {
1182
+ appearance: none;
1183
+ box-sizing: border-box;
1184
+ display: inline-flex;
1185
+ align-items: center;
1186
+ justify-content: center;
1187
+ min-width: 0 !important;
1188
+ min-height: 0 !important;
1189
+ padding: 0 !important;
1190
+ border: 0 !important;
1191
+ background-image: none !important;
1192
+ box-shadow: none !important;
1193
+ font-family: inherit;
1194
+ text-transform: none;
1195
+ cursor: pointer;
1196
+ width: 40px !important;
1197
+ height: 40px !important;
1198
+ border-radius: 50% !important;
1199
+ background-color: transparent !important;
1162
1200
  color: rgba(0, 0, 0, 0.54) !important;
1201
+ font-size: 1.5rem;
1163
1202
  }
1164
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button:hover {
1165
- background-image: unset !important;
1203
+ .Calendar-module_xapp_calendar_nav_button__NTU0D:hover:not(:disabled) {
1204
+ background-color: rgba(0, 0, 0, 0.04) !important;
1166
1205
  }
1167
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button:focus {
1168
- background-image: unset !important;
1169
- outline: unset !important;
1170
- border: 0 !important;
1206
+ .Calendar-module_xapp_calendar_nav_button__NTU0D:disabled {
1207
+ color: rgba(0, 0, 0, 0.26) !important;
1208
+ cursor: default;
1171
1209
  }
1172
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.MuiButtonBase-root:hover {
1173
- background-image: unset !important;
1210
+ .Calendar-module_xapp_calendar_nav_button__NTU0D:focus {
1211
+ outline: none;
1174
1212
  }
1175
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.MuiButtonBase-root:focus {
1176
- background-image: unset !important;
1177
- outline: unset !important;
1213
+ .Calendar-module_xapp_calendar_nav_button__NTU0D:focus-visible {
1214
+ outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));
1215
+ outline-offset: 0px;
1216
+ }
1217
+
1218
+ .Calendar-module_xapp_calendar_week__7Ouri {
1219
+ display: flex;
1220
+ justify-content: center;
1221
+ align-items: center;
1222
+ margin: 2px 0;
1223
+ }
1224
+
1225
+ .Calendar-module_xapp_calendar_weeks__EdB4Q,
1226
+ .Calendar-module_xapp_calendar_skeleton__yL-4v {
1227
+ min-height: 240px;
1228
+ }
1229
+
1230
+ .Calendar-module_xapp_calendar_weekday__NzfbO {
1231
+ display: flex;
1232
+ align-items: center;
1233
+ justify-content: center;
1234
+ width: 36px;
1235
+ height: 40px;
1236
+ margin: 0 2px;
1237
+ color: rgba(0, 0, 0, 0.6);
1238
+ font-size: 0.75rem;
1239
+ font-weight: 400;
1240
+ line-height: 1.66;
1241
+ letter-spacing: 0.03333em;
1242
+ text-align: center;
1243
+ }
1244
+
1245
+ .Calendar-module_xapp_calendar_day__Lb9-E {
1246
+ appearance: none;
1247
+ box-sizing: border-box;
1248
+ display: inline-flex;
1249
+ align-items: center;
1250
+ justify-content: center;
1251
+ min-width: 0 !important;
1252
+ min-height: 0 !important;
1253
+ padding: 0 !important;
1178
1254
  border: 0 !important;
1255
+ background-image: none !important;
1256
+ box-shadow: none !important;
1257
+ font-family: inherit;
1258
+ text-transform: none;
1259
+ cursor: pointer;
1260
+ width: 36px !important;
1261
+ height: 36px !important;
1262
+ margin: 0 2px !important;
1263
+ border-radius: 50% !important;
1264
+ background-color: transparent !important;
1265
+ color: inherit !important;
1266
+ font-size: 0.75rem;
1267
+ font-weight: 400;
1268
+ line-height: 1.66;
1269
+ letter-spacing: 0.03333em;
1270
+ transition: background-color 200ms ease-in-out;
1179
1271
  }
1180
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root {
1181
- padding: 0px !important;
1182
- font-family: inherit !important;
1272
+ .Calendar-module_xapp_calendar_day__Lb9-E:hover:not(:disabled) {
1273
+ background-color: rgba(25, 118, 210, 0.04) !important;
1183
1274
  }
1184
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.Mui-selected {
1185
- color: #fff !important;
1186
- background-color: #1976d2 !important;
1187
- font-weight: 600 !important;
1275
+ .Calendar-module_xapp_calendar_day__Lb9-E:disabled {
1276
+ color: rgba(0, 0, 0, 0.38) !important;
1277
+ cursor: default;
1188
1278
  }
1189
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-today {
1190
- font-weight: bold !important;
1191
- color: #321aa3 !important;
1279
+ .Calendar-module_xapp_calendar_day__Lb9-E:focus {
1280
+ outline: none;
1192
1281
  }
1193
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-dayWithMargin {
1282
+ .Calendar-module_xapp_calendar_day__Lb9-E:focus-visible {
1283
+ outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));
1284
+ outline-offset: 0px;
1285
+ }
1286
+
1287
+ .Calendar-module_xapp_calendar_day_outside__4XT5w {
1288
+ color: rgba(0, 0, 0, 0.6) !important;
1289
+ }
1290
+
1291
+ .Calendar-module_xapp_calendar_day_today__uclpX:not(.Calendar-module_xapp_calendar_day_selected__qi4gk) {
1292
+ border: 1px solid rgba(0, 0, 0, 0.6) !important;
1293
+ }
1294
+
1295
+ .Calendar-module_xapp_calendar_day_selected__qi4gk {
1296
+ background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;
1297
+ color: #ffffff !important;
1298
+ font-weight: 500;
1299
+ }
1300
+ .Calendar-module_xapp_calendar_day_selected__qi4gk:hover:not(:disabled) {
1301
+ background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;
1302
+ }
1303
+
1304
+ .Calendar-module_xapp_calendar_filler__8Rf7z {
1305
+ width: 36px;
1306
+ height: 36px;
1307
+ margin: 0 2px;
1308
+ }
1309
+
1310
+ .Calendar-module_xapp_calendar_skeleton_day__yJl4Q {
1311
+ width: 36px;
1312
+ height: 36px;
1313
+ margin: 0 2px;
1314
+ border-radius: 50%;
1315
+ background-color: rgba(0, 0, 0, 0.11);
1316
+ animation: Calendar-module_xapp_calendar_pulse__LTQW7 2s ease-in-out 0.5s infinite;
1317
+ }
1318
+
1319
+ @keyframes Calendar-module_xapp_calendar_pulse__LTQW7 {
1320
+ 0% {
1321
+ opacity: 1;
1322
+ }
1323
+ 50% {
1324
+ opacity: 0.4;
1325
+ }
1326
+ 100% {
1327
+ opacity: 1;
1328
+ }
1329
+ }
1330
+ @media (prefers-reduced-motion: reduce) {
1331
+ .Calendar-module_xapp_calendar_skeleton_day__yJl4Q {
1332
+ animation: none;
1333
+ }
1334
+ }
1335
+ /* Phones: 44x44 days, weekday labels and month arrows (WCAG 2.5.8, Apple's HIG). Date selection
1336
+ * is the most expensive mis-tap in this funnel. Seven 44px columns only fit the 320px calendar
1337
+ * once the 2px side gaps go, so the gap goes rather than the cell. */
1338
+ @media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {
1339
+ .Calendar-module_xapp_calendar_day__Lb9-E {
1340
+ width: 44px !important;
1341
+ height: 44px !important;
1342
+ margin: 0 !important;
1343
+ font-size: 0.875rem;
1344
+ }
1345
+ .Calendar-module_xapp_calendar_weekday__NzfbO {
1346
+ width: 44px;
1347
+ height: 44px;
1348
+ margin: 0;
1349
+ }
1350
+ .Calendar-module_xapp_calendar_filler__8Rf7z,
1351
+ .Calendar-module_xapp_calendar_skeleton_day__yJl4Q {
1352
+ width: 44px;
1353
+ height: 44px;
1354
+ margin: 0;
1355
+ }
1356
+ .Calendar-module_xapp_calendar_nav_button__NTU0D {
1357
+ width: 44px !important;
1358
+ height: 44px !important;
1359
+ }
1360
+ .Calendar-module_xapp_calendar_weeks__EdB4Q,
1361
+ .Calendar-module_xapp_calendar_skeleton__yL-4v {
1362
+ min-height: 288px;
1363
+ }
1364
+ }
1365
+ /**
1366
+ * The phone breakpoint.
1367
+ *
1368
+ * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than
1369
+ * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and
1370
+ * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area
1371
+ * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat
1372
+ * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the
1373
+ * form step's action row was unreachable. XappMedia/chat-widget#1561.
1374
+ *
1375
+ * The second arm adds short-and-touch, which is what a landscape phone is. Verified in
1376
+ * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in
1377
+ * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`
1378
+ * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.
1379
+ *
1380
+ * Use this instead of writing the query by hand, so the definition lives in one place.
1381
+ */
1382
+ /**
1383
+ * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used
1384
+ * until #1741, so a validation message sits exactly where it always has.
1385
+ */
1386
+ .FormFieldDate-module_xapp_date_picker_container__d8LYB {
1387
+ height: 100%;
1388
+ display: flex;
1389
+ flex-direction: column;
1390
+ justify-content: center;
1391
+ align-items: center;
1392
+ font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));
1393
+ }
1394
+
1395
+ /* The compact look this field has always shipped with, now on the shared Calendar (#1745).
1396
+ *
1397
+ * Until #1745 these rules targeted MUI's class names. The published bundle keeps CSS-module
1398
+ * names unchanged, so there they matched and drew 30px days tinted by availability; Storybook
1399
+ * hashes the names, so it never showed them. The Calendar's parts carry these classes directly
1400
+ * now, so both builds draw the production look.
1401
+ *
1402
+ * Each rule is scoped under `.xapp_date_picker` so it outranks the Calendar's own rule for the
1403
+ * same part whichever order the two stylesheets load in. */
1404
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_header__-IdYL {
1405
+ margin-top: 10px;
1406
+ margin-bottom: 4px;
1407
+ }
1408
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_weekday__G7-Zs {
1409
+ width: 30px;
1410
+ height: 32px;
1411
+ font-weight: 600;
1412
+ font-size: 0.75rem;
1413
+ }
1414
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_weeks__GeGSq {
1415
+ min-height: 200px;
1416
+ }
1417
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_day__NFNvS {
1194
1418
  width: 30px !important;
1195
1419
  height: 30px !important;
1196
- font-weight: 600 !important;
1197
- font-size: 0.75rem !important;
1420
+ font-weight: 600;
1421
+ font-size: 0.75rem;
1198
1422
  }
1199
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-dayWithMargin:hover {
1200
- background-image: unset !important;
1423
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_day__NFNvS:hover:not(:disabled) {
1201
1424
  background-color: #cfd8da !important;
1202
1425
  }
1203
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-dayWithMargin:focus {
1204
- background-image: unset !important;
1205
- background-color: #1976d2 !important;
1426
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_day__NFNvS:disabled {
1427
+ font-weight: 300;
1428
+ text-decoration: line-through;
1206
1429
  }
1207
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-dayWithMargin.Mui-disabled {
1208
- font-weight: 300 !important;
1209
- text-decoration: line-through !important;
1430
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_day_today__mxuN9 {
1431
+ font-weight: bold;
1432
+ color: #321aa3 !important;
1210
1433
  }
1211
1434
  .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_past__ECo-S {
1212
1435
  background-color: rgba(48, 49, 53, 0.2392156863) !important;
@@ -1214,52 +1437,60 @@ textarea.FormFieldTextInput-module_xapp_text_input_control__GO3Jw {
1214
1437
  .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_available__2Xtlu {
1215
1438
  background-color: rgba(0, 255, 21, 0.1607843137) !important;
1216
1439
  }
1217
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_blocked__e-aNY {
1218
- background-color: rgba(175, 177, 182, 0.2392156863) !important;
1440
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_day_selected__10ZGY {
1441
+ background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;
1442
+ color: #fff !important;
1443
+ font-weight: 600;
1444
+ }
1445
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_day_selected__10ZGY:hover:not(:disabled) {
1446
+ background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;
1447
+ }
1448
+
1449
+ .FormFieldDate-module_xapp_date_picker_loading__z6hMR {
1450
+ margin: 3px 14px 0 !important;
1451
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);
1452
+ font-size: 0.75rem !important;
1453
+ font-weight: 400;
1454
+ line-height: 1.66 !important;
1455
+ letter-spacing: 0.03333em;
1456
+ text-align: left;
1457
+ color: #d32f2f !important;
1458
+ margin: 14px 0 -14px 98px !important;
1459
+ color: inherit !important;
1219
1460
  }
1220
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-weekDayLabel {
1221
- font-weight: 600 !important;
1461
+
1462
+ .FormFieldDate-module_xapp_date_picker_error__GFfVJ {
1463
+ margin: 3px 14px 0 !important;
1464
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);
1222
1465
  font-size: 0.75rem !important;
1466
+ font-weight: 400;
1467
+ line-height: 1.66 !important;
1468
+ letter-spacing: 0.03333em;
1469
+ text-align: left;
1470
+ color: #d32f2f !important;
1471
+ margin: 14px 0 -14px 14px !important;
1223
1472
  }
1224
1473
 
1225
1474
  /* Mobile: 44x44 tappable day cells.
1226
1475
  *
1227
1476
  * Date selection is the most expensive mis-tap in this funnel - the visitor either books the
1228
- * wrong day or gives up - and MUI ships 36x36 cells (30x30 once the rules above apply). Both
1229
- * are under the 44x44 that Apple's HIG and WCAG 2.5.8 ask for.
1230
- *
1231
- * `:global(...)` rather than the bare MUI class names used above, and that difference is not
1232
- * cosmetic. The two builds treat this file differently: rollup's postcss-modules is
1233
- * configured with a `generateScopedName` that returns every name unchanged, so the plain
1234
- * selectors above do match MUI's classes in the published bundle - but Storybook's css-loader
1235
- * hashes them, so up there they match nothing and the calendar renders at MUI's own defaults.
1236
- * `:global` is honoured by both, so these rules land either way. (The rules above are left as
1237
- * they are: making them global too would change the shipped calendar, which is not what this
1238
- * issue is about.)
1239
- *
1240
- * The seven columns have to keep fitting inside MUI's 320px-wide calendar, and 7 x 44 = 308
1241
- * only fits once the 2px side margins on each cell go - hence dropping the gap rather than
1242
- * the cell, per the issue.
1243
- */
1477
+ * wrong day or gives up - and the 30px cells above are under the 44x44 that Apple's HIG and
1478
+ * WCAG 2.5.8 ask for. Seven 44px columns fit the 320px calendar once the 2px side margins go,
1479
+ * hence dropping the gap rather than the cell. */
1244
1480
  @media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {
1245
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root,
1246
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-dayWithMargin {
1247
- width: 44px !important;
1248
- height: 44px !important;
1249
- margin: 0 !important;
1250
- font-size: 0.875rem !important;
1251
- }
1252
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-weekDayLabel {
1481
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_day__NFNvS {
1253
1482
  width: 44px !important;
1254
1483
  height: 44px !important;
1255
1484
  margin: 0 !important;
1485
+ font-size: 0.875rem;
1256
1486
  }
1257
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-slideTransition {
1258
- min-height: 264px !important;
1487
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_weekday__G7-Zs {
1488
+ width: 44px;
1489
+ height: 44px;
1490
+ margin: 0;
1259
1491
  }
1260
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button {
1261
- width: 44px !important;
1262
- height: 44px !important;
1492
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_weeks__GeGSq {
1493
+ min-height: 264px;
1263
1494
  }
1264
1495
  }
1265
1496
  /**
@@ -1417,7 +1648,15 @@ textarea.FormFieldTextInput-module_xapp_text_input_control__GO3Jw {
1417
1648
  }
1418
1649
 
1419
1650
  .FormFieldDateTime-module_xapp_datetime_error__bTyZK {
1420
- margin-top: 14px;
1651
+ margin: 3px 14px 0 !important;
1652
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);
1653
+ font-size: 0.75rem !important;
1654
+ font-weight: 400;
1655
+ line-height: 1.66 !important;
1656
+ letter-spacing: 0.03333em;
1657
+ text-align: left;
1658
+ color: #d32f2f !important;
1659
+ margin-top: 14px !important;
1421
1660
  }
1422
1661
 
1423
1662
  /* Stacked, with the column under the calendar and given room to scroll on its own. */
@@ -1434,70 +1673,279 @@ textarea.FormFieldTextInput-module_xapp_text_input_control__GO3Jw {
1434
1673
  max-height: 260px;
1435
1674
  }
1436
1675
  }
1437
- .FormFieldTextInputAddress-module_xapp_text_input_address_container__title__IbovL p {
1438
- margin: 0;
1439
- font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));
1676
+ /**
1677
+ * The phone breakpoint.
1678
+ *
1679
+ * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than
1680
+ * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and
1681
+ * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area
1682
+ * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat
1683
+ * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the
1684
+ * form step's action row was unreachable. XappMedia/chat-widget#1561.
1685
+ *
1686
+ * The second arm adds short-and-touch, which is what a landscape phone is. Verified in
1687
+ * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in
1688
+ * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`
1689
+ * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.
1690
+ *
1691
+ * Use this instead of writing the query by hand, so the definition lives in one place.
1692
+ */
1693
+ /**
1694
+ * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used
1695
+ * until #1741, so a validation message sits exactly where it always has.
1696
+ */
1697
+ .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM {
1698
+ display: inline-flex;
1699
+ flex-direction: column;
1700
+ position: relative;
1701
+ width: 100%;
1702
+ min-width: 0;
1703
+ margin: 16px 0 8px;
1704
+ padding: 0;
1705
+ border: 0;
1706
+ box-sizing: border-box;
1707
+ vertical-align: top;
1708
+ }
1709
+
1710
+ .FormFieldTextInputAddress-module_xapp_address_anchor__HPntW {
1711
+ position: relative;
1712
+ width: 100%;
1440
1713
  }
1441
1714
 
1442
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiInputBase-input {
1715
+ .FormFieldTextInputAddress-module_xapp_address_root__2w9ks {
1716
+ position: relative;
1717
+ display: flex;
1718
+ align-items: center;
1719
+ width: 100%;
1720
+ box-sizing: border-box;
1721
+ background-color: var(--xapp-form-widget-text-root-background, rgba(0, 0, 0, 0.06)) !important;
1722
+ border: var(--xapp-form-widget-text-root-border, 0) !important;
1723
+ border-radius: var(--xapp-form-widget-text-root-radius, 4px 4px 0 0) !important;
1724
+ font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));
1725
+ font-size: 1rem;
1726
+ line-height: 1.4375em;
1727
+ cursor: text;
1728
+ }
1729
+ .FormFieldTextInputAddress-module_xapp_address_root__2w9ks:hover, .FormFieldTextInputAddress-module_xapp_address_root__2w9ks.FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3 {
1730
+ border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;
1731
+ }
1732
+ .FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before, .FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {
1733
+ display: var(--xapp-form-widget-text-underline-display, block) !important;
1734
+ content: "";
1735
+ position: absolute;
1736
+ left: 0;
1737
+ right: 0;
1738
+ bottom: 0;
1739
+ pointer-events: none;
1740
+ }
1741
+ .FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before {
1742
+ border-bottom: 1px solid rgba(0, 0, 0, 0.42);
1743
+ transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1744
+ }
1745
+ .FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {
1746
+ border-bottom: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));
1747
+ transform: scaleX(0);
1748
+ transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
1749
+ }
1750
+ .FormFieldTextInputAddress-module_xapp_address_root__2w9ks:hover::before {
1751
+ border-bottom-color: rgba(0, 0, 0, 0.87);
1752
+ }
1753
+
1754
+ .FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3::after {
1755
+ transform: scaleX(1);
1756
+ }
1757
+
1758
+ .FormFieldTextInputAddress-module_xapp_address_error__inPHs .FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before, .FormFieldTextInputAddress-module_xapp_address_error__inPHs .FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {
1759
+ border-bottom-color: #d32f2f;
1760
+ }
1761
+ .FormFieldTextInputAddress-module_xapp_address_error__inPHs .FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {
1762
+ transform: scaleX(1);
1763
+ }
1764
+
1765
+ .FormFieldTextInputAddress-module_xapp_address_control__4YDQD {
1766
+ display: block;
1767
+ min-width: 0;
1443
1768
  padding: 21px 12px 4px 12px !important;
1444
1769
  border: 0 !important;
1445
1770
  background-color: var(--xapp-form-widget-text-input-background, var(--xapp-form-widget-text-background-color, rgba(0, 0, 0, 0.06))) !important;
1446
- border-radius: var(--xapp-form-widget-border-radius-sm, 8px) !important;
1771
+ border-radius: var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-text-bottom-radius, 0) var(--xapp-form-widget-text-bottom-radius, 0) !important;
1447
1772
  transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out !important;
1448
1773
  color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;
1449
1774
  font-size: var(--xapp-form-widget-text-font-size, 1rem) !important;
1450
- font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif)) !important;
1775
+ font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif)) !important;
1776
+ line-height: 1.4375em !important;
1777
+ letter-spacing: inherit;
1451
1778
  height: auto !important;
1779
+ min-height: 0 !important;
1452
1780
  width: 100% !important;
1453
1781
  max-width: 100% !important;
1782
+ box-sizing: border-box !important;
1454
1783
  margin: 0 !important;
1455
1784
  margin-bottom: 0 !important;
1456
1785
  border-width: 0 !important;
1457
1786
  border-style: none !important;
1787
+ box-shadow: none;
1458
1788
  -webkit-appearance: none !important;
1459
1789
  appearance: none !important;
1460
1790
  }
1461
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiInputBase-input:hover {
1791
+ .FormFieldTextInputAddress-module_xapp_address_control__4YDQD::placeholder {
1792
+ color: currentColor;
1793
+ opacity: 0.42;
1794
+ transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1795
+ }
1796
+ .FormFieldTextInputAddress-module_xapp_address_control__4YDQD[data-shrink=false]::placeholder {
1797
+ opacity: 0 !important;
1798
+ }
1799
+ .FormFieldTextInputAddress-module_xapp_address_control__4YDQD:hover {
1462
1800
  background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;
1463
1801
  }
1464
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiInputBase-input:focus {
1802
+ .FormFieldTextInputAddress-module_xapp_address_control__4YDQD:focus {
1465
1803
  background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;
1466
1804
  outline: none !important;
1467
1805
  box-shadow: inset 0 0 0 2px var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;
1468
1806
  }
1469
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiFilledInput-root {
1470
- background-color: var(--xapp-form-widget-text-root-background, rgba(0, 0, 0, 0.06)) !important;
1471
- border: var(--xapp-form-widget-text-root-border, 0) !important;
1472
- border-radius: var(--xapp-form-widget-text-root-radius, 4px 4px 0 0) !important;
1807
+
1808
+ .FormFieldTextInputAddress-module_xapp_address_label__lrzNq {
1809
+ position: absolute !important;
1810
+ left: 0;
1811
+ top: 0;
1812
+ z-index: 1;
1813
+ display: block;
1814
+ max-width: calc(100% - 24px);
1815
+ margin: 0 !important;
1816
+ padding: 0 !important;
1817
+ overflow: hidden;
1818
+ white-space: nowrap;
1819
+ text-overflow: ellipsis;
1820
+ pointer-events: none;
1821
+ transform-origin: top left;
1822
+ transform: translate(12px, 13px) scale(1) !important;
1823
+ transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms !important;
1824
+ color: rgba(0, 0, 0, 0.6);
1825
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif) !important;
1826
+ font-size: 1rem !important;
1827
+ font-weight: 400 !important;
1828
+ line-height: 1.4375em !important;
1829
+ letter-spacing: 0.00938em;
1473
1830
  }
1474
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiFilledInput-root:hover, .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiFilledInput-root.Mui-focused {
1475
- border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;
1831
+ .FormFieldTextInputAddress-module_xapp_address_label__lrzNq[data-shrink=true] {
1832
+ max-width: calc(133% - 24px);
1833
+ transform: translate(12px, 4px) scale(0.75) !important;
1476
1834
  }
1477
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiFilledInput-root::before, .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiFilledInput-root::after {
1478
- display: var(--xapp-form-widget-text-underline-display, block) !important;
1835
+ .FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3 .FormFieldTextInputAddress-module_xapp_address_label__lrzNq {
1836
+ color: var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));
1479
1837
  }
1480
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiFilledInput-root {
1481
- padding-top: 0 !important;
1482
- padding-left: 0 !important;
1838
+ .FormFieldTextInputAddress-module_xapp_address_error__inPHs .FormFieldTextInputAddress-module_xapp_address_label__lrzNq {
1839
+ color: #d32f2f;
1483
1840
  }
1484
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiAutocomplete-root {
1485
- padding-top: 0 !important;
1486
- padding-left: 0 !important;
1841
+
1842
+ .FormFieldTextInputAddress-module_xapp_address_error__inPHs .FormFieldTextInputAddress-module_xapp_address_asterisk__hVgBb {
1843
+ color: #d32f2f;
1487
1844
  }
1488
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiPopper-root-MuiAutocomplete-popper {
1845
+
1846
+ .FormFieldTextInputAddress-module_xapp_address_helper__CU-Ne {
1847
+ margin: 3px 14px 0 !important;
1848
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);
1849
+ font-size: 0.75rem !important;
1850
+ font-weight: 400;
1851
+ line-height: 1.66 !important;
1852
+ letter-spacing: 0.03333em;
1853
+ text-align: left;
1854
+ color: #d32f2f !important;
1855
+ }
1856
+
1857
+ .FormFieldTextInputAddress-module_xapp_address_popup__dw-zo {
1858
+ position: absolute;
1859
+ top: 100%;
1860
+ left: 0;
1861
+ right: 0;
1489
1862
  z-index: 16000;
1863
+ margin: 2px 0 0;
1864
+ overflow: hidden;
1865
+ background-color: #fff;
1866
+ color: rgba(0, 0, 0, 0.87);
1867
+ border-radius: 4px;
1868
+ box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
1869
+ font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));
1870
+ font-size: 1rem;
1871
+ font-weight: 400;
1872
+ line-height: 1.5;
1873
+ letter-spacing: 0.00938em;
1874
+ text-align: left;
1490
1875
  }
1491
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiInputLabel-root {
1492
- transform: translate(12px, 13px) scale(1) !important;
1493
- transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms !important;
1876
+ .FormFieldTextInputAddress-module_xapp_address_popup__dw-zo[hidden] {
1877
+ display: none;
1494
1878
  }
1495
- .FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM .MuiInputLabel-root.MuiInputLabel-shrink {
1496
- transform: translate(12px, 4px) scale(0.75) !important;
1879
+
1880
+ .FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI {
1881
+ list-style: none !important;
1882
+ margin: 0 !important;
1883
+ padding: 8px 0 !important;
1884
+ max-height: 40vh;
1885
+ overflow: auto;
1886
+ box-sizing: border-box;
1887
+ }
1888
+ .FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI:empty {
1889
+ display: none;
1890
+ }
1891
+
1892
+ .FormFieldTextInputAddress-module_xapp_address_option__nGWID {
1893
+ display: flex;
1894
+ align-items: center;
1895
+ justify-content: flex-start;
1896
+ min-height: 48px;
1897
+ margin: 0 !important;
1898
+ padding: 6px 16px !important;
1899
+ box-sizing: border-box;
1900
+ cursor: pointer;
1901
+ user-select: none;
1902
+ outline: 0;
1903
+ -webkit-tap-highlight-color: transparent;
1904
+ }
1905
+ .FormFieldTextInputAddress-module_xapp_address_option__nGWID::before, .FormFieldTextInputAddress-module_xapp_address_option__nGWID::marker {
1906
+ content: none !important;
1907
+ }
1908
+
1909
+ .FormFieldTextInputAddress-module_xapp_address_option_active__KX0-4 {
1910
+ background-color: rgba(0, 0, 0, 0.04);
1497
1911
  }
1498
1912
 
1499
- .MuiAutocomplete-popper {
1500
- z-index: 16000 !important;
1913
+ .FormFieldTextInputAddress-module_xapp_address_option_icon__N4n4Y {
1914
+ flex: 0 0 auto;
1915
+ width: 1em;
1916
+ height: 1em;
1917
+ margin-right: 20px;
1918
+ font-size: 1.5rem;
1919
+ fill: rgba(0, 0, 0, 0.6);
1920
+ }
1921
+
1922
+ .FormFieldTextInputAddress-module_xapp_address_option_text__C2ulS {
1923
+ display: block;
1924
+ min-width: 0;
1925
+ word-wrap: break-word;
1926
+ }
1927
+
1928
+ .FormFieldTextInputAddress-module_xapp_address_secondary__YipJC {
1929
+ display: block;
1930
+ font-size: 0.875rem;
1931
+ line-height: 1.43;
1932
+ letter-spacing: 0.01071em;
1933
+ color: rgba(0, 0, 0, 0.6);
1934
+ }
1935
+
1936
+ .FormFieldTextInputAddress-module_xapp_address_no_options__zSLTf {
1937
+ padding: 14px 16px;
1938
+ color: rgba(0, 0, 0, 0.6);
1939
+ }
1940
+
1941
+ .FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K {
1942
+ text-align: right;
1943
+ padding: 4px 12px 8px;
1944
+ }
1945
+ .FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K img {
1946
+ display: inline-block;
1947
+ height: 14px;
1948
+ width: auto;
1501
1949
  }
1502
1950
  /**
1503
1951
  * The phone breakpoint.