.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 8888;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  max-width: var(--drawer-max-width, 320px);
  background: #fff;
  z-index: 8889;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;

  &.open {
    transform: translateX(0);
  }

  @media (max-width: 640px) {
    width: 100vw;
    max-width: 100vw;
  }
}

@keyframes slide-in {
  to {
    transform: translateX(0);
  }
}

.close.close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 18px;
  height: 18px;
  background: none;
  padding: 0;
}

.content {
  padding: 64px 24px 24px;
  display: flex;
  flex-direction: column;
}
