.bottom-sheet__panel {
  display: none;
}

.bottom-sheet__trigger {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.bottom-sheet__trigger svg {
  width: 22px;
  height: 22px;
  color: var(--color-text);
}

@media (min-width: 992px) {
  .bottom-sheet__panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .bottom-sheet__trigger {
    display: none;
  }
}

.bottom-sheet__overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: rgba(23, 23, 23, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bottom-sheet__overlay[hidden] {
  display: none;
}

.bottom-sheet__overlay--open {
  opacity: 1;
}

.bottom-sheet__sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background-color: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.bottom-sheet__overlay--open .bottom-sheet__sheet {
  transform: translateY(0);
}

.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-border);
  margin: 0 auto var(--space-sm);
  flex-shrink: 0;
}
