@charcoal-ui/react 6.0.0-rc.2 → 6.0.0-rc.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.
@@ -0,0 +1,1836 @@
1
+ .charcoal-button {
2
+ -webkit-appearance: none;
3
+ -moz-appearance: none;
4
+ appearance: none;
5
+ background: transparent;
6
+ box-sizing: border-box;
7
+ padding: 0 24px;
8
+ border-style: none;
9
+ outline: none;
10
+ text-rendering: inherit;
11
+ letter-spacing: inherit;
12
+ word-spacing: inherit;
13
+ text-decoration: none;
14
+ font: inherit;
15
+ margin: 0;
16
+ overflow: visible;
17
+ text-transform: none;
18
+ width: -moz-min-content;
19
+ width: min-content;
20
+ display: inline-grid;
21
+ align-items: center;
22
+ justify-content: center;
23
+ cursor: pointer;
24
+ -webkit-user-select: none;
25
+ -moz-user-select: none;
26
+ user-select: none;
27
+ white-space: nowrap;
28
+ border-radius: 999999px;
29
+ font-size: 14px;
30
+ line-height: 22px;
31
+ font-weight: bold;
32
+ color: var(--charcoal-text2);
33
+ background-color: var(--charcoal-surface3);
34
+ transition:
35
+ 0.2s color,
36
+ 0.2s background-color,
37
+ 0.2s box-shadow;
38
+ height: 40px;
39
+ }
40
+
41
+ .charcoal-button:disabled,
42
+ .charcoal-button[aria-disabled]:not([aria-disabled='false']) {
43
+ cursor: default;
44
+ opacity: 0.32;
45
+ }
46
+
47
+ .charcoal-button:not(:disabled):not([aria-disabled]):focus-visible,
48
+ .charcoal-button[aria-disabled='false']:focus-visible {
49
+ outline: none;
50
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
51
+ }
52
+
53
+ .charcoal-button:not(:disabled):not([aria-disabled]):hover,
54
+ .charcoal-button[aria-disabled='false']:hover {
55
+ color: var(--charcoal-text2-hover);
56
+ background-color: var(--charcoal-surface3-hover);
57
+ }
58
+
59
+ .charcoal-button:not(:disabled):not([aria-disabled]):active,
60
+ .charcoal-button[aria-disabled='false']:active,
61
+ .charcoal-button[data-active='true'] {
62
+ color: var(--charcoal-text2-press);
63
+ background-color: var(--charcoal-surface3-press);
64
+ }
65
+
66
+ .charcoal-button[data-variant='Primary'] {
67
+ color: var(--charcoal-text5);
68
+ background-color: var(--charcoal-brand);
69
+ }
70
+
71
+ .charcoal-button[data-variant='Primary']:hover:not(:disabled):not(
72
+ [aria-disabled]
73
+ ),
74
+ .charcoal-button[data-variant='Primary']:hover[aria-disabled='false'] {
75
+ color: var(--charcoal-text5-hover);
76
+ background-color: var(--charcoal-brand-hover);
77
+ }
78
+
79
+ .charcoal-button[data-variant='Primary']:active:not(:disabled):not(
80
+ [aria-disabled]
81
+ ),
82
+ .charcoal-button[data-variant='Primary']:active[aria-disabled='false'],
83
+ .charcoal-button[data-variant='Primary'][data-active='true'] {
84
+ color: var(--charcoal-text5-press);
85
+ background-color: var(--charcoal-brand-press);
86
+ }
87
+
88
+ .charcoal-button[data-variant='Overlay'] {
89
+ color: var(--charcoal-text5);
90
+ background-color: var(--charcoal-surface4);
91
+ }
92
+
93
+ .charcoal-button[data-variant='Overlay']:hover:not(:disabled):not(
94
+ [aria-disabled]
95
+ ),
96
+ .charcoal-button[data-variant='Overlay']:hover[aria-disabled='false'] {
97
+ color: var(--charcoal-text5-hover);
98
+ background-color: var(--charcoal-surface4-hover);
99
+ }
100
+
101
+ .charcoal-button[data-variant='Overlay']:active:not(:disabled):not(
102
+ [aria-disabled]
103
+ ),
104
+ .charcoal-button[data-variant='Overlay']:active[aria-disabled='false'],
105
+ .charcoal-button[data-variant='Overlay'][data-active='true'] {
106
+ color: var(--charcoal-text5-press);
107
+ background-color: var(--charcoal-surface4-press);
108
+ }
109
+
110
+ .charcoal-button[data-variant='Navigation'] {
111
+ color: var(--charcoal-text5);
112
+ background-color: var(--charcoal-surface6);
113
+ }
114
+
115
+ .charcoal-button[data-variant='Navigation']:hover:not(:disabled):not(
116
+ [aria-disabled]
117
+ ),
118
+ .charcoal-button[data-variant='Navigation']:hover[aria-disabled='false'] {
119
+ color: var(--charcoal-text5-hover);
120
+ background-color: var(--charcoal-surface6-hover);
121
+ }
122
+
123
+ .charcoal-button[data-variant='Navigation']:active:not(:disabled):not(
124
+ [aria-disabled]
125
+ ),
126
+ .charcoal-button[data-variant='Navigation']:active[aria-disabled='false'],
127
+ .charcoal-button[data-variant='Navigation'][data-active='true'] {
128
+ color: var(--charcoal-text5-press);
129
+ background-color: var(--charcoal-surface6-press);
130
+ }
131
+
132
+ .charcoal-button[data-variant='Danger'] {
133
+ color: var(--charcoal-text5);
134
+ background-color: var(--charcoal-assertive);
135
+ }
136
+
137
+ .charcoal-button[data-variant='Danger']:hover:not(:disabled):not(
138
+ [aria-disabled]
139
+ ),
140
+ .charcoal-button[data-variant='Danger']:hover[aria-disabled='false'] {
141
+ color: var(--charcoal-text5-hover);
142
+ background-color: var(--charcoal-assertive-hover);
143
+ }
144
+
145
+ .charcoal-button[data-variant='Danger']:active:not(:disabled):not(
146
+ [aria-disabled]
147
+ ),
148
+ .charcoal-button[data-variant='Danger']:active[aria-disabled='false'],
149
+ .charcoal-button[data-variant='Danger'][data-active='true'] {
150
+ color: var(--charcoal-text5-press);
151
+ background-color: var(--charcoal-assertive-press);
152
+ }
153
+
154
+ .charcoal-button[data-size='S'] {
155
+ padding: 0 16px;
156
+ height: 32px;
157
+ }
158
+
159
+ .charcoal-button[data-full-width='true'] {
160
+ width: 100%;
161
+ }
162
+ .charcoal-clickable {
163
+ cursor: pointer;
164
+
165
+ /* Reset button appearance */
166
+ -webkit-appearance: none;
167
+ -moz-appearance: none;
168
+ appearance: none;
169
+ background: transparent;
170
+ padding: 0;
171
+ border-style: none;
172
+ outline: none;
173
+ color: inherit;
174
+ text-rendering: inherit;
175
+ letter-spacing: inherit;
176
+ word-spacing: inherit;
177
+ text-decoration: none;
178
+
179
+ /* Change the font styles in all browsers. */
180
+ font: inherit;
181
+
182
+ /* Remove the margin in Firefox and Safari. */
183
+ margin: 0;
184
+
185
+ /* Show the overflow in Edge. */
186
+ overflow: visible;
187
+
188
+ /* Remove the inheritance of text transform in Firefox. */
189
+ text-transform: none;
190
+ }
191
+
192
+ .charcoal-clickable:disabled,
193
+ .charcoal-clickable[aria-disabled]:not([aria-disabled='false']) {
194
+ cursor: default;
195
+ }
196
+
197
+ .charcoal-clickable:focus {
198
+ outline: none;
199
+ }
200
+
201
+ .charcoal-clickable::-moz-focus-inner {
202
+ border-style: none;
203
+ padding: 0;
204
+ }
205
+ .charcoal-icon-button {
206
+ cursor: pointer;
207
+ -webkit-appearance: none;
208
+ -moz-appearance: none;
209
+ appearance: none;
210
+ background: transparent;
211
+ padding: 0;
212
+ border-style: none;
213
+ outline: none;
214
+ color: inherit;
215
+ text-rendering: inherit;
216
+ letter-spacing: inherit;
217
+ word-spacing: inherit;
218
+ text-decoration: none;
219
+ font: inherit;
220
+ margin: 0;
221
+ overflow: visible;
222
+ text-transform: none;
223
+
224
+ -webkit-user-select: none;
225
+
226
+ -moz-user-select: none;
227
+
228
+ user-select: none;
229
+ display: flex;
230
+ align-items: center;
231
+ justify-content: center;
232
+ border-radius: 999999px;
233
+ transition:
234
+ 0.2s background-color,
235
+ 0.2s box-shadow;
236
+ }
237
+
238
+ .charcoal-icon-button:disabled,
239
+ .charcoal-icon-button[aria-disabled]:not([aria-disabled='false']) {
240
+ cursor: default;
241
+ opacity: 0.32;
242
+ }
243
+
244
+ .charcoal-icon-button:focus {
245
+ outline: none;
246
+ }
247
+
248
+ .charcoal-icon-button::-moz-focus-inner {
249
+ border-style: none;
250
+ padding: 0;
251
+ }
252
+
253
+ .charcoal-icon-button[data-size='XS'] {
254
+ width: 20px;
255
+ height: 20px;
256
+ }
257
+
258
+ .charcoal-icon-button[data-size='S'] {
259
+ width: 32px;
260
+ height: 32px;
261
+ }
262
+
263
+ .charcoal-icon-button[data-size='M'] {
264
+ width: 40px;
265
+ height: 40px;
266
+ }
267
+
268
+ .charcoal-icon-button[data-variant='Default'] {
269
+ color: var(--charcoal-text3);
270
+ background-color: var(--charcoal-transparent);
271
+ }
272
+
273
+ .charcoal-icon-button[data-variant='Default'][data-active='true']:not(
274
+ :disabled
275
+ ):not([aria-disabled]),
276
+ .charcoal-icon-button[data-variant='Default'][data-active='true'][aria-disabled='false'] {
277
+ color: var(--charcoal-text3-press);
278
+ background-color: var(--charcoal-transparent-press);
279
+ }
280
+
281
+ .charcoal-icon-button[data-variant='Default'][data-active='false']:not(
282
+ :disabled
283
+ ):not([aria-disabled]):hover,
284
+ .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:hover {
285
+ color: var(--charcoal-text3-hover);
286
+ background-color: var(--charcoal-transparent-hover);
287
+ }
288
+
289
+ .charcoal-icon-button[data-variant='Default'][data-active='false']:not(
290
+ :disabled
291
+ ):not([aria-disabled]):active,
292
+ .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:active {
293
+ color: var(--charcoal-text3-press);
294
+ background-color: var(--charcoal-transparent-press);
295
+ }
296
+
297
+ .charcoal-icon-button[data-variant='Overlay'] {
298
+ color: var(--charcoal-text5);
299
+ background-color: var(--charcoal-surface4);
300
+ }
301
+
302
+ .charcoal-icon-button[data-variant='Overlay'][data-active='true']:not(
303
+ :disabled
304
+ ):not([aria-disabled]),
305
+ .charcoal-icon-button[data-variant='Overlay'][data-active='true'][aria-disabled='false'] {
306
+ color: var(--charcoal-text5-press);
307
+ background-color: var(--charcoal-surface4-press);
308
+ }
309
+
310
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
311
+ :disabled
312
+ ):not([aria-disabled]):hover,
313
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:hover {
314
+ color: var(--charcoal-text5-hover);
315
+ background-color: var(--charcoal-surface4-hover);
316
+ }
317
+
318
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
319
+ :disabled
320
+ ):not([aria-disabled]):active,
321
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:active {
322
+ color: var(--charcoal-text5-press);
323
+ background-color: var(--charcoal-surface4-press);
324
+ }
325
+
326
+ .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus,
327
+ .charcoal-icon-button[aria-disabled='false']:focus {
328
+ outline: none;
329
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
330
+ }
331
+
332
+ .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus-visible,
333
+ .charcoal-icon-button[aria-disabled='false']:focus-visible {
334
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
335
+ }
336
+
337
+ .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus:not(
338
+ :focus-visible
339
+ ),
340
+ .charcoal-icon-button[aria-disabled='false']:focus:not(:focus-visible) {
341
+ box-shadow: none;
342
+ }
343
+ .charcoal-radio__label {
344
+ display: grid;
345
+ grid-template-columns: auto 1fr;
346
+ grid-gap: 4px;
347
+ align-items: center;
348
+ cursor: pointer;
349
+ }
350
+
351
+ .charcoal-radio__label[aria-disabled]:not([aria-disabled='false']) {
352
+ opacity: 0.32;
353
+ cursor: default;
354
+ }
355
+
356
+ .charcoal-radio__label_div {
357
+ font-size: 14px;
358
+ line-height: 22px;
359
+ color: var(--charcoal-text2);
360
+ }
361
+ .charcoal-radio-input {
362
+ -webkit-appearance: none;
363
+ -moz-appearance: none;
364
+ appearance: none;
365
+ display: block;
366
+ box-sizing: border-box;
367
+
368
+ margin: 0;
369
+ padding: 6px;
370
+
371
+ width: 20px;
372
+ height: 20px;
373
+ cursor: pointer;
374
+ border-radius: 999999px;
375
+ background-color: var(--charcoal-surface1);
376
+ transition:
377
+ 0.2s background-color,
378
+ 0.2s box-shadow;
379
+ }
380
+
381
+ .charcoal-radio-input:checked {
382
+ background-color: var(--charcoal-brand);
383
+ }
384
+
385
+ .charcoal-radio-input:checked::after {
386
+ content: '';
387
+ display: block;
388
+ width: 8px;
389
+ height: 8px;
390
+ pointer-events: none;
391
+ background-color: var(--charcoal-text5);
392
+ border-radius: 999999px;
393
+ transition:
394
+ 0.2s background-color,
395
+ 0.2s box-shadow;
396
+ }
397
+
398
+ .charcoal-radio-input:not(:checked) {
399
+ border-width: 2px;
400
+ border-style: solid;
401
+ border-color: var(--charcoal-text3);
402
+ }
403
+
404
+ .charcoal-radio-input:disabled {
405
+ cursor: default;
406
+ }
407
+
408
+ .charcoal-radio-input:not(:disabled):hover {
409
+ background-color: var(--charcoal-surface1-hover);
410
+ }
411
+
412
+ .charcoal-radio-input:not(:disabled):active {
413
+ background-color: var(--charcoal-surface1-press);
414
+ }
415
+
416
+ .charcoal-radio-input:not(:disabled):focus {
417
+ outline: none;
418
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
419
+ }
420
+
421
+ .charcoal-radio-input:not(:disabled):focus-visible {
422
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
423
+ }
424
+
425
+ .charcoal-radio-input:not(:disabled):focus:not(:focus-visible) {
426
+ box-shadow: none;
427
+ }
428
+
429
+ .charcoal-radio-input:not(:disabled)[aria-invalid='true'],
430
+ .charcoal-radio-input:not(:disabled)[aria-invalid='true']:focus {
431
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
432
+ }
433
+
434
+ .charcoal-radio-input:checked:not(:disabled):hover {
435
+ background-color: var(--charcoal-brand-hover);
436
+ }
437
+
438
+ .charcoal-radio-input:checked:not(:disabled):hover::after {
439
+ background-color: var(--charcoal-text5-hover);
440
+ }
441
+
442
+ .charcoal-radio-input:checked:not(:disabled):active {
443
+ background-color: var(--charcoal-brand-press);
444
+ }
445
+
446
+ .charcoal-radio-input:checked:not(:disabled):active::after {
447
+ background-color: var(--charcoal-text5-press);
448
+ }
449
+ .charcoal-radio-group {
450
+ display: grid;
451
+ grid-template-columns: 1fr;
452
+ grid-gap: 8px;
453
+ }
454
+ .charcoal-multi-select {
455
+ display: grid;
456
+ grid-template-columns: auto 1fr;
457
+ align-items: center;
458
+ position: relative;
459
+ cursor: pointer;
460
+ gap: 4px;
461
+ }
462
+
463
+ .charcoal-multi-select:disabled,
464
+ .charcoal-multi-select[aria-disabled]:not([aria-disabled='false']) {
465
+ opacity: 0.32;
466
+ cursor: default;
467
+ }
468
+
469
+ .charcoal-multi-select-label {
470
+ display: flow-root;
471
+ align-items: center;
472
+ font-size: 14px;
473
+ line-height: 22px;
474
+ color: var(--charcoal-text2);
475
+ }
476
+
477
+ .charcoal-multi-select-label::before {
478
+ display: block;
479
+ width: 0;
480
+ height: 0;
481
+ content: '';
482
+ margin-top: -4px;
483
+ }
484
+
485
+ .charcoal-multi-select-label::after {
486
+ display: block;
487
+ width: 0;
488
+ height: 0;
489
+ content: '';
490
+ margin-bottom: -4px;
491
+ }
492
+
493
+ .charcoal-multi-select-input[type='checkbox'] {
494
+ -webkit-appearance: none;
495
+ -moz-appearance: none;
496
+ appearance: none;
497
+ display: block;
498
+ width: 20px;
499
+ height: 20px;
500
+ margin: 0;
501
+ background-color: var(--charcoal-text3);
502
+ border-radius: 999999px;
503
+ transition:
504
+ 0.2s background-color,
505
+ 0.2s box-shadow;
506
+ }
507
+
508
+ .charcoal-multi-select-input[type='checkbox']:checked {
509
+ background-color: var(--charcoal-brand);
510
+ }
511
+
512
+ .charcoal-multi-select-input[type='checkbox']:focus {
513
+ outline: none;
514
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
515
+ }
516
+
517
+ .charcoal-multi-select-input[type='checkbox']:focus-visible {
518
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
519
+ }
520
+
521
+ .charcoal-multi-select-input[type='checkbox']:focus:not(:focus-visible) {
522
+ box-shadow: none;
523
+ }
524
+
525
+ .charcoal-multi-select-input[type='checkbox']:hover:not(:disabled):not(
526
+ [aria-disabled]
527
+ ),
528
+ .charcoal-multi-select-input[type='checkbox']:hover[aria-disabled='false'] {
529
+ background-color: var(--charcoal-text3-hover);
530
+ }
531
+
532
+ .charcoal-multi-select-input[type='checkbox']:active:not(:disabled):not(
533
+ [aria-disabled]
534
+ ),
535
+ .charcoal-multi-select-input[type='checkbox']:active[aria-disabled='false'] {
536
+ background-color: var(--charcoal-text3-press);
537
+ }
538
+
539
+ .charcoal-multi-select-input[type='checkbox']:checked:hover:not(:disabled):not(
540
+ [aria-disabled]
541
+ ),
542
+ .charcoal-multi-select-input[type='checkbox']:checked:hover[aria-disabled='false'] {
543
+ background-color: var(--charcoal-brand-hover);
544
+ }
545
+
546
+ .charcoal-multi-select-input[type='checkbox']:checked:active:not(:disabled):not(
547
+ [aria-disabled]
548
+ ),
549
+ .charcoal-multi-select-input[type='checkbox']:checked:active[aria-disabled='false'] {
550
+ background-color: var(--charcoal-brand-press);
551
+ }
552
+
553
+ .charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false']:not(
554
+ :disabled
555
+ ):not([aria-disabled]) {
556
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
557
+ }
558
+
559
+ .charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
560
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
561
+ }
562
+
563
+ .charcoal-multi-select-input[type='checkbox'][data-overlay='true'] {
564
+ background-color: var(--charcoal-surface4);
565
+ }
566
+
567
+ .charcoal-multi-select-overlay {
568
+ position: absolute;
569
+ top: -2px;
570
+ left: -2px;
571
+ box-sizing: border-box;
572
+ display: flex;
573
+ align-items: center;
574
+ justify-content: center;
575
+ width: 24px;
576
+ height: 24px;
577
+ border-radius: 999999px;
578
+ color: var(--charcoal-text5);
579
+ transition: 0.2s box-shadow;
580
+ }
581
+
582
+ .charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true']:not(
583
+ :disabled
584
+ ):not([aria-disabled]) {
585
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
586
+ }
587
+
588
+ .charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
589
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
590
+ }
591
+
592
+ .charcoal-multi-select-overlay[data-overlay='true'] {
593
+ border-color: var(--charcoal-text5);
594
+ border-width: 2px;
595
+ border-style: solid;
596
+ }
597
+ .charcoal-switch__label {
598
+ display: inline-grid;
599
+ grid-template-columns: auto 1fr;
600
+ align-items: center;
601
+ cursor: pointer;
602
+ outline: 0;
603
+ gap: 4px;
604
+ }
605
+
606
+ .charcoal-switch__label[aria-disabled='true'] {
607
+ opacity: 0.32;
608
+ cursor: default;
609
+ }
610
+
611
+ .charcoal-switch__label[aria-disabled='true'] > input {
612
+ opacity: 1;
613
+ }
614
+
615
+ .charcoal-switch__label_div {
616
+ font-size: 14px;
617
+ line-height: 22px;
618
+ color: var(--charcoal-text2);
619
+ }
620
+ .charcoal-switch-input {
621
+ cursor: pointer;
622
+ -webkit-appearance: none;
623
+ -moz-appearance: none;
624
+ appearance: none;
625
+ display: inline-flex;
626
+ position: relative;
627
+ box-sizing: border-box;
628
+ width: 28px;
629
+ border: 2px solid transparent;
630
+
631
+ transition-property: background-color, box-shadow;
632
+ transition-duration: 0.2s;
633
+
634
+ outline: none;
635
+ border-radius: 16px;
636
+ height: 16px;
637
+ margin: 0;
638
+ background-color: var(--charcoal-text4);
639
+ }
640
+
641
+ .charcoal-switch-input:disabled,
642
+ .charcoal-switch-input[readonly] {
643
+ opacity: 0.32;
644
+ cursor: default;
645
+ }
646
+
647
+ .charcoal-switch-input::after {
648
+ content: '';
649
+ position: absolute;
650
+ display: block;
651
+ top: 0;
652
+ left: 0;
653
+ width: 12px;
654
+ height: 12px;
655
+ transform: translateX(0);
656
+ transition: transform 0.2s;
657
+ border-radius: 1024px;
658
+ background-color: var(--charcoal-text5);
659
+ }
660
+
661
+ .charcoal-switch-input:checked::after {
662
+ transform: translateX(12px);
663
+ transition: transform 0.2s;
664
+ }
665
+
666
+ .charcoal-switch-input:checked {
667
+ background-color: var(--charcoal-brand);
668
+ }
669
+
670
+ .charcoal-switch-input:not(:disabled):hover {
671
+ background-color: var(--charcoal-text4-hover);
672
+ }
673
+
674
+ .charcoal-switch-input:not(:disabled):active {
675
+ background-color: var(--charcoal-text4-press);
676
+ }
677
+
678
+ .charcoal-switch-input:not(:disabled):focus {
679
+ outline: none;
680
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
681
+ }
682
+ .charcoal-switch-input:not(:disabled):focus-visible {
683
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
684
+ }
685
+ .charcoal-switch-input:not(:disabled):focus:not(:focus-visible) {
686
+ box-shadow: none;
687
+ }
688
+
689
+ .charcoal-switch-input:not(:disabled)::after:hover {
690
+ background-color: var(--charcoal-text5-hover);
691
+ }
692
+
693
+ .charcoal-switch-input:not(:disabled)::after:active {
694
+ background-color: var(--charcoal-text5-press);
695
+ }
696
+
697
+ .charcoal-switch-input:not(:disabled):checked:hover {
698
+ background-color: var(--charcoal-brand-hover);
699
+ }
700
+
701
+ .charcoal-switch-input:not(:disabled):checked:active {
702
+ background-color: var(--charcoal-brand-press);
703
+ }
704
+ .charcoal-text-field-root {
705
+ display: grid;
706
+ grid-template-columns: 1fr;
707
+ grid-gap: 4px;
708
+ }
709
+
710
+ .charcoal-text-field-root[aria-disabled='true'] {
711
+ opacity: 0.32;
712
+ }
713
+
714
+ .charcoal-text-field-container {
715
+ display: flex;
716
+ height: 40px;
717
+ transition:
718
+ 0.2s background-color,
719
+ 0.2s box-shadow;
720
+ color: var(--charcoal-text2);
721
+ background-color: var(--charcoal-surface3);
722
+ border-radius: 4px;
723
+ padding: 0 8px;
724
+ line-height: 22px;
725
+ font-size: 14px;
726
+ }
727
+
728
+ .charcoal-text-field-container[data-invalid='true'] {
729
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
730
+ }
731
+
732
+ .charcoal-text-field-container:not([aria-disabled='true']):hover {
733
+ background-color: var(--charcoal-surface3-hover);
734
+ }
735
+
736
+ .charcoal-text-field-container:not([aria-disabled='true']):focus-within {
737
+ outline: none;
738
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
739
+ }
740
+
741
+ .charcoal-text-field-container:not(
742
+ [aria-disabled='true']
743
+ )[data-invalid='true']:focus-within {
744
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
745
+ }
746
+
747
+ .charcoal-text-field-prefix {
748
+ display: flex;
749
+ align-items: center;
750
+ margin-right: 4px;
751
+ }
752
+
753
+ .charcoal-text-field-suffix {
754
+ display: flex;
755
+ align-items: center;
756
+ gap: 8px;
757
+ margin-left: 4px;
758
+ }
759
+
760
+ .charcoal-text-field-input-root {
761
+ flex: 1;
762
+ min-width: 0;
763
+ overflow: hidden;
764
+ }
765
+
766
+ .charcoal-text-field-input {
767
+ border: none;
768
+ box-sizing: border-box;
769
+ outline: none;
770
+ font-family: inherit;
771
+
772
+ /* Prevent zooming for iOS Safari */
773
+ transform-origin: top left;
774
+ transform: scale(0.875);
775
+ width: calc(100% / 0.875);
776
+ height: calc(100% / 0.875);
777
+ font-size: calc(14px / 0.875);
778
+ line-height: calc(22px / 0.875);
779
+ padding-left: 0;
780
+ padding-right: 0;
781
+ border-radius: calc(4px / 0.875);
782
+
783
+ /* Display box-shadow for iOS Safari */
784
+ -webkit-appearance: none;
785
+ -moz-appearance: none;
786
+ appearance: none;
787
+ background: transparent;
788
+
789
+ color: var(--charcoal-text2);
790
+ }
791
+
792
+ .charcoal-text-field-input::-moz-placeholder {
793
+ color: var(--charcoal-text3);
794
+ }
795
+
796
+ .charcoal-text-field-input::placeholder {
797
+ color: var(--charcoal-text3);
798
+ }
799
+
800
+ .charcoal-text-field-line-counter {
801
+ line-height: 22px;
802
+ font-size: 14px;
803
+ color: var(--charcoal-text3);
804
+ }
805
+ .charcoal-field-label {
806
+ font-size: 14px;
807
+ line-height: 22px;
808
+ font-weight: bold;
809
+ display: flow-root;
810
+ color: var(--charcoal-text1);
811
+ }
812
+
813
+ .charcoal-field-label-required-text {
814
+ font-size: 14px;
815
+ line-height: 22px;
816
+ display: flow-root;
817
+ color: var(--charcoal-text2);
818
+ }
819
+
820
+ .charcoal-field-label-sub-label {
821
+ font-size: 14px;
822
+ line-height: 22px;
823
+ display: flow-root;
824
+ color: var(--charcoal-text3);
825
+ transition:
826
+ 0.2s color,
827
+ 0.2s box-shadow;
828
+ }
829
+
830
+ .charcoal-field-label-root {
831
+ display: inline-flex;
832
+ align-items: center;
833
+ }
834
+
835
+ .charcoal-field-label-root > .charcoal-field-label-required-text {
836
+ margin-left: 4px;
837
+ }
838
+
839
+ .charcoal-field-label-root > .charcoal-field-label-sub-label {
840
+ margin-left: auto;
841
+ }
842
+ .charcoal-text-field-assistive-text {
843
+ font-size: 14px;
844
+ line-height: 22px;
845
+ margin: 0;
846
+ color: var(--charcoal-text2);
847
+ }
848
+
849
+ .charcoal-text-field-assistive-text[data-invalid='true'] {
850
+ color: var(--charcoal-assertive);
851
+ }
852
+ .charcoal-text-area-root {
853
+ display: grid;
854
+ grid-template-columns: 1fr;
855
+ grid-gap: 4px;
856
+ }
857
+
858
+ .charcoal-text-area-root[aria-disabled='true'] {
859
+ opacity: 0.32;
860
+ }
861
+
862
+ .charcoal-text-area-container {
863
+ position: relative;
864
+ overflow: hidden;
865
+
866
+ color: var(--charcoal-text2);
867
+ background-color: var(--charcoal-surface3);
868
+ border-radius: 4px;
869
+ transition:
870
+ 0.2s background-color,
871
+ 0.2s box-shadow;
872
+ height: calc(22px * var(--charcoal-text-area-rows) + 18px);
873
+ }
874
+
875
+ .charcoal-text-area-container[aria-invalid='true'] {
876
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
877
+ }
878
+
879
+ .charcoal-text-area-container:focus-within {
880
+ outline: none;
881
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
882
+ }
883
+
884
+ .charcoal-text-area-container:not([aria-disabled='true']):hover {
885
+ background-color: var(--charcoal-surface3-hover);
886
+ }
887
+
888
+ .charcoal-text-area-container[aria-invalid='true']:focus-within {
889
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
890
+ }
891
+
892
+ .charcoal-text-area-textarea {
893
+ border: none;
894
+ outline: none;
895
+ resize: none;
896
+ font-family: inherit;
897
+ color: inherit;
898
+ box-sizing: border-box;
899
+
900
+ /* Prevent zooming for iOS Safari */
901
+ transform-origin: top left;
902
+ transform: scale(0.875);
903
+ width: calc(100% / 0.875);
904
+ font-size: calc(14px / 0.875);
905
+ line-height: calc(22px / 0.875);
906
+ padding: calc(9px / 0.875) calc(8px / 0.875);
907
+ height: calc(22px / 0.875 * var(--charcoal-text-area-rows) + 20px);
908
+
909
+ /* Display box-shadow for iOS Safari */
910
+ -webkit-appearance: none;
911
+ -moz-appearance: none;
912
+ appearance: none;
913
+
914
+ background: none;
915
+ }
916
+
917
+ .charcoal-text-area-textarea[data-no-bottom-padding='true'] {
918
+ padding: calc(9px / 0.875) calc(8px / 0.875) 0;
919
+ height: calc(22px / 0.875 * (var(--charcoal-text-area-rows) - 1) + 9px);
920
+ }
921
+
922
+ .charcoal-text-area-textarea::-moz-placeholder {
923
+ color: var(--charcoal-text3);
924
+ }
925
+
926
+ .charcoal-text-area-textarea::placeholder {
927
+ color: var(--charcoal-text3);
928
+ }
929
+
930
+ .charcoal-text-area-counter {
931
+ position: absolute;
932
+ bottom: 9px;
933
+ right: 8px;
934
+
935
+ line-height: 22px;
936
+ font-size: 14px;
937
+ color: var(--charcoal-text3);
938
+ }
939
+ .charcoal-modal-dialog {
940
+ margin: auto;
941
+ position: relative;
942
+ height: -moz-fit-content;
943
+ height: fit-content;
944
+ width: 440px;
945
+
946
+ background-color: var(--charcoal-surface1);
947
+ border-radius: 24px;
948
+ }
949
+
950
+ .charcoal-modal-dialog[data-size='S'] {
951
+ width: 336px;
952
+ }
953
+
954
+ .charcoal-modal-dialog[data-size='M'] {
955
+ width: 440px;
956
+ }
957
+
958
+ .charcoal-modal-dialog[data-size='L'] {
959
+ width: 648px;
960
+ }
961
+
962
+ @media (max-width: 743px) {
963
+ .charcoal-modal-dialog {
964
+ max-width: 440px;
965
+ width: calc(100% - 48px);
966
+ }
967
+
968
+ .charcoal-modal-dialog[data-bottom-sheet='true'],
969
+ .charcoal-modal-dialog[data-bottom-sheet='full'] {
970
+ max-width: unset;
971
+ width: 100%;
972
+ border-radius: 0;
973
+ margin: auto 0 0 0;
974
+ }
975
+
976
+ .charcoal-modal-dialog[data-bottom-sheet='full'] {
977
+ min-height: 100%;
978
+ }
979
+ }
980
+
981
+ .charcoal-modal-dialog:focus {
982
+ outline: none;
983
+ }
984
+ .charcoal-modal-background {
985
+ overflow: auto;
986
+ display: flex;
987
+ position: fixed;
988
+ top: 0;
989
+ left: 0;
990
+ width: 100%;
991
+ height: 100%;
992
+ justify-content: center;
993
+ padding: 40px 0;
994
+ box-sizing: border-box;
995
+
996
+ background-color: var(--charcoal-surface4);
997
+ }
998
+
999
+ @media (max-width: 743px) {
1000
+ .charcoal-modal-background[data-bottom-sheet='true'],
1001
+ .charcoal-modal-background[data-bottom-sheet='full'] {
1002
+ padding: 0;
1003
+ }
1004
+ }
1005
+
1006
+ .charcoal-modal-close-button {
1007
+ position: absolute;
1008
+ top: 8px;
1009
+ right: 8px;
1010
+
1011
+ color: var(--charcoal-text3);
1012
+ transition: 0.2s color;
1013
+ }
1014
+
1015
+ .charcoal-modal-title {
1016
+ margin: 0;
1017
+ font-weight: inherit;
1018
+ font-size: inherit;
1019
+ }
1020
+ .charcoal-modal-header-root {
1021
+ height: 64px;
1022
+ display: grid;
1023
+ align-content: center;
1024
+ justify-content: center;
1025
+ }
1026
+
1027
+ @media (max-width: 743px) {
1028
+ .charcoal-modal-header-root[data-bottom-sheet='true'],
1029
+ .charcoal-modal-header-root[data-bottom-sheet='full'] {
1030
+ height: 48px;
1031
+ }
1032
+ }
1033
+
1034
+ .charcoal-modal-header-title {
1035
+ color: var(--charcoal-text1);
1036
+ font-size: 16px;
1037
+ line-height: 24px;
1038
+ font-weight: bold;
1039
+ display: flow-root;
1040
+ }
1041
+
1042
+ .charcoal-modal-align {
1043
+ padding-left: 16px;
1044
+ padding-right: 16px;
1045
+ }
1046
+
1047
+ .charcoal-modal-body {
1048
+ padding-bottom: 40px;
1049
+ }
1050
+
1051
+ .charcoal-modal-buttons {
1052
+ display: grid;
1053
+ grid-auto-flow: row;
1054
+ grid-row-gap: 8px;
1055
+
1056
+ padding-top: 16px;
1057
+ padding-left: 16px;
1058
+ padding-right: 16px;
1059
+ }
1060
+ .charcoal-loading-spinner {
1061
+ box-sizing: content-box;
1062
+ margin: auto;
1063
+ padding: var(--charcoal-loading-spinner-padding);
1064
+ border-radius: 8px;
1065
+ font-size: var(--charcoal-loading-spinner-size);
1066
+ width: var(--charcoal-loading-spinner-size);
1067
+ height: var(--charcoal-loading-spinner-size);
1068
+ opacity: 0.84;
1069
+ color: var(--charcoal-text4);
1070
+ background-color: var(--charcoal-background1);
1071
+ }
1072
+
1073
+ .charcoal-loading-spinner[data-transparent='true'] {
1074
+ background-color: var(--charcoal-transparent);
1075
+ }
1076
+
1077
+ @keyframes charcoal-loading-spinner-icon-scale-out {
1078
+ from {
1079
+ transform: scale(0);
1080
+ opacity: 1;
1081
+ }
1082
+ to {
1083
+ transform: scale(1);
1084
+ opacity: 0;
1085
+ }
1086
+ }
1087
+
1088
+ .charcoal-loading-spinner-icon {
1089
+ width: 1em;
1090
+ height: 1em;
1091
+ border-radius: 1em;
1092
+ background-color: currentColor;
1093
+ animation: charcoal-loading-spinner-icon-scale-out 1s both ease-out;
1094
+ animation-iteration-count: infinite;
1095
+ }
1096
+
1097
+ .charcoal-loading-spinner-icon[data-reset-animation] {
1098
+ animation: none;
1099
+ }
1100
+
1101
+ .charcoal-loading-spinner-icon[data-once='true'] {
1102
+ animation-iteration-count: 1;
1103
+ }
1104
+ .charcoal-dropdown-selector-root {
1105
+ display: grid;
1106
+ grid-template-columns: 1fr;
1107
+ grid-gap: 4px;
1108
+ width: 100%;
1109
+ }
1110
+
1111
+ .charcoal-dropdown-selector-root[aria-disabled='true'] {
1112
+ cursor: default;
1113
+ opacity: 0.32;
1114
+ }
1115
+
1116
+ .charcoal-dropdown-selector-button {
1117
+ display: grid;
1118
+ grid-template-columns: 1fr auto;
1119
+ justify-content: space-between;
1120
+ align-items: center;
1121
+
1122
+ height: 40px;
1123
+ width: 100%;
1124
+ box-sizing: border-box;
1125
+ border: none;
1126
+ cursor: pointer;
1127
+ gap: 4px;
1128
+
1129
+ padding-right: 8px;
1130
+ padding-left: 8px;
1131
+ background-color: var(--charcoal-surface3);
1132
+ border-radius: 4px;
1133
+
1134
+ transition:
1135
+ 0.2s box-shadow,
1136
+ 0.2s background-color;
1137
+ }
1138
+
1139
+ .charcoal-dropdown-selector-button:disabled {
1140
+ cursor: default;
1141
+ }
1142
+
1143
+ .charcoal-dropdown-selector-button:not(:disabled):focus {
1144
+ outline: none;
1145
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1146
+ }
1147
+
1148
+ .charcoal-dropdown-selector-button:not(:disabled):focus-visible {
1149
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1150
+ }
1151
+
1152
+ .charcoal-dropdown-selector-button:not(:disabled)[data-active='true'],
1153
+ .charcoal-dropdown-selector-button:not(:disabled):active {
1154
+ background-color: var(--charcoal-surface3-press);
1155
+ }
1156
+
1157
+ .charcoal-dropdown-selector-button:not(:disabled):hover {
1158
+ background-color: var(--charcoal-surface3-hover);
1159
+ }
1160
+
1161
+ .charcoal-dropdown-selector-button:not(:disabled):focus:not(:focus-visible) {
1162
+ box-shadow: none;
1163
+ }
1164
+
1165
+ .charcoal-dropdown-selector-button[aria-invalid='true'],
1166
+ .charcoal-dropdown-selector-button:not(
1167
+ :disabled
1168
+ )[aria-invalid='true']:focus:not(:focus-visible) {
1169
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
1170
+ }
1171
+
1172
+ .charcoal-ui-dropdown-selector-text {
1173
+ text-align: left;
1174
+ font-size: 14px;
1175
+ line-height: 22px;
1176
+ display: flow-root;
1177
+ color: var(--charcoal-text2);
1178
+ overflow: hidden;
1179
+ text-overflow: ellipsis;
1180
+ white-space: nowrap;
1181
+ }
1182
+
1183
+ .charcoal-ui-dropdown-selector-text[data-placeholder='true'] {
1184
+ color: var(--charcoal-text3);
1185
+ }
1186
+
1187
+ .charcoal-ui-dropdown-selector-icon {
1188
+ color: var(--charcoal-text2);
1189
+ }
1190
+ .charcoal-popover {
1191
+ margin: 4px 0;
1192
+ list-style: none;
1193
+ overflow: auto;
1194
+ max-height: inherit;
1195
+ background-color: var(--charcoal-background1);
1196
+ border: solid 1px var(--charcoal-border-default);
1197
+ border-radius: 8px;
1198
+ padding-top: 8px;
1199
+ padding-bottom: 8px;
1200
+ }
1201
+ .charcoal-menu-list {
1202
+ padding: 0;
1203
+ margin: 0;
1204
+ }
1205
+ .charcoal-list-item {
1206
+ list-style: none;
1207
+ display: flex;
1208
+ align-items: center;
1209
+ min-height: 40px;
1210
+ cursor: pointer;
1211
+ outline: none;
1212
+
1213
+ padding-right: 16px;
1214
+ padding-left: 16px;
1215
+
1216
+ transition: background-color 0.2s;
1217
+ }
1218
+
1219
+ .charcoal-list-item:not([aria-disabled='true']):hover,
1220
+ .charcoal-list-item:not([aria-disabled='true']):focus,
1221
+ .charcoal-list-item:not([aria-disabled='true']):focus-within {
1222
+ background-color: var(--charcoal-surface3);
1223
+ }
1224
+
1225
+ .charcoal-list-item[aria-disabled='true'] {
1226
+ opacity: 0.32;
1227
+ cursor: default;
1228
+ }
1229
+ .charcoal-dropdown-selector-menu-item {
1230
+ font-size: 14px;
1231
+ line-height: 22px;
1232
+ color: var(--charcoal-text2);
1233
+ padding: 9px 0;
1234
+
1235
+ display: flex;
1236
+ align-items: center;
1237
+ width: 100%;
1238
+ margin-left: 20px;
1239
+ }
1240
+
1241
+ .charcoal-dropdown-selector-menu-item[data-selected='true'] {
1242
+ margin-left: 0px;
1243
+ }
1244
+
1245
+ .charcoal-dropdown-selector-menu-item-icon {
1246
+ color: var(--charcoal-text2);
1247
+ padding-right: 4px;
1248
+ }
1249
+
1250
+ .charcoal-dropdown-selector-menu-item-container {
1251
+ display: flex;
1252
+ align-items: center;
1253
+ }
1254
+
1255
+ .charcoal-dropdown-selector-menu-secondary {
1256
+ font-size: 12px;
1257
+ line-height: 20px;
1258
+ color: var(--charcoal-text3);
1259
+ padding-bottom: 9px;
1260
+
1261
+ display: flex;
1262
+ align-items: center;
1263
+ margin-left: 20px;
1264
+ }
1265
+
1266
+ .charcoal-dropdown-selector-menu-fullwidth {
1267
+ width: 100%;
1268
+ }
1269
+ .charcoal-menu-item-group {
1270
+ display: block;
1271
+ }
1272
+
1273
+ .charcoal-menu-item-group > span {
1274
+ display: block;
1275
+ color: var(--charcoal-text3);
1276
+ font-size: 12px;
1277
+ font-weight: bold;
1278
+ padding: 12px 0 8px 16px;
1279
+ }
1280
+
1281
+ .charcoal-menu-item-group > ul {
1282
+ padding-left: 0;
1283
+ margin: 0;
1284
+ box-sizing: border-box;
1285
+ list-style: none;
1286
+ overflow: hidden;
1287
+ }
1288
+ .charcoal-segmented-control {
1289
+ display: inline-flex;
1290
+ align-items: center;
1291
+
1292
+ background-color: var(--charcoal-surface3);
1293
+ border-radius: 16px;
1294
+ }
1295
+
1296
+ .charcoal-segmented-control[data-uniform-segment-width='true'],
1297
+ .charcoal-segmented-control[data-full-width='true'] {
1298
+ display: inline-grid;
1299
+ grid-auto-columns: minmax(80px, 1fr);
1300
+ grid-auto-rows: 32px;
1301
+ grid-auto-flow: column;
1302
+ }
1303
+
1304
+ .charcoal-segmented-control[data-full-width='true'] {
1305
+ width: 100%;
1306
+ }
1307
+
1308
+ .charcoal-segmented-control-radio__label {
1309
+ position: relative;
1310
+ display: flex;
1311
+ align-items: center;
1312
+ justify-content: center;
1313
+ cursor: pointer;
1314
+ height: 32px;
1315
+
1316
+ padding-right: 16px;
1317
+ padding-left: 16px;
1318
+ border-radius: 16px;
1319
+ color: var(--charcoal-text2);
1320
+
1321
+ font-size: 14px;
1322
+ line-height: 22px;
1323
+ }
1324
+
1325
+ .charcoal-segmented-control-radio__label[aria-disabled]:not(
1326
+ [aria-disabled='false']
1327
+ ) {
1328
+ cursor: default;
1329
+ opacity: 0.32;
1330
+ }
1331
+
1332
+ .charcoal-segmented-control-radio__label[data-checked='true'] {
1333
+ background-color: var(--charcoal-brand);
1334
+ color: var(--charcoal-text5);
1335
+ }
1336
+
1337
+ .charcoal-segmented-control-radio__label[data-uniform-segment-width='true'],
1338
+ .charcoal-segmented-control-radio__label[data-full-width='true'] {
1339
+ justify-content: center;
1340
+ white-space: nowrap;
1341
+ }
1342
+
1343
+ .charcoal-segmented-control-radio__input {
1344
+ position: absolute;
1345
+
1346
+ height: 0px;
1347
+ width: 0px;
1348
+ padding: 0;
1349
+ margin: 0;
1350
+
1351
+ -webkit-appearance: none;
1352
+
1353
+ -moz-appearance: none;
1354
+
1355
+ appearance: none;
1356
+ box-sizing: border-box;
1357
+ overflow: hidden;
1358
+ white-space: nowrap;
1359
+ opacity: 0;
1360
+ }
1361
+ .charcoal-checkbox__label {
1362
+ position: relative;
1363
+ cursor: pointer;
1364
+ display: flex;
1365
+ gap: 4px;
1366
+ }
1367
+
1368
+ .charcoal-checkbox__label[aria-disabled='true'] {
1369
+ cursor: default;
1370
+ opacity: 0.32;
1371
+ }
1372
+
1373
+ .charcoal-checkbox__label[aria-disabled='true'] > input {
1374
+ opacity: 1;
1375
+ }
1376
+
1377
+ .charcoal-checkbox__label_div {
1378
+ flex: 1;
1379
+ color: var(--charcoal-text2);
1380
+ font-size: 14px;
1381
+ line-height: 20px;
1382
+ }
1383
+ .charcoal-checkbox-input {
1384
+ -webkit-appearance: none;
1385
+ -moz-appearance: none;
1386
+ appearance: none;
1387
+ display: flex;
1388
+ cursor: pointer;
1389
+ margin: 0;
1390
+ width: 20px;
1391
+ height: 20px;
1392
+ border-radius: 4px;
1393
+ transition:
1394
+ 0.2s box-shadow,
1395
+ 0.2s background-color;
1396
+ position: relative;
1397
+ box-sizing: border-box;
1398
+ }
1399
+
1400
+ .charcoal-checkbox-input:disabled,
1401
+ .charcoal-checkbox-input[readonly] {
1402
+ opacity: 0.32;
1403
+ cursor: default;
1404
+ }
1405
+
1406
+ .charcoal-checkbox-input:checked {
1407
+ background-color: var(--charcoal-brand);
1408
+ }
1409
+
1410
+ .charcoal-checkbox-input:checked::after {
1411
+ content: '';
1412
+ background-color: white;
1413
+ display: flex;
1414
+ margin: auto;
1415
+ width: 16px;
1416
+ height: 16px;
1417
+ clip-path: path(
1418
+ 'M10.6 5a1.3 1.3 0 0 1 1.8 1.9l-5.7 5.6-3-2.9a1.3 1.3 0 1 1 2-1.9l1 1z'
1419
+ );
1420
+ }
1421
+
1422
+ .charcoal-checkbox-input:not(:checked) {
1423
+ border-width: 2px;
1424
+ border-style: solid;
1425
+ border-color: var(--charcoal-text4);
1426
+ }
1427
+
1428
+ .charcoal-checkbox-input:not(:disabled):focus {
1429
+ outline: none;
1430
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1431
+ }
1432
+ .charcoal-checkbox-input:not(:disabled):focus-visible {
1433
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1434
+ }
1435
+ .charcoal-checkbox-input:not(:disabled):focus:not(:focus-visible) {
1436
+ box-shadow: none;
1437
+ }
1438
+
1439
+ .charcoal-checkbox-input:checked:not(:disabled):hover {
1440
+ background-color: var(--charcoal-brand-hover);
1441
+ }
1442
+ .charcoal-checkbox-input:checked:not(:disabled):active {
1443
+ background-color: var(--charcoal-brand-press);
1444
+ }
1445
+
1446
+ .charcoal-checkbox-input[aria-invalid='true'],
1447
+ .charcoal-checkbox-input[aria-invalid='true']:not(:disabled):focus {
1448
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
1449
+ }
1450
+
1451
+ .charcoal-checkbox-input[data-rounded='true'] {
1452
+ border-radius: 10px;
1453
+ background-color: var(--charcoal-surface3);
1454
+ border: 2px solid transparent;
1455
+ }
1456
+
1457
+ .charcoal-checkbox-input[data-rounded='true']:checked {
1458
+ background-color: var(--charcoal-brand);
1459
+ }
1460
+
1461
+ .charcoal-checkbox-input[data-rounded='true']:not(:disabled):hover {
1462
+ background-color: var(--charcoal-surface3-hover);
1463
+ }
1464
+ .charcoal-checkbox-input[data-rounded='true']:not(:disabled):active {
1465
+ background-color: var(--charcoal-surface3-press);
1466
+ }
1467
+
1468
+ .charcoal-checkbox-input[data-rounded='true']:not(:disabled):focus-visible {
1469
+ box-shadow: 0 0 0 6px rgba(0, 150, 250, 0.32);
1470
+ }
1471
+
1472
+ .charcoal-checkbox-input[data-rounded='true']:checked:not(:disabled):hover {
1473
+ background-color: var(--charcoal-brand-hover);
1474
+ }
1475
+ .charcoal-checkbox-input[data-rounded='true']:checked:not(:disabled):active {
1476
+ background-color: var(--charcoal-brand-press);
1477
+ }
1478
+
1479
+ .charcoal-checkbox-input[data-rounded='true'][aria-invalid='true'],
1480
+ .charcoal-checkbox-input[data-rounded='true'][aria-invalid='true']:not(
1481
+ :disabled
1482
+ ):focus {
1483
+ box-shadow: 0 0 0 6px rgba(255, 43, 0, 0.32);
1484
+ }
1485
+
1486
+ .charcoal-checkbox-input[data-rounded='true']::before {
1487
+ content: '';
1488
+ width: 24px;
1489
+ height: 24px;
1490
+ position: absolute;
1491
+ top: -4px;
1492
+ left: -4px;
1493
+ border-radius: 12px;
1494
+ border: 2px solid #fff;
1495
+ box-sizing: border-box;
1496
+ }
1497
+ .charcoal-tag-item {
1498
+ --charcoal-tag-item-color: var(--charcoal-text5);
1499
+ --charcoal-tag-item-size: 40px;
1500
+ --charcoal-tag-item-padding-left: 24px;
1501
+ --charcoal-tag-item-padding-right: 24px;
1502
+
1503
+ isolation: isolate;
1504
+ position: relative;
1505
+
1506
+ -webkit-appearance: none;
1507
+
1508
+ -moz-appearance: none;
1509
+
1510
+ appearance: none;
1511
+ outline: none;
1512
+ border-style: none;
1513
+
1514
+ display: inline-flex;
1515
+ gap: 8px;
1516
+ align-items: center;
1517
+ justify-content: center;
1518
+
1519
+ text-decoration: none;
1520
+ cursor: pointer;
1521
+ overflow: hidden;
1522
+
1523
+ color: var(--charcoal-tag-item-color);
1524
+ height: var(--charcoal-tag-item-size);
1525
+ padding-top: 4px;
1526
+ padding-bottom: 4px;
1527
+ padding-left: var(--charcoal-tag-item-padding-left);
1528
+ padding-right: var(--charcoal-tag-item-padding-right);
1529
+ box-sizing: border-box;
1530
+ border-radius: 4px;
1531
+
1532
+ transition: 0.2s box-shadow;
1533
+ }
1534
+
1535
+ .charcoal-tag-item[data-size='M'] {
1536
+ --charcoal-tag-item-size: 40px;
1537
+ --charcoal-tag-item-padding-left: 24px;
1538
+ --charcoal-tag-item-padding-right: 24px;
1539
+ }
1540
+
1541
+ .charcoal-tag-item[data-size='S'] {
1542
+ --charcoal-tag-item-size: 32px;
1543
+ --charcoal-tag-item-padding-left: 16px;
1544
+ --charcoal-tag-item-padding-right: 16px;
1545
+ }
1546
+
1547
+ .charcoal-tag-item[data-state='inactive'] {
1548
+ --charcoal-tag-item-color: var(--charcoal-text2);
1549
+ }
1550
+
1551
+ .charcoal-tag-item[data-state='active'] {
1552
+ --charcoal-tag-item-padding-left: 16px;
1553
+ --charcoal-tag-item-padding-right: 8px;
1554
+ }
1555
+
1556
+ .charcoal-tag-item:disabled,
1557
+ .charcoal-tag-item[aria-disabled]:not([aria-disabled='false']) {
1558
+ opacity: 0.32;
1559
+ cursor: default;
1560
+ }
1561
+
1562
+ .charcoal-tag-item:not(:disabled):not([aria-disabled]):focus-visible,
1563
+ .charcoal-tag-item[aria-disabled='false']:focus-visible {
1564
+ outline: none;
1565
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1566
+ }
1567
+
1568
+ .charcoal-tag-item:not(:disabled):not([aria-disabled]):focus,
1569
+ .charcoal-tag-item[aria-disabled='false']:focus {
1570
+ outline: none;
1571
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1572
+ }
1573
+
1574
+ .charcoal-tag-item:not(:disabled):not([aria-disabled]):focus:not(
1575
+ :focus-visible
1576
+ ),
1577
+ .charcoal-tag-item[aria-disabled='false']:focus:not(:focus-visible) {
1578
+ box-shadow: none;
1579
+ }
1580
+
1581
+ .charcoal-tag-item__bg {
1582
+ background-color: var(--charcoal-tag-item-bg);
1583
+ }
1584
+
1585
+ .charcoal-tag-item__bg[data-bg-variant='image'] {
1586
+ background-color: var(--charcoal-surface4);
1587
+ }
1588
+
1589
+ .charcoal-tag-item__bg[data-bg-variant='image']::before {
1590
+ content: '';
1591
+ position: absolute;
1592
+ z-index: 1;
1593
+ top: 0;
1594
+ left: 0;
1595
+ width: 100%;
1596
+ height: 100%;
1597
+ background-position: center;
1598
+ background-size: cover;
1599
+ background-image: var(--charcoal-tag-item-bg);
1600
+ mix-blend-mode: overlay;
1601
+ }
1602
+
1603
+ .charcoal-tag-item__bg[data-state='inactive'] {
1604
+ background-color: var(--charcoal-surface3);
1605
+ }
1606
+
1607
+ .charcoal-tag-item__label {
1608
+ height: 100%;
1609
+ display: flex;
1610
+ flex-direction: column;
1611
+ align-items: center;
1612
+ justify-content: center;
1613
+ }
1614
+
1615
+ .charcoal-tag-item__label[data-has-translate='true'] {
1616
+ justify-content: space-between;
1617
+ }
1618
+
1619
+ .charcoal-tag-item__label__translated {
1620
+ --charcoal-tag-item-text-font-size: 12px;
1621
+ --charcoal-tag-item-text-line-height: 20px;
1622
+ font-weight: bold;
1623
+ }
1624
+
1625
+ .charcoal-tag-item__label__translated::before {
1626
+ display: none;
1627
+ }
1628
+
1629
+ .charcoal-tag-item__label__text {
1630
+ --charcoal-tag-item-text-font-size: 14px;
1631
+ --charcoal-tag-item-text-line-height: 22px;
1632
+
1633
+ max-width: 152px;
1634
+ overflow: hidden;
1635
+ font-weight: bold;
1636
+
1637
+ color: inherit;
1638
+ white-space: nowrap;
1639
+ text-overflow: ellipsis;
1640
+ }
1641
+
1642
+ .charcoal-tag-item__label__text[data-has-translate='true'] {
1643
+ --charcoal-tag-item-text-font-size: 10px;
1644
+ --charcoal-tag-item-text-line-height: 14px;
1645
+ font-weight: normal;
1646
+ }
1647
+
1648
+ /* Kept flat: different class name from .charcoal-tag-item__label__text (note: "labe" typo in original) */
1649
+ .charcoal-tag-item__labe__text[data-has-translate='true']::after {
1650
+ display: none;
1651
+ }
1652
+ .charcoal-hint-text {
1653
+ background-color: var(--charcoal-surface3);
1654
+ border-radius: 8px;
1655
+ padding: 12px 16px;
1656
+ display: flex;
1657
+ align-items: flex-start;
1658
+ }
1659
+
1660
+ .charcoal-hint-text[data-context='page'] {
1661
+ justify-content: center;
1662
+ }
1663
+
1664
+ @media (min-width: 744px) {
1665
+ .charcoal-hint-text[data-context='page'] {
1666
+ padding: 20px 40px;
1667
+ }
1668
+ }
1669
+
1670
+ .charcoal-hint-text-icon {
1671
+ display: flex;
1672
+ align-items: center;
1673
+ color: var(--charcoal-text3);
1674
+ height: 22px;
1675
+ margin: 0 4px 0 0;
1676
+ }
1677
+
1678
+ .charcoal-hint-text-message {
1679
+ color: var(--charcoal-text2);
1680
+ font-size: 14px;
1681
+ line-height: 22px;
1682
+ display: flow-root;
1683
+ margin: 0;
1684
+ min-width: 0;
1685
+ overflow-wrap: break-word;
1686
+ }
1687
+ .charcoal-text-ellipsis {
1688
+ overflow: hidden;
1689
+ overflow-wrap: break-word;
1690
+ display: -webkit-box;
1691
+ -webkit-box-orient: vertical;
1692
+ -webkit-line-clamp: var(--charcoal-text-ellipsis-line-limit);
1693
+ }
1694
+
1695
+ .charcoal-text-ellipsis[data-has-line-height='true'] {
1696
+ line-height: var(--charcoal-text-ellipsis-line-height);
1697
+ }
1698
+
1699
+ .charcoal-text-ellipsis[data-has-line-height='false'] {
1700
+ line-height: inherit;
1701
+ }
1702
+
1703
+ .charcoal-text-ellipsis[data-line-limit='1'][data-use-nowrap='true'] {
1704
+ text-overflow: ellipsis;
1705
+ white-space: nowrap;
1706
+ }
1707
+ .charcoal-pagination {
1708
+ display: flex;
1709
+ justify-content: center;
1710
+ align-items: center;
1711
+ }
1712
+
1713
+ .charcoal-pagination[data-size='S'] .charcoal-pagination-button {
1714
+ min-width: 32px;
1715
+ min-height: 32px;
1716
+ }
1717
+
1718
+ .charcoal-pagination[data-size='M'] .charcoal-pagination-button {
1719
+ min-width: 40px;
1720
+ min-height: 40px;
1721
+ }
1722
+
1723
+ /* stylelint-disable no-descending-specificity */
1724
+ .charcoal-pagination-button {
1725
+ cursor: pointer;
1726
+ -webkit-appearance: none;
1727
+ -moz-appearance: none;
1728
+ appearance: none;
1729
+ padding: 0;
1730
+ border-style: none;
1731
+ outline: none;
1732
+ text-decoration: none;
1733
+ font: inherit;
1734
+ margin: 0;
1735
+ -webkit-user-select: none;
1736
+ -moz-user-select: none;
1737
+ user-select: none;
1738
+
1739
+ display: flex;
1740
+ align-items: center;
1741
+ justify-content: center;
1742
+ font-size: 14px;
1743
+ font-weight: 700;
1744
+ line-height: 22px;
1745
+
1746
+ /* HACK:
1747
+ * Safari doesn't correctly repaint the elements when they're reordered in response to interaction.
1748
+ * This forces it to repaint them. This doesn't work if put on the parents either, has to be here.
1749
+ */
1750
+ /* stylelint-disable-next-line property-no-vendor-prefix */
1751
+ -webkit-transform: translateZ(0);
1752
+
1753
+ color: var(--charcoal-text3);
1754
+ background-color: var(--charcoal-transparent);
1755
+ border-radius: 20px;
1756
+ transition:
1757
+ 0.2s background-color,
1758
+ 0.2s box-shadow;
1759
+ }
1760
+ .charcoal-pagination-button:focus {
1761
+ outline: none;
1762
+ }
1763
+ .charcoal-pagination-button::-moz-focus-inner {
1764
+ border-style: none;
1765
+ padding: 0;
1766
+ }
1767
+ .charcoal-pagination-button[hidden] {
1768
+ visibility: hidden;
1769
+ display: block;
1770
+ }
1771
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):hover,
1772
+ .charcoal-pagination-button[aria-disabled='false']:hover {
1773
+ color: var(--charcoal-text3);
1774
+ background-color: var(--charcoal-surface3);
1775
+ }
1776
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):active,
1777
+ .charcoal-pagination-button[aria-disabled='false']:active {
1778
+ color: var(--charcoal-text3);
1779
+ background-color: var(--charcoal-surface10);
1780
+ }
1781
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus,
1782
+ .charcoal-pagination-button[aria-disabled='false']:focus {
1783
+ outline: none;
1784
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1785
+ }
1786
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus-visible,
1787
+ .charcoal-pagination-button[aria-disabled='false']:focus-visible {
1788
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1789
+ }
1790
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus:not(
1791
+ :focus-visible
1792
+ ),
1793
+ .charcoal-pagination-button[aria-disabled='false']:focus:not(:focus-visible) {
1794
+ box-shadow: none;
1795
+ }
1796
+ .charcoal-pagination-button[aria-current] {
1797
+ cursor: default;
1798
+ background-color: var(--charcoal-surface6);
1799
+ color: var(--charcoal-text5);
1800
+ }
1801
+ .charcoal-pagination-button[aria-current]:not(:disabled):not(
1802
+ [aria-disabled]
1803
+ ):hover,
1804
+ .charcoal-pagination-button[aria-current]:not(:disabled):not(
1805
+ [aria-disabled]
1806
+ ):active {
1807
+ background-color: var(--charcoal-surface6);
1808
+ color: var(--charcoal-text5);
1809
+ }
1810
+ /* stylelint-enable no-descending-specificity */
1811
+
1812
+ /* Kept flat: different root class from .charcoal-pagination-button */
1813
+ .charcoal-pagination-nav-button[hidden] {
1814
+ visibility: hidden;
1815
+ display: block;
1816
+ }
1817
+
1818
+ .charcoal-pagination-spacer,
1819
+ .charcoal-pagination-spacer:hover,
1820
+ .charcoal-pagination-spacer:active {
1821
+ cursor: default;
1822
+ color: var(--charcoal-text3);
1823
+ background: none;
1824
+ }
1825
+
1826
+ .charcoal-pagination-spacer.charcoal-icon-button:disabled {
1827
+ opacity: 1;
1828
+ }
1829
+ .charcoal-focus-ring:is(
1830
+ :not(:disabled):not([aria-disabled]),
1831
+ [aria-disabled='false']
1832
+ ):focus-visible {
1833
+ outline: none;
1834
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1835
+ transition: 0.2s box-shadow;
1836
+ }