.drawer {
  width: 100%;
}
/**
 * Mobile style
 */
.drawer--container {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 90%;
  width: 100%;
  transform: translateY(100%);
  background-color: #fefefe;
  box-shadow: 0 0 20px 3px var(--color-gray-200);
  border-top-left-radius: var(--spacing-5);
  border-top-right-radius: var(--spacing-5);
  overflow: hidden;
  margin: 0;
  z-index: 101;
}
@keyframes drawerOpen {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes drawerClose {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
.open {
  animation: drawerOpen 0.3s ease-in-out forwards;
}
.close {
  animation: drawerClose 0.3s ease-in-out forwards;
}
/**
 * Desktop style
 */
@media screen and (min-width: 901px) {
  @keyframes drawerOpen {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  @keyframes drawerClose {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(100%);
    }
  }

  .drawer--container {
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    left: initial;
    height: 100%;
    max-height: 100%;
    max-width: 90%;
    min-height: 600px;
    width: 430px;
    transform: translateX(100%);
    border-top-left-radius: var(--spacing-5);
    border-bottom-left-radius: var(--spacing-5);
    border-top-right-radius: 0;
  }
  .open {
    animation: drawerOpen 0.3s ease-in-out forwards;
  }
  .close {
    animation: drawerClose 0.3s ease-in-out forwards;
  }
}
/* Backdrop styles */
.backdrop {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
.backdrop-hidden {
  opacity: 0;
}
.backdrop-visible {
  opacity: 0.6;
  pointer-events: all;
  background-color: var(--color-gray-200);
}
/**
 * Header styles
 */
.header--wrapper {
  display: flex;
  position: relative;
  width: 100%;
  height: var(--spacing-20);
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.heading {
  font: var(--type-body-lg);
  font-weight: 600;
  color: var(--color-text-base);
}
.content--wrapper {
  padding: 0 var(--spacing-7);
}
button {
  z-index: 2;
  pointer-events: all;
  cursor: pointer;
  background: none;
  box-shadow: none;
  position: absolute;
  border: none;
  /*top: calc(50% - 24px);*/
  width: 24px;
  height: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exit-button {
  right: var(--spacing-3);
}
.back-button {
  left: var(--spacing-3);
}
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
