@carbon/ibm-products-styles 2.75.0 → 2.76.0-rc.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.
@@ -3182,16 +3182,19 @@ p.c4p--about-modal__copyright-text:first-child {
3182
3182
  */
3183
3183
  .c4p--tearsheet__next .c4p--tearsheet__next__container {
3184
3184
  align-self: flex-end;
3185
+ border: 1px solid var(--cds-border-subtle-01, #c6c6c6);
3185
3186
  block-size: 100%;
3186
3187
  inset-block-start: auto;
3187
- max-block-size: calc(100% - 3rem);
3188
- transform: translate3d(0, min(95vh, 500px), 0);
3188
+ max-block-size: calc(100% - var(--tearsheet-vertical-gap, 3rem));
3189
3189
  }
3190
3190
  @media (max-width: 41.98rem) {
3191
- .c4p--tearsheet__next .c4p--tearsheet__next__container {
3191
+ .c4p--tearsheet__next:not(.c4p--tearsheet__next--stack-activated.is-visible) .c4p--tearsheet__next__container {
3192
3192
  max-block-size: none;
3193
3193
  }
3194
3194
  }
3195
+ .c4p--tearsheet__next:not(.is-visible).c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container {
3196
+ transform: translate3d(0, min(95vh, 500px), 0);
3197
+ }
3195
3198
  .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__container {
3196
3199
  border: 1px solid transparent;
3197
3200
  /* override carbon ai removing background gradient */
@@ -3199,8 +3202,13 @@ p.c4p--about-modal__copyright-text:first-child {
3199
3202
  border-block-end: 0;
3200
3203
  box-shadow: 0 4px 10px 2px var(--cds-ai-drop-shadow, rgba(15, 98, 254, 0.1));
3201
3204
  }
3205
+ .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__main-content {
3206
+ position: relative;
3207
+ background: linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)) 0%, var(--cds-ai-aura-start, rgba(69, 137, 255, 0.1)) 0%, 15%, var(--cds-ai-aura-end, rgba(255, 255, 255, 0)) 50%) padding-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) padding-box, linear-gradient(to bottom, var(--cds-ai-border-start, rgba(166, 200, 255, 0.64)), var(--cds-ai-border-end, #78a9ff)) border-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) border-box;
3208
+ box-shadow: inset 0 -80px 70px -65px var(--cds-ai-inner-shadow, rgba(69, 137, 255, 0.1));
3209
+ }
3202
3210
  .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container {
3203
- transition: transform 240ms cubic-bezier(0, 0, 0.3, 1), max-height 240ms cubic-bezier(0, 0, 0.3, 1);
3211
+ transition: transform 240ms cubic-bezier(0, 0, 0.3, 1), max-block-size 240ms cubic-bezier(0, 0, 0.3, 1);
3204
3212
  }
3205
3213
  @media (min-width: 42rem) {
3206
3214
  .c4p--tearsheet__next.c4p--tearsheet__next--wide .c4p--tearsheet__next__container {
@@ -3238,7 +3246,7 @@ p.c4p--about-modal__copyright-text:first-child {
3238
3246
  display: grid;
3239
3247
  flex-basis: unset;
3240
3248
  gap: 1rem;
3241
- grid-template-columns: auto minmax(var(--tearsheet-header-title-grid-width, 0), 1fr);
3249
+ grid-template-columns: minmax(auto, 40rem) minmax(var(--tearsheet-header-title-grid-width, 0), 1fr);
3242
3250
  inline-size: calc(100% - var(--tearsheet-header-action-offset));
3243
3251
  }
3244
3252
  @media (max-width: 41.98rem) {
@@ -3256,6 +3264,7 @@ p.c4p--about-modal__copyright-text:first-child {
3256
3264
  font-weight: var(--cds-label-01-font-weight, 400);
3257
3265
  line-height: var(--cds-label-01-line-height, 1.33333);
3258
3266
  letter-spacing: var(--cds-label-01-letter-spacing, 0.32px);
3267
+ color: var(--cds-text-secondary, #525252);
3259
3268
  margin-block-end: 0.25rem;
3260
3269
  }
3261
3270
  .c4p--tearsheet__next .c4p--tearsheet__next__header-title {
@@ -3280,17 +3289,10 @@ p.c4p--about-modal__copyright-text:first-child {
3280
3289
  .c4p--tearsheet__next .c4p--tearsheet__next__header-title svg {
3281
3290
  flex-shrink: 0;
3282
3291
  }
3283
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__leading-icon {
3284
- flex-direction: row;
3285
- }
3286
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__leading-icon svg {
3292
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-start {
3287
3293
  margin-inline-end: 1rem;
3288
3294
  }
3289
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__trailing-icon {
3290
- flex-direction: row-reverse;
3291
- justify-content: flex-end;
3292
- }
3293
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__trailing-icon svg {
3295
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-end {
3294
3296
  margin-inline-start: 1rem;
3295
3297
  }
3296
3298
  .c4p--tearsheet__next .c4p--tearsheet__next__header-description {
@@ -3302,9 +3304,6 @@ p.c4p--about-modal__copyright-text:first-child {
3302
3304
  .c4p--tearsheet__next .c4p--tearsheet__next__header--no-close-icon {
3303
3305
  display: none;
3304
3306
  }
3305
- .c4p--tearsheet__next .c4p--tearsheet__next__header-content {
3306
- max-inline-size: 40rem;
3307
- }
3308
3307
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar {
3309
3308
  position: relative;
3310
3309
  display: flex;
@@ -3316,8 +3315,8 @@ p.c4p--about-modal__copyright-text:first-child {
3316
3315
  }
3317
3316
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar .c4p--tearsheet__next__scroller-container {
3318
3317
  position: absolute;
3319
- inset-inline-end: -2rem;
3320
- margin-inline-end: 1px;
3318
+ inset-block-end: 0.125rem;
3319
+ inset-inline-end: calc(-2rem + 0.125rem);
3321
3320
  }
3322
3321
  @media (max-width: 41.98rem) {
3323
3322
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar .c4p--tearsheet__next__scroller-container {
@@ -3344,8 +3343,14 @@ p.c4p--about-modal__copyright-text:first-child {
3344
3343
  inline-size: 100%;
3345
3344
  margin-block-start: -14px;
3346
3345
  }
3347
- .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *:not([hidden]) + *:not([hidden]) {
3348
- padding-inline-start: 0.5rem;
3346
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *.c4p--tearsheet__next__header-action-item:not([data-hidden=true]) {
3347
+ margin-inline-end: 0.5rem; /* space between visible items */
3348
+ }
3349
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions {
3350
+ /* Remove margin on the last visible item */
3351
+ }
3352
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *.c4p--tearsheet__next__header-action-item:not([data-hidden=true]):nth-last-child(2) {
3353
+ margin-inline-end: 0;
3349
3354
  }
3350
3355
  .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > * {
3351
3356
  flex-shrink: 0;
@@ -3356,43 +3361,121 @@ p.c4p--about-modal__copyright-text:first-child {
3356
3361
  margin-inline-end: 0;
3357
3362
  }
3358
3363
  }
3359
- .c4p--tearsheet__next .c4p--tearsheet__next__header {
3360
- opacity: 1;
3364
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header {
3365
+ padding-inline: 1rem;
3366
+ }
3367
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header.c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions {
3368
+ display: none;
3369
+ }
3370
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-content-wrapper {
3371
+ display: flex;
3372
+ flex-direction: column;
3373
+ }
3374
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-title {
3375
+ font-size: var(--cds-heading-03-font-size, 1.25rem);
3376
+ font-weight: var(--cds-heading-03-font-weight, 400);
3377
+ line-height: var(--cds-heading-03-line-height, 1.4);
3378
+ letter-spacing: var(--cds-heading-03-letter-spacing, 0);
3379
+ }
3380
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__content__header-actions {
3381
+ justify-content: flex-start;
3382
+ margin-inline-end: 0;
3383
+ }
3384
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__body {
3385
+ grid-template-columns: 1fr 0;
3386
+ }
3387
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
3388
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
3389
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
3390
+ padding-inline: 1rem;
3361
3391
  }
3362
3392
  .c4p--tearsheet__next .c4p--tearsheet__next__header > *:not(.c4p--tearsheet__next__navigation-bar,
3363
3393
  .c4p--tearsheet__next__header-content-wrapper,
3364
- .cds--modal-close-button),
3365
- .c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper) {
3394
+ .cds--modal-close-button,
3395
+ .excludeFromCollapse) {
3366
3396
  overflow: hidden;
3367
3397
  max-block-size: 50vh;
3368
3398
  opacity: 1;
3369
- transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
3399
+ transition: max-block-size 240ms cubic-bezier(0, 0, 0.3, 1), opacity 240ms cubic-bezier(0, 0, 0.3, 1), margin 240ms cubic-bezier(0, 0, 0.3, 1), padding 240ms cubic-bezier(0, 0, 0.3, 1);
3400
+ }
3401
+ .c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-actions,
3402
+ .c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content *:not(.c4p--tearsheet__next__content__title-wrapper,
3403
+ .c4p--tearsheet__next__header-label) {
3404
+ opacity: 1;
3405
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1), opacity 240ms cubic-bezier(0, 0, 0.3, 1);
3406
+ }
3407
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed {
3408
+ padding-block-start: 0.75rem;
3409
+ transition: padding 240ms cubic-bezier(0, 0, 0.3, 1);
3370
3410
  }
3371
3411
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed > *:not(.c4p--tearsheet__next__navigation-bar,
3372
3412
  .c4p--tearsheet__next__header-content-wrapper,
3373
3413
  .cds--modal-close-button,
3374
3414
  .excludeFromCollapse),
3375
3415
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions > *:not(.c4p--tearsheet__next__content__header-actions),
3376
- .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper),
3416
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper),
3377
3417
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed > *:not(.c4p--tearsheet__next__navigation-bar,
3378
3418
  .c4p--tearsheet__next__header-content-wrapper,
3379
3419
  .cds--modal-close-button,
3380
- .excludeFromCollapse) * {
3420
+ .excludeFromCollapse) *,
3421
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper) * {
3381
3422
  overflow: hidden;
3382
3423
  padding: 0;
3383
3424
  margin: 0;
3384
3425
  max-block-size: 0;
3385
- min-block-size: 0;
3386
3426
  opacity: 0;
3387
- transition: all 240ms ease;
3388
- visibility: hidden;
3427
+ pointer-events: none;
3428
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
3429
+ }
3430
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title {
3431
+ font-size: var(--cds-label-02-font-size, 0.875rem);
3432
+ font-weight: var(--cds-label-02-font-weight, 400);
3433
+ line-height: var(--cds-label-02-line-height, 1.28572);
3434
+ letter-spacing: var(--cds-label-02-letter-spacing, 0.16px);
3435
+ align-items: center;
3436
+ margin-block-start: 0.25rem;
3437
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
3438
+ }
3439
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title > span {
3440
+ display: flex;
3441
+ align-items: center;
3442
+ block-size: 1.5rem;
3443
+ }
3444
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content {
3445
+ align-self: center;
3446
+ margin-block-end: 0;
3447
+ }
3448
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__header-actions {
3449
+ margin-block-start: -0.125rem;
3450
+ }
3451
+ @media (max-width: 41.98rem) {
3452
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions {
3453
+ display: none;
3454
+ }
3389
3455
  }
3390
3456
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper,
3391
3457
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content,
3392
3458
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__title-wrapper,
3393
- .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions .c4p--tearsheet__next__header-title {
3459
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions,
3460
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title {
3394
3461
  margin-block: 0;
3395
- transition: all 240ms ease;
3462
+ transition: margin-block 240ms ease;
3463
+ }
3464
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper {
3465
+ min-block-size: 2.5rem;
3466
+ padding-block-end: 0.75rem;
3467
+ }
3468
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__navigation-bar::before {
3469
+ position: absolute;
3470
+ z-index: 1;
3471
+ background: rgba(0, 0, 0, 0.12);
3472
+ block-size: 1px;
3473
+ content: "";
3474
+ inline-size: 100vw;
3475
+ inset-block-start: -0.25rem;
3476
+ inset-inline-start: 50%;
3477
+ pointer-events: none;
3478
+ transform: translateX(-50%);
3396
3479
  }
3397
3480
  .c4p--tearsheet__next .c4p--tearsheet__next__body-layout {
3398
3481
  display: grid;
@@ -3411,6 +3494,7 @@ p.c4p--about-modal__copyright-text:first-child {
3411
3494
  /* Assign components to their named grid areas */
3412
3495
  }
3413
3496
  .c4p--tearsheet__next .c4p--tearsheet__next__influencer {
3497
+ border-inline-end: 1px solid var(--cds-border-subtle-01, #c6c6c6);
3414
3498
  grid-area: influencer;
3415
3499
  }
3416
3500
  .c4p--tearsheet__next .c4p--tearsheet__next__body {
@@ -3436,19 +3520,21 @@ p.c4p--about-modal__copyright-text:first-child {
3436
3520
  .c4p--tearsheet__next .c4p--tearsheet__next__main-content,
3437
3521
  .c4p--tearsheet__next .c4p--tearsheet__next__summary-content {
3438
3522
  overflow: auto;
3523
+ }
3524
+ .c4p--tearsheet__next .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
3525
+ .c4p--tearsheet__next .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
3526
+ .c4p--tearsheet__next .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
3439
3527
  padding-inline: 2rem;
3440
3528
  }
3441
3529
  @media (max-width: 41.98rem) {
3442
- .c4p--tearsheet__next .c4p--tearsheet__next__influencer,
3443
- .c4p--tearsheet__next .c4p--tearsheet__next__main-content,
3444
- .c4p--tearsheet__next .c4p--tearsheet__next__summary-content {
3530
+ .c4p--tearsheet__next .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
3531
+ .c4p--tearsheet__next .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
3532
+ .c4p--tearsheet__next .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
3445
3533
  padding-inline: 1rem;
3446
3534
  }
3447
3535
  }
3448
3536
  .c4p--tearsheet__next .c4p--tearsheet__next__main-content {
3449
3537
  position: relative;
3450
- background: linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)) 0%, var(--cds-ai-aura-start, rgba(69, 137, 255, 0.1)) 0%, 15%, var(--cds-ai-aura-end, rgba(255, 255, 255, 0)) 50%) padding-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) padding-box, linear-gradient(to bottom, var(--cds-ai-border-start, rgba(166, 200, 255, 0.64)), var(--cds-ai-border-end, #78a9ff)) border-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) border-box;
3451
- box-shadow: inset 0 -80px 70px -65px var(--cds-ai-inner-shadow, rgba(69, 137, 255, 0.1));
3452
3538
  }
3453
3539
  .c4p--tearsheet__next .c4p--side-panel {
3454
3540
  position: absolute;
@@ -3461,31 +3547,29 @@ p.c4p--about-modal__copyright-text:first-child {
3461
3547
  .c4p--tearsheet__next .c4p--side-panel .c4p--side-panel__header {
3462
3548
  min-block-size: 0;
3463
3549
  }
3464
-
3465
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header {
3466
- padding-inline: 1rem;
3467
- }
3468
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-content-wrapper {
3469
- display: flex;
3470
- flex-direction: column;
3471
- }
3472
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-title {
3473
- font-size: var(--cds-heading-03-font-size, 1.25rem);
3474
- font-weight: var(--cds-heading-03-font-weight, 400);
3475
- line-height: var(--cds-heading-03-line-height, 1.4);
3476
- letter-spacing: var(--cds-heading-03-letter-spacing, 0);
3550
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible {
3551
+ --overlay-color: var(--cds-overlay, rgba(22, 22, 22, 0.5));
3552
+ --overlay-alpha: 0.5;
3553
+ z-index: calc(9000 - var(--stack-depth, 0));
3554
+ background-color: initial;
3477
3555
  }
3478
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__content__header-actions {
3479
- justify-content: flex-start;
3480
- margin-inline-end: 0;
3556
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible::before {
3557
+ position: absolute;
3558
+ display: block;
3559
+ background: var(--overlay-color);
3560
+ content: "";
3561
+ inset: 0;
3562
+ opacity: calc(var(--overlay-alpha) - var(--stack-depth) * 0.1);
3563
+ transition: background-color 240ms cubic-bezier(0.4, 0.14, 1, 1), opacity 240ms cubic-bezier(0.4, 0.14, 1, 1);
3481
3564
  }
3482
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__body {
3483
- grid-template-columns: 1fr 0;
3565
+ @media (prefers-reduced-motion: reduce) {
3566
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible::before {
3567
+ transition: none;
3568
+ }
3484
3569
  }
3485
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__influencer,
3486
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__main-content,
3487
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__summary-content {
3488
- padding-inline: 1rem;
3570
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible.is-visible .c4p--tearsheet__next__container {
3571
+ max-block-size: calc(100% - var(--tearsheet-vertical-gap, 3rem) + var(--block-size-change));
3572
+ transform: scaleX(var(--scale-factor));
3489
3573
  }
3490
3574
 
3491
3575
  .c4p--tearsheet.c4p--tearsheet {
@@ -3506,6 +3590,9 @@ p.c4p--about-modal__copyright-text:first-child {
3506
3590
  transition: none;
3507
3591
  }
3508
3592
  }
3593
+ .c4p--tearsheet.c4p--tearsheet:not(.is-visible).c4p--tearsheet.c4p--tearsheet .c4p--tearsheet__container {
3594
+ transform: translate3d(0, min(95vh, 500px), 0);
3595
+ }
3509
3596
  .c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet {
3510
3597
  /* tearsheet uses --overlay-color and --overlay-opacity in ::before */
3511
3598
  background: initial;
@@ -3547,7 +3634,6 @@ p.c4p--about-modal__copyright-text:first-child {
3547
3634
  block-size: 100%;
3548
3635
  inset-block-start: auto;
3549
3636
  max-block-size: calc(100% - 3rem);
3550
- transform: translate3d(0, min(95vh, 500px), 0);
3551
3637
  }
3552
3638
  .c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet--has-slug .c4p--tearsheet__container, .c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet--has-ai-label .c4p--tearsheet__container {
3553
3639
  border: 1px solid transparent;