@use "../../../ui/styles/_variables" as *;

$drawerWidthDefault: 35%;
$drawerWidthWide: 60%;

.drawer {
  position: fixed;
  top: 0;
  height: 100%;
  padding: 0rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  flex-shrink: 0;
  transition: right 0.3s ease;
  z-index: 1050;
  border-left: 1px solid $border;
  background: $background;
  max-height: 100%;
  overflow-y: scroll;

  &.width35 {
    width: $drawerWidthDefault;
    max-width: $drawerWidthWide;
  }

  &.width60 {
    width: $drawerWidthWide;
    max-width: $drawerWidthWide;
  }

  input[type="search"] {
    display: flex;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem !important;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid $border;
    background-color: white;
  }
}

.drawer.open {
  right: 0;
  display: flex;
}

.drawer.closed {
  right: -1 * $drawerWidthWide;
}

.drawerContent {
  padding: 2rem;
  width: 100%;
}

.drawerHeader {
  max-width: 95%;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1040;
}

.closeButton {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 1.5rem;
  right: 1rem;
}

.subtitle {
  color: $text-secondary;
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 0;
}
