.root {
  -st-states: exited, overlay, appendTo(enum(parent));
  transition: transform 0.4s ease 0s;
  position: fixed;
  z-index: 1;
}

.root:overlay {
  transition: transform 0s ease 0s;
}

.root:appendTo(parent) {
  position: absolute;
}

.root:not(:exited) {
  box-shadow: 0 3px 24px 0 rgba(22, 45, 61, 0.18),
    0 8px 8px 0 rgba(22, 45, 61, 0.12);
}
