@use './tokens' as kt;

@include kt.block {
  &__settings-popover {
    width: 240px;
  }

  &__settings-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  &__settings-popover-title {
    font-weight: 500;
  }

  &__settings-popover-list {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
  }

  &__settings-column-item {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 4px 6px;
    border-radius: 4px;
    transition:
      background 0.16s ease,
      opacity 0.16s ease;
  }

  &__settings-column-item:hover {
    background: hsl(var(--accent));
  }

  &__settings-column-item::before,
  &__settings-column-item::after {
    position: absolute;
    right: 6px;
    left: 6px;
    height: 2px;
    content: '';
    background: transparent;
    border-radius: 999px;
  }

  &__settings-column-item::before {
    top: 0;
  }

  &__settings-column-item::after {
    bottom: 0;
  }

  &__settings-column-item--dragging {
    opacity: 0.45;
  }

  &__settings-column-item--drop-before::before,
  &__settings-column-item--drop-after::after {
    background: hsl(var(--primary));
  }

  &__settings-column-drag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
    padding: 0;
    color: hsl(var(--muted-foreground));
    cursor: grab;
    background: transparent;
    border: 0;
  }

  &__settings-column-drag:active {
    cursor: grabbing;
  }

  &__settings-column-drag-icon {
    width: 16px;
    height: 16px;
  }

  &__settings-column-checkbox {
    flex: 1 1 0;
    min-width: 0;
  }
}
