/* One shell, three semantic variants. Natural at opening, held while choosing. */
.tst-action-sheet {box-sizing:border-box;height:fit-content;max-height:var(--tst-sheet-max-height);padding:0;overflow:hidden}
.tst-action-sheet>[data-sheet-part=frame] {display:flex;flex-direction:column;width:100%;max-width:none;height:100%;max-height:var(--tst-sheet-content-max-height);min-height:0;margin:0;border:0;border-radius:0;overflow:hidden}
.tst-action-sheet [data-sheet-part=head] {flex:none;position:static;align-items:center;border-color:var(--tst-line)}
.tst-action-sheet [data-sheet-part=head]>h2 {margin:0}
/* Woo writes inline display:block when resolving a variation. */
.tst-action-sheet .tst-sheet-layout {display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}
.tst-action-sheet [data-sheet-part=body] {flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:var(--tst-space-3)}
.tst-action-sheet [data-sheet-part=body][hidden] {display:none}
.tst-action-sheet [data-sheet-part=footer] {flex:none;max-height:calc(var(--tst-sheet-content-max-height) / 2);overflow:auto;overscroll-behavior:contain}
/* Synchronous intrinsic measurement must ignore the held frame and stretched body. */
.tst-action-sheet[data-sheet-measuring]>[data-sheet-part=frame] {height:auto}
.tst-action-sheet[data-sheet-measuring] [data-sheet-part=body] {flex:none}
.tst-action-sheet[data-sheet-measuring] .tst-sheet-layout {flex:none}
.tst-action-sheet[data-sheet-measuring] [data-sheet-part=footer] {max-height:none}
@media(max-width:900px) {
  body.tst-redesign :is(.tst-action-sheet,.tst-notification-panel) {position:fixed;inset:auto 0 var(--tst-sheet-edge);margin:0;width:100%;max-width:100%;border-width:1px 0 0;border-radius:var(--tst-radius-feature) var(--tst-radius-feature) 0 0}
  .tst-action-sheet {max-height:var(--tst-sheet-max-height)}
  .tst-action-sheet [data-sheet-part=footer] {padding-bottom:calc(var(--tst-panel-padding) + env(safe-area-inset-bottom))}
  .tst-action-sheet [data-sheet-part=body]:last-child {padding-bottom:calc(var(--tst-panel-padding) + env(safe-area-inset-bottom))}
}
@media(max-width:900px) and (max-height:600px) {
  .tst-action-sheet :is([data-sheet-part=head],[data-sheet-part=body],[data-sheet-part=footer]) {padding:var(--tst-space-3)}
  .tst-action-sheet [data-sheet-part=footer] {padding-bottom:calc(var(--tst-space-3) + env(safe-area-inset-bottom))}
}
@media(max-width:900px) and (prefers-reduced-motion:no-preference) {
  body.tst-redesign :is(.tst-action-sheet,.tst-notification-panel)[open] {animation:tst-action-sheet-enter var(--tst-duration-reveal) var(--tst-ease-out) both}
  body.tst-redesign :is(.tst-action-sheet,.tst-notification-panel)[open][data-closing] {animation:tst-action-sheet-exit var(--tst-duration-panel) var(--tst-ease-dock) both}
  body.tst-redesign :is(.tst-action-sheet,.tst-notification-panel)[open]::backdrop {animation:tst-action-sheet-backdrop-enter var(--tst-duration-reveal) var(--tst-ease-out) both}
  body.tst-redesign :is(.tst-action-sheet,.tst-notification-panel)[open][data-closing]::backdrop {animation:tst-action-sheet-backdrop-exit var(--tst-duration-panel) var(--tst-ease-dock) both}
  @keyframes tst-action-sheet-enter {from{transform:var(--tst-sheet-hidden-transform)}to{transform:translate3d(0,0,0)}}
  @keyframes tst-action-sheet-exit {from{transform:var(--tst-sheet-exit-from,translate3d(0,0,0))}to{transform:var(--tst-sheet-hidden-transform)}}
  @keyframes tst-action-sheet-backdrop-enter {from{opacity:0}to{opacity:1}}
  @keyframes tst-action-sheet-backdrop-exit {from{opacity:1}to{opacity:0}}
}
