@propbinder/mobile-design 0.0.27 → 0.1.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.
@@ -0,0 +1,711 @@
1
+ /**
2
+ * Ionic-Specific Styles
3
+ *
4
+ * This file contains all styles that are specific to Ionic Framework and mobile app usage.
5
+ * These styles are not needed for web-only or design system library builds.
6
+ */
7
+
8
+ /* Core CSS required for Ionic components to work properly */
9
+ @import "@ionic/angular/css/core.css";
10
+ @import "@ionic/angular/css/structure.css";
11
+ @import "@ionic/angular/css/typography.css";
12
+
13
+ /* Swiper styles for image carousels */
14
+ @import 'swiper/css';
15
+ @import 'swiper/css/navigation';
16
+ @import 'swiper/css/pagination';
17
+
18
+ /* Mobile common styles */
19
+ /* Note: mobile-common.css is included in @propbinder/design-system/styles/globals.css */
20
+
21
+ /* Ionic-Specific CSS Variables */
22
+ :root {
23
+ /* Mobile-specific brand color for headers/backgrounds */
24
+ --color-brand-secondary: #221a4c;
25
+
26
+ /* Ionic Keyboard Appearance - force light theme */
27
+ --ion-keyboard-color: #ffffff;
28
+ --ion-keyboard-background: #ffffff;
29
+ --ion-keyboard-text-color: #000000;
30
+ color-scheme: light;
31
+
32
+ /* Layout - Mobile Navigation */
33
+ --mobile-tab-bar-height: 64px;
34
+ --mobile-content-spacing: 20px;
35
+
36
+ /* ============================================
37
+ SAFE AREA / STATUS BAR CONFIGURATION
38
+
39
+ Controls how sheets and modals position relative to the status bar.
40
+
41
+ IMPORTANT: This works with StatusBar.setOverlaysWebView() in app.ts
42
+ - With overlay: false (default) - system handles status bar, use safe-area-inset-top
43
+ - With overlay: true - WebView extends under status bar
44
+
45
+ To change behavior, update BOTH:
46
+ 1. app.ts: StatusBar.setOverlaysWebView({ overlay: true/false })
47
+ 2. These CSS variables below
48
+ ============================================ */
49
+
50
+ /* Sheet/modal top offset - positions content below status bar area */
51
+ /* Uses max() to ensure at least 32px offset even on devices without notch */
52
+ /* +12px adds breathing room below the status bar */
53
+ --app-sheet-top-offset: calc(max(32px, env(safe-area-inset-top, 32px)) + 12px);
54
+
55
+ /* Header top offset - used to fine-tune header position on iOS with overlay: true */
56
+ /* On web (no safe area), this should be 0px. On iOS, it compensates for status bar overlap */
57
+ --app-header-top-offset: max(0px, calc(env(safe-area-inset-top, 0px) - 16px));
58
+ }
59
+
60
+ /* Global Styles for Mobile App */
61
+ html {
62
+ /* Safe Area Variables - set here according to Ionic documentation */
63
+ --ion-safe-area-top: env(safe-area-inset-top);
64
+ --ion-safe-area-bottom: env(safe-area-inset-bottom);
65
+ --ion-safe-area-left: env(safe-area-inset-left);
66
+ --ion-safe-area-right: env(safe-area-inset-right);
67
+ }
68
+
69
+ html,
70
+ body {
71
+ /* Background color must match theme-color for iOS PWA status bar */
72
+ background-color: #221a4c;
73
+ color: var(--text-color-default-primary);
74
+ font-family: 'Brockmann', system-ui, -apple-system, sans-serif;
75
+
76
+ /* Ensure full height for iOS PWA */
77
+ height: 100%;
78
+ width: 100%;
79
+ margin: 0;
80
+ padding: 0;
81
+
82
+ /* Don't add padding to html/body - let Ionic components handle safe areas */
83
+ }
84
+
85
+ /* iOS-specific: Purple background for overshoot areas to match dark header */
86
+ .plt-ios html,
87
+ .plt-ios body {
88
+ background-color: var(--color-brand-secondary) !important;
89
+ }
90
+
91
+ .plt-ios ion-app {
92
+ background-color: var(--color-brand-secondary) !important;
93
+ }
94
+
95
+ /* When modal opens, ensure purple background is maintained */
96
+ body.backdrop-no-scroll {
97
+ background-color: var(--color-brand-secondary) !important;
98
+ }
99
+
100
+ /* Ionic Component Styles - Map to Design System */
101
+ /* These styles apply Ionic's CSS variables to match our design system */
102
+
103
+ :root {
104
+ /* Override Ionic's primary color to use our brand color */
105
+ --ion-color-primary: var(--color-brand-base);
106
+ --ion-color-primary-rgb: 107, 95, 245;
107
+ --ion-color-primary-contrast: #ffffff;
108
+ --ion-color-primary-contrast-rgb: 255, 255, 255;
109
+ --ion-color-primary-shade: var(--color-brand-base-hover);
110
+ --ion-color-primary-tint: var(--color-brand-base);
111
+
112
+ /* Ionic component defaults */
113
+ --ion-background-color: var(--color-background-neutral-primary);
114
+ --ion-text-color: var(--text-color-default-primary);
115
+ }
116
+
117
+ ion-header {
118
+ box-shadow: none;
119
+ }
120
+
121
+ ion-toolbar {
122
+ --background: transparent;
123
+ --border-width: 0;
124
+ }
125
+
126
+ ion-content {
127
+ --background: var(--color-background-neutral-primary);
128
+ }
129
+
130
+ /* Default: Block browser overscroll on all platforms */
131
+ ion-content::part(scroll) {
132
+ overscroll-behavior-y: none;
133
+ -webkit-overflow-scrolling: touch;
134
+ /* Hide scrollbar while maintaining scroll functionality */
135
+ scrollbar-width: none; /* Firefox */
136
+ -ms-overflow-style: none; /* IE/Edge */
137
+ }
138
+
139
+ /* Hide scrollbar for WebKit browsers (Chrome, Safari, iOS) */
140
+ ion-content::part(scroll)::-webkit-scrollbar {
141
+ display: none;
142
+ }
143
+
144
+ .ion-page {
145
+ overscroll-behavior-y: none;
146
+ }
147
+
148
+ /* iOS-specific: Enable native scroll overshoot/bounce effect */
149
+ .plt-ios ion-content::part(scroll) {
150
+ overscroll-behavior-y: contain;
151
+ }
152
+
153
+ .plt-ios .ion-page {
154
+ overscroll-behavior-y: contain;
155
+ }
156
+
157
+ ion-footer {
158
+ box-shadow: none;
159
+ }
160
+
161
+ ion-router-outlet {
162
+ --background: var(--color-background-neutral-primary);
163
+ }
164
+
165
+ ion-refresher {
166
+ --background: transparent;
167
+ --color: white;
168
+ }
169
+
170
+ ion-refresher-content {
171
+ --color: white;
172
+ }
173
+
174
+ /* Force spinner color to brand */
175
+ ion-spinner {
176
+ --color: var(--color-brand-base) !important;
177
+ color: var(--color-brand-base) !important;
178
+ }
179
+
180
+ ion-modal {
181
+ --background: var(--color-background-neutral-primary);
182
+ --border-radius: 16px;
183
+ --box-shadow: var(--box-shadow-lg);
184
+ /* Prevent modal from resizing when keyboard appears */
185
+ height: 100% !important;
186
+ max-height: 100vh !important;
187
+ }
188
+
189
+ ion-modal .modal-wrapper,
190
+ ion-modal::part(content) {
191
+ position: fixed !important;
192
+ height: 100% !important;
193
+ max-height: 100vh !important;
194
+ }
195
+
196
+ /* Prevent ion-content inside modals from resizing */
197
+ ion-modal ion-content {
198
+ --keyboard-offset: 0px !important;
199
+ height: 100% !important;
200
+ }
201
+
202
+ ion-action-sheet {
203
+ --background: var(--color-background-neutral-primary);
204
+ --color: var(--text-color-default-primary);
205
+ --button-background: var(--color-background-neutral-secondary);
206
+ --button-background-hover: var(--color-background-neutral-tertiary);
207
+ --button-background-selected: var(--color-background-brand);
208
+ --button-color: var(--text-color-default-primary);
209
+ }
210
+
211
+ ion-action-sheet::part(group) {
212
+ border-radius: 16px 16px 0 0;
213
+ }
214
+
215
+ ion-toast {
216
+ --background: var(--color-background-neutral-strong);
217
+ --color: var(--text-color-default-primary-inverse);
218
+ --border-radius: 8px;
219
+ --box-shadow: var(--box-shadow-lg);
220
+ }
221
+
222
+ /* ============================================
223
+ BOTTOM SHEET MODAL STYLES
224
+ Based on Ionic 6 bottom sheet presentation
225
+ ============================================ */
226
+
227
+ /* Base bottom sheet styling */
228
+ .ds-bottom-sheet {
229
+ --border-radius: 16px;
230
+ --box-shadow: 0px -2px 24px rgba(0, 0, 0, 0.12);
231
+ --backdrop-opacity: 0.4;
232
+ transition: --backdrop-opacity 0.3s ease;
233
+ /* Modal at top:0 so backdrop covers full screen including status bar */
234
+ top: 0;
235
+ height: 100%;
236
+ }
237
+
238
+ /* Backdrop styling */
239
+ .ds-bottom-sheet::part(backdrop) {
240
+ background: rgba(0, 0, 0, var(--backdrop-opacity, 0.6));
241
+ }
242
+
243
+ /* Handle customization */
244
+ .ds-bottom-sheet::part(handle) {
245
+ background: var(--border-color-default);
246
+ width: 36px;
247
+ height: 4px;
248
+ border-radius: 2px;
249
+ margin-top: 4px;
250
+ margin-bottom: 8px;
251
+ }
252
+
253
+ /* Content area styling */
254
+ .ds-bottom-sheet::part(content) {
255
+ /* Offset content below status bar (backdrop still covers full screen) */
256
+ margin-top: var(--app-sheet-top-offset);
257
+ border-radius: var(--border-radius) var(--border-radius) 0 0;
258
+ background: var(--color-background-neutral-primary, #ffffff);
259
+ box-shadow: var(--box-shadow);
260
+ position: absolute !important;
261
+ top: 0 !important;
262
+ bottom: 0 !important;
263
+ height: 100% !important;
264
+ max-height: 100% !important;
265
+ }
266
+
267
+ /* Remove border radius when fully expanded */
268
+ @media (min-height: 768px) {
269
+ .ds-bottom-sheet.modal-sheet-expanded::part(content) {
270
+ border-radius: 0;
271
+ }
272
+ }
273
+
274
+
275
+
276
+ /* Ensure content scrolls properly */
277
+ .ds-bottom-sheet ion-content {
278
+ --background: transparent;
279
+ }
280
+
281
+ /* Better mobile experience */
282
+ @media (max-width: 768px) {
283
+ .ds-bottom-sheet::part(content) {
284
+ max-width: 100%;
285
+ }
286
+ }
287
+
288
+ /* Desktop centering */
289
+ @media (min-width: 769px) {
290
+ .ds-bottom-sheet::part(content) {
291
+ max-width: 640px;
292
+ margin: 0 auto;
293
+ }
294
+ }
295
+
296
+ /* ============================================
297
+ Dynamic Height Action Sheets
298
+ Make action sheets auto-size to their content
299
+ ============================================ */
300
+
301
+ /* Auto-height modal - override base bottom sheet styles */
302
+ .ds-bottom-sheet.auto-height {
303
+ top: 0 !important;
304
+ height: 100% !important;
305
+ --height: fit-content;
306
+ --max-height: 80vh;
307
+ display: flex;
308
+ align-items: flex-end;
309
+ }
310
+
311
+ .ds-bottom-sheet.auto-height .modal-wrapper {
312
+ position: relative !important;
313
+ bottom: auto !important;
314
+ left: auto !important;
315
+ right: auto !important;
316
+ height: auto !important;
317
+ max-height: 80vh !important;
318
+ top: auto !important;
319
+ width: 100%;
320
+ }
321
+
322
+ .ds-bottom-sheet.auto-height::part(content) {
323
+ position: relative !important;
324
+ height: auto !important;
325
+ max-height: 80vh !important;
326
+ top: auto !important;
327
+ bottom: auto !important;
328
+ }
329
+
330
+ /* Ensure action sheet component sizes naturally */
331
+ .ds-bottom-sheet.auto-height ds-mobile-actions-bottom-sheet {
332
+ display: block;
333
+ height: auto;
334
+ }
335
+
336
+ /* Ensure action list scrolls if needed */
337
+ .ds-bottom-sheet.auto-height .actions-list {
338
+ max-height: calc(80vh - 80px); /* Account for handle, padding, and safe area */
339
+ overflow-y: auto;
340
+ -webkit-overflow-scrolling: touch;
341
+ }
342
+
343
+ /* ============================================
344
+ Mobile Modal Styles (Generic Modal Service)
345
+ ============================================ */
346
+
347
+ /**
348
+ * Mobile Modal Styles
349
+ *
350
+ * Global styles for modals opened via DsMobileModalService.
351
+ * These styles are applied to all modals and handle different presentation styles.
352
+ */
353
+
354
+ /* Base modal styles */
355
+ .ds-mobile-modal {
356
+ --background: var(--color-background-neutral-primary, #ffffff);
357
+ --border-radius: 16px;
358
+ --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
359
+ --max-width: 640px;
360
+ --width: 100%;
361
+ }
362
+
363
+ .ds-mobile-modal::part(content) {
364
+ max-width: 640px;
365
+ margin: 0 auto;
366
+ }
367
+
368
+ /* Fullscreen presentation */
369
+ .ds-modal-fullscreen {
370
+ --width: 100%;
371
+ --height: 100%;
372
+ --border-radius: 0;
373
+ }
374
+
375
+ .ds-modal-fullscreen::part(content) {
376
+ border-radius: 0;
377
+ }
378
+
379
+ /* Card presentation (default iOS modal style) */
380
+ .ds-modal-card {
381
+ --width: 100%;
382
+ --max-width: 640px;
383
+ --height: auto;
384
+ --max-height: 90%;
385
+ --border-radius: 16px 16px 0 0;
386
+ }
387
+
388
+ .ds-modal-card::part(content) {
389
+ border-radius: 16px 16px 0 0;
390
+ box-shadow: var(--box-shadow);
391
+ max-width: 640px;
392
+ margin: 0 auto;
393
+ }
394
+
395
+ /* Sheet presentation (bottom sheet with breakpoints) */
396
+ .ds-modal-sheet {
397
+ --width: 100%;
398
+ --max-width: 640px;
399
+ --height: auto;
400
+ --border-radius: 16px 16px 0 0;
401
+ }
402
+
403
+ .ds-modal-sheet::part(content) {
404
+ border-radius: 16px 16px 0 0;
405
+ box-shadow: var(--box-shadow);
406
+ max-width: 640px;
407
+ margin: 0 auto;
408
+ }
409
+
410
+ .ds-modal-sheet::part(handle) {
411
+ background: var(--border-color-default);
412
+ width: 36px;
413
+ height: 4px;
414
+ border-radius: 2px;
415
+ margin: 8px auto 0;
416
+ }
417
+
418
+ /* Backdrop styles */
419
+ .ds-mobile-modal::part(backdrop) {
420
+ background: rgba(0, 0, 0, 0.4);
421
+ backdrop-filter: blur(4px);
422
+ }
423
+
424
+ /* Animations */
425
+ .ds-mobile-modal.modal-card-enter-active,
426
+ .ds-mobile-modal.modal-sheet-enter-active {
427
+ animation: slideUpModal 0.3s ease-out;
428
+ }
429
+
430
+ .ds-mobile-modal.modal-card-leave-active,
431
+ .ds-mobile-modal.modal-sheet-leave-active {
432
+ animation: slideDownModal 0.3s ease-in;
433
+ }
434
+
435
+ .ds-mobile-modal.modal-fullscreen-enter-active {
436
+ animation: fadeInModal 0.2s ease-out;
437
+ }
438
+
439
+ .ds-mobile-modal.modal-fullscreen-leave-active {
440
+ animation: fadeOutModal 0.2s ease-in;
441
+ }
442
+
443
+ @keyframes slideUpModal {
444
+ from {
445
+ transform: translateY(100%);
446
+ }
447
+ to {
448
+ transform: translateY(0);
449
+ }
450
+ }
451
+
452
+ @keyframes slideDownModal {
453
+ from {
454
+ transform: translateY(0);
455
+ }
456
+ to {
457
+ transform: translateY(100%);
458
+ }
459
+ }
460
+
461
+ @keyframes fadeInModal {
462
+ from {
463
+ opacity: 0;
464
+ }
465
+ to {
466
+ opacity: 1;
467
+ }
468
+ }
469
+
470
+ @keyframes fadeOutModal {
471
+ from {
472
+ opacity: 1;
473
+ }
474
+ to {
475
+ opacity: 0;
476
+ }
477
+ }
478
+
479
+ /* Safe area handling for notched devices */
480
+ @supports (padding: env(safe-area-inset-top)) {
481
+ .ds-modal-fullscreen::part(content) {
482
+ padding-top: env(safe-area-inset-top);
483
+ padding-bottom: env(safe-area-inset-bottom);
484
+ }
485
+ }
486
+
487
+ /* Dark mode support (if needed) */
488
+ @media (prefers-color-scheme: dark) {
489
+ .ds-mobile-modal {
490
+ --background: var(--color-background-neutral-primary-dark, #1a1a1a);
491
+ }
492
+
493
+ .ds-mobile-modal::part(backdrop) {
494
+ background: rgba(0, 0, 0, 0.6);
495
+ }
496
+ }
497
+
498
+ /* Accessibility: Reduced motion */
499
+ @media (prefers-reduced-motion: reduce) {
500
+ .ds-mobile-modal.modal-card-enter-active,
501
+ .ds-mobile-modal.modal-card-leave-active,
502
+ .ds-mobile-modal.modal-sheet-enter-active,
503
+ .ds-mobile-modal.modal-sheet-leave-active,
504
+ .ds-mobile-modal.modal-fullscreen-enter-active,
505
+ .ds-mobile-modal.modal-fullscreen-leave-active {
506
+ animation: none;
507
+ }
508
+ }
509
+
510
+ /* ============================================
511
+ ION-TAB-BUTTON CUSTOMIZATION
512
+ ============================================ */
513
+
514
+ /* Set gap for button-inner to control spacing between icon and label */
515
+ ion-tab-button::part(native) {
516
+ gap: 2px;
517
+ }
518
+
519
+ /* ============================================
520
+ Post Detail Modal Styles
521
+ ============================================ */
522
+
523
+ .ds-post-detail-modal {
524
+ --background: var(--color-background-neutral-primary, #ffffff);
525
+ --width: 100%;
526
+ --max-width: 640px;
527
+ --height: calc(100dvh - var(--app-sheet-top-offset)); /* Subtract margin to fit within viewport */
528
+ --border-radius: 16px 16px 0 0;
529
+ margin-top: var(--app-sheet-top-offset);
530
+ }
531
+
532
+ .ds-post-detail-modal::part(content) {
533
+ border-radius: 16px 16px 0 0;
534
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
535
+ background: var(--color-background-neutral-primary, #ffffff);
536
+ max-width: 640px;
537
+ margin: 0 auto;
538
+ }
539
+
540
+ .ds-post-detail-modal::part(backdrop) {
541
+ background: rgba(0, 0, 0, 0.4);
542
+ backdrop-filter: blur(4px);
543
+ }
544
+
545
+ .ds-post-detail-modal ion-content {
546
+ --background: var(--color-background-neutral-primary, #ffffff);
547
+ }
548
+
549
+ /* Control the presenting element (page behind) border radius */
550
+ ion-router-outlet.ion-page-hidden,
551
+ .ion-page.ion-page-hidden {
552
+ border-radius: 16px 16px 0 0 !important;
553
+ overflow: hidden;
554
+ }
555
+
556
+ /* Set background to brand secondary */
557
+ ion-router-outlet {
558
+ background: var(--color-brand-secondary) !important;
559
+ }
560
+
561
+ /* Override Ionic's default 10px border-radius */
562
+ body.backdrop-no-scroll ion-router-outlet {
563
+ border-radius: 16px 16px 0 0 !important;
564
+ }
565
+
566
+ /* Target the router outlet when modal is active */
567
+ ion-router-outlet:not(.ion-page-hidden) {
568
+ border-radius: 16px 16px 0 0 !important;
569
+ transition: border-radius 0.3s ease, transform 0.3s ease;
570
+ }
571
+
572
+ /* Adjust the presenting element animation */
573
+ .modal-card-enter-active ion-router-outlet,
574
+ .modal-card-enter-active .ion-page {
575
+ border-radius: 16px 16px 0 0 !important;
576
+ }
577
+
578
+ /* When page is scaled behind modal */
579
+ .ion-page-invisible {
580
+ border-radius: 16px 16px 0 0 !important;
581
+ }
582
+
583
+ /* Override Ionic's default presenting page styles */
584
+ .modal-shadow .ion-page {
585
+ border-radius: 16px 16px 0 0 !important;
586
+ }
587
+
588
+ /* Hide modal shadow when auto-height sheet is active */
589
+ body:has(.ds-bottom-sheet.auto-height) .modal-shadow {
590
+ display: none !important;
591
+ }
592
+
593
+ ion-modal.show-modal ~ ion-router-outlet,
594
+ ion-modal.show-modal ~ * ion-router-outlet {
595
+ border-radius: 16px 16px 0 0 !important;
596
+ transform: scale(0.915) !important;
597
+ }
598
+
599
+ /* Most important - override any Ionic defaults */
600
+ ion-router-outlet[style*="border-radius"] {
601
+ border-radius: 16px 16px 0 0 !important;
602
+ }
603
+
604
+ /* Target app root with modal */
605
+ ion-app.ion-page-hidden ion-router-outlet,
606
+ ion-app ion-router-outlet.ion-page-hidden {
607
+ border-radius: 16px 16px 0 0 !important;
608
+ }
609
+
610
+ /* Safe area handling - NOT needed here since modal positioning (--app-sheet-top-offset) handles it */
611
+
612
+ /* Dark mode support */
613
+ @media (prefers-color-scheme: dark) {
614
+ .ds-post-detail-modal {
615
+ --background: var(--color-background-neutral-primary-dark, #1a1a1a);
616
+ }
617
+
618
+ .ds-post-detail-modal::part(content) {
619
+ background: var(--color-background-neutral-primary-dark, #1a1a1a);
620
+ }
621
+
622
+ .ds-post-detail-modal::part(backdrop) {
623
+ background: rgba(0, 0, 0, 0.6);
624
+ }
625
+
626
+ .ds-post-detail-modal ion-content {
627
+ --background: var(--color-background-neutral-primary-dark, #1a1a1a);
628
+ }
629
+ }
630
+
631
+ /* ============================================
632
+ Handbook Detail Modal Styles
633
+ ============================================ */
634
+
635
+ .ds-handbook-detail-modal {
636
+ --background: var(--color-background-neutral-primary, #ffffff);
637
+ --width: 100%;
638
+ --max-width: 640px;
639
+ --height: 100dvh; /* Use dynamic viewport height instead of 100% */
640
+ --border-radius: 16px 16px 0 0;
641
+ margin-top: var(--app-sheet-top-offset);
642
+ }
643
+
644
+ .ds-handbook-detail-modal::part(content) {
645
+ border-radius: 16px 16px 0 0;
646
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
647
+ background: var(--color-background-neutral-primary, #ffffff);
648
+ max-width: 640px;
649
+ margin: 0 auto;
650
+ }
651
+
652
+ .ds-handbook-detail-modal::part(backdrop) {
653
+ background: rgba(0, 0, 0, 0.4);
654
+ backdrop-filter: blur(4px);
655
+ }
656
+
657
+ .ds-handbook-detail-modal ion-content {
658
+ --background: var(--color-background-neutral-primary, #ffffff);
659
+ }
660
+
661
+ /* Safe area handling - NOT needed here since modal positioning (--app-sheet-top-offset) handles it */
662
+
663
+ /* Dark mode support */
664
+ @media (prefers-color-scheme: dark) {
665
+ .ds-handbook-detail-modal {
666
+ --background: var(--color-background-neutral-primary-dark, #1a1a1a);
667
+ }
668
+
669
+ .ds-handbook-detail-modal::part(content) {
670
+ background: var(--color-background-neutral-primary-dark, #1a1a1a);
671
+ }
672
+
673
+ .ds-handbook-detail-modal::part(backdrop) {
674
+ background: rgba(0, 0, 0, 0.6);
675
+ }
676
+
677
+ .ds-handbook-detail-modal ion-content {
678
+ --background: var(--color-background-neutral-primary-dark, #1a1a1a);
679
+ }
680
+ }
681
+
682
+ /* ============================================
683
+ Whitelabel Demo Modal Styles
684
+ ============================================ */
685
+
686
+ .ds-whitelabel-demo-modal {
687
+ --background: var(--color-background-neutral-primary, #ffffff);
688
+ --width: 100%;
689
+ --max-width: 640px;
690
+ --height: 100dvh;
691
+ --border-radius: 16px 16px 0 0;
692
+ margin-top: var(--app-sheet-top-offset);
693
+ }
694
+
695
+ .ds-whitelabel-demo-modal::part(content) {
696
+ border-radius: 16px 16px 0 0;
697
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
698
+ background: var(--color-background-neutral-primary, #ffffff);
699
+ max-width: 640px;
700
+ margin: 0 auto;
701
+ }
702
+
703
+ .ds-whitelabel-demo-modal::part(backdrop) {
704
+ background: rgba(0, 0, 0, 0.4);
705
+ backdrop-filter: blur(4px);
706
+ }
707
+
708
+ .ds-whitelabel-demo-modal ion-content {
709
+ --background: #ffffff;
710
+ }
711
+